@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --bg:        #FAFBFD;
  --surface:   #FFFFFF;
  --ink:       #16213E;
  --ink-soft:  #5B6B8C;
  --blue:      #2540A6;
  --blue-deep: #1B2F80;
  --blue-light:#6E86D6;
  --blue-pale: #EEF1FC;
  --line:      #DBE1EF;
  --red:       #D6483A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
em { font-style: normal; color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- NAV ---------- */
nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 5vw, 64px); background: rgba(250,251,253,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand .infi { color: var(--ink); }
.brand .sudoku { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--ink-soft); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle { display: flex; background: var(--blue-pale); border-radius: 999px; padding: 3px; }
.lang-btn { font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px; color: var(--ink-soft); cursor: pointer; background: none; border: none; transition: background 0.15s, color 0.15s; }
.lang-btn.active { background: var(--blue); color: #fff; }

.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; border: none; padding: 11px 20px; border-radius: 999px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.cta-btn:hover { background: var(--blue-deep); transform: translateY(-1px); }
.cta-btn svg { width: 15px; height: 15px; }

/* ---------- HERO ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.8fr; align-items: center; gap: 40px; padding: clamp(48px,8vw,96px) clamp(20px,5vw,64px) clamp(64px,8vw,96px); max-width: 1280px; margin: 0 auto; position: relative; }

.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; color: var(--blue); text-transform: uppercase; margin-bottom: 22px; }

h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 22px; color: var(--ink); }

.hero p.lede { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 440px; margin: 0 0 34px; }

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.store-caption { font-size: 13px; color: var(--ink-soft); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }

/* ---------- SIGNATURE: infinite grid conveyor ---------- */
.signature { position: relative; height: 520px; display: flex; align-items: center; justify-content: center; }
.leaf-mark { position: absolute; width: 340px; height: 460px; opacity: 0.55; z-index: 0; }
.conveyor-mask { position: relative; width: 200px; height: 460px; overflow: hidden; z-index: 1; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%); }
.conveyor { display: flex; flex-direction: column; gap: 26px; animation: scrollUp 16s linear infinite; }
@keyframes scrollUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.tile { width: 200px; height: 200px; background: var(--surface); border: 1.5px solid var(--blue); border-radius: 10px; display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); box-shadow: 0 10px 26px -14px rgba(37,64,166,0.28); flex-shrink: 0; }
.tile div { display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 19px; color: var(--blue); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tile div:nth-child(3n) { border-right: none; }
.tile div:nth-child(n+7) { border-bottom: none; }
.tile div:nth-child(3n+1) { border-left: 2px solid var(--blue-light); }
.tile div:nth-child(-n+3) { border-top: 2px solid var(--blue-light); }
.tile div:nth-child(3n+1):first-child { border-left: none; }
.tile .empty { color: transparent; }
.tile .filled-late { color: var(--red); }

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

/* ---------- FEATURE STRIP ---------- */
.features { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px,5vw,64px) 100px; display: grid; grid-template-columns: repeat(3,1fr); }
.feature { padding: 28px 30px; border-left: 1px solid var(--line); }
.feature:first-child { border-left: none; padding-left: 0; }
.feature .num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--blue-light); letter-spacing: 0.1em; margin-bottom: 10px; }
.feature h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.feature p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* ---------- SECTIONS (contact / legal) ---------- */
.divider { width: 1px; height: 60px; background: var(--line); margin: 0 auto; }
.section { padding: 90px clamp(20px,5vw,64px); max-width: 1000px; margin: 0 auto; }
.section-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--blue); text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-label::after { content: ''; flex: 1; max-width: 40px; height: 1px; background: var(--line); }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 40px; line-height: 1.15; }
.section-title--compact { margin-bottom: 22px; }
.section-copy { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 30px; max-width: 420px; line-height: 1.7; }

.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 680px; }
.legal-title { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.legal-text { font-size: 12.5px; color: var(--ink-soft); line-height: 1.8; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 32px clamp(20px,5vw,64px); display: flex; align-items: center; justify-content: space-between; }
.footer-left { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.footer-left .signature-mark { font-style: italic; color: var(--ink); }
.footer-dot { color: var(--line); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 12.5px; color: var(--ink-soft); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .signature { height: 300px; margin-top: 12px; }
  .conveyor-mask { height: 300px; }
  .tile { width: 150px; height: 150px; }
  .tile div { font-size: 14px; }
  .leaf-mark { width: 240px; height: 320px; }
  .features { grid-template-columns: 1fr; gap: 8px; }
  .feature { border-left: none; border-top: 1px solid var(--line); padding: 24px 0; }
  .feature:first-child { border-top: none; }
}

@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .legal-grid { grid-template-columns: 1fr; gap: 24px; }
  footer { flex-direction: column; gap: 18px; padding: 24px; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  nav { padding: 14px 20px; }
  .brand span { font-size: 17px; }
  .cta-btn { padding: 10px 18px; font-size: 13px; }
  .hero { padding: 90px 20px 48px; }
  .section { padding: 56px 20px; }
  .legal-grid { gap: 20px; }
  footer { padding: 20px; gap: 14px; }
  .footer-links { gap: 16px; flex-wrap: wrap; }
}
