/* ============================================
   DEVTRIX — style.css
   Landing page
   ============================================ */

:root[data-theme="dark"]{
  --bg:               #06080c;
  --bg-surface:       #0c0f16;
  --bg-elevated:      #12151d;
  --bg-card:          #0e1119;
  --border:           #1c212b;
  --border-soft:      rgba(255,255,255,0.06);
  --border-med:       #262c38;

  --text-primary:     #eef1f6;
  --text-secondary:   #8b93a5;
  --text-muted:       #565e6d;
  --text-faint:       #363c48;

  --accent:           #2ee6ac;
  --accent-strong:    #6ff5c9;
  --accent-soft:      rgba(46,230,172,0.12);
  --accent-text-on:   #04180f;

  --teal:             #4fc3f7;
  --red:              #ef5350;

  --nav-bg:           rgba(6,8,12,0.82);
  --card-shadow:      0 20px 50px rgba(0,0,0,0.35);

  --btn-bg:           #ffffff;
  --btn-bg-hover:     #dde1e8;
  --btn-text:         #06080c;

  --cta-base-1:       #14171f;
  --cta-base-2:       #0a0c11;
  --cta-glow-1:       rgba(46,230,172,0.32);
  --cta-glow-2:       rgba(56,142,255,0.24);
}

:root[data-theme="light"]{
  --bg:               #ffffff;
  --bg-surface:       #f8f7f4;
  --bg-elevated:      #f1efe8;
  --bg-card:          #fbfaf8;
  --border:           #e7e5df;
  --border-soft:      rgba(0,0,0,0.06);
  --border-med:       #dedad0;

  --text-primary:     #191a1d;
  --text-secondary:   #62697a;
  --text-muted:       #969ca9;
  --text-faint:       #c7cbd3;

  --accent:           #0e9e72;
  --accent-strong:    #0c7f5b;
  --accent-soft:      rgba(14,158,114,0.10);
  --accent-text-on:   #ffffff;

  --teal:             #0284c7;
  --red:              #c53737;

  --nav-bg:           rgba(255,255,255,0.86);
  --card-shadow:      0 20px 50px rgba(0,0,0,0.06);

  --btn-bg:           #14161c;
  --btn-bg-hover:     #26282f;
  --btn-text:         #ffffff;

  --cta-base-1:       #ffffff;
  --cta-base-2:       #f2f0e9;
  --cta-glow-1:       rgba(14,158,114,0.20);
  --cta-glow-2:       rgba(2,132,199,0.16);
}

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

#starfield{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  opacity:0; transition:opacity 0.6s ease;
}
#starfield.ready{ opacity:1; }
[data-theme="light"] #starfield{ opacity:0 !important; }
.navbar, .hero, .proof-strip, .section, .cta-section, .footer, .auth-overlay{
  position:relative; z-index:1;
}

html{ scroll-behavior:smooth; }

body{
  background:var(--bg);
  color:var(--text-primary);
  font-family:'Sora', sans-serif;
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition:background 0.25s ease, color 0.25s ease;
}

h1,h2,h3{
  font-family:'Bricolage Grotesque', sans-serif;
  font-weight:600;
  letter-spacing:-0.02em;
  color:var(--text-primary);
}

a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }

/* Kill the browser's default focus ring on buttons and selects everywhere —
   each component already has its own bordered box, so the native outline
   just draws a second, mismatched box on top of it. */
button:focus, button:focus-visible,
select:focus, select:focus-visible{
  outline:none;
}
.spin{ animation:spin 0.8s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ── BUTTONS ─────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 20px; border-radius:20px;
  font-size:14px; font-weight:500;
  transition:all 0.15s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--btn-bg); color:var(--btn-text);
}
.btn-primary:hover{ background:var(--btn-bg-hover); transform:translateY(-1px); }
.btn-outline{
  background:transparent; color:var(--text-primary);
  border:1px solid var(--border-med);
}
.btn-outline:hover{ border-color:var(--accent); color:var(--accent); }
.btn-lg{ padding:14px 26px; font-size:15px; }
.btn-google{
  width:100%; background:#ffffff; color:#1f1f1f;
  padding:13px; border-radius:15px; font-size:14px; font-weight:600;
  display:flex; align-items:center; justify-content:center; gap:10px;
  border:1px solid #dadce0;
}
.btn-google:hover{ background:#f7f7f8; }
.google-g{ flex-shrink:0; display:block; }
.btn-primary .google-g,
.btn-outline .google-g{ display:block; }

/* ── NAV ─────────────────────────────────── */
.navbar{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:var(--nav-bg); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border-soft);
}
.nav-inner{
  max-width:1280px; margin:0 auto; padding:14px 16px;
  display:flex; align-items:center; justify-content:space-between;
}
.nav-logo{
  display:flex; align-items:center; gap:8px;
  font-family:'Bricolage Grotesque', sans-serif;
  font-size:18px; font-weight:600; letter-spacing:-0.02em;
}
.nav-logo-mark{
  display:flex; align-items:center; justify-content:center;
  width:30px; height:30px; border-radius:8px;
  background:#0e1119; flex-shrink:0;
}
.nav-logo-mark img{ width:20px; height:20px; object-fit:contain; }
.nav-cluster{ display:flex; align-items:center; gap:36px; height:40px; }
.nav-links{ display:flex; align-items:center; gap:28px; height:40px; }
.nav-link{
  display:flex; align-items:center; height:40px;
  font-size:14px; color:var(--text-secondary); font-weight:400;
  transition:color 0.15s;
}
.nav-link:hover{ color:var(--text-primary); }
.nav-right{ display:flex; align-items:center; gap:10px; height:40px; }
.nav-cta{ border-radius:999px; height:32px; padding:0 20px; }
.hamburger{
  display:none; font-size:20px; color:var(--text-primary); padding:6px;
}

.theme-toggle{ display:flex; align-items:center; height:32px; }
.toggle-track{
  position:relative; width:58px; height:32px; border-radius:16px;
  background:var(--bg-elevated); border:1px solid var(--border-med);
  display:flex; align-items:center; padding:0 5px; justify-content:space-between;
  box-sizing:border-box;
}
.toggle-icon{ font-size:13px; color:var(--text-muted); z-index:1; }
.toggle-thumb{
  position:absolute; top:2px; left:2px; width:26px; height:26px; border-radius:50%;
  background:var(--btn-bg); transition:transform 0.2s ease;
}
[data-theme="light"] .toggle-thumb{ transform:translateX(28px); }

.mobile-nav{
  display:flex; flex-direction:column; gap:2px; padding:0 24px;
  border-top:1px solid transparent;
  max-height:0; opacity:0; overflow:hidden;
  transition:max-height 0.4s cubic-bezier(.4,0,.2,1),
             opacity 0.3s ease,
             padding 0.4s cubic-bezier(.4,0,.2,1),
             border-color 0.4s ease;
}
.mobile-nav.open{
  max-height:400px; opacity:1; padding:12px 24px 20px;
  border-top-color:var(--border-soft);
}
.mobile-link{
  padding:14px 0; font-size:15px; color:var(--text-secondary);
  border-bottom:1px solid var(--border-soft);
  flex-shrink:0;
}
.mobile-link:last-of-type{ border-bottom:none; }

/* ── HERO ────────────────────────────────── */
.hero{ padding:140px 16px 80px; position:relative; }
.hero-inner{
  max-width:1280px; margin:0 auto;
  display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;
}
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:500; color:var(--accent);
  background:var(--accent-soft); padding:6px 12px; border-radius:20px;
  margin-bottom:22px;
}
.eyebrow-dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); }
.hero-title{
  font-size:52px; line-height:1.06; margin-bottom:20px;
}
.hero-sub{
  font-size:17px; color:var(--text-secondary); max-width:460px; margin-bottom:30px;
}
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:22px; }
.hero-credit-note{
  display:flex; align-items:center; gap:8px;
  font-size:13px; color:var(--text-muted);
}
.hero-credit-note i{ color:var(--accent); }

.hero-visual{ position:relative; min-width:0; overflow:hidden; border-radius:12px; }
.hero-glow{
  position:absolute; top:20%; right:-10%; width:340px; height:340px;
  background:var(--accent); opacity:0.14; filter:blur(90px); border-radius:50%; z-index:0;
}
.ide-window{
  position:relative; z-index:1;
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:12px; overflow:hidden; box-shadow:var(--card-shadow);

}
.ide-titlebar{
  display:flex; align-items:center; gap:14px;
  padding:12px 14px; border-bottom:1px solid var(--border);
  background:var(--bg-surface);
}
.ide-dots{ display:flex; gap:6px; }
.ide-dots span{ width:10px; height:10px; border-radius:50%; background:var(--border-med); }
.ide-tabs{ display:flex; }
.ide-tab{
  font-family:'JetBrains Mono', monospace; font-size:12px; color:var(--text-secondary);
  padding:4px 10px; border-radius:6px; background:var(--bg-elevated);
}
.ide-body{
  display:flex; padding:18px 0; height:230px; min-width:0;
  overflow-y:auto;
}
.ide-gutter{
  display:flex; flex-direction:column; gap:9px;
  padding:0 14px; font-family:'JetBrains Mono', monospace; font-size:12.5px;
  color:var(--text-faint); text-align:right; user-select:none;
}
.ide-code{
  font-family:'JetBrains Mono', monospace; font-size:12.5px; line-height:1.9;
  padding-right:16px; flex:1; min-width:0;
  white-space:pre-wrap; word-break:break-word;
}
.ide-code .k{ color:var(--accent); }
.ide-code .s{ color:var(--teal); }
.ide-code .c{ color:var(--text-muted); }
.ide-cursor{
  display:inline-block; width:7px; height:14px; background:var(--accent);
  vertical-align:middle; margin-left:2px; animation:blink 1s step-end infinite;
}
@keyframes blink{ 50%{ opacity:0; } }
.ide-statusbar{
  display:flex; justify-content:space-between; align-items:center;
  padding:9px 14px; border-top:1px solid var(--border);
  background:var(--bg-surface); font-size:11.5px; color:var(--text-muted);
}
.ide-statusbar i{ margin-right:5px; }

/* ── PROOF STRIP ─────────────────────────── */
.proof-strip{
  max-width:1280px; margin:0 auto; padding:32px 16px;
  display:flex; align-items:center; justify-content:center; gap:40px;
  border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft);
  flex-wrap:wrap;
}
.proof-item{ display:flex; flex-direction:column; align-items:center; gap:2px; }
.proof-num{
  font-family:'Bricolage Grotesque', sans-serif; font-size:26px; font-weight:600; color:var(--accent);
}
.proof-label{ font-size:12.5px; color:var(--text-secondary); }
.proof-divider{ width:1px; height:32px; background:var(--border); }

/* ── SECTIONS ────────────────────────────── */
.section{ max-width:1280px; margin:0 auto; padding:90px 16px; }
.section-tight{ padding:60px 16px; }
.section-head{ max-width:600px; margin-bottom:48px; }
.section-eyebrow{
  font-size:12.5px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--accent); margin-bottom:12px;
}
.section-title{ font-size:32px; line-height:1.2; margin-bottom:10px; }
.section-sub{ font-size:15.5px; color:var(--text-secondary); }

/* ── TOOL GROUPS ─────────────────────────── */
.tool-groups{ display:flex; flex-direction:column; gap:40px; }
.tg-label{
  font-family:'JetBrains Mono', monospace; font-size:12.5px; font-weight:500;
  color:var(--text-muted); margin-bottom:16px; letter-spacing:0.02em;
}
.tg-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); gap:16px; }
.tool-card{
  background:var(--bg-card); border:1px solid var(--border); border-radius:12px;
  padding:24px; transition:border-color 0.15s, transform 0.15s;
}
.tool-card:hover{ border-color:var(--accent); transform:translateY(-2px); }
.tool-card i{ font-size:22px; color:var(--accent); margin-bottom:14px; display:block; }
.tool-card h3{ font-size:16px; margin-bottom:8px; }
.tool-card p{ font-size:13.5px; color:var(--text-secondary); line-height:1.55; }

/* ── LANGUAGES ───────────────────────────── */
.lang-strip{ display:flex; flex-wrap:wrap; gap:10px; }
.lang-pill{
  font-family:'JetBrains Mono', monospace; font-size:13px;
  padding:9px 16px; border-radius:8px;
  background:var(--bg-card); border:1px solid var(--border); color:var(--text-secondary);
}

/* ── CREDITS ─────────────────────────────── */
.credits-panel{
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:50px; align-items:center;
  background:var(--bg-card); border:1px solid var(--border); border-radius:16px; padding:48px;
}
.credit-list li{
  display:flex; align-items:center; gap:12px;
  font-size:14px; color:var(--text-secondary); padding:9px 0;
  border-bottom:1px solid var(--border-soft);
}
.credit-list li:last-child{ border-bottom:none; }
.cl-cost{
  font-family:'JetBrains Mono', monospace; font-size:12.5px; font-weight:600;
  color:var(--accent); background:var(--accent-soft);
  padding:3px 9px; border-radius:6px; min-width:28px; text-align:center;
}
.credit-meter{
  background:var(--bg-elevated); border:1px solid var(--border); border-radius:12px; padding:24px;
}
.cm-top{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px; }
.cm-top span:first-child{ font-size:13px; color:var(--text-secondary); }
.cm-num{ font-family:'JetBrains Mono', monospace; font-size:22px; font-weight:600; color:var(--accent); }
.cm-num-faint{ font-size:14px; color:var(--text-muted); font-weight:400; }
.cm-bar-wrap{ height:8px; border-radius:4px; background:var(--bg-surface); overflow:hidden; margin-bottom:10px; }
.cm-bar{ height:100%; width:100%; background:var(--accent); border-radius:4px; }
.cm-meta{ display:flex; justify-content:space-between; font-size:12px; color:var(--text-muted); }

/* ── QUOTES ──────────────────────────────── */
.quotes-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:16px; }
.quote-card{
  background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:26px;
}
.quote-card p{ font-size:14.5px; line-height:1.65; margin-bottom:16px; }
.quote-slash{ font-family:'JetBrains Mono', monospace; color:var(--accent); margin-right:4px; }
.quote-who{ font-size:12.5px; color:var(--text-muted); }

/* ── FAQ ─────────────────────────────────── */
.faq-list{ display:flex; flex-direction:column; gap:10px; }
.faq-item{
  background:var(--bg-card); border:1px solid var(--border); border-radius:10px; padding:18px 22px;
}
.faq-item summary{
  cursor:pointer; font-size:15px; font-weight:500; list-style:none;
  display:flex; justify-content:space-between; align-items:center;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:'+'; color:var(--accent); font-size:18px; }
.faq-item[open] summary::after{ content:'–'; }
.faq-item p{ font-size:14px; color:var(--text-secondary); margin-top:12px; line-height:1.6; }

/* ── CTA ─────────────────────────────────── */
.cta-section{ max-width:900px; margin:0 auto; padding:20px 16px 90px; }
.cta-box{
  position:relative; overflow:hidden; text-align:center;
  border-radius:28px; padding:72px 24px;
  background:
    radial-gradient(60% 90% at 15% 15%, var(--cta-glow-1), transparent 60%),
    radial-gradient(55% 85% at 85% 100%, var(--cta-glow-2), transparent 60%),
    linear-gradient(145deg, var(--cta-base-1), var(--cta-base-2));
  border:1px solid var(--border-med);
}
.cta-inner{ position:relative; z-index:1; max-width:520px; margin:0 auto; }
.cta-title{ font-size:34px; margin-bottom:12px; }
.cta-sub{ font-size:15.5px; color:var(--text-secondary); margin-bottom:28px; }

/* ── FOOTER ──────────────────────────────── */
.footer{ border-top:1px solid var(--border-soft); padding:28px 16px; }
.footer-inner{
  max-width:1280px; margin:0 auto; display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:16px 32px;
}
.footer-brand{ display:flex; align-items:center; gap:12px; }
.footer-brand-text{ font-size:14px; font-weight:600; color:var(--text-primary); white-space:nowrap; }
.footer-brand-dash{ font-weight:400; color:var(--text-faint); margin:0 2px; }
.footer-links{ display:flex; gap:24px; }
.footer-links a{ font-size:13.5px; color:var(--text-secondary); }
.footer-links a:hover{ color:var(--accent); }
.footer-copy{ font-size:12.5px; color:var(--text-faint); white-space:nowrap; }

/* ── AUTH MODAL ──────────────────────────── */
.auth-overlay{
  display:flex; position:fixed; inset:0; z-index:200;
  background:rgba(0,0,0,0.6); backdrop-filter:blur(4px);
  align-items:center; justify-content:center; padding:20px;
  overflow-y:auto;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity 0.3s ease, visibility 0.3s ease, backdrop-filter 0.3s ease;
}
.auth-overlay.active{
  opacity:1; visibility:visible; pointer-events:auto;
}
.auth-modal{
  position:relative; width:100%; max-width:400px;
  background:var(--bg-card); border:1px solid var(--border); border-radius:35px;
  padding:40px 30px 28px; text-align:center;
  box-shadow:0 30px 70px rgba(0,0,0,0.45);
  max-height:calc(100vh - 40px); overflow-y:auto;
  margin:auto;
  opacity:0; transform:translateY(28px) scale(0.94);
  transition:opacity 0.38s cubic-bezier(.16,1,.3,1), transform 0.45s cubic-bezier(.16,1,.3,1);
}
.auth-overlay.active .auth-modal{
  opacity:1; transform:translateY(0) scale(1);
}
.auth-close{
  position:absolute; top:16px; right:16px; color:var(--text-muted); font-size:16px; padding:6px;
  border-radius:50%; transition:background 0.15s;
}
.auth-close:hover{ background:var(--bg-elevated); }
.auth-logo-mark{
  width:56px; height:56px; margin:0 auto 18px; border-radius:14px;
  background:#0e1119; display:flex; align-items:center; justify-content:center;
}
.auth-logo-mark img{ width:34px; height:34px; object-fit:contain; }
.auth-title{ font-size:20px; margin-bottom:6px; }
.auth-sub{ font-size:13.5px; color:var(--text-secondary); margin-bottom:26px; }
.auth-loading{
  display:none; align-items:center; justify-content:center; gap:8px;
  font-size:13.5px; color:var(--text-secondary); margin-top:14px;
}
.auth-loading.active{ display:flex; }
.auth-error{
  display:none; font-size:13px; color:var(--red); margin-top:14px;
}
.auth-error.active{ display:block; }
.auth-divider{
  display:flex; align-items:center; gap:12px;
  font-size:12.5px; color:var(--text-faint); margin:20px 0 16px;
}
.auth-divider::before, .auth-divider::after{
  content:''; flex:1; height:1px; background:var(--border);
}
.auth-toggle{ font-size:13.5px; color:var(--text-secondary); margin-bottom:18px; }
.auth-toggle a{ color:var(--text-primary); font-weight:600; text-decoration:none; }
.auth-toggle a:hover{ color:var(--accent); }
.auth-fine{ font-size:12px; color:var(--text-faint); }
.auth-fine a{ color:var(--text-secondary); text-decoration:underline; }

/* ── SCROLL FADE ─────────────────────────── */
.fade-scroll{ transition:opacity 0.6s ease, transform 0.6s ease; }
.hide-up{ opacity:0; transform:translateY(16px); }
.fade-scroll.show{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .fade-scroll, .ide-cursor, .toggle-thumb{ transition:none; animation:none; }
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-title{ font-size:38px; }
  .credits-panel{ grid-template-columns:1fr; }
  .nav-links{ display:none; }
  .nav-cta{ display:none; }
  .hamburger{ display:block; }
}
@media (max-width: 640px){
  .hero{ padding:110px 14px 50px; }
  .hero-title{ font-size:32px; }
  .section{ padding:56px 14px; }
  .footer-inner{ flex-direction:column; align-items:flex-start; text-align:left; }
  .credits-panel{ padding:28px; }
  .cta-box{ padding:52px 20px; border-radius:20px; }
  .cta-title{ font-size:27px; }
  .tg-grid{ grid-template-columns:1fr; }
  .quotes-grid{ grid-template-columns:1fr; }
}
@media (max-width: 420px){
  .hero-title{ font-size:28px; }
  .hero-eyebrow{ font-size:12px; }
  .section-title{ font-size:26px; }
  .proof-strip{ gap:22px; row-gap:18px; }
  .auth-modal{ padding:32px 22px 24px; }
}
/* ── LEGAL PAGES (terms.html / privacy.html only) ── */
.legal-hero{ padding:140px 16px 40px; text-align:center; }
.legal-hero-inner{ max-width:720px; margin:0 auto; }
.legal-title{ font-size:38px; margin:10px 0 8px; }
.legal-updated{ font-size:13px; color:var(--text-muted); }
.legal-content{
  max-width:720px; margin:0 auto; padding:20px 16px 100px;
}
.legal-content section{ margin-bottom:34px; }
.legal-content h2{
  font-size:19px; margin-bottom:12px; color:var(--text-primary);
}
.legal-content p{
  font-size:14.5px; line-height:1.75; color:var(--text-secondary); margin-bottom:10px;
}
.legal-content ul{
  margin:10px 0 10px 4px; display:flex; flex-direction:column; gap:8px;
}
.legal-content li{
  font-size:14.5px; line-height:1.65; color:var(--text-secondary);
  padding-left:18px; position:relative;
}
.legal-content li::before{
  content:'—'; position:absolute; left:0; color:var(--accent);
}
.legal-content strong{ color:var(--text-primary); font-weight:600; }