/* ============================================================
   Coding with Tariq — Option B
   Deep forest green field · bone type · brass accent

   THEME
   -----
   Every colour below routes through the neutral tokens in :root.
   To flip the whole site light, change ONLY that block — nothing
   else in this file (or in the HTML) references a raw colour.
   A light set is kept commented underneath for exactly that.
   ============================================================ */

:root {
  /* ---- THEME: forest green ---- */
  --bg:        #0B2E1F;   /* page field            */
  --bg-2:      #0F3826;   /* section tint          */
  --bg-3:      #14432E;   /* chips, cards, avatars */

  --fg:        #F4F1E6;   /* body text             */
  --fg-dim:    rgba(244, 241, 230, 0.66);
  --fg-faint:  rgba(244, 241, 230, 0.13);

  --accent:    #E0A93B;   /* brass — reads clearly on the green field */
  --on-accent: #0B2E1F;   /* text sitting on --accent */
  --moss:      #6FBF8B;   /* "live" indicator      */
  --warn:      #E0A93B;   /* "building" indicator  */

  /* Cycled by JS as the hero types each trade — all legible on --bg */
  --trade:     #2DD4BF;

  /* ---- THEME: white + green (swap in to go light) ----
  --bg:#FFFFFF; --bg-2:#F4F8F5; --bg-3:#E7F0EA;
  --fg:#0F231A; --fg-dim:rgba(15,35,26,.66); --fg-faint:rgba(15,35,26,.12);
  --accent:#1E5E43; --on-accent:#FFFFFF; --moss:#3F8C60; --warn:#8A5E00;
  --trade:#0B6A5B;
  ------------------------------------------------------ */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --s-1: 8px;  --s-2: 16px; --s-3: 24px;
  --s-4: 32px; --s-5: 48px; --s-6: 64px;

  /* ---- TYPEFACES ----
     Swap --font-display to restyle every heading on the site at once.
     Tried and rejected: Syne (letterforms too quirky).
     Alternates that need no other change — just update the <link> in the
     five page <head>s to load the family:
       'Bricolage Grotesque'  — more character, still readable
       'Outfit'               — geometric, softer
       'Space Grotesk'        — technical, slightly quirky
  */
  --font-display: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-display  { font-family: var(--font-display); }
.font-mono-url { font-family: var(--font-mono); }

::selection { background: var(--accent); color: var(--on-accent); }

/* One soft glow at the top of the field */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(110% 70% at 50% 0%, rgba(111,191,139,0.07), transparent 62%);
}

/* ==================== SCROLL PROGRESS ==================== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 160;
}

/* ==================== NAV ==================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--s-2) clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--fg-faint); }
.nav-links { display: flex; align-items: center; gap: var(--s-3); }
.nav a { color: var(--fg); text-decoration: none; }
.nav-link { font-size: 0.88rem; position: relative; padding: 4px 0; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease);
}
.nav-link:hover::after, .nav-link.current::after { transform: scaleX(1); transform-origin: left; }
.nav-link.current { color: var(--accent); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid var(--fg-faint);
  border-radius: 999px;
  padding: .6rem 1.2rem;
  font-size: .85rem;
  min-height: 44px;
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-pill:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.burger {
  display: none;
  background: none; border: 0;
  color: var(--fg);
  padding: 10px; margin: -10px;
  min-width: 44px; min-height: 44px;
  cursor: pointer;
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .burger { display: flex; align-items: center; justify-content: center; }
}

#mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
}
#mobile-sheet.open { display: flex; }
#mobile-sheet a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--fg);
  text-decoration: none;
  padding: 8px 16px;
}
#mobile-sheet a:hover { color: var(--accent); }
.sheet-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none; border: 0; color: var(--fg);
  font-size: 2rem; line-height: 1; cursor: pointer;
  min-width: 44px; min-height: 44px;
}

/* ==================== TYPE ==================== */
.statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--fg);
}
.statement .accent { color: var(--accent); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.lede {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 52ch;
  margin: 0;
}

.js [data-fade] { opacity: 0; }
.split-wordwrap { display: inline-block; white-space: nowrap; }
.split-word { display: inline-block; will-change: transform, opacity; }
.js .split-word { opacity: 0; }

/* ==================== LAYOUT ==================== */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; z-index: 2; }
.section-tight { padding-top: 0; }

/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: clamp(7rem, 15vw, 10rem) 0 clamp(3rem, 7vw, 5rem);
  z-index: 2;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}
/* The hero heading sits in a ~55% column, so vw-based sizing overshoots there */
.hero .statement { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
@media (max-width: 940px) { .hero .statement { font-size: clamp(1.9rem, 6.2vw, 3.4rem); } }

/* Browser mock */
.mock {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--fg-faint);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.75);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.24);
  border-bottom: 1px solid var(--fg-faint);
}
.mock-bar .dots { display: flex; gap: 5px; }
.mock-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-faint); }
.mock-bar .addr {
  flex: 1;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--fg-dim);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  padding: 4px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-body { padding: 18px; }
.mock-body .l { height: 9px; border-radius: 4px; background: rgba(244,241,230,0.7); margin-bottom: 8px; }
.mock-body .l.s { width: 58%; background: rgba(244,241,230,0.26); margin-bottom: 16px; }
.mock-body .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-body .tiles span {
  height: 46px; border-radius: 6px;
  background: var(--trade);
  transition: background .5s var(--ease);
}
.mock-body .tiles span:nth-child(2) { opacity: .6; }
.mock-body .tiles span:nth-child(3) { opacity: .3; }

/* The kinetic URL — the signature */
.url-slab {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--fg-faint);
  border-bottom: 1px solid var(--fg-faint);
  padding: clamp(.85rem, 1.8vw, 1.25rem) 0;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2.35vw, 1.6rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.url-slab .scheme { color: var(--fg-dim); }
.url-slab .sub    { color: var(--trade); font-weight: 500; transition: color .4s var(--ease); }
.url-slab .root   { color: var(--fg); }
.url-caret {
  display: inline-block;
  width: .06em; height: .95em;
  background: var(--accent);
  margin-left: .04em;
  vertical-align: -0.1em;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.trade-caption {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: .8rem 0 0;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.trade-caption .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--trade);
  flex-shrink: 0;
  transition: background .4s var(--ease);
}

/* ==================== STATS ==================== */
.stats {
  border-top: 1px solid var(--fg-faint);
  border-bottom: 1px solid var(--fg-faint);
  background: var(--bg-2);
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--fg-faint);
}
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--bg-2);
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1rem, 2.5vw, 1.75rem);
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
  display: block;
}
.stat .num .suffix { color: var(--accent); }
.stat .lbl {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: .7rem 0 0;
  display: block;
}

/* ==================== CLIENT NAMES ==================== */
.clients {
  list-style: none;
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3.5vw, 2.75rem);
}
.clients a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: -0.01em;
  color: var(--fg);
  opacity: .62;
  text-decoration: none;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.clients a:hover { opacity: 1; color: var(--accent); }

/* ==================== STEPS ==================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.step { border-top: 1px solid var(--fg-faint); padding-top: var(--s-2); }
.step .n {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: .1em;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  margin: .55rem 0 .45rem;
  letter-spacing: -0.01em;
}
.step p { color: var(--fg-dim); font-size: .92rem; line-height: 1.6; margin: 0; }

/* ==================== DEMO / PROJECT ROWS ==================== */
.demo-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.3rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--fg-faint);
  text-decoration: none;
  color: var(--fg);
  transition: background .2s var(--ease), padding-left .25s var(--ease);
}
.demo-row:first-of-type { border-top: 1px solid var(--fg-faint); }
a.demo-row:hover { background: rgba(255, 255, 255, 0.04); padding-left: var(--s-2); }
.demo-row .idx { font-family: var(--font-mono); font-size: .72rem; color: var(--fg-dim); }
.demo-row .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  display: block;
  transition: color .2s var(--ease);
}
a.demo-row:hover .title { color: var(--accent); }
.demo-row .url {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--fg-dim);
  margin-top: .35rem;
  display: block;
}
.demo-row .status {
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
}
.demo-row .status .d { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status.live    { color: var(--moss); }
.status.live .d { background: var(--moss); }
.status.prod    { color: var(--warn); }
.status.prod .d { background: var(--warn); }
.status.plan    { color: var(--fg-dim); }
.status.plan .d { background: var(--fg-faint); }

/* ==================== TESTIMONIALS ==================== */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.quote {
  border: 1px solid var(--fg-faint);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.quote:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: rgba(255,255,255,0.04); }
.quote .stars { display: flex; gap: 3px; margin-bottom: var(--s-2); }
.quote .stars svg { width: 15px; height: 15px; fill: var(--accent); }
.quote blockquote {
  margin: 0 0 var(--s-3);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg);
  flex: 1;
}
.quote .who { display: flex; align-items: center; gap: .8rem; }
.quote .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--fg-faint);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent);
  flex-shrink: 0;
}
.quote .who p { margin: 0; font-size: .88rem; font-weight: 600; }
.quote .who span { display: block; font-size: .76rem; color: var(--fg-dim); font-weight: 400; }

/* ==================== MARQUEE ==================== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--fg-faint);
  border-bottom: 1px solid var(--fg-faint);
  padding: var(--s-2) 0;
  position: relative;
  z-index: 2;
  background: var(--bg-2);
}
.marquee-track {
  display: inline-block;
  animation: slide 60s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.95rem, 1.6vw, 1.25rem);
  letter-spacing: .02em;
  color: rgba(244, 241, 230, 0.4);   /* ~4:1 — clears AA for large bold text */
}
.marquee-track .sep { color: var(--moss); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==================== CARDS / CTA / FORMS ==================== */
.card {
  border: 1px solid var(--fg-faint);
  border-radius: 14px;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: rgba(255,255,255,0.04); }

.cta-band {
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, transparent), rgba(255,255,255,0.015));
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.field {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--fg-faint);
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  padding: .8rem 0;
  outline: none;
  border-radius: 0;
  transition: border-color .2s var(--ease);
}
.field::placeholder { color: rgba(244, 241, 230, 0.3); }
.field:focus { border-color: var(--accent); }
label.lbl {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: block;
  margin-bottom: .3rem;
}

/* ==================== FOOTER ==================== */
.footer { border-top: 1px solid var(--fg-faint); padding: clamp(2rem,5vw,3rem) 0 2rem; position: relative; z-index: 2; }
.footer a { color: var(--fg); text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* ==================== A11Y ==================== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-fade], .js .split-word { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
  .url-caret { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
