@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Lexend:wght@500;600;700;800&display=swap");

:root {
  --ink: #0f1222;
  --ink-soft: #565c72;
  --ink-faint: #8991a8;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-tint: #f4f2fc;
  --accent: #6d5bff;
  --accent-2: #22d3ee;
  --accent-dark: #4f3dcc;
  --accent-soft: #eeecff;
  --navy: #0a0c1a;
  --navy-soft: #14172c;
  --navy-line: rgba(255, 255, 255, 0.1);
  --border: #e6e7ef;
  --border-soft: #f0f0f6;
  --good: #16a34a;
  --bad: #dc2626;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 18, 34, 0.05);
  --shadow: 0 1px 2px rgba(15, 18, 34, 0.03), 0 6px 16px rgba(15, 18, 34, 0.04), 0 20px 44px rgba(15, 18, 34, 0.06);
  --shadow-lg: 0 2px 6px rgba(15, 18, 34, 0.04), 0 16px 32px rgba(15, 18, 34, 0.08), 0 40px 80px rgba(15, 18, 34, 0.12);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 112px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Lexend", var(--font-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 20px; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Below this width the full nav (5 links + CTA) no longer fits in one row —
   collapse it into a toggleable panel instead of letting it wrap or spill
   past the viewport (which drags the whole page into horizontal scroll). */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2) 20px var(--space-5);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    /* Closed by default: collapsed height, not display:none, so the
       open/close transition can animate instead of snapping. */
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.25s ease, visibility 0.25s;
  }

  .nav-links.open {
    max-height: calc(100vh - 72px);
    padding: var(--space-3) 20px var(--space-5);
    overflow-y: auto;
    visibility: visible;
  }

  .nav-links a:not(.btn) {
    padding: 13px 4px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 1rem;
  }

  .nav-links .btn {
    margin-top: var(--space-4);
    width: 100%;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b7bff);
  color: white;
  box-shadow: 0 8px 24px rgba(109, 91, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(109, 91, 255, 0.42); }

.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--ink-faint); transform: translateY(-1px); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: var(--navy-line);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.14); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Hero ---------- */

.hero-band {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, #1b1f45 0%, var(--navy) 55%), var(--navy);
  color: white;
  overflow: hidden;
  padding: var(--space-9) 0 var(--space-8);
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 82% 10%, rgba(34, 211, 238, 0.22), transparent 60%),
    radial-gradient(500px 380px at 8% 60%, rgba(109, 91, 255, 0.28), transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 20%, transparent 75%);
}

.hero {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--navy-line);
  font-size: 0.82rem;
  font-weight: 600;
  color: #c9cdf0;
  margin-bottom: var(--space-5);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #cfd3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin: var(--space-5) auto 0;
  max-width: 600px;
  font-size: 1.12rem;
  color: #b7bcdd;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-7);
  flex-wrap: wrap;
}

/* Live translation ticker strip under the hero copy */
.hero-ticker {
  position: relative;
  margin-top: var(--space-8);
  border: 1px solid var(--navy-line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  overflow: hidden;
  text-align: left;
}

.ticker-track {
  display: flex;
  gap: var(--space-6);
  white-space: nowrap;
  animation: ticker-scroll 22s linear infinite;
  width: max-content;
}

.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: white;
}

.ticker-item .lang-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Section scaffolding ---------- */

section.container, section.container-narrow { padding: var(--space-9) 28px; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--space-7);
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: -0.01em;
}

.section-head p {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.bg-soft { background: var(--bg-soft); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Thesis grid ---------- */

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) {
  .thesis-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .thesis-grid { grid-template-columns: 1fr; }
}

.thesis-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-sm);
}

.thesis-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: var(--space-4);
}
.thesis-icon svg { width: 20px; height: 20px; }

.thesis-card h3 {
  font-size: 1.02rem;
  margin-bottom: var(--space-2);
}

.thesis-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- Product showcase ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 340px;
}

.product-card.is-live {
  background: linear-gradient(160deg, var(--navy) 0%, #1a1d3d 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.product-card.is-soon {
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.status-badge.live {
  background: rgba(34, 211, 238, 0.15);
  color: #67e8f9;
}
.status-badge.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
}

.status-badge.soon {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.product-card .product-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.product-card.is-live .product-mark { background: rgba(255, 255, 255, 0.1); color: white; }
.product-card.is-soon .product-mark { background: var(--accent-soft); color: var(--accent-dark); }

.product-card h3 { font-size: 1.25rem; }

.product-card .product-desc {
  font-size: 0.94rem;
  flex-grow: 1;
}
.product-card.is-live .product-desc { color: #c3c7e6; }
.product-card.is-soon .product-desc { color: var(--ink-soft); }

.product-card .product-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}
.product-card.is-live .product-cta { color: white; }
.product-card.is-soon .product-cta { color: var(--accent-dark); }
.product-card .product-cta svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.product-card .product-cta:hover svg { transform: translateX(3px); }

/* ---------- Technology band ---------- */

.tech-band {
  background: var(--navy);
  color: white;
}

.tech-band .section-kicker { color: var(--accent-2); }
.tech-band .section-head h2 { color: white; }
.tech-band .section-head p { color: #a9adcf; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tech-grid { grid-template-columns: 1fr; }
}

.tech-item {
  border: 1px solid var(--navy-line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.tech-item .tech-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--accent-2);
}
.tech-item .tech-icon svg { width: 18px; height: 18px; }

.tech-item h3 { font-size: 0.98rem; margin-bottom: var(--space-2); color: white; }
.tech-item p { font-size: 0.86rem; color: #a9adcf; }

/* ---------- Stat row ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-7) 0;
}

@media (max-width: 700px) {
  .stat-row { grid-template-columns: 1fr; gap: var(--space-6); }
}

.stat {
  text-align: center;
}

.stat .stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .stat-label {
  margin-top: var(--space-2);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Ask / lead-capture ---------- */

.ask-band {
  background: linear-gradient(180deg, var(--bg-tint), var(--bg));
}

.ask-card {
  max-width: 520px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-7) var(--space-6);
}

.field { margin-bottom: var(--space-4); text-align: left; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--bg-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}
.field textarea { min-height: 88px; resize: vertical; }

.banner {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
}
.banner-success { background: #ecfdf3; color: var(--good); border: 1px solid #b8f0cc; }
.banner-error { background: #fef2f2; color: var(--bad); border: 1px solid #fecaca; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #a9adcf;
  padding: var(--space-8) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--navy-line);
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

.footer-grid .brand { color: white; margin-bottom: var(--space-3); }
.footer-tagline { font-size: 0.9rem; max-width: 320px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--space-4);
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); font-size: 0.9rem; }
.footer-col a:hover { color: white; }

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}
.footer-status.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22d3ee; }
.footer-status.soon { color: var(--ink-faint); }

.footer-bottom {
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.82rem;
}
