/* ============================================================
   commandercodey.com — one-page marketing site
   Distinct "command" aesthetic; same product family as AITeamCollab.
   Space Grotesk + Inter + JetBrains Mono · azure + amber · dark-first
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #080b12;
  --bg-1: #0d111b;
  --bg-2: #121826;
  --surface: #141b2b;
  --surface-2: #1a2234;
  --line: #232c40;
  --line-2: #2e394f;
  --text: #eaeef6;
  --text-2: #aab4c6;
  --text-3: #6f7c93;
  --text-dim: #4a5468;
  --azure: #3b82f6;
  --azure-bright: #60a5fa;
  --azure-deep: rgba(59,130,246,0.14);
  --azure-line: rgba(59,130,246,0.34);
  --azure-glow: rgba(59,130,246,0.45);
  --amber: #f5a623;
  --amber-bright: #fbbf4d;
  --amber-deep: rgba(245,166,35,0.14);
  --ok: #34d27b;
  --mesh-1: rgba(59,130,246,0.16);
  --mesh-2: rgba(245,166,35,0.07);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max: 1180px;
  --nav-h: 70px;
  --card-shadow: 0 18px 50px rgba(0,0,0,0.4);
}
[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-1: #eef1f8;
  --bg-2: #e7ebf4;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --line: #dde3ee;
  --line-2: #cbd4e3;
  --text: #131a27;
  --text-2: #44506440;
  --text-2: #455064;
  --text-3: #74809a;
  --text-dim: #9aa4ba;
  --azure-deep: rgba(59,130,246,0.10);
  --azure-line: rgba(59,130,246,0.28);
  --mesh-1: rgba(59,130,246,0.12);
  --mesh-2: rgba(245,166,35,0.08);
  --card-shadow: 0 18px 44px rgba(40,60,100,0.12);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: 90px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: var(--azure-bright); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 26px; }
.eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--azure-bright); display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--azure-line); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 16px 0 14px; }
.section-head p { color: var(--text-2); font-size: 1.08rem; text-wrap: pretty; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font-body); font-weight: 600; font-size: .96rem; padding: 13px 24px; border-radius: 11px; border: 1px solid transparent; cursor: pointer; transition: all .18s; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--azure), #2f6fe0); color: #fff; box-shadow: 0 8px 26px var(--azure-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--azure-glow); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--azure); color: var(--azure-bright); }
.btn-amber { background: linear-gradient(135deg, var(--amber), #e0901a); color: #1a1206; box-shadow: 0 8px 26px var(--amber-deep); }
.btn-amber:hover { transform: translateY(-2px); color: #1a1206; }
.btn-lg { padding: 16px 30px; font-size: 1.04rem; border-radius: 13px; }
.btn .ext { font-size: .78rem; opacity: .7; }

/* ===== NAV ===== */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 26px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { height: 38px; width: 38px; border-radius: 9px; }
.brand-txt { font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; letter-spacing: -.01em; line-height: 1.05; }
.brand-txt b { color: var(--azure-bright); font-weight: 700; }
.brand-txt span { display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: var(--text-2); font-size: .9rem; font-weight: 500; transition: color .18s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; transition: all .18s; }
.theme-toggle:hover { border-color: var(--azure); color: var(--azure-bright); }
.menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero { position: relative; padding: calc(var(--nav-h) + 70px) 0 70px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(ellipse 760px 520px at 78% 8%, var(--mesh-1), transparent 64%),
  radial-gradient(ellipse 560px 460px at 8% 92%, var(--mesh-2), transparent 60%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 62px 62px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000, transparent 75%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 30px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .73rem; letter-spacing: .08em; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 7px 14px 7px 9px; margin-bottom: 24px; }
.hero-badge .pill { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--amber-bright); background: var(--amber-deep); border-radius: 20px; padding: 3px 9px; }
.hero h1 { font-size: clamp(2.5rem, 5.3vw, 4.1rem); }
.hero h1 .grad { background: linear-gradient(110deg, var(--azure-bright), var(--amber-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.18rem; color: var(--text-2); margin: 22px 0 32px; max-width: 33ch; text-wrap: pretty; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 20px; font-family: var(--font-mono); font-size: .76rem; color: var(--text-3); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* hero visual: codey + floating window */
.hero-visual { position: relative; min-height: 460px; display: flex; align-items: flex-end; justify-content: center; }
.hero-codey { position: relative; z-index: 2; height: 460px; width: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.5)); }
.hero-window { position: absolute; z-index: 3; top: auto; bottom: 18px; right: -10px; width: 300px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--card-shadow); overflow: hidden; }
.hw-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.hw-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.hw-bar i:nth-child(1) { background: #ef5f5f; } .hw-bar i:nth-child(2) { background: var(--amber); } .hw-bar i:nth-child(3) { background: var(--ok); }
.hw-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: .66rem; color: var(--text-3); }
.hw-body { padding: 13px; display: flex; flex-direction: column; gap: 9px; }
.hw-msg { font-size: .76rem; line-height: 1.5; padding: 9px 11px; border-radius: 9px; }
.hw-msg.you { align-self: flex-end; background: var(--azure-deep); border: 1px solid var(--azure-line); color: var(--text); max-width: 86%; }
.hw-msg.codey { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); max-width: 90%; }
.hw-role { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--azure-bright); margin-bottom: 4px; }
.hw-role .rc { width: 14px; height: 14px; border-radius: 4px; background: var(--azure); color: #fff; display: grid; place-items: center; font-size: .55rem; font-weight: 700; }
.hw-chips { display: flex; gap: 6px; margin-top: 2px; }
.hw-chip { font-family: var(--font-mono); font-size: .58rem; padding: 4px 8px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-3); }
.hero-rank { position: absolute; z-index: 4; left: -6px; top: 30px; bottom: auto; background: var(--surface); border: 1px solid var(--amber-deep); border-radius: 12px; padding: 11px 14px; box-shadow: var(--card-shadow); display: flex; align-items: center; gap: 11px; }
.hero-rank .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--amber-deep); display: grid; place-items: center; font-size: 1.1rem; }
.hero-rank .t b { font-size: .82rem; display: block; }
.hero-rank .t small { font-family: var(--font-mono); font-size: .62rem; color: var(--text-3); }

/* ===== KEYWORD BAND ===== */
.kw-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-1); padding: 22px 0; overflow: hidden; }
.kw-band .label { text-align: center; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.kw-track { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.kw { font-family: var(--font-mono); font-size: .82rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; }
.kw b { color: var(--azure-bright); font-weight: 600; }

/* ===== FEATURES GRID ===== */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: border-color .2s, transform .2s; }
.feat:hover { border-color: var(--azure-line); transform: translateY(-3px); }
.feat .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--azure-deep); border: 1px solid var(--azure-line); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 16px; }
.feat h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feat p { color: var(--text-2); font-size: .93rem; }

/* ===== SPOTLIGHT (Tandem Review / Roles / Privacy) ===== */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.spot.rev { direction: rtl; } .spot.rev > * { direction: ltr; }
.spot h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 14px 0 16px; }
.spot p { color: var(--text-2); font-size: 1.04rem; margin-bottom: 20px; text-wrap: pretty; }
.spot-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.spot-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--text); }
.spot-list .ck { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; background: var(--azure-deep); border: 1px solid var(--azure-line); color: var(--azure-bright); display: grid; place-items: center; font-size: .75rem; margin-top: 1px; }
.spot-media { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--card-shadow); background: var(--bg-2); }
.spot-media img { width: 100%; display: block; }
.spot-media .cap { position: absolute; left: 14px; bottom: 14px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; }
.spot-flag { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-bright); margin-bottom: 4px; }

/* ===== HOW IT WORKS ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; }
.step .num { font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--azure-bright); background: var(--azure-deep); border: 1px solid var(--azure-line); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 1.04rem; margin-bottom: 7px; }
.step p { color: var(--text-2); font-size: .9rem; }
.step .arrow { position: absolute; right: -11px; top: 44px; color: var(--line-2); font-size: 1.1rem; z-index: 2; }
.step:last-child .arrow { display: none; }

/* ===== PRIVACY band ===== */
.privacy { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.priv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.priv-card .ico { font-size: 1.6rem; margin-bottom: 14px; }
.priv-card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.priv-card p { color: var(--text-2); font-size: .92rem; }

/* ===== GALLERY ===== */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--card-shadow); background: var(--bg-2); position: relative; }
.shot img { width: 100%; display: block; }
.shot .tag { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; }
.gallery-col { display: flex; flex-direction: column; gap: 16px; }

/* ===== PRICING ===== */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.price.feature { border-color: var(--azure-line); box-shadow: 0 0 0 1px var(--azure-line), 0 20px 50px var(--azure-deep); background: linear-gradient(180deg, var(--azure-deep), var(--surface) 55%); }
.price .ptag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #fff; background: var(--azure); padding: 4px 12px; border-radius: 20px; }
.price .pname { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.price .pprice { font-family: var(--font-head); font-size: 2rem; font-weight: 700; margin: 12px 0 2px; }
.price .pprice small { font-size: .8rem; font-weight: 500; color: var(--text-3); font-family: var(--font-mono); }
.price .pdesc { font-size: .84rem; color: var(--text-3); min-height: 38px; margin-bottom: 16px; }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; flex: 1; }
.price li { display: flex; gap: 9px; font-size: .87rem; color: var(--text-2); align-items: flex-start; }
.price li::before { content: '✓'; color: var(--azure-bright); font-weight: 700; flex: 0 0 auto; }
.price .btn { width: 100%; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; background: none; border: none; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; text-align: left; cursor: pointer; }
.faq-q .pm { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--azure-bright); font-size: 1.1rem; transition: transform .2s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--text-2); font-size: .95rem; }

/* ===== FINAL CTA ===== */
.final { position: relative; overflow: hidden; }
.final-card { position: relative; z-index: 1; background: linear-gradient(135deg, var(--bg-2), var(--surface)); border: 1px solid var(--azure-line); border-radius: 24px; padding: 64px 48px; text-align: center; box-shadow: var(--card-shadow); }
.final-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 80% at 50% 0%, var(--azure-deep), transparent 70%); }
.final-codey { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--azure-line); margin: 0 auto 22px; position: relative; }
.final-card h2 { font-size: clamp(2rem, 4vw, 3rem); position: relative; }
.final-card p { color: var(--text-2); font-size: 1.1rem; max-width: 48ch; margin: 16px auto 30px; position: relative; }
.final-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--line); padding: 56px 0 30px; background: var(--bg-1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand img { height: 36px; width: 36px; border-radius: 9px; }
.footer-brand .t { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; }
.footer-tag { color: var(--text-3); font-size: .88rem; max-width: 280px; }
.footer h4 { font-family: var(--font-head); font-size: .92rem; margin-bottom: 15px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--text-2); font-size: .88rem; }
.footer a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; text-align: center; font-size: .8rem; color: var(--text-dim); }
.footer-bottom .hl { color: var(--azure-bright); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* responsive */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 420px; }
  .hero-sub { max-width: none; }
  .feat-grid, .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step .arrow { display: none; }
  .spot, .spot.rev { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
  .spot-media { order: -1; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.show { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg-1); border-bottom: 1px solid var(--line); padding: 22px 26px; gap: 16px; }
  .menu-btn { display: block; }
  .section { padding: 70px 0; }
  .feat-grid, .privacy-grid, .price-grid, .steps { grid-template-columns: 1fr; }
  .hero-window { width: 230px; right: 0; bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .final-card { padding: 44px 24px; }
}
