/* ============================================================
   KORNER FLAG — premium landing page
   Type: Space Grotesk (display) · Inter (body)
   Palette: soft off-white · deep navy product surfaces ·
            muted field green · restrained blue accent
   ============================================================ */

/* Webfonts. Loaded via Google Fonts so @font-face resolves in this
   stylesheet's closure. To self-host, replace this @import with local
   @font-face rules pointing at uploaded .woff2 files — keep the family
   names 'Space Grotesk' and 'Inter' unchanged. */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* surfaces */
  --bg:        #F6F7F9;
  --bg-soft:   #FBFBFC;
  --surface:   #FFFFFF;
  --ink:       #0E1822;   /* deep navy-charcoal product surface */
  --ink-2:     #15202C;
  --ink-3:     #1C2A38;
  --ink-line:  rgba(255,255,255,.09);
  --ink-line-2:rgba(255,255,255,.05);

  /* text */
  --text:   #131F2A;
  --text-2: #54616D;
  --text-3: #8A95A1;
  --on-ink:      #EDF1F5;
  --on-ink-soft: #9AA9B8;
  --on-ink-mute: #63727F;

  /* accents */
  --accent:     #2C6AD4;
  --accent-ink: #1E4EA6;
  --accent-soft:#EAF1FC;
  --green:      #3C9E6C;
  --green-deep: #1F7A57;
  --grad: linear-gradient(132deg, #46A069 0%, #2C84C2 50%, #3458C6 100%); /* @kind color */
  --grad-soft: linear-gradient(132deg, rgba(70,160,105,.14), rgba(50,88,198,.14)); /* @kind color */

  /* lines + elevation */
  --border:   rgba(16,24,34,.10);
  --border-2: rgba(16,24,34,.06);
  --sh-sm: 0 1px 2px rgba(16,24,34,.06);
  --sh:    0 8px 26px -10px rgba(16,24,34,.14), 0 2px 6px rgba(16,24,34,.05);
  --sh-lg: 0 36px 80px -28px rgba(12,22,32,.40), 0 12px 30px -18px rgba(12,22,32,.20);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1); /* @kind other */
  --ease-soft: cubic-bezier(.4,0,.2,1); /* @kind other */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
::selection { background: rgba(44,106,212,.18); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; margin: 0; color: var(--text); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
}
.muted { color: var(--text-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; line-height: 1;
  transition: transform .14s var(--ease), background .2s var(--ease),
              box-shadow .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1.5px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: #1a2935; box-shadow: var(--sh); transform: translateY(-1.5px); }
.btn-primary:active { box-shadow: var(--sh-sm); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(44,106,212,.6); }
.btn-accent:hover { background: var(--accent-ink); transform: translateY(-1.5px); box-shadow: 0 10px 26px -8px rgba(44,106,212,.55); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--sh-sm); }
.btn-ghost:hover { border-color: rgba(16,24,34,.2); transform: translateY(-1.5px); box-shadow: var(--sh); }
.btn-onink { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.16); }
.btn-onink:hover { background: rgba(255,255,255,.15); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 13px; }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 9px; }

/* ---------- navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246,247,249,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 4px 10px rgba(16,24,34,.16)); transition: transform .25s var(--ease); }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }
.brand b { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 12px; font-size: 14.5px; font-weight: 500; color: var(--text-2);
  border-radius: 9px; transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(16,24,34,.04); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .nav-free { display: none; }
@media (min-width: 1080px){ .nav-cta .nav-free { display: inline-flex; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 168px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(70,160,105,.10), transparent 70%),
    radial-gradient(70% 60% at 85% 10%, rgba(44,106,212,.10), transparent 65%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--border-2) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 8px 7px 14px; border-radius: 999px; box-shadow: var(--sh-sm);
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
}
.hero-pill .tag {
  background: var(--grad); color: #fff; font-weight: 600; font-size: 12px;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .01em;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 66px); line-height: 1.04; font-weight: 500;
  max-width: 16ch; margin: 26px auto 0;
}
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub {
  font-size: clamp(16px, 1.7vw, 19px); color: var(--text-2); line-height: 1.6;
  max-width: 60ch; margin: 22px auto 0; font-weight: 400;
}
.hero-ctas { display: flex; gap: 13px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--text-3); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--green); }

/* ---------- match board (hero centerpiece) ---------- */
.board-wrap { position: relative; margin: 56px auto 0; max-width: 1080px; z-index: 1; }
.board {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(168deg, #13202C 0%, #0C1620 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--sh-lg);
  will-change: transform;
}
.board-glow { position: absolute; inset: -1px; border-radius: 20px; padding: 1px;
  background: linear-gradient(150deg, rgba(70,160,105,.5), rgba(44,106,212,.4) 60%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity:.7; }
.board-top {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--ink-line-2);
}
.board-dots { display: flex; gap: 6px; }
.board-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.board-title { font-size: 13px; font-weight: 500; color: var(--on-ink-soft); display: flex; align-items: center; gap: 9px; }
.board-title b { color: var(--on-ink); font-weight: 600; }
.board-live { font-family: var(--font-display); font-size: 12.5px; color: var(--on-ink-soft); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.board-modes { margin-left: auto; display: flex; gap: 4px; background: rgba(255,255,255,.05); padding: 4px; border-radius: 10px; }
.board-mode {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--on-ink-soft);
  background: transparent; border: none; padding: 6px 13px; border-radius: 7px; cursor: pointer;
  transition: background .25s, color .25s;
}
.board-mode.on { background: rgba(255,255,255,.14); color: #fff; }

.board-stage { position: relative; aspect-ratio: 16 / 8.6; }
.board-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.board-label {
  position: absolute; font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  color: #fff; background: rgba(14,24,34,.6); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.14); padding: 5px 11px; border-radius: 8px;
  white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.board-label.on { opacity: 1; transform: none; }

/* stat strip */
.board-stats {
  display: flex; align-items: center; gap: 26px; padding: 14px 20px;
  border-top: 1px solid var(--ink-line-2);
}
.bstat { display: flex; flex-direction: column; gap: 4px; }
.bstat .l { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-ink-mute); }
.bstat .v { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.bposs { flex: 1; min-width: 160px; }
.bposs-bar { height: 7px; border-radius: 4px; overflow: hidden; display: flex; margin-top: 9px; background: rgba(255,255,255,.1); }
.bposs-bar i:first-child { background: var(--accent); }
.bposs-bar i:last-child { background: rgba(255,255,255,.22); }
.btime { display: flex; flex-direction: column; gap: 7px; flex: 1.3; min-width: 170px; }
.btime-row { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: var(--on-ink-mute); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.btime-track { position: relative; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); }
.btime-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--accent)); }
.btime-mark { position: absolute; top: 50%; width: 8px; height: 8px; transform: translate(-50%,-50%) rotate(45deg); background: #fff; border-radius: 2px; box-shadow: 0 0 0 3px rgba(14,24,34,.5); }

/* floating mini-cards around board */
.board-float {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--sh-lg); padding: 13px 15px; z-index: 2;
}
.board-float .ttl { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.float-passes { left: -34px; top: 88px; }
.float-passes .n { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin-top: 4px; font-variant-numeric: tabular-nums; }
.float-passes .d { font-size: 12px; color: var(--green-deep); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.float-heat { right: -30px; bottom: 92px; width: 150px; }
.float-heat .hp { height: 70px; border-radius: 9px; margin-top: 9px; position: relative; overflow: hidden; background: #0E2018; border: 1px solid var(--border-2); }
@media (max-width: 900px){ .board-float{ display:none; } }

/* ---------- generic section ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 640px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; margin-top: 16px; font-weight: 500; }
.section-head p { font-size: 17px; color: var(--text-2); margin-top: 16px; line-height: 1.6; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.step { position: relative; padding: 30px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--sh-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.step-n { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .04em; }
.step-vis { height: 132px; margin: 18px 0 22px; border-radius: 12px; background: linear-gradient(168deg,#13202C,#0C1620); border: 1px solid rgba(255,255,255,.06); position: relative; overflow: hidden; }
.step h3 { font-size: 19px; font-weight: 600; }
.step p { font-size: 14.5px; color: var(--text-2); margin: 9px 0 0; line-height: 1.55; }
.step-line { position: absolute; top: 50%; right: -11px; width: 22px; height: 1px; background: var(--border); z-index: 1; }
@media (max-width: 820px){ .steps{ grid-template-columns: 1fr; } .step-line{ display:none; } }

/* features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.feature { display: flex; gap: 22px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--sh-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; overflow: hidden; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: rgba(16,24,34,.16); }
.feature-vis { width: 148px; flex: none; border-radius: 12px; background: linear-gradient(168deg,#13202C,#0C1620); border: 1px solid rgba(255,255,255,.06); position: relative; overflow: hidden; }
.feature-body h3 { font-size: 19px; font-weight: 600; }
.feature-body p { font-size: 14.5px; color: var(--text-2); margin: 9px 0 0; line-height: 1.55; }
.feature-tag { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--text-3); }
@media (max-width: 820px){ .features{ grid-template-columns: 1fr; } .feature{ flex-direction: column; } .feature-vis{ width:100%; height: 120px; } }

/* match room preview */
.room { background: var(--ink); border-radius: 24px; overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,.08); margin-top: 56px; }
.room-top { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--ink-line-2); }
.room-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1px; background: var(--ink-line-2); }
.room-main { background: var(--ink); padding: 22px; }
.room-side { background: var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.room-video { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; background: linear-gradient(160deg,#0E2018,#10202C); border: 1px solid rgba(255,255,255,.07); }
.room-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.room-play button { width: 62px; height: 62px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); backdrop-filter: blur(5px); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.room-play button:hover { background: rgba(255,255,255,.22); transform: scale(1.05); }
.room-chips { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; }
.room-chip { font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(14,24,34,.55); border: 1px solid rgba(255,255,255,.16); padding: 5px 11px; border-radius: 8px; backdrop-filter: blur(5px); }
.room-tl { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.room-tl .track { flex: 1; height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); position: relative; }
.room-tl .track i { position: absolute; left: 0; top: 0; bottom: 0; width: 36%; border-radius: 4px; background: linear-gradient(90deg,var(--green),var(--accent)); }
.room-tl .track .m { position: absolute; top: 50%; width: 7px; height: 7px; transform: translate(-50%,-50%) rotate(45deg); background: #fff; border-radius: 2px; }
.room-tl .t { font-family: var(--font-display); font-size: 12px; color: var(--on-ink-soft); font-variant-numeric: tabular-nums; }
.panel-h { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-ink-mute); }
.poss-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.poss-row .v { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.poss-row .v.dim { color: var(--on-ink-soft); }
.poss-bar { height: 9px; border-radius: 5px; display: flex; overflow: hidden; margin-top: 10px; background: rgba(255,255,255,.1); }
.poss-bar i:first-child { background: var(--accent); }
.poss-bar i:last-child { background: rgba(255,255,255,.2); }
.lead-row { display: flex; align-items: center; gap: 12px; margin-top: 11px; }
.lead-row .id { width: 30px; font-family: var(--font-display); font-size: 13px; color: var(--on-ink); font-weight: 500; }
.lead-row .bar { flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.lead-row .bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.lead-row .n { font-family: var(--font-display); font-size: 12.5px; color: var(--on-ink-soft); width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 820px){ .room-grid{ grid-template-columns: 1fr; } }

/* CTA footer */
.cta-section { padding: 40px 0 110px; }
.cta {
  position: relative; overflow: hidden; border-radius: 26px; text-align: center;
  padding: 78px 32px; background: linear-gradient(168deg,#13202C 0%,#0B141C 100%);
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--sh-lg);
}
.cta-field { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.cta h2 { font-size: clamp(28px, 4vw, 46px); color: #fff; font-weight: 500; position: relative; max-width: 18ch; margin: 0 auto; }
.cta p { color: var(--on-ink-soft); font-size: 17px; margin: 18px auto 0; max-width: 48ch; position: relative; }
.cta-ctas { display: flex; gap: 13px; justify-content: center; margin-top: 32px; position: relative; flex-wrap: wrap; }

/* footer */
.foot { padding: 44px 0; border-top: 1px solid var(--border-2); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.foot-links a:hover { color: var(--text); }
.foot small { color: var(--text-3); font-size: 13px; }

@media (max-width: 720px){
  .nav-links { display: none; }
  .hero { padding-top: 130px; }
  .section { padding: 80px 0; }
}
