/* ============================================================
   MY RIPACHU — style.css
   Design System + Components + Page Styles
   Single source of truth for the entire brand.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  /* ---- Brand Colors (Raw) ---- */
  --color-matte-black: #111111;
  --color-soft-white: #F7F6F2;
  --color-satin-gold: #CFA347;
  --color-warm-led: #FFF3D2;
  --color-pastel-blue: #8FD9EB;
  --color-pastel-green: #C7E2D2;
  --color-brushed-silver: #C8CCD0;
  --color-smoke-grey: #2B2B2B;

  /* ---- Typography ---- */
  --font-display: 'Orbitron', 'Raleway', sans-serif;
  --font-body: 'Raleway', 'Helvetica Neue', sans-serif;

  /* ---- Type Scale ---- */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* ---- Spacing (4px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Radius ---- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* ---- Transitions ---- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Content Widths ---- */
  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1320px;
  --content-full: 100%;

  /* ---- Material Effects ---- */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;
  --gold-glow: 0 0 60px rgba(207, 163, 71, 0.15);
  --led-glow: 0 0 80px rgba(255, 243, 210, 0.08);
}

/* ============================================================
   DARK MODE (Default — Black Dominates)
   ============================================================ */

:root,
[data-theme='dark'] {
  /* Surfaces — lighter for all-ages appeal */
  --color-bg: #181818;
  --color-surface: #1E1E1E;
  --color-surface-2: #242424;
  --color-surface-offset: #2A2A2A;
  --color-surface-dynamic: #333333;
  --color-divider: rgba(255, 255, 255, 0.06);
  --color-border: rgba(255, 255, 255, 0.10);
  --color-border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --color-text: #F7F6F2;
  --color-text-muted: #B8B8B8;
  --color-text-faint: #808080;
  --color-text-inverse: #111111;

  /* Accents */
  --color-gold: #CFA347;
  --color-gold-hover: #DDB45E;
  --color-gold-active: #BF9434;
  --color-gold-highlight: rgba(207, 163, 71, 0.12);
  --color-led: #FFF3D2;
  --color-blue: #8FD9EB;
  --color-green: #C7E2D2;
  --color-silver: #C8CCD0;

  /* Semantic */
  --color-primary: var(--color-gold);
  --color-primary-hover: var(--color-gold-hover);
  --color-primary-active: var(--color-gold-active);
  --color-success: #6BAE7C;
  --color-error: #D65D5D;
  --color-warning: #DDB45E;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 4px 24px rgba(207, 163, 71, 0.2);
  --shadow-led: 0 0 80px rgba(255, 243, 210, 0.06);

  /* Materials (dark) */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --material-faceted: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 50%, rgba(255,255,255,0.03) 100%);
  --gradient-gold: linear-gradient(135deg, #CFA347 0%, #D9B85E 50%, #BF9434 100%);
  --gradient-surface: linear-gradient(180deg, #1E1E1E 0%, #181818 100%);
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(207, 163, 71, 0.10) 0%, transparent 60%);
}

/* ============================================================
   LIGHT MODE (Soft White)
   ============================================================ */

[data-theme='light'] {
  /* Surfaces */
  --color-bg: #F7F6F2;
  --color-surface: #FFFFFF;
  --color-surface-2: #FAFAF8;
  --color-surface-offset: #F0EFEB;
  --color-surface-dynamic: #E8E7E3;
  --color-divider: rgba(0, 0, 0, 0.06);
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-strong: rgba(0, 0, 0, 0.14);

  /* Text */
  --color-text: #111111;
  --color-text-muted: #5A5A5A;
  --color-text-faint: #888888;
  --color-text-inverse: #F7F6F2;

  /* Accents */
  --color-gold: #BF9434;
  --color-gold-hover: #A8822A;
  --color-gold-active: #8A6D22;
  --color-gold-highlight: rgba(191, 148, 52, 0.10);
  --color-led: #FFF3D2;
  --color-blue: #8FD9EB;
  --color-green: #9DC4AE;
  --color-silver: #B0B4B8;

  /* Semantic */
  --color-primary: var(--color-gold);
  --color-primary-hover: var(--color-gold-hover);
  --color-primary-active: var(--color-gold-active);
  --color-success: #4A8A5C;
  --color-error: #C44545;
  --color-warning: #BF9434;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);
  --shadow-gold: 0 4px 24px rgba(191, 148, 52, 0.15);
  --shadow-led: 0 0 80px rgba(255, 243, 210, 0.15);

  /* Materials (light) */
  --glass-bg: rgba(0, 0, 0, 0.02);
  --glass-border: rgba(0, 0, 0, 0.06);
  --material-faceted: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.005) 50%, rgba(0,0,0,0.015) 100%);
  --gradient-gold: linear-gradient(135deg, #BF9434 0%, #D4AC4E 50%, #A8822A 100%);
  --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #F7F6F2 100%);
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(191, 148, 52, 0.06) 0%, transparent 60%);
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container-wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container-narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section-tight {
  padding-block: clamp(var(--space-8), 4vw, var(--space-16));
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
}

/* ============================================================
   MATERIALS & SURFACES
   ============================================================ */

/* Glass Panel */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
}

/* Faceted Panel (subtle geometric gradient) */
.faceted {
  background: var(--material-faceted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.faceted::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 30%, rgba(207, 163, 71, 0.03) 50%, transparent 70%);
  pointer-events: none;
}

/* Smoked Glass */
.smoked-glass {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme='light'] .smoked-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Gold Surface */
.gold-surface {
  background: var(--gradient-gold);
  color: var(--color-matte-black);
}

/* Carbon Fibre Texture */
.carbon-fibre {
  background-color: var(--color-surface);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px);
}

[data-theme='light'] .carbon-fibre {
  background-color: var(--color-surface);
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.01) 0px, rgba(0,0,0,0.01) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.01) 0px, rgba(0,0,0,0.01) 1px, transparent 1px, transparent 3px);
}

/* Brushed Metal */
.brushed-metal {
  background: linear-gradient(180deg,
    var(--color-surface) 0%,
    var(--color-surface-2) 50%,
    var(--color-surface) 100%);
  position: relative;
}

.brushed-metal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0px,
    transparent 2px,
    rgba(255,255,255,0.008) 2px,
    rgba(255,255,255,0.008) 3px);
  pointer-events: none;
  border-radius: inherit;
}

[data-theme='light'] .brushed-metal::after {
  background: repeating-linear-gradient(90deg,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.008) 2px,
    rgba(0,0,0,0.008) 3px);
}

/* LED Glow */
.led-glow {
  box-shadow: var(--shadow-led);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive),
    border-color var(--transition-interactive);
  min-height: 44px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — Gold */
.btn-primary {
  background: var(--gradient-gold);
  color: var(--color-matte-black);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(207, 163, 71, 0.3);
}

.btn-primary:active {
  box-shadow: 0 2px 12px rgba(207, 163, 71, 0.2);
}

/* Secondary — Glass outline */
.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-highlight);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* Large */
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid rgba(207, 163, 71, 0.15);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

[data-theme="light"] .site-header {
  background: rgba(247, 246, 242, 0.92);
  border-bottom: 1px solid var(--color-divider);
}

.site-header--hidden {
  transform: translateY(-100%);
}

.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-6) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-brand:hover {
  opacity: 0.9;
}

.nav-brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-links a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.nav-links a:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.nav-links a.active {
  color: var(--color-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    padding: var(--space-6);
    gap: var(--space-2);
    overflow-y: auto;
    border-top: 1px solid var(--color-divider);
  }

  .nav-links.is-open a {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--text-lg);
    border-radius: var(--radius-lg);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #000000;
  border-top: 1px solid rgba(207, 163, 71, 0.15);
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-12);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand-section {
  max-width: 320px;
}

.footer-brand-section .nav-brand {
  margin-bottom: var(--space-4);
}

.footer-brand-section p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-col a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  max-width: var(--content-wide);
  margin: var(--space-12) auto 0;
  padding: var(--space-6) var(--space-6) 0;
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.footer-social a:hover {
  color: var(--color-gold);
  background: var(--color-surface-offset);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.card-hover:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-hover:active {
  transform: translateY(0);
}

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

/* Product Card */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.product-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card-image {
  aspect-ratio: 4 / 3;
  background: var(--color-surface-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-body {
  padding: var(--space-6);
}

.product-card-category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.product-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.product-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.product-card-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-gold);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.form-label .required {
  color: var(--color-gold);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
  min-height: 44px;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-highlight);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-faint);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238C8C8C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PILLS / BADGES
   ============================================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}

.pill-gold {
  background: var(--color-gold-highlight);
  color: var(--color-gold);
}

.pill-success {
  background: rgba(107, 174, 124, 0.12);
  color: var(--color-success);
}

.pill-blue {
  background: rgba(191, 217, 232, 0.1);
  color: var(--color-blue);
}

/* Status indicator dot */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px currentColor;
}

.status-dot--offline {
  background: var(--color-text-faint);
  box-shadow: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--space-16);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(207, 163, 71, 0.04) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-24);
  align-items: center;
  width: 100%;
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.hero-text {
  max-width: 640px;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-6);
}

.hero-title .gold-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-8);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 3 / 5;
  max-height: 640px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-right: var(--space-10);
}

@media (max-width: 1024px) {
  .hero-visual {
    max-height: 400px;
    aspect-ratio: 16 / 10;
  }
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */

.page-hero {
  padding-top: var(--space-20);
  padding-bottom: var(--space-12);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.page-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  max-width: 20ch;
}

.page-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
}

/* ============================================================
   SECTIONS & GRID
   ============================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
  }
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 1024px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ============================================================
   STEP / HOW IT WORKS
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}

@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step-card {
  position: relative;
  padding: var(--space-8) var(--space-6) var(--space-6);
}

.step-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gold);
  opacity: 0.3;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   CTA BAND
   ============================================================ */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
}

.cta-band-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-offset) 100%);
  z-index: 0;
}

.cta-band-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(207, 163, 71, 0.08) 0%, transparent 60%);
}

.cta-band-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-narrow);
  margin-inline: auto;
}

.cta-band h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.cta-band p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.cta-band-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */

.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-interactive);
}

.accordion-item:hover {
  border-color: var(--color-border-strong);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.accordion-icon {
  flex-shrink: 0;
  transition: transform var(--transition-interactive);
}

.accordion-trigger[aria-expanded='true'] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-out);
}

.accordion-panel-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   MAP
   ============================================================ */

.map-container {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  aspect-ratio: 16 / 10;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-offset);
  position: relative;
}

.map-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
}

.map-marker-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.map-marker-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: border-color var(--transition-interactive);
}

.map-marker-item:hover {
  border-color: var(--color-gold);
}

/* ============================================================
   STATS / METRICS
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  text-align: left;
  padding: var(--space-6);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   NEWSLETTER
   ============================================================ */

.newsletter {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
}

.newsletter-input {
  flex: 1;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-base);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  min-height: 44px;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-highlight);
}

@media (max-width: 480px) {
  .newsletter {
    flex-direction: column;
  }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: view()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

.reveal-up {
  opacity: 1;
}

@supports (animation-timeline: view()) {
  .reveal-up {
    clip-path: inset(20% 0 0 0);
    animation: reveal-clip linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-clip {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Hero entrance animation */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text > * {
  animation: hero-rise 0.8s var(--ease-out) both;
}

.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.2s; }
.hero-text > *:nth-child(3) { animation-delay: 0.3s; }
.hero-text > *:nth-child(4) { animation-delay: 0.4s; }

/* ============================================================
   BRAND GUIDELINES SPECIFIC
   ============================================================ */

.color-swatch {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.color-swatch-chip {
  height: 120px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
}

.color-swatch-info {
  padding: var(--space-4);
  background: var(--color-surface);
}

.color-swatch-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.color-swatch-hex {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.type-spec {
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.type-spec-sample {
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.type-spec-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--color-text-muted); }
.text-faint { color: var(--color-text-faint); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.full-bleed {
  max-width: var(--content-full);
  width: 100%;
}

.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Display utilities */
.hidden { display: none; }

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

/* List styling */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.check-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-gold);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--color-divider);
  margin-block: var(--space-12);
  border: none;
}

/* Tag/Category grid */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: border-color var(--transition-interactive), color var(--transition-interactive);
  cursor: pointer;
}

.tag:hover,
.tag.active {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Image placeholder (product/section) */
.visual-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.visual-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--material-faceted);
}

.visual-placeholder-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-text-faint);
}

.visual-placeholder-content svg {
  margin-inline: auto;
  margin-bottom: var(--space-3);
  opacity: 0.3;
}

/* Machine render placeholder */
.machine-render {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.machine-render-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(207, 163, 71, 0.06) 0%, transparent 60%),
    var(--color-surface);
}

/* Future-ready module placeholder */
.future-module {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--color-surface);
  position: relative;
}

.future-module::after {
  content: 'Coming Soon';
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

/* Link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
  transition: gap var(--transition-interactive);
}

.link-arrow:hover {
  gap: var(--space-3);
}

.link-arrow svg {
  transition: transform var(--transition-interactive);
}

/* Giveaway nav link — standout banner style */
.nav-links a[href="./giveaway.html"] {
  background: linear-gradient(135deg, #CFA347 0%, #e6c267 50%, #CFA347 100%);
  color: #111111 !important;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  position: relative;
  animation: giveaway-glow 2.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(207, 163, 71, 0.4), 0 0 4px rgba(207, 163, 71, 0.6);
  transition: all 0.3s ease;
}

.nav-links a[href="./giveaway.html"]:hover {
  background: linear-gradient(135deg, #e6c267 0%, #f0d488 50%, #e6c267 100%);
  box-shadow: 0 0 20px rgba(207, 163, 71, 0.6), 0 0 8px rgba(207, 163, 71, 0.8);
  transform: scale(1.05);
}

@keyframes giveaway-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(207, 163, 71, 0.4), 0 0 2px rgba(207, 163, 71, 0.6);
  }
  50% {
    box-shadow: 0 0 16px rgba(207, 163, 71, 0.6), 0 0 6px rgba(207, 163, 71, 0.8);
  }
}

[data-theme="light"] .nav-links a[href="./giveaway.html"] {
  background: linear-gradient(135deg, #CFA347 0%, #d4af52 50%, #CFA347 100%);
  color: #ffffff !important;
}

/* Rewards nav link — standout banner style */
.nav-links a[href="./rewards.html"] {
  background: linear-gradient(135deg, #C0C0C0 0%, #e8e8e8 50%, #C0C0C0 100%);
  color: #111111 !important;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  position: relative;
  animation: rewards-glow 2.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(192, 192, 192, 0.4), 0 0 4px rgba(192, 192, 192, 0.6);
  transition: all 0.3s ease;
}

.nav-links a[href="./rewards.html"]:hover {
  background: linear-gradient(135deg, #e8e8e8 0%, #ffffff 50%, #e8e8e8 100%);
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.6), 0 0 8px rgba(192, 192, 192, 0.8);
  transform: scale(1.05);
}

@keyframes rewards-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(192, 192, 192, 0.4), 0 0 2px rgba(192, 192, 192, 0.6);
  }
  50% {
    box-shadow: 0 0 16px rgba(192, 192, 192, 0.6), 0 0 6px rgba(192, 192, 192, 0.8);
  }
}

[data-theme="light"] .nav-links a[href="./rewards.html"] {
  background: linear-gradient(135deg, #C0C0C0 0%, #d4d4d4 50%, #C0C0C0 100%);
  color: #ffffff !important;
}
