/* ============================================
   RESET & BASE
   ============================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:serif;
  background:#0a0a0a;
  color:#e8e8e8;
  line-height:1.6;
  font-size:18px;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
::selection{background:#10b981;color:#0a0a0a}

/* Subtle grain over everything */
body::before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:1;
  background-image:
    radial-gradient(circle at 25% 30%,rgba(255,255,255,0.015) 1px,transparent 1px),
    radial-gradient(circle at 75% 70%,rgba(255,255,255,0.012) 1px,transparent 1px);
  background-size:200px 200px,150px 150px;
  opacity:0.6;
}

.mono{font-family:ui-monospace, monospace}
a{color:inherit;text-decoration:none}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container{max-width:1180px;margin:0 auto;padding:0 32px;position:relative;z-index:2}
section{padding:120px 0;border-top:1px solid rgba(255,255,255,0.06)}
section:first-of-type{border-top:none}

/* ============================================
   NAVIGATION
   ============================================ */
nav{
  position:fixed;
  top:0;left:0;right:0;
  z-index:100;
  padding:20px 32px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:rgba(10,10,10,0.85);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.logo{
  font-family:serif;
  font-weight:700;
  font-size:22px;
  letter-spacing:-0.5px;
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.logo span{color:#10b981}
.logo-mark{
  width:26px;
  height:26px;
  flex-shrink:0;
  transition:transform 0.3s ease;
}
.logo:hover .logo-mark{
  transform:rotate(45deg);
}
.nav-links{display:flex;gap:32px;align-items:center}
.nav-links a{
  font-size:14px;
  color:#999;
  transition:color 0.2s;
  letter-spacing:0.3px;
}
.nav-links a:hover{color:#10b981}
.nav-cta{
  padding:10px 20px;
  background:#10b981;
  color:#0a0a0a !important;
  font-weight:600;
  font-size:14px;
  border-radius:4px;
  transition:transform 0.15s, box-shadow 0.15s;
  letter-spacing:0.3px;
}
.nav-cta:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 20px rgba(16,185,129,0.3);
  color:#0a0a0a !important;
}
@media (max-width:720px){
  .nav-links{gap:18px}
  .nav-links a:not(.nav-cta){display:none}
}

/* ============================================
   HERO
   ============================================ */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:140px 0 80px;
  position:relative;
  overflow:hidden;
}
.hero::after{
  content:'?';
  position:absolute;
  right:-100px;
  bottom:-200px;
  font-family:serif;
  font-size:700px;
  color:#10b981;
  opacity:0.04;
  font-weight:300;
  line-height:1;
  pointer-events:none;
}
.hero-tag{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-bottom:32px;
  padding:8px 14px;
  border:1px solid rgba(16,185,129,0.3);
  border-radius:100px;
  font-size:12px;
  letter-spacing:2px;
  color:#10b981;
  text-transform:uppercase;
  font-family:ui-monospace, monospace;
}
.hero-tag::before{
  content:'';
  width:6px;height:6px;
  background:#10b981;
  border-radius:50%;
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%,100%{opacity:1}
  50%{opacity:0.4}
}
h1{
  font-size:clamp(42px,7vw,88px);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-2px;
  margin-bottom:32px;
  color:#fff;
}
h1 .accent{color:#10b981}
h1 .strike{
  color:#666;
  text-decoration:line-through;
  text-decoration-color:#dc2626;
  text-decoration-thickness:3px;
}
.hero-sub{
  font-size:clamp(18px,2.2vw,24px);
  color:#aaa;
  max-width:700px;
  margin-bottom:48px;
  font-style:italic;
  font-weight:300;
}
.hero-cta{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:64px;
}
.btn-primary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:18px 32px;
  background:#10b981;
  color:#0a0a0a;
  font-weight:600;
  font-size:16px;
  border-radius:4px;
  transition:transform 0.15s,box-shadow 0.2s;
  font-family:serif;
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 30px rgba(16,185,129,0.35);
}
.btn-secondary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:18px 32px;
  background:transparent;
  color:#fff;
  font-weight:500;
  font-size:16px;
  border:1px solid rgba(255,255,255,0.2);
  border-radius:4px;
  transition:border-color 0.2s,background 0.2s;
  font-family:serif;
}
.btn-secondary:hover{
  border-color:#10b981;
  background:rgba(16,185,129,0.05);
}

.hero-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:32px;
  padding-top:48px;
  border-top:1px solid rgba(255,255,255,0.08);
  max-width:900px;
}
.stat-num{
  font-size:42px;
  font-weight:700;
  color:#10b981;
  line-height:1;
  letter-spacing:-1px;
  font-family:serif;
}
.stat-label{
  margin-top:8px;
  font-size:13px;
  color:#888;
  letter-spacing:1px;
  text-transform:uppercase;
  font-family:ui-monospace, monospace;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.section-tag{
  display:inline-block;
  margin-bottom:24px;
  padding:6px 12px;
  background:rgba(255,255,255,0.04);
  border-left:2px solid #dc2626;
  font-size:11px;
  letter-spacing:3px;
  color:#999;
  text-transform:uppercase;
  font-family:ui-monospace, monospace;
}
h2{
  font-size:clamp(34px,5vw,58px);
  font-weight:700;
  line-height:1.1;
  letter-spacing:-1.5px;
  margin-bottom:24px;
  color:#fff;
  max-width:900px;
}
h2 .red{color:#dc2626}
h2 .green{color:#10b981}
.section-lead{
  font-size:20px;
  color:#bbb;
  max-width:700px;
  margin-bottom:64px;
  font-style:italic;
  font-weight:300;
}

.pain-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:48px;
}
@media (max-width: 980px){
  .pain-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 600px){
  .pain-grid{grid-template-columns:1fr}
}
.pain-card{
  padding:32px;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.06);
  border-left:3px solid #dc2626;
  transition:background 0.25s,border-color 0.25s,transform 0.25s;
}
.pain-card:hover{
  background:rgba(220,38,38,0.04);
  border-left-color:#ef4444;
  transform:translateY(-3px);
}
.pain-num{
  font-family:ui-monospace, monospace;
  color:#dc2626;
  font-size:13px;
  letter-spacing:2px;
  margin-bottom:12px;
}
.pain-title{
  font-size:22px;
  font-weight:700;
  color:#fff;
  margin-bottom:14px;
  letter-spacing:-0.3px;
}
.pain-desc{
  font-size:15px;
  color:#aaa;
  line-height:1.65;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison{
  margin-top:48px;
  overflow-x:auto;
  border-radius:8px;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.08);
}
table{
  width:100%;
  border-collapse:collapse;
  min-width:680px;
}
th,td{
  padding:18px 20px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,0.06);
  font-size:15px;
}
th{
  background:rgba(255,255,255,0.03);
  font-family:ui-monospace, monospace;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:2px;
  color:#888;
  font-weight:500;
}
th.col-us{color:#10b981}
td.feature{color:#fff;font-weight:500}
td.us{color:#10b981;font-weight:600}
td.them{color:#888}
tbody tr:last-child td{border-bottom:none}
tbody tr:hover{background:rgba(255,255,255,0.02)}
.check{color:#10b981;margin-right:6px}
.x-mark{color:#dc2626;margin-right:6px}

/* ============================================
   ARCHITECTURE SECTION
   ============================================ */
.arch-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-top:48px;
}
@media (max-width: 980px){
  .arch-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 600px){
  .arch-grid{grid-template-columns:1fr}
}
.arch-card{
  padding:28px;
  background:rgba(16,185,129,0.03);
  border:1px solid rgba(16,185,129,0.15);
  border-radius:6px;
  transition:transform 0.2s,border-color 0.2s,background 0.2s;
}
.arch-card:hover{
  transform:translateY(-3px);
  border-color:rgba(16,185,129,0.4);
  background:rgba(16,185,129,0.06);
}
.arch-num{
  font-family:ui-monospace, monospace;
  color:#10b981;
  font-size:13px;
  letter-spacing:2px;
  margin-bottom:14px;
}
.arch-title{
  font-size:19px;
  font-weight:700;
  color:#fff;
  margin-bottom:10px;
  letter-spacing:-0.2px;
}
.arch-desc{
  font-size:14px;
  color:#aaa;
  line-height:1.65;
}

/* ============================================
   METRICS SECTION
   ============================================ */
.metrics-band{
  background:linear-gradient(180deg,rgba(16,185,129,0.05) 0%,rgba(16,185,129,0.02) 100%);
  border-top:1px solid rgba(16,185,129,0.15);
  border-bottom:1px solid rgba(16,185,129,0.15);
}
.metrics-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:48px;
  margin-top:48px;
}
.metric-block{text-align:left}
.metric-num{
  font-size:64px;
  font-weight:700;
  color:#10b981;
  line-height:1;
  letter-spacing:-2px;
  font-family:serif;
}
.metric-unit{
  font-size:24px;
  color:#10b981;
  margin-left:4px;
}
.metric-label{
  margin-top:14px;
  font-size:14px;
  color:#aaa;
  line-height:1.5;
}
.metric-context{
  margin-top:8px;
  font-size:12px;
  color:#666;
  font-family:ui-monospace, monospace;
  letter-spacing:0.5px;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
  margin-top:48px;
}
@media (max-width: 1180px){
  .pricing-grid{grid-template-columns:repeat(3,1fr);gap:18px}
}
@media (max-width: 820px){
  .pricing-grid{grid-template-columns:repeat(2,1fr);gap:16px}
}
@media (max-width: 540px){
  .pricing-grid{grid-template-columns:1fr;gap:14px}
}
.price-card{
  padding:26px 20px;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:8px;
  display:flex;
  flex-direction:column;
  transition:transform 0.2s,border-color 0.2s;
}
.price-card:hover{
  transform:translateY(-4px);
  border-color:rgba(16,185,129,0.3);
}
.price-card.featured{
  border-color:#10b981;
  background:rgba(16,185,129,0.04);
  position:relative;
}
.price-card.featured::before{
  content:'MOST POPULAR';
  position:absolute;
  top:-10px;
  left:50%;
  transform:translateX(-50%);
  padding:3px 10px;
  background:#10b981;
  color:#0a0a0a;
  font-size:9px;
  letter-spacing:1.2px;
  font-weight:700;
  border-radius:3px;
  font-family:ui-monospace, monospace;
  white-space:nowrap;
}
.price-tier{
  font-family:ui-monospace, monospace;
  font-size:11px;
  color:#888;
  letter-spacing:1.5px;
  text-transform:uppercase;
  margin-bottom:14px;
}
.price-amount{
  font-size:38px;
  font-weight:700;
  color:#fff;
  line-height:1;
  letter-spacing:-1.5px;
  margin-bottom:6px;
  font-family:serif;
}
.price-amount .currency{font-size:18px;vertical-align:top;color:#888}
.price-amount .period{font-size:12px;color:#888;font-weight:400;letter-spacing:0;font-family:serif}
.price-target{
  font-size:12px;
  color:#888;
  margin-bottom:20px;
  min-height:32px;
  line-height:1.4;
}
.price-features{
  list-style:none;
  flex-grow:1;
  margin-bottom:22px;
}
.price-features li{
  padding:7px 0 7px 20px;
  font-size:12.5px;
  color:#ccc;
  border-bottom:1px solid rgba(255,255,255,0.04);
  position:relative;
  line-height:1.4;
}
.price-features li::before{
  content:'✓';
  position:absolute;
  left:0;top:7px;
  color:#10b981;
  font-weight:700;
  font-size:12px;
  font-family:ui-monospace, monospace;
}
.price-features li:last-child{border-bottom:none}
.price-cta{
  display:block;
  text-align:center;
  padding:12px 8px;
  background:transparent;
  border:1px solid rgba(255,255,255,0.2);
  color:#fff;
  font-weight:600;
  font-size:13px;
  border-radius:4px;
  transition:background 0.2s,border-color 0.2s;
  font-family:serif;
  white-space:nowrap;
}
.price-cta:hover{
  background:rgba(16,185,129,0.1);
  border-color:#10b981;
}
.price-card.featured .price-cta{
  background:#10b981;
  color:#0a0a0a;
  border-color:#10b981;
}
.price-card.featured .price-cta:hover{
  background:#0fa674;
}

/* ============================================
   FOUNDER NOTE
   ============================================ */
.founder-note{
  max-width:780px;
  margin:0 auto;
  padding:48px;
  background:rgba(255,255,255,0.02);
  border-left:3px solid #10b981;
  font-size:18px;
  line-height:1.75;
  color:#ccc;
  font-style:italic;
  border-radius:4px;
}
.founder-note p{margin-bottom:18px}
.founder-note p:last-child{margin-bottom:0}
.founder-sig{
  margin-top:32px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,0.08);
  font-style:normal;
  font-size:15px;
  color:#888;
}
.founder-sig strong{color:#fff;font-weight:600}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final{
  text-align:center;
  padding:160px 0;
}
.cta-final h2{
  margin:0 auto 32px;
  text-align:center;
}

/* ============================================
   FOOTER
   ============================================ */
footer{
  border-top:1px solid rgba(255,255,255,0.06);
  padding:48px 0 32px;
  color:#666;
  font-size:14px;
}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:32px;
  margin-bottom:32px;
}
.footer-col h4{
  color:#fff;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:2px;
  margin-bottom:16px;
  font-family:ui-monospace, monospace;
  font-weight:500;
}
.footer-col a{
  display:block;
  padding:6px 0;
  color:#888;
  font-size:14px;
  transition:color 0.2s;
}
.footer-col a:hover{color:#10b981}
.footer-bottom{
  padding-top:32px;
  border-top:1px solid rgba(255,255,255,0.06);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  color:#555;
  font-size:13px;
  font-family:ui-monospace, monospace;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion:no-preference){
  .reveal{
    opacity:0;
    transform:translateY(20px);
    transition:opacity 0.8s ease-out,transform 0.8s ease-out;
  }
  .reveal.visible{
    opacity:1;
    transform:translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width:720px){
  section{padding:80px 0}
  .container{padding:0 20px}
  .hero{padding:120px 0 60px}
  .hero-cta{flex-direction:column;align-items:stretch}
  .btn-primary,.btn-secondary{justify-content:center}
  .founder-note{padding:32px 24px;font-size:16px}
}
