
:root {
  --ink: #0d1117;
  --paper: #f6f1e9;
  --sage: #3d6b4f;
  --sage-light: #c8ddd0;
  --clay: #c4602a;
  --clay-light: #f2ddd2;
  --gold: #c9a84c;
  --mist: #eae6de;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 56px;
  background: rgba(246,241,233,0.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(13,17,23,0.07);
  transition: padding 0.3s;
}
nav.scrolled { padding: 13px 56px; }
.logo { font-family: var(--serif); font-size: 26px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--sage); font-style: italic; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 14px; opacity: 0.6; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px; border-radius: 100px; font-family: var(--sans); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; transition: all 0.2s; border: none; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(13,17,23,0.2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(13,17,23,0.04); }
.btn-green { background: var(--sage); color: #fff; }
.btn-green:hover { background: #2d5239; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(61,107,79,0.3); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: #a34e22; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(196,96,42,0.3); }
.btn-lg { padding: 15px 34px; font-size: 15px; }

/* HERO */
.hero {
  min-height: 100vh; padding: 140px 56px 100px;
  display: grid; grid-template-columns: 1fr 400px; gap: 60px; align-items: center;
  position: relative; overflow: hidden;
}
.hero-blob {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 85% 45%, rgba(200,221,208,0.3) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 10% 75%, rgba(242,221,210,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 50% 10%, rgba(245,236,212,0.3) 0%, transparent 55%);
}
.hero-left { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage-light); color: var(--sage);
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 32px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.5)} }
h1 { font-family: var(--serif); font-size: clamp(52px, 7vw, 90px); line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 28px; }
h1 em { font-style: italic; color: var(--sage); }
h1 .scratch { position: relative; display: inline-block; }
h1 .scratch::after { content: ''; position: absolute; bottom: 6px; left: 0; right: 0; height: 3px; background: var(--clay); border-radius: 2px; transform: rotate(-0.5deg); }
.hero-sub { font-size: 17px; color: rgba(13,17,23,0.58); font-weight: 300; max-width: 460px; line-height: 1.65; margin-bottom: 44px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; gap: 48px; padding-top: 40px; border-top: 1px solid rgba(13,17,23,0.1); }
.stat-n { font-family: var(--serif); font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.stat-l { font-size: 13px; color: rgba(13,17,23,0.48); margin-top: 4px; }

/* FLOATING CARDS */
.hero-right { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.fcard { background: #fff; border-radius: 18px; padding: 22px 24px; box-shadow: 0 8px 40px rgba(13,17,23,0.1), 0 1px 4px rgba(13,17,23,0.06); }
.fcard:nth-child(2) { margin-left: 40px; }
.fcard-tag { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; display: inline-block; margin-bottom: 10px; }
.tag-urgent { background: #fee2e2; color: #b91c1c; }
.tag-open   { background: var(--sage-light); color: var(--sage); }
.tag-ai     { background: #ede9fe; color: #6d28d9; }
.fcard-title { font-family: var(--serif); font-size: 16px; margin-bottom: 6px; }
.fcard-meta { font-size: 12px; color: rgba(13,17,23,0.45); display: flex; gap: 14px; }
.fcard-bar { margin-top: 14px; background: var(--mist); border-radius: 100px; height: 5px; }
.fcard-fill { height: 100%; border-radius: 100px; }
.fcard-fill.green { background: var(--sage); }
.fcard-fill.purple { background: #6d28d9; }
.fcard-fill.clay { background: var(--clay); }
.fcard-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 11px; color: rgba(13,17,23,0.45); }
.avs { display: flex; }
.av { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 500; color: #fff; }
.av:first-child { margin-left: 0; }
.av1{background:#3d6b4f}.av2{background:#c4602a}.av3{background:#c9a84c}.av4{background:#6d28d9}
@keyframes fa{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes fb{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.fcard{animation:fa 5s ease-in-out infinite}
.fcard:nth-child(2){animation:fb 5s ease-in-out infinite;animation-delay:.8s}
.fcard:nth-child(3){animation:fa 5s ease-in-out infinite;animation-delay:1.6s}

/* FEATURES */
.features { padding: 110px 56px; }
.sec-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.sec-title { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.02em; line-height: 1.1; max-width: 620px; }
.sec-sub { font-size: 16px; color: rgba(13,17,23,0.52); font-weight: 300; max-width: 480px; margin-top: 14px; line-height: 1.65; }
.feat-tabs { display: flex; gap: 10px; margin: 52px 0 36px; flex-wrap: wrap; }
.ftab { padding: 9px 22px; border-radius: 100px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1.5px solid rgba(13,17,23,0.14); background: transparent; font-family: var(--sans); transition: all 0.2s; color: rgba(13,17,23,0.6); }
.ftab.active-green { background: var(--sage); color: #fff; border-color: var(--sage); }
.ftab.active-clay  { background: var(--clay); color: #fff; border-color: var(--clay); }
.ftab.active-dark  { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ftab:hover:not(.active-green):not(.active-clay):not(.active-dark) { border-color: var(--ink); color: var(--ink); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(13,17,23,0.08); border-radius: 22px; overflow: hidden; }
.feat-card { background: var(--paper); padding: 36px 30px; transition: background 0.22s; }
.feat-card:hover { background: #fff; }
.feat-card.hidden { display: none; }
.feat-ico { width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.ico-green  { background: var(--sage-light); }
.ico-clay   { background: var(--clay-light); }
.ico-purple { background: #ede9fe; }
.ico-gold   { background: #f5ecd4; }
.feat-name { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.feat-desc { font-size: 14px; color: rgba(13,17,23,0.52); line-height: 1.6; font-weight: 300; }
.feat-pill { display: inline-block; margin-top: 14px; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; }
.pill-v { background: var(--sage-light); color: var(--sage); }
.pill-n { background: var(--clay-light); color: var(--clay); }
.pill-b { background: #ede9fe; color: #6d28d9; }

/* HOW IT WORKS */
.how { background: var(--ink); color: var(--paper); padding: 110px 56px; position: relative; overflow: hidden; }
.how::before { content:''; position:absolute; top:-200px; right:-200px; width:600px; height:600px; border-radius:50%; background:radial-gradient(circle,rgba(61,107,79,0.2) 0%,transparent 70%); }
.how::after  { content:''; position:absolute; bottom:-150px; left:-150px; width:400px; height:400px; border-radius:50%; background:radial-gradient(circle,rgba(196,96,42,0.15) 0%,transparent 70%); }
.how-inner { position: relative; z-index: 1; }
.how .sec-eyebrow { color: var(--sage-light); }
.how .sec-title { color: var(--paper); }
.how .sec-sub { color: rgba(246,241,233,0.5); }
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 72px; }
.step-col > h3 { font-family: var(--serif); font-size: 24px; color: var(--paper); margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid rgba(246,241,233,0.1); }
.step-col > h3 .col-green { color: var(--sage-light); }
.step-col > h3 .col-clay  { color: #f2a57a; }
.step { display: flex; gap: 18px; margin-bottom: 28px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.sn-green { background: rgba(61,107,79,0.25); color: var(--sage-light); border: 1px solid rgba(200,221,208,0.2); }
.sn-clay  { background: rgba(196,96,42,0.25); color: #f2a57a; border: 1px solid rgba(242,221,210,0.2); }
.step-body h4 { font-size: 15px; font-weight: 500; color: var(--paper); margin-bottom: 4px; }
.step-body p  { font-size: 13px; color: rgba(246,241,233,0.45); font-weight: 300; line-height: 1.6; }

/* TECH STACK */
.tech { padding: 110px 56px; background: var(--mist); }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.tech-card { background: var(--paper); border-radius: 18px; padding: 28px 24px; border: 1px solid rgba(13,17,23,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.tech-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(13,17,23,0.1); }
.tech-icon { font-size: 32px; margin-bottom: 14px; display: block; }
.tech-name { font-family: var(--serif); font-size: 20px; margin-bottom: 6px; }
.tech-role { font-size: 13px; color: rgba(13,17,23,0.5); font-weight: 300; line-height: 1.5; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tech-tag { font-size: 10px; font-weight: 500; background: var(--mist); color: rgba(13,17,23,0.55); padding: 3px 9px; border-radius: 100px; letter-spacing: 0.06em; }

/* TEAM */
.team { padding: 110px 56px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.team-card { border-radius: 22px; overflow: hidden; border: 1px solid rgba(13,17,23,0.08); transition: transform 0.2s, box-shadow 0.2s; background: #fff; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(13,17,23,0.1); }
.team-banner { height: 100px; display: flex; align-items: center; justify-content: center; font-size: 42px; }
.banner-green  { background: var(--sage-light); }
.banner-blue   { background: #dbeafe; }
.banner-purple { background: #ede9fe; }
.banner-amber  { background: #fef3c7; }
.team-body { padding: 22px 20px; }
.team-name { font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.team-role { font-size: 11px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 14px; }
.role-green  { color: var(--sage); }
.role-blue   { color: #1d4ed8; }
.role-purple { color: #6d28d9; }
.role-amber  { color: #92400e; }
.team-tasks { list-style: none; font-size: 12px; color: rgba(13,17,23,0.5); line-height: 2; }
.team-tasks li::before { content: '→ '; opacity: 0.35; }

/* CTA */
.cta { padding: 110px 56px; background: var(--sage); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta::before { content:''; position:absolute; top:-50%; left:-50%; width:200%; height:200%; background:radial-gradient(ellipse 60% 60% at 60% 40%,rgba(255,255,255,0.08) 0%,transparent 70%); }
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta h2 { font-family: var(--serif); font-size: clamp(42px, 5vw, 66px); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 20px; }
.cta h2 em { font-style: italic; opacity: 0.7; }
.cta p { font-size: 17px; opacity: 0.7; font-weight: 300; margin-bottom: 44px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white  { background: #fff; color: var(--sage); }
.btn-white:hover  { background: var(--paper); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.15); }
.btn-border { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.btn-border:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* FOOTER */
footer { background: var(--ink); color: rgba(246,241,233,0.5); padding: 64px 56px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { color: var(--paper); font-size: 22px; }
.footer-brand p { font-size: 13px; margin-top: 12px; line-height: 1.6; font-weight: 300; max-width: 220px; }
.footer-col h4 { font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(246,241,233,0.28); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 13px; color: rgba(246,241,233,0.5); transition: color 0.2s; font-weight: 300; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { background: var(--ink); padding: 20px 56px; border-top: 1px solid rgba(246,241,233,0.07); display: flex; justify-content: space-between; font-size: 12px; color: rgba(246,241,233,0.22); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 120px 24px 80px; }
  .hero-right { display: none; }
  .features, .how, .tech, .team, .cta { padding: 80px 24px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  footer { grid-template-columns: 1fr 1fr; padding: 48px 24px 32px; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; gap: 6px; }
}
@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .feat-tabs { gap: 8px; }
}
