@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --accent:#2563EB;
  --accent-soft:rgba(37,99,235,.08);
  --text:#111111;
  --muted:#888888;
  --border:#E5E5E5;
  --bg:#FFFFFF;
  --surface:#F7F7F7;
  --navy:#0A0F1E;
  --radius:8px;
  --radius-sm:5px;
}
html{scroll-behavior:smooth}
body{font-family:'Figtree',sans-serif;background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased;font-feature-settings:'ss01'}
a{color:inherit;text-decoration:none}
img{max-width:100%}

/* ── UTILITY ── */
.container{width:100%;max-width:1120px;margin:0 auto;padding:0 24px}
.section{padding:100px 0}
.eyebrow{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:16px}
.heading-xl{font-size:clamp(36px,5.5vw,62px);font-weight:700;letter-spacing:-0.03em;line-height:1.06;color:var(--text)}
.heading-lg{font-size:clamp(26px,3.8vw,44px);font-weight:700;letter-spacing:-0.025em;line-height:1.1}
.heading-md{font-size:clamp(20px,2.5vw,28px);font-weight:600;letter-spacing:-0.02em}
.subhead{font-size:clamp(15px,1.8vw,17px);color:var(--muted);line-height:1.75;max-width:520px}

/* ── BUTTONS ── */
.btn{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:500;border-radius:var(--radius);padding:11px 22px;cursor:pointer;border:1px solid transparent;transition:all .15s ease;text-decoration:none;font-family:inherit}
.btn-primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--border)}
.btn-ghost:hover{background:var(--surface);border-color:#d0d0d0}
.btn-white{background:#fff;color:var(--navy);border-color:rgba(255,255,255,.15)}
.btn-white:hover{background:#f1f5f9}
.btn-lg{font-size:15px;padding:13px 26px}

/* ── BADGE ── */
.badge-pro{font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:2px 6px;border-radius:3px;background:rgba(37,99,235,.1);color:var(--accent);vertical-align:middle;margin-left:6px}

/* ── ANIMATIONS ── */
@keyframes fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
.fade-up{opacity:0;animation:fadeUp .6s cubic-bezier(.22,1,.36,1) forwards}
.delay-1{animation-delay:.08s}.delay-2{animation-delay:.16s}.delay-3{animation-delay:.26s}.delay-4{animation-delay:.38s}.delay-5{animation-delay:.52s}
.reveal{opacity:0;transform:translateY(16px);transition:opacity .55s cubic-bezier(.22,1,.36,1),transform .55s cubic-bezier(.22,1,.36,1)}
.reveal.visible{opacity:1;transform:translateY(0)}
/* Fade-only reveal: no transform, for elements inside overflow:hidden containers */
.reveal-fade{opacity:0;transition:opacity .55s cubic-bezier(.22,1,.36,1)}
.reveal-fade.visible{opacity:1}

/* ── NAV ── */
#main-nav{position:fixed;top:0;left:0;right:0;z-index:100;padding:0;transition:background .2s,border-color .2s,backdrop-filter .2s;border-bottom:1px solid transparent}
#main-nav.scrolled{background:rgba(255,255,255,.88);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-color:var(--border)}
.nav-inner{display:flex;align-items:center;height:60px;gap:32px}
.nav-logo{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:600;color:var(--text);flex-shrink:0;letter-spacing:-0.01em}
.logo-icon{display:grid;grid-template-columns:1fr 1fr;gap:3px;width:22px;height:22px}
.logo-icon span{border-radius:3px}
.logo-icon span:nth-child(1){background:rgba(17,17,17,.3)}
.logo-icon span:nth-child(2){background:rgba(17,17,17,.12)}
.logo-icon span:nth-child(3){background:rgba(17,17,17,.12)}
.logo-icon span:nth-child(4){background:var(--accent)}
.nav-links{display:flex;align-items:center;gap:24px;margin-left:auto;list-style:none}
.nav-links a{font-size:13px;font-weight:450;color:var(--muted);transition:color .15s;letter-spacing:-0.01em}
.nav-links a:hover{color:var(--text)}
.nav-cta{margin-left:8px;padding:8px 16px;font-size:13px}
.nav-hamburger{display:none;flex-direction:column;gap:4.5px;cursor:pointer;padding:8px;margin-left:auto;background:none;border:none;outline:none}
.nav-hamburger:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
.nav-hamburger span{display:block;width:22px;height:1.5px;background:var(--text);transition:transform .25s cubic-bezier(.22,1,.36,1), opacity .2s ease}
/* Animate to × when open */
.nav-hamburger[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav-hamburger[aria-expanded="true"] span:nth-child(2){opacity:0;transform:scaleX(0)}
.nav-hamburger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.mobile-nav{display:none;position:fixed;inset:60px 0 0;background:#fff;z-index:99;padding:24px;flex-direction:column;gap:0;border-top:1px solid var(--border)}
.mobile-nav.open{display:flex}
.mobile-nav a{font-size:16px;font-weight:500;color:var(--text);padding:16px 0;border-bottom:1px solid var(--border);display:block}
.mobile-nav a.btn{display:inline-flex;padding:11px 22px;border-bottom:none;margin-top:20px;width:auto;align-self:flex-start;color:#fff}

/* ── HERO ── */
#hero{padding:140px 0 80px;position:relative}
.hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.hero-heading{margin-bottom:18px;font-size:clamp(32px,4vw,50px)}
.hero-sub{margin-bottom:32px}
.hero-ctas{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}
.hero-proof{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}
.hero-proof-dot{width:3px;height:3px;border-radius:50%;background:var(--border);display:inline-block}

/* ── PLUGIN MOCKUP ── */
.plugin-mockup{background:#18181b;border-radius:12px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.18),0 0 0 1px rgba(255,255,255,.05)}
.pm-header{background:#111113;padding:12px 14px;display:flex;align-items:center;gap:8px;border-bottom:1px solid rgba(255,255,255,.06)}
.pm-logo{display:grid;grid-template-columns:1fr 1fr;gap:2px;width:18px;height:18px}
.pm-logo span{border-radius:2px}
.pm-logo span:nth-child(1){background:rgba(255,255,255,.3)}
.pm-logo span:nth-child(2){background:rgba(255,255,255,.12)}
.pm-logo span:nth-child(3){background:rgba(255,255,255,.12)}
.pm-logo span:nth-child(4){background:#2563eb}
.pm-title{font-size:11px;font-weight:600;color:rgba(255,255,255,.8)}
.pm-tabs{display:flex;border-bottom:1px solid rgba(255,255,255,.06);background:#111113}
.pm-tab{font-size:10px;font-weight:500;color:rgba(255,255,255,.35);padding:8px 10px;border-bottom:2px solid transparent;cursor:pointer}
.pm-tab.active{color:#fff;border-color:#2563eb}
.pm-body{padding:10px;display:flex;flex-direction:column;gap:5px}
.pm-row{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);border-radius:6px;padding:9px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.pm-row-left{display:flex;flex-direction:column;gap:2px}
.pm-elem{font-size:9px;color:rgba(255,255,255,.35);font-family:monospace}
.pm-class{font-size:11px;font-weight:600;color:#60a5fa;font-family:monospace}
.pm-apply{font-size:9px;font-weight:600;color:#2563eb;background:rgba(37,99,235,.15);border:none;border-radius:3px;padding:3px 7px;cursor:pointer}
.pm-section-label{font-size:9px;font-weight:600;color:rgba(255,255,255,.2);letter-spacing:.08em;text-transform:uppercase;padding:3px 2px}

/* ── PROBLEM / SOLUTION ── */
.ps-grid{display:grid;grid-template-columns:1fr auto 1fr;gap:20px;align-items:start}
.ps-col{border-radius:var(--radius);padding:28px 24px}
.ps-before{background:rgba(239,68,68,.03);border:1px solid rgba(239,68,68,.1)}
.ps-after{background:rgba(34,197,94,.03);border:1px solid rgba(34,197,94,.12)}
.ps-col-header{display:flex;align-items:center;gap:8px;margin-bottom:20px}
.ps-col-title{font-size:13px;font-weight:600}
.ps-col-title.before{color:#dc2626}
.ps-col-title.after{color:#16a34a}
.ps-list{list-style:none;display:flex;flex-direction:column;gap:10px}
.ps-item{font-size:14px;line-height:1.5;padding-left:18px;position:relative;color:var(--muted)}
.ps-item-bad::before{content:'✗';position:absolute;left:0;color:#ef4444;font-weight:700}
.ps-item-good::before{content:'✓';position:absolute;left:0;color:#22c55e;font-weight:700}
.ps-divider{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:40px 0}
.ps-divider-line{flex:1;width:1px;background:var(--border)}
.ps-divider-arrow{font-size:16px;color:var(--muted)}

/* ── HOW IT WORKS ── */
.steps-grid{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:start;gap:0 12px}
.step-card{background:var(--bg);border-radius:var(--radius);padding:28px 24px;border:1px solid var(--border)}
.step-num{font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--accent);margin-bottom:14px}
.step-icon{margin-bottom:14px}
.step-title{font-size:16px;font-weight:600;letter-spacing:-0.01em;margin-bottom:8px}
.step-desc{font-size:13px;color:var(--muted);line-height:1.7}
.step-connector{display:flex;align-items:flex-start;padding-top:64px}

/* ── FEATURES ── */
/* Use individual borders instead of overflow:hidden trick to avoid compositing glitch */
.features-grid{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.feature-card{background:var(--bg);padding:28px 24px;transition:background .15s;position:relative;border-right:1px solid var(--border);border-bottom:1px solid var(--border)}
.feature-card:nth-child(3n){border-right:none}
.feature-card:nth-last-child(-n+3){border-bottom:none}
.feature-card:hover{background:var(--surface)}
.feat-icon{margin-bottom:14px}
.feat-title{font-size:14px;font-weight:600;letter-spacing:-0.01em;margin-bottom:8px}
.feat-desc{font-size:13px;color:var(--muted);line-height:1.7}

/* ── BIG MOCKUP ── */
.big-mockup{background:#111113;border-radius:12px;border:1px solid rgba(255,255,255,.07);box-shadow:0 32px 80px rgba(0,0,0,.5);max-width:600px;margin:0 auto;text-align:left;overflow:hidden}
.bm-header{background:#0d0d0f;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.06)}
.bm-header-left{display:flex;align-items:center;gap:8px}
.bm-version{font-size:9px;font-weight:600;background:rgba(255,255,255,.07);color:rgba(255,255,255,.35);padding:2px 5px;border-radius:3px}
.bm-conv-selector{display:flex;align-items:center;gap:6px}
.bm-conv-pill{font-size:10px;font-weight:600;color:#60a5fa;background:rgba(37,99,235,.15);border:1px solid rgba(37,99,235,.2);padding:2px 8px;border-radius:99px}
.bm-tabs{display:flex;background:#0d0d0f;border-bottom:1px solid rgba(255,255,255,.06);padding:0 6px}
.bm-tab{font-size:11px;font-weight:500;color:rgba(255,255,255,.3);padding:9px 12px;border-bottom:2px solid transparent;cursor:pointer;transition:color .15s}
.bm-tab.active{color:#fff;border-color:#2563eb}
.bm-tab:hover:not(.active){color:rgba(255,255,255,.55)}
.bm-body{padding:0}
.bm-panel{display:none;padding:14px}
.bm-panel:first-child{display:block}
.bm-scan-bar{display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.05);border-radius:6px;padding:7px 10px;margin-bottom:10px}
.bm-scan-btn{font-size:10px;font-weight:600;color:#2563eb;background:rgba(37,99,235,.15);border:1px solid rgba(37,99,235,.2);border-radius:5px;padding:4px 10px;cursor:pointer}
.bm-tree{display:flex;flex-direction:column;gap:3px}
.bm-tree-item{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.04);border-radius:5px;padding:8px 10px}
.bm-tree-item.depth-1{margin-left:14px}
.bm-tree-item.depth-2{margin-left:28px}
.bm-tag{font-size:9px;font-weight:600;color:rgba(255,255,255,.3);background:rgba(255,255,255,.06);border-radius:3px;padding:2px 5px;white-space:nowrap}
.bm-arrow{color:rgba(255,255,255,.18);font-size:11px}
.bm-suggested{font-size:11px;font-weight:600;color:#60a5fa;font-family:monospace;flex:1}
.bm-apply-btn{font-size:9px;font-weight:600;color:#2563eb;background:rgba(37,99,235,.12);border:1px solid rgba(37,99,235,.18);border-radius:3px;padding:3px 7px;cursor:pointer}
.bm-footer-bar{margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.06)}
.bm-apply-all{font-size:12px;font-weight:600;color:#fff;background:#2563eb;border:none;border-radius:6px;padding:9px 18px;cursor:pointer;width:100%}
.bm-audit-score-wrap{display:flex;align-items:center;gap:16px;background:rgba(255,255,255,.03);border-radius:8px;padding:16px;margin-bottom:12px;border:1px solid rgba(255,255,255,.05)}
.bm-audit-score{font-size:44px;font-weight:700;color:#22c55e;line-height:1;letter-spacing:-0.03em}
.bm-audit-items{display:flex;flex-direction:column;gap:6px}
.bm-audit-item{font-size:11px;padding:9px 12px;border-radius:5px}
.bm-audit-item.warn{background:rgba(245,158,11,.07);color:#fbbf24;border:1px solid rgba(245,158,11,.14)}
.bm-audit-item.info{background:rgba(96,165,250,.07);color:#93c5fd;border:1px solid rgba(96,165,250,.14)}
.bm-audit-item.ok{background:rgba(34,197,94,.07);color:#86efac;border:1px solid rgba(34,197,94,.14)}
.bm-cleanup-summary{font-size:13px;font-weight:600;color:#fbbf24;margin-bottom:12px;padding:10px 12px;background:rgba(245,158,11,.07);border-radius:6px;border:1px solid rgba(245,158,11,.14)}
.bm-cleanup-items{display:flex;flex-direction:column;gap:5px;margin-bottom:10px}
.bm-cleanup-item{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.05);border-radius:5px;padding:8px 10px}
.bm-dup-class{font-size:11px;font-weight:600;color:#60a5fa;font-family:monospace;flex:1}
.bm-dup-count{font-size:10px;color:#f87171;font-weight:700}
.bm-merge-btn{font-size:9px;font-weight:600;color:#fbbf24;background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.18);border-radius:3px;padding:3px 7px;cursor:pointer}
.bm-cleanup-empty{font-size:11px;color:#86efac;padding:6px 10px}
/* ── HISTORY PANEL ── */
.bm-history-header{display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.05);border-radius:6px;padding:7px 10px;margin-bottom:10px}
.bm-clear-btn{font-size:9px;font-weight:600;color:rgba(255,255,255,.35);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:3px;padding:3px 7px;cursor:pointer;transition:color .15s,background .15s}
.bm-clear-btn:hover{color:#f87171;background:rgba(248,113,113,.1)}
.bm-history-list{display:flex;flex-direction:column;gap:4px}
.bm-history-item{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.05);border-radius:6px;padding:9px 10px;display:flex;flex-direction:column;gap:5px}
.bm-history-meta{display:flex;align-items:center;justify-content:space-between}
.bm-history-tag{font-size:9px;font-weight:600;color:rgba(255,255,255,.3);background:rgba(255,255,255,.06);border-radius:3px;padding:2px 5px}
.bm-history-time{font-size:9px;color:rgba(255,255,255,.2)}
.bm-history-change{display:flex;align-items:center;gap:6px;flex:1;flex-wrap:wrap}
.bm-history-old{font-size:10px;color:rgba(248,113,113,.7);font-family:monospace;text-decoration:line-through;text-decoration-color:rgba(248,113,113,.4)}
.bm-history-arrow{font-size:10px;color:rgba(255,255,255,.2)}
.bm-history-new{font-size:11px;font-weight:600;color:#60a5fa;font-family:monospace;flex:1}
.bm-revert-btn{align-self:flex-end;font-size:9px;font-weight:600;color:rgba(255,255,255,.45);background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:3px;padding:3px 8px;cursor:pointer;transition:color .15s,background .15s}
.bm-revert-btn:hover{color:#fbbf24;background:rgba(245,158,11,.1);border-color:rgba(245,158,11,.2)}
.bm-history-footer{margin-top:10px;padding-top:8px;border-top:1px solid rgba(255,255,255,.05);display:flex;justify-content:flex-end}

/* ── PRICING ── */
.pricing-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:720px;margin:0 auto}
.price-card{border-radius:12px;padding:32px 28px;display:flex;flex-direction:column;gap:20px;position:relative;overflow:hidden}
.price-free{background:var(--bg);border:1px solid var(--border)}
.price-pro{background:var(--navy);border:1px solid rgba(255,255,255,.08)}
.price-popular{position:absolute;top:16px;right:16px}
.price-popular span{font-size:10px;font-weight:600;color:#b45309;background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.2);padding:3px 9px;border-radius:99px}
.price-label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.price-amount{font-size:48px;font-weight:700;letter-spacing:-0.04em;line-height:1}
.price-period{font-size:12px;color:var(--muted);margin-top:-12px}
.price-features{list-style:none;display:flex;flex-direction:column;gap:9px;flex:1}
.pf{font-size:13px;color:var(--text);padding-left:20px;position:relative}
.pf::before{content:'✓';position:absolute;left:0;color:#22c55e;font-weight:700}
.pf-pro{color:#cbd5e1}
.pf-pro:first-child{color:rgba(255,255,255,.35);font-size:11px}
.pf-pro:first-child::before{display:none}
.price-secure{font-size:11px;color:#475569;text-align:center;margin-top:-6px}

/* ── FAQ ── */
.faq-list{max-width:660px;margin:0 auto;display:flex;flex-direction:column}
.faq-item{border-bottom:1px solid var(--border)}
.faq-item:first-child{border-top:1px solid var(--border)}
.faq-q{width:100%;background:transparent;border:none;text-align:left;padding:20px 0;font-size:15px;font-weight:500;color:var(--text);cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;font-family:inherit;transition:color .15s;letter-spacing:-0.01em}
.faq-q:hover{color:var(--accent)}
.faq-icon{font-size:20px;font-weight:300;color:var(--muted);flex-shrink:0;transition:transform .22s}
.faq-q[aria-expanded="true"] .faq-icon{transform:rotate(45deg);color:var(--accent)}
.faq-a{overflow:hidden;max-height:0;transition:max-height .3s ease}
.faq-a.open{max-height:600px}
.faq-a>p{padding-bottom:18px;font-size:14px;color:var(--muted);line-height:1.75}
.faq-a code{font-size:12px;background:var(--surface);color:var(--accent);padding:2px 5px;border-radius:3px;font-family:monospace}

/* ── FOOTER ── */
.footer-inner{display:flex;align-items:flex-start;justify-content:space-between;gap:32px;margin-bottom:32px;flex-wrap:wrap}
.footer-links{display:flex;gap:24px;flex-wrap:wrap}
.footer-links a{font-size:13px;color:#64748b;transition:color .15s}
.footer-links a:hover{color:#94a3b8}
.footer-copy{font-size:12px;color:#475569;border-top:1px solid rgba(255,255,255,.06);padding-top:20px}

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  .features-grid{grid-template-columns:repeat(2,1fr)}
  /* Reset 3-col borders, apply 2-col borders */
  .feature-card:nth-child(3n){border-right:1px solid var(--border)}
  .feature-card:nth-last-child(-n+3){border-bottom:1px solid var(--border)}
  .feature-card:nth-child(2n){border-right:none}
  .feature-card:nth-last-child(-n+2):not(:nth-child(2n+1) ~ *):nth-last-child(-n+2){border-bottom:none}
  /* Simpler: just reset bottom border for last 2 */
  .feature-card:nth-last-child(-n+2){border-bottom:none}
}
@media(max-width:900px){
  .steps-grid{grid-template-columns:1fr;gap:0}
  .step-connector{transform:rotate(90deg);padding:8px 0;justify-content:center}
  .ps-grid{grid-template-columns:1fr;gap:0}
  .ps-divider{flex-direction:row;padding:16px 0}
  .ps-divider-line{flex:1;height:1px;width:auto}
  .ps-divider-arrow{transform:rotate(90deg)}
}
@media(max-width:768px){
  .nav-links,.nav-cta{display:none}
  .nav-hamburger{display:flex}
  .hero-inner{grid-template-columns:1fr;gap:40px}
  #hero{padding:110px 0 60px}
  .section{padding:64px 0}
  .pricing-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .features-grid{grid-template-columns:1fr}
  /* Reset to single column: right border on all, no bottom border on last */
  .feature-card{border-right:none}
  .feature-card:not(:last-child){border-bottom:1px solid var(--border)}
  .feature-card:last-child{border-bottom:none}
  .container{padding:0 16px}
}
@media(max-width:480px){
  #hero{padding:96px 0 48px}
  .section{padding:52px 0}
}

/* ── REFINEMENTS ── */
#hero{background:var(--bg)}
.section-center{text-align:center}
.section-center .subhead{margin-left:auto;margin-right:auto}
