/*
Theme Name: 9 Letter Studios
Theme URI: https://9letterstudios.com/
Author: 9 Letter Studios
Description: Custom theme for 9letterstudios.com — voice-over artist, XR/tech reviewer, and content creator. Dark modern design with the 9LS blue/cyan identity and a light-mode toggle.
Version: 1.0.1
License: Private — all rights reserved.
Text Domain: 9ls
*/

/* ============ Design tokens ============ */
:root {
  --bg: #070b14;
  --bg-soft: #0b1120;
  --surface: #101828;
  --surface-2: #162032;
  --border: rgba(148, 163, 184, 0.16);
  --text: #eef2f7;
  --muted: #9aa7bd;
  --accent-1: #22d3ee;
  --accent-2: #3b82f6;
  --gradient: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(2, 8, 23, 0.55);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-soft: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f1f5fa;
  --border: rgba(15, 23, 42, 0.1);
  --text: #0d1526;
  --muted: #5b6b84;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 340px at 12% -4%, rgba(34, 211, 238, 0.1), transparent 60%),
    radial-gradient(700px 340px at 88% 4%, rgba(59, 130, 246, 0.12), transparent 60%);
  z-index: 0;
}
[data-theme="light"] body::before { opacity: 0.55; }

img { max-width: 100%; height: auto; }
a { color: var(--accent-1); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { padding: 72px 0; }

/* ============ Typography ============ */
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-1); margin-bottom: 12px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn-primary { background: var(--gradient); color: #04121a; box-shadow: 0 8px 24px rgba(34, 211, 238, 0.28); }
[data-theme="light"] .btn-primary { color: #fff; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-1); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ============ Header / nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.08rem; color: var(--text); text-decoration: none !important; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #04121a; font-size: 0.95rem; letter-spacing: -0.02em;
}
[data-theme="light"] .brand-mark { color: #fff; }
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted); font-weight: 600; font-size: 0.94rem; padding: 9px 13px; border-radius: 9px;
  text-decoration: none !important; transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links .current-menu-item a { color: var(--text); background: var(--surface-2); }
.nav-cta { margin-left: 8px; }
.theme-toggle {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center; margin-left: 10px;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 1.3rem; padding: 6px 12px; cursor: pointer; }

/* ============ Hero ============ */
.hero { padding: 96px 0 72px; text-align: left; }
.hero p.lead { margin: 18px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero-visual img {
  border-radius: 22px; border: 1px solid var(--border); display: block; width: 100%;
  box-shadow: var(--shadow), 0 0 90px rgba(34, 211, 238, 0.14);
}

/* ============ Cards / grids ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform 0.16s ease, border-color 0.16s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.4); }
.card .icon { font-size: 1.7rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
  background: rgba(34, 211, 238, 0.12); color: var(--accent-1); border: 1px solid rgba(34, 211, 238, 0.3);
}

/* ============ Stats band ============ */
.stats-band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-combined { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 36px; }
.stat-big .num { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-big .lbl { color: var(--muted); font-size: 0.95rem; }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat .num { font-size: 1.5rem; font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.stat .sub { color: var(--muted); font-size: 0.78rem; }
.stats-note { color: var(--muted); font-size: 0.8rem; margin-top: 18px; }

/* ============ Partner / logo wall ============ */
.logo-wall { display: flex; flex-wrap: wrap; gap: 14px; }
.logo-badge {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: 12px 24px; font-weight: 700; font-size: 0.98rem; color: var(--text);
}
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ============ Media / embeds ============ */
.embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: #000; }
.embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.audio-card audio { width: 100%; margin-top: 12px; }

/* ============ Affiliate codes ============ */
.code-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
  background: var(--surface-2); border: 1px dashed rgba(34, 211, 238, 0.5); border-radius: 10px; padding: 10px 14px;
  font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: 0.06em;
}
.copy-btn {
  background: var(--gradient); border: 0; border-radius: 8px; color: #04121a; font-weight: 700;
  padding: 6px 12px; cursor: pointer; font-size: 0.8rem;
}
[data-theme="light"] .copy-btn { color: #fff; }
.disclosure {
  border-left: 3px solid var(--accent-1); background: var(--surface-2);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted); font-size: 0.9rem; margin-bottom: 32px;
}

/* ============ Forms ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.88rem; }
.field input, .field select, .field textarea {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 12px 14px; font-size: 0.97rem; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-1); border-color: transparent; }
.form-note { color: var(--muted); font-size: 0.85rem; margin-top: 12px; }

/* ============ Testimonials ============ */
.quote { font-size: 1.05rem; font-style: italic; }
.quote-by { color: var(--accent-1); font-weight: 700; font-style: normal; margin-top: 12px; display: block; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg-soft); }
.footer-cta { text-align: center; padding-bottom: 40px; }
.footer-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 0.88rem; }
.socials { display: flex; gap: 12px; }
.socials a { color: var(--muted); font-weight: 600; font-size: 0.9rem; text-decoration: none !important; }
.socials a:hover { color: var(--accent-1); }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gradient); color: #04121a; font-weight: 800;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
[data-theme="light"] .step::before { color: #fff; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--bg-soft);
    border-bottom: 1px solid var(--border); padding: 12px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
