/* ============================================================
   PokerManager — landing page · "The Pit"
   Brutalist ops-terminal. Self-contained: defines its own tokens and
   does NOT load theme.css, so the app's global component layer (which
   styles .card/.btn/etc. with !important) can't bleed in and break the
   bespoke landing layout.
   ============================================================ */

:root {
    --pit-bg: #e8e4d7;
    --pit-surface: #f3f0e7;
    --pit-ink: #0c0b09;
    --pit-mut: #55514a;
    --pit-red: #e4002b;
    --pit-green: #0b7d49;
    --pit-line: #0c0b09;
    --pit-line-soft: #cfc7b5;
    --font-display: 'Archivo', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; overflow-x: hidden; }

body {
    font-family: var(--font-mono);
    background: var(--pit-bg);
    color: var(--pit-ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.03em;
    text-transform: uppercase;
}

.tagn {
    font: 700 .78rem var(--font-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pit-red);
    margin-bottom: 1.3rem;
}

/* ---------- Live ticker ---------- */
.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--pit-line);
    padding: .55rem 1.5rem;
    background: var(--pit-ink);
    color: var(--pit-bg);
    font: 500 .74rem var(--font-mono);
    letter-spacing: .05em;
    overflow: hidden;
    white-space: nowrap;
}
.bar-track { display: flex; gap: 2.5rem; overflow: hidden; }
.bar .up { color: #7CFFB0; }
.bar .dn { color: #ff8aa0; }
.bar-clock { flex: 0 0 auto; padding-left: 1.5rem; }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 2px solid var(--pit-line);
    background: var(--pit-bg);
}
.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font: 900 1.3rem var(--font-display);
    letter-spacing: -.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--pit-ink);
}
.sq { width: 26px; height: 26px; background: var(--pit-red); display: grid; place-items: center; color: #fff; font-size: .9rem; }
.nlinks { display: flex; gap: 1.6rem; }
.nlinks a { color: var(--pit-ink); text-decoration: none; font: 500 .8rem var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.nlinks a:hover { color: var(--pit-red); }
.navright { display: flex; align-items: center; gap: .6rem; }
.menu { display: none; place-items: center; width: 38px; height: 38px; border: 2px solid var(--pit-line); background: var(--pit-bg); font: 900 1.1rem var(--font-display); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font: 700 .82rem var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .05em;
    border: 2px solid var(--pit-ink);
    border-radius: 0;
    padding: .7rem 1.3rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--pit-ink);
    background: var(--pit-bg);
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--pit-ink); }
.b-pri { background: var(--pit-red); color: #fff; border-color: var(--pit-red); }
.b-pri:hover { box-shadow: 4px 4px 0 var(--pit-ink); }
.b-out { background: transparent; }
.b-gh { padding: .5rem 1rem; }
.b-gh:hover, .b-out:hover { box-shadow: 3px 3px 0 var(--pit-ink); }
.b-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; border-bottom: 2px solid var(--pit-line); }
.hl { padding: 3.5rem 1.5rem 2.5rem; border-right: 2px solid var(--pit-line); position: relative; overflow: hidden; }
.hl h1 { font-size: clamp(2.5rem, 10vw, 6.2rem); margin-bottom: 1.4rem; }
.hl h1 .o { -webkit-text-stroke: 2px var(--pit-ink); color: transparent; }
.lede { font: 400 1.05rem var(--font-mono); color: var(--pit-mut); max-width: 36rem; line-height: 1.6; margin-bottom: 2rem; }
.cta { display: flex; gap: .8rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.trust { font: 500 .76rem var(--font-mono); letter-spacing: .06em; color: var(--pit-mut); }
.trust b { color: var(--pit-ink); }
.watermark { position: absolute; right: -2rem; bottom: -5rem; font-size: 22rem; line-height: 1; color: rgba(12, 11, 9, .06); font-family: var(--font-display); pointer-events: none; }
.hr-side { display: flex; flex-direction: column; }
.cell { padding: 1.5rem; border-bottom: 2px solid var(--pit-line); flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.cell:last-child { border-bottom: 0; }
.cell .k { font: 900 2.6rem var(--font-display); letter-spacing: -.03em; }
.cell .v { font: 400 .78rem var(--font-mono); color: var(--pit-mut); text-transform: uppercase; letter-spacing: .06em; margin-top: .3rem; }
.cell .red { color: var(--pit-red); }
.cell .em { color: var(--pit-green); }

/* ---------- Sections ---------- */
.sec { padding: 3.2rem 1.5rem 0; }
.sec-head { margin-bottom: 1.8rem; }
.sec-head h2 { font-size: clamp(1.8rem, 7vw, 3rem); margin-bottom: .5rem; }
.sub { font: 400 .98rem var(--font-mono); color: var(--pit-mut); }

/* Features grid — hard ruled */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--pit-line); border-left: 2px solid var(--pit-line); }
.card { position: relative; padding: 1.8rem 1.5rem; border-right: 2px solid var(--pit-line); border-bottom: 2px solid var(--pit-line); }
.card .no { font: 700 .8rem var(--font-mono); color: var(--pit-red); }
.card h3 { font-size: 1.5rem; margin: .7rem 0 .4rem; }
.card p { font: 400 .9rem var(--font-mono); color: var(--pit-mut); line-height: 1.5; }
.card .glyph { position: absolute; top: 1.4rem; right: 1.4rem; font-size: 1.7rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--pit-line); border-left: 2px solid var(--pit-line); }
.step { padding: 2rem 1.5rem; border-right: 2px solid var(--pit-line); border-bottom: 2px solid var(--pit-line); }
.step .no { font: 900 2.4rem var(--font-display); color: var(--pit-red); line-height: 1; margin-bottom: .6rem; }
.step h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.step p { font: 400 .9rem var(--font-mono); color: var(--pit-mut); line-height: 1.5; }

/* Platforms */
.plats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--pit-line); border-left: 2px solid var(--pit-line); }
.plat { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1.8rem 1rem; border-right: 2px solid var(--pit-line); border-bottom: 2px solid var(--pit-line); }
.plat.live { background: var(--pit-ink); color: var(--pit-bg); }
.pn { font: 900 1.4rem var(--font-display); text-transform: uppercase; letter-spacing: -.02em; }
.pt { font: 700 .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--pit-mut); border: 2px solid currentColor; padding: .18rem .6rem; }
.plat.live .pt { color: var(--pit-bg); }
.tag-live { color: #fff !important; background: var(--pit-red); border-color: var(--pit-red); }

/* ---------- Contact ---------- */
.contact { padding-bottom: 0; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--pit-line); }
.cleft { padding: 2.2rem 1.8rem; border-right: 2px solid var(--pit-line); }
.cleft h2 { font-size: 2.3rem; margin-bottom: .6rem; }
.channels { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.6rem; }
.chan { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--pit-ink); font: 700 .82rem var(--font-mono); letter-spacing: .04em; border: 2px solid var(--pit-line); padding: .65rem .9rem; }
.chan:hover { background: var(--pit-ink); color: var(--pit-bg); }
.cright { padding: 2.2rem 1.8rem; }
.cform { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > span { font: 700 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--pit-mut); }
.field input, .field textarea {
    font: 400 .95rem var(--font-mono);
    color: var(--pit-ink);
    background: var(--pit-surface);
    border: 2px solid var(--pit-line);
    border-radius: 0;
    padding: .7rem .85rem;
    width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #9a958a; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pit-red); box-shadow: 3px 3px 0 var(--pit-red); }
.field textarea { resize: vertical; min-height: 104px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-error { color: var(--pit-red); font: 500 .78rem var(--font-mono); }
.form-errors { color: var(--pit-red); font: 500 .85rem var(--font-mono); }
.form-errors:empty { display: none; }
.form-errors ul { list-style: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ok { display: flex; align-items: center; gap: 1rem; border: 2px solid var(--pit-green); padding: 2rem; min-height: 200px; }
.ok-mark { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; background: var(--pit-green); color: #fff; font-size: 1.3rem; }
.ok strong { font: 900 1.1rem var(--font-display); text-transform: uppercase; }
.ok p { color: var(--pit-mut); font: 400 .9rem var(--font-mono); margin-top: .2rem; }

/* ---------- Footer ---------- */
.foot { margin-top: 3rem; border-top: 2px solid var(--pit-line); }
.foot-top { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 1.5rem; gap: 1rem; flex-wrap: wrap; }
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-links a { color: var(--pit-ink); text-decoration: none; font: 500 .82rem var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.foot-links a:hover { color: var(--pit-red); }
.foot-bot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.5rem; border-top: 2px solid var(--pit-line); font: 400 .78rem var(--font-mono); color: var(--pit-mut); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hl { border-right: 0; border-bottom: 2px solid var(--pit-line); }
    .hr-side { flex-direction: row; }
    .cell { border-bottom: 0; border-right: 2px solid var(--pit-line); text-align: center; }
    .cell:last-child { border-right: 0; }
    .grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .plats { grid-template-columns: repeat(2, 1fr); }
    .cgrid { grid-template-columns: 1fr; }
    .cleft { border-right: 0; border-bottom: 2px solid var(--pit-line); }
}

@media (max-width: 600px) {
    .bar { font-size: .64rem; padding: .5rem 1rem; }
    .bar-clock { display: none; }
    .nav { padding: .9rem 1.1rem; }
    .brand { font-size: 1.05rem; }
    .sq { width: 22px; height: 22px; }
    .nlinks { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--pit-bg); border-bottom: 2px solid var(--pit-line); }
    .nlinks.open { display: flex; }
    .nlinks a { padding: .9rem 1.1rem; border-top: 2px solid var(--pit-line-soft); }
    .menu { display: grid; }
    .hl { padding: 2.4rem 1.1rem 2rem; }
    .lede { font-size: .92rem; }
    .cta { flex-direction: column; align-items: stretch; }
    .cta form, .cta .btn { width: 100%; }
    .watermark { font-size: 13rem; bottom: -1.5rem; }
    .sec { padding: 2.5rem 1.1rem 0; }
    .grid, .steps, .plats { grid-template-columns: 1fr; }
    .frow { grid-template-columns: 1fr; }
    /* Hero stat tiles: 3 across must fit the narrowest phones */
    .cell { padding: 1rem .5rem; }
    .cell .k { font-size: 1.7rem; }
    .cell .v { font-size: .62rem; }
    .cleft, .cright { padding: 1.6rem 1.1rem; }
    .foot-top, .foot-bot { padding-left: 1.1rem; padding-right: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    html { scroll-behavior: auto; }
}
