/* ============================================================
   VENSARA — shared design system
   Ink canvas · warm off-white · electric chartreuse signal
   ============================================================ */

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

:root {
  /* surfaces */
  --ink:      #0B0C0E;
  --ink-2:    #101216;
  --panel:    #14171C;
  --panel-2:  #181B21;
  --line:     rgba(255,255,255,0.09);
  --line-2:   rgba(255,255,255,0.05);

  /* text */
  --text:     #F2F2EE;
  --text-2:   #B8BCC4;
  --muted:    #7C828D;
  --faint:    #565B64;

  /* signal */
  --acc:      #CFF54A;
  --acc-deep: #AEE021;
  --acc-dim:  rgba(207,245,74,0.12);
  --acc-line: rgba(207,245,74,0.30);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* fine grain overlay for the whole page */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--acc); color: #0B0C0E; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* ---- typographic helpers ---- */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px; background: var(--acc); display: inline-block;
}
.eyebrow.center { justify-content: center; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }

.display {
  font-size: clamp(44px, 7.2vw, 104px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.h-section {
  font-size: clamp(32px, 4.4vw, 58px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--text-2); line-height: 1.6; max-width: 60ch; }
.acc { color: var(--acc); }
.ink-stroke { color: transparent; -webkit-text-stroke: 1.3px var(--text-2); }

/* ============================================================ NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,12,14,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: var(--acc); position: relative; overflow: hidden;
}
.brand .mark::after {
  content: ''; position: absolute; inset: 0;
  background: #0B0C0E;
  clip-path: polygon(50% 14%, 62% 42%, 90% 42%, 50% 86%, 38% 58%, 10% 58%);
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
  padding: 8px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--acc); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.btn-nav {
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
  background: var(--acc); padding: 10px 20px; border-radius: 9px;
  transition: transform .15s var(--ease), box-shadow .2s;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(207,245,74,0.28); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--text); }
.menu-toggle svg { width: 26px; height: 26px; }

/* mobile drawer */
.mobile-menu {
  display: none; position: fixed; inset: 72px 0 auto 0; z-index: 99;
  background: var(--ink-2); border-bottom: 1px solid var(--line);
  padding: 16px 32px 28px; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 8px; font-family: var(--font-display); font-size: 22px; font-weight: 500; border-bottom: 1px solid var(--line-2); }
.mobile-menu a.active { color: var(--acc); }
.mobile-menu .btn-nav { margin-top: 16px; text-align: center; font-size: 16px; padding: 14px; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 15px 26px; border-radius: 11px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .25s;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn-primary { background: var(--acc); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(207,245,74,0.30); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text-2); background: rgba(255,255,255,0.03); }

/* ============================================================ SECTIONS */
section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .lede { margin-top: 22px; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

.rule { height: 1px; background: var(--line); width: 100%; }

/* ============================================================ FOOTER */
.footer { border-top: 1px solid var(--line); padding: 80px 0 40px; background: var(--ink-2); position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 64px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-2); font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--acc); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.footer-bottom p { color: var(--faint); font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ============================================================ REVEAL ANIM */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); 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; }
  .reveal[data-d="5"] { transition-delay: .40s; }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 900px) {
  .nav-links, .nav-right .btn-nav { display: none; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
