:root {
  --navy-950: #071325;
  --navy-900: #0b1d35;
  --navy-850: #102642;
  --blue-500: #2f7df6;
  --blue-400: #58a6ff;
  --cyan-300: #80d4ff;
  --orange-500: #f58a2b;
  --white: #ffffff;
  --ink-900: #101827;
  --ink-700: #334155;
  --ink-500: #64748b;
  --line: #dbe5f0;
  --surface: #f6f9fc;
  --surface-2: #eef5fb;
  --shadow: 0 24px 60px rgba(7, 19, 37, 0.16);
  --radius-lg: 26px;
  --radius-md: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 999; padding: .7rem 1rem; background: white; color: black; border-radius: .5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 19, 37, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: white; text-decoration: none; font-weight: 780; font-size: 1.25rem; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #d8e7f7; text-decoration: none; font-weight: 650; font-size: .95rem; }
.nav a:hover, .nav a:focus-visible { color: white; }
.nav .nav-cta { padding: 10px 15px; border: 1px solid rgba(128,212,255,.35); border-radius: 12px; background: rgba(47,125,246,.13); }
.menu-toggle { display: none; border: 0; background: transparent; color: white; font-size: 1.5rem; padding: 8px; }

.hero {
  color: white;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 30%, rgba(47,125,246,.30), transparent 34%),
    radial-gradient(circle at 25% 10%, rgba(128,212,255,.12), transparent 30%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 58%, #12365b);
}
.hero-inner { min-height: 640px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 52px; padding-block: 84px 90px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #a9d8ff; text-transform: uppercase; font-weight: 800; letter-spacing: .11em; font-size: .78rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange-500); }
h1 { font-size: clamp(2.7rem, 5vw, 5.5rem); line-height: .99; letter-spacing: -.055em; margin: 18px 0 24px; max-width: 820px; }
.hero h1 .accent { color: #7bc5ff; }
.hero-copy { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: #cad9ea; max-width: 690px; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 13px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 48px; padding: 0 18px; border-radius: 13px; font-weight: 760; text-decoration: none; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, #4aa0ff, #2672e8); color: white; box-shadow: 0 14px 30px rgba(47,125,246,.28); }
.button-secondary { background: rgba(255,255,255,.06); color: white; border-color: rgba(255,255,255,.18); }
.button-dark { background: var(--navy-900); color: white; }
.button-ghost { border-color: var(--line); color: var(--ink-900); background: white; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px 22px; color: #b7c9dd; font-size: .9rem; margin-top: 27px; }
.trust-row span::before { content: "✓"; color: #78c8ff; margin-right: 7px; font-weight: 800; }

.hero-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.logo-orbit { position: absolute; width: 330px; height: 330px; border: 1px solid rgba(128,212,255,.16); border-radius: 50%; }
.logo-orbit::before, .logo-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.logo-orbit::before { inset: 34px; }
.logo-orbit::after { inset: 76px; }
.hero-logo { width: 205px; height: 205px; border-radius: 42px; box-shadow: 0 30px 70px rgba(0,0,0,.35); transform: rotate(-3deg); }
.float-card { position: absolute; min-width: 190px; padding: 15px 17px; border-radius: 16px; background: rgba(13,35,61,.76); border: 1px solid rgba(128,212,255,.22); box-shadow: 0 18px 40px rgba(0,0,0,.22); backdrop-filter: blur(12px); }
.float-card strong { display: block; font-size: .95rem; }
.float-card small { color: #a9bfd8; }
.float-card.one { top: 32px; right: 5px; }
.float-card.two { bottom: 54px; left: 3px; }
.float-dot { display:inline-block; width:8px; height:8px; background:#58c990; border-radius:50%; margin-right:7px; box-shadow:0 0 0 5px rgba(88,201,144,.12); }

.section { padding: 92px 0; }
.section-muted { background: var(--surface); }
.section-dark { background: var(--navy-950); color: white; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-kicker { color: #256dd9; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; font-size: .76rem; }
.section-dark .section-kicker { color: #83c7ff; }
h2 { font-size: clamp(2rem, 3.5vw, 3.35rem); line-height: 1.08; letter-spacing: -.035em; margin: 8px 0 14px; }
h3 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -.015em; }
.lead { color: var(--ink-500); font-size: 1.08rem; }
.section-dark .lead { color: #aebfd3; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; box-shadow: 0 10px 30px rgba(10, 32, 58, .06); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 18px; background: #eaf4ff; color: #216bd3; font-weight: 900; font-size: 1.2rem; }
.feature-card p { color: var(--ink-500); margin: 0; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; overflow: hidden; box-shadow: 0 18px 50px rgba(12, 31, 51, .08); }
.product-card-copy { padding: 34px; }
.product-card p { color: var(--ink-500); }
.product-card .meta { display: inline-flex; gap: 8px; align-items:center; font-size: .86rem; font-weight: 760; color: #315b87; background: #edf5fc; border-radius: 999px; padding: 6px 10px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.mockup { min-height: 300px; padding: 22px; background: linear-gradient(155deg, #0d2744, #164b7b); position: relative; overflow:hidden; }
.mockup::before { content:""; position:absolute; width:260px; height:260px; right:-80px; top:-100px; border-radius:50%; background:rgba(80,168,255,.18); }
.mock-window { position: relative; z-index: 2; height: 100%; min-height: 256px; background: #f9fbfd; border-radius: 15px; box-shadow: 0 18px 36px rgba(0,0,0,.24); overflow:hidden; }
.mock-bar { height: 34px; background:#e6edf4; display:flex; align-items:center; gap:6px; padding:0 11px; }
.mock-bar i { display:block; width:8px; height:8px; border-radius:50%; background:#b5c1cd; }
.mock-body { display:grid; grid-template-columns: .75fr 1.25fr; gap:12px; padding:13px; }
.mock-court { height:180px; background:linear-gradient(90deg,#f3a354 49.5%,#fff 49.5%,#fff 50.5%,#f3a354 50.5%); border:4px solid white; outline:1px solid #d7e1eb; position:relative; display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(2,1fr); gap:1px; }
.mock-court span { display:grid; place-items:center; font-size:.7rem; font-weight:800; color:#6b3814; border:1px solid rgba(255,255,255,.6); }
.mock-list { display:grid; gap:8px; align-content:start; }
.mock-list span { height:28px; border-radius:8px; background:#e6edf4; }
.mock-list span:nth-child(1) { background:#badcff; }
.mock-list span:nth-child(2) { width:82%; }
.mock-list span:nth-child(3) { width:92%; background:#d7ecdf; }
.mock-list span:nth-child(4) { width:68%; }
.mock-label { position:absolute; bottom:10px; right:13px; z-index:3; color:rgba(255,255,255,.82); font-size:.72rem; font-weight:700; }

.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 26px; border-radius: var(--radius-md); background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09); }
.step-num { color: #85c9ff; font-weight: 900; font-size: .85rem; letter-spacing: .08em; }
.step p { color: #aebfd3; margin-bottom: 0; }

.docs-card { display:grid; grid-template-columns: 1fr auto; align-items:center; gap: 28px; border:1px solid var(--line); border-radius: var(--radius-lg); background:white; padding:34px; }
.status-badge { display:inline-flex; align-items:center; gap:7px; font-size:.82rem; font-weight:800; border-radius:999px; padding:7px 10px; background:#fff4e8; color:#a75a17; }
.status-badge::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--orange-500); }

.footer { background:#06101e; color:#b9c9da; padding:54px 0 26px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap:36px; }
.footer .brand { margin-bottom:14px; }
.footer h4 { color:white; margin:0 0 12px; }
.footer a { color:#b9c9da; text-decoration:none; display:block; margin:7px 0; }
.footer a:hover { color:white; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; border-top:1px solid rgba(255,255,255,.09); margin-top:36px; padding-top:22px; font-size:.85rem; }

.legal-hero { background: linear-gradient(145deg,var(--navy-950),var(--navy-850)); color:white; padding:70px 0 58px; }
.legal-main { padding:60px 0 90px; }
.legal-content { max-width: 820px; }
.legal-content h2 { font-size:1.55rem; margin-top:34px; }
.legal-content h3 { margin-top:25px; }
.legal-content p, .legal-content li { color:#475569; }
.legal-box { border:1px solid var(--line); background:var(--surface); border-radius:16px; padding:22px; }
.email-link { color:#1f6fd7; font-weight:700; }
.source-marker { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns:1fr; min-height:auto; padding-block:70px; }
  .hero-visual { min-height:360px; }
  .feature-grid { grid-template-columns:1fr 1fr; }
  .product-grid { grid-template-columns:1fr; }
  .workflow { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px) {
  .container { width:min(calc(100% - 28px), var(--max)); }
  .nav { display:none; position:absolute; inset:74px 0 auto 0; background:#09182a; padding:18px 20px 24px; flex-direction:column; align-items:stretch; border-bottom:1px solid rgba(255,255,255,.08); }
  .nav.is-open { display:flex; }
  .nav a { padding:8px 4px; }
  .menu-toggle { display:block; }
  .hero-inner { padding-block:56px 70px; gap:30px; }
  h1 { font-size:clamp(2.6rem, 14vw, 4.1rem); }
  .hero-copy { font-size:1.03rem; }
  .cta-row .button { width:100%; }
  .hero-visual { min-height:310px; }
  .logo-orbit { width:265px; height:265px; }
  .hero-logo { width:165px; height:165px; border-radius:34px; }
  .float-card { min-width:155px; padding:12px; }
  .float-card.one { top:8px; right:0; }
  .float-card.two { bottom:18px; left:0; }
  .section { padding:68px 0; }
  .feature-grid { grid-template-columns:1fr; }
  .product-card-copy { padding:26px; }
  .docs-card { grid-template-columns:1fr; }
  .docs-card .button { width:100%; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; }
}

/* GitHub/versions links inside the existing hero cards */
.float-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
}
.float-links a {
  color: #dcecff;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}
.float-links a:hover,
.float-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* Three distinct hero destination cards */
.hero-link-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.hero-link-card:hover,
.hero-link-card:focus-visible {
  text-decoration: none;
  border-color: rgba(128,212,255,.48);
  transform: translateY(-2px);
}
.hero-link-card:hover strong,
.hero-link-card:focus-visible strong {
  color: #fff;
}
.card-destination {
  display: block;
  margin-top: 7px;
  color: #c9ddf3;
  font-size: .80rem;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Keep all three destination cards outside the central logo. */
.hero-visual { min-height: 480px; }
.float-card {
  min-width: 190px;
  max-width: 205px;
  transition: transform .18s ease, border-color .18s ease;
}
.float-card.one {
  top: 28px;
  right: 0;
  left: auto;
  bottom: auto;
}
.float-card.two {
  left: 0;
  bottom: 28px;
  right: auto;
  top: auto;
}
.float-card.three {
  right: 0;
  bottom: 28px;
  left: auto;
  top: auto;
}

@media (max-width: 900px) {
  .hero-visual {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 8px;
  }
  .logo-orbit,
  .hero-logo {
    grid-area: 1 / 1;
    align-self: center;
    justify-self: center;
  }
  .hero-logo { position: relative; z-index: 1; }
  .float-card.one,
  .float-card.two,
  .float-card.three {
    position: relative;
    inset: auto;
    width: min(100%, 360px);
    max-width: 360px;
    margin: 0 auto;
    z-index: 2;
  }
  .float-card.one { margin-top: 300px; }
}

@media (max-width: 560px) {
  .float-card.one { margin-top: 270px; }
}

/* Homepage v4 · restore the intended orbital desktop card layout.
   Desktop: Desktop card top-right, Live version bottom-left, Live-Scouting bottom-right.
   Mobile/tablet stacking below 900px remains unchanged. */
@media (min-width: 901px) {
  .hero-visual {
    position: relative;
    min-height: 480px;
    display: grid;
    place-items: center;
  }

  .logo-orbit,
  .hero-logo {
    grid-area: 1 / 1;
    align-self: center;
    justify-self: center;
  }

  .hero-logo {
    position: relative;
    z-index: 1;
  }

  .float-card.one,
  .float-card.two,
  .float-card.three {
    position: absolute;
    width: auto;
    min-width: 190px;
    max-width: 205px;
    z-index: 2;
  }

  .float-card.one {
    top: 28px;
    right: 0;
    left: auto;
    bottom: auto;
  }

  .float-card.two {
    left: 0;
    bottom: 28px;
    right: auto;
    top: auto;
  }

  .float-card.three {
    right: 0;
    bottom: 28px;
    left: auto;
    top: auto;
  }
}


/* Homepage v3 · automatic stable release marker */
.float-card.two { overflow: visible; }
.release-new {
  position: absolute;
  top: -12px;
  right: -10px;
  z-index: 5;
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 27px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb02e 0%, #ff6b35 48%, #ff3f7f 100%);
  color: #fff;
  box-shadow: 0 7px 22px rgba(255, 96, 61, .36), 0 0 0 4px rgba(255,255,255,.055);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1;
  text-indent: .14em;
  transform: rotate(4deg);
  text-shadow: 0 1px 2px rgba(71, 18, 0, .35);
  animation: release-new-pulse 2.8s ease-in-out infinite;
}
.release-new[hidden] { display: none !important; }
.release-new::after {
  content: "";
  position: absolute;
  inset: 2px 8px auto;
  height: 1px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}
@keyframes release-new-pulse {
  0%, 100% { transform: rotate(4deg) scale(1); box-shadow: 0 7px 22px rgba(255, 96, 61, .30), 0 0 0 4px rgba(255,255,255,.05); }
  50% { transform: rotate(4deg) scale(1.045); box-shadow: 0 9px 28px rgba(255, 96, 61, .46), 0 0 0 5px rgba(255,255,255,.07); }
}
@media (prefers-reduced-motion: reduce) {
  .release-new { animation: none; }
}


/* Homepage v5 · language switch */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}
.language-switch a,
.language-switch .language-active {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 30px;
  margin: 0;
  padding: 0 8px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}
.language-switch a { color: #c6d7ea; }
.language-switch a:hover,
.language-switch a:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.language-switch .language-active { background: #eaf4ff; color: #0a3156; }
@media (max-width: 720px) {
  .language-switch { align-self: flex-start; margin: 4px 0 6px; }
}
