/* ═══════════════════════════════════════════════════════════════
   Good Stories LLC — Landing Page Styles
   Design: Luxury editorial — deep navy + rich gold
   Fonts: Instrument Serif (display) + Outfit (body)
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Variables ──────────────────────────────────────── */

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

:root {
  --bg-deep:       #080c16;
  --bg-surface:    #0d1220;
  --bg-card:       #111827;
  --bg-card-hover: #162032;
  --border:        #1a2540;
  --border-light:  #243352;

  --gold:          #d4af37;
  --gold-light:    #e8cc6e;
  --gold-dim:      #7a6520;
  --gold-glow:     rgba(212, 175, 55, 0.15);

  --text-primary:  #eef0f6;
  --text-secondary:#8892a8;
  --text-muted:    #525c72;

  --green:         #34d399;
  --green-bg:      rgba(52, 211, 153, 0.12);

  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;

  --font-display:  'Instrument Serif', Georgia, serif;
  --font-body:     'Outfit', -apple-system, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg-deep);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hide-mobile { display: inline; }

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1;
}

.btn--gold {
  background: var(--gold);
  color: #0a0e18;
}
.btn--gold:hover {
  background: var(--gold-light);
  color: #0a0e18;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn--outline:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.btn--disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ── Navigation ─────────────────────────────────────────────── */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

#nav.scrolled {
  background: rgba(8, 12, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.nav-logo:hover { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-links .nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
}
.nav-links .nav-cta:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ── Hero ───────────────────────────────────────────────────── */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}
.hero-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3), transparent 70%);
  top: -10%;
  right: -5%;
  animation: float 20s ease-in-out infinite;
}
.hero-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(30, 58, 120, 0.5), transparent 70%);
  bottom: -15%;
  left: -10%;
  animation: float 25s ease-in-out infinite reverse;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 24px;
  display: inline-block;
}
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 12px auto 0;
}

#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--text-primary);
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 24px;
}
#hero h1 em {
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(212, 175, 55, 0.15);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  max-width: 620px;
  margin: 0 auto;
}

.stat {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
  letter-spacing: -0.5px;
}
.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── Section Headers ────────────────────────────────────────── */

section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 16px;
  display: inline-block;
}
.section-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold-dim);
  margin: 10px auto 0;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.25;
}

.section-desc {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Our Companies ─────────────────────────────────────────── */

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.company-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.company-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.company-card--featured {
  border-color: var(--gold-dim);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, var(--bg-card) 50%);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.08);
  position: relative;
  overflow: hidden;
}
.company-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.06), transparent);
  transform: translateX(-150%) skewX(-15deg);
  animation: shimmer 8s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { transform: translateX(-150%) skewX(-15deg); }
  50% { transform: translateX(350%) skewX(-15deg); }
}
.company-card--featured:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 56px rgba(212, 175, 55, 0.15);
}

.company-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.company-badge--live {
  background: var(--gold);
  color: #0a0e18;
}

.company-badge--soon {
  background: rgba(82, 92, 114, 0.2);
  color: var(--text-muted);
}

.company-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 400;
}

.company-domain {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

.company-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.company-cta {
  margin-top: auto;
  align-self: flex-start;
}

.company-cta--disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* ── COCO Products Section ─────────────────────────────────── */

#coco {
  background: var(--bg-surface);
}

.coco-header {
  text-align: center;
  margin-bottom: 56px;
}

.coco-header .coco-mark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 8px;
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
}

.coco-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.coco-sub-header {
  margin-top: 56px;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.coco-sub-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 1px;
  background: var(--gold-dim);
}

.coco-header + .coco-sub-header {
  margin-top: 0;
}

.coco-sub-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 400;
}

/* ── Products ───────────────────────────────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.product-card:hover {
  border-color: var(--gold-dim);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.product-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--gold-glow);
  color: var(--gold);
  margin-bottom: 16px;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 400;
}

.product-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* ── Live Demo ──────────────────────────────────────────────── */

.demo-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.demo-dots {
  display: flex;
  gap: 7px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #ffbd2e; }
.dot--green  { background: #28c840; }

.demo-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.demo-body {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  min-height: 320px;
}

.demo-input-side,
.demo-output-side {
  padding: 24px;
}

.demo-divider {
  background: var(--border);
}

.demo-input-side label,
.demo-output-side label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

#demo-text {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 16px;
  resize: vertical;
  line-height: 1.7;
  transition: border-color 0.2s;
}
#demo-text:focus {
  outline: none;
  border-color: var(--gold-dim);
}
#demo-text::placeholder {
  color: var(--text-muted);
}

.demo-controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}

#demo-style {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 10px 14px;
  cursor: pointer;
}
#demo-style:focus {
  outline: none;
  border-color: var(--gold-dim);
}
#demo-style option {
  background: var(--bg-card);
}

.demo-result {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  min-height: 200px;
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-y: auto;
  max-height: 360px;
}

.demo-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.demo-result h4 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 400;
  margin: 16px 0 8px;
}
.demo-result h4:first-child { margin-top: 0; }

.demo-result ul {
  padding-left: 18px;
  margin: 4px 0;
}
.demo-result li {
  padding: 2px 0;
  color: var(--text-secondary);
}

.demo-result .condensed {
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1.8;
}

.demo-error {
  color: #f87171;
  font-size: 0.9rem;
}

/* Loading state */
#demo-btn.loading .btn-text { opacity: 0; }
#demo-btn.loading .btn-loader {
  display: block;
  position: absolute;
}
#demo-btn {
  position: relative;
  min-width: 120px;
}
.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10, 14, 24, 0.3);
  border-top-color: #0a0e18;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Endpoint Cards ─────────────────────────────────────────── */

.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.endpoint-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s ease;
}
.endpoint-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.method {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', monospace;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.method--post {
  background: var(--green-bg);
  color: var(--green);
}

.endpoint-card h3 {
  font-family: 'SF Mono', 'Fira Code', var(--font-body);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 500;
}

.endpoint-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.api-links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ── Pricing ────────────────────────────────────────────────── */

#pricing {
  background: var(--bg-surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}
.price-card:hover {
  transform: translateY(-4px);
}

.price-card--featured {
  border-color: var(--gold-dim);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, var(--bg-card) 40%);
}
.price-card--featured:hover {
  box-shadow: 0 16px 48px rgba(212, 175, 55, 0.12);
}

.price-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0a0e18;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 16px;
  border-radius: 20px;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.price-amount span {
  font-size: 1rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.price-card ul {
  list-style: none;
  margin-bottom: 28px;
  text-align: left;
}
.price-card li {
  padding: 8px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "\2713";
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── About ──────────────────────────────────────────────────── */

.about-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 28px;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  font-style: italic;
  margin-top: 12px;
}

.about-link {
  margin-top: 24px;
}

/* ── Footer ─────────────────────────────────────────────────── */

footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 1px;
  background: var(--gold-dim);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-brand p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  text-align: center;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-secondary); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Scroll Reveal Animation ────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.company-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.company-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.product-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.product-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.endpoint-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.endpoint-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.endpoint-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.pricing-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.pricing-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .company-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .endpoint-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    gap: 36px;
  }
  .demo-body {
    grid-template-columns: 1fr;
  }
  .demo-divider {
    height: 1px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hide-mobile { display: none; }

  section {
    padding: 72px 0;
  }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 12, 22, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  .stat-sep {
    width: 36px;
    height: 1px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 36px;
  }
  .footer-links {
    flex-direction: column;
    gap: 28px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas .btn {
    width: 100%;
    max-width: 280px;
  }

  .api-links {
    flex-direction: column;
    align-items: center;
  }
}

/* ── Focus Styles ──────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Reduced Motion ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-orb { animation: none; }
  .company-card--featured::before { animation: none; }
  .btn-loader { animation-duration: 1.4s; }
  .company-card:hover,
  .product-card:hover,
  .endpoint-card:hover,
  .price-card:hover {
    transform: none;
  }
}
