:root {
  /* Core Base Colors - Deep Velvet Obsidian & Cyber Solar Ember (Zero Blue) */
  --bg-core: #0a080d;
  --bg-surface: #120f18;
  --bg-surface-elevated: #1a1622;
  --bg-surface-highlight: #251e30;
  --bg-glass: rgba(18, 14, 25, 0.85);
  --bg-glass-active: rgba(30, 24, 40, 0.94);
  --bg-glass-heavy: rgba(14, 11, 20, 0.96);

  /* Borders & Hairlines */
  --border-subtle: rgba(255, 180, 80, 0.09);
  --border-medium: rgba(255, 180, 80, 0.18);
  --border-amber-glow: rgba(255, 122, 24, 0.45);
  --border-amber-light: rgba(255, 183, 3, 0.3);
  --border-emerald-glow: rgba(5, 241, 156, 0.4);

  /* Accents - Solar Tangerine, Radiant Aurum Gold, Luminous Mint Emerald, Neon Coral */
  --accent-gold: #ff7a18;
  --accent-gold-bright: #ffb703;
  --accent-gold-glow: rgba(255, 122, 24, 0.42);
  --accent-amber-light: #fff3d6;
  --accent-copper: #ff4d6d;
  --accent-copper-glow: rgba(255, 77, 109, 0.36);
  --accent-emerald: #05f19c;
  --accent-emerald-bright: #48ffb8;
  --accent-emerald-glow: rgba(5, 241, 156, 0.32);
  --accent-coral: #ff3366;

  /* Typography */
  --text-main: #faf7fc;
  --text-muted: #aba2b8;
  --text-subtle: #797187;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 44px;
  --space-6: 72px;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 20px 45px -12px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 183, 3, 0.15);
  --shadow-gold-subtle: 0 0 24px rgba(255, 122, 24, 0.22);
  --shadow-gold-strong: 0 0 38px rgba(255, 122, 24, 0.4), 0 14px 32px rgba(0, 0, 0, 0.88);

  /* Layout Heights */
  --header-height-desktop: 72px;
  --header-height-mobile: 60px;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-core);
  background-image: 
    radial-gradient(ellipse 950px 520px at 15% -5%, rgba(255, 122, 24, 0.15), transparent 70%),
    radial-gradient(ellipse 750px 480px at 85% 20%, rgba(255, 77, 109, 0.12), transparent 65%),
    radial-gradient(circle 850px at 50% 75%, rgba(5, 241, 156, 0.06), transparent 70%),
    linear-gradient(180deg, #0a080d 0%, #100d16 50%, #0d0b12 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .brand-text {
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.3rem, 4.4vw + 1rem, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, #ffffff 25%, #fff2d6 65%, #ffb703 85%, #ff7a18 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.65rem, 2.5vw + 1rem, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

p {
  margin-bottom: var(--space-3);
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-gold-bright);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ffffff;
  text-shadow: 0 0 12px var(--accent-gold-glow);
}

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

.site-container {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Site Header - Position Relative so it scrolls up naturally with page */
.site-header {
  height: var(--header-height-desktop);
  background: rgba(14, 11, 20, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  top: auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.22rem;
  text-decoration: none;
  position: relative;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255, 122, 24, 0.45));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-brand:hover .brand-icon {
  transform: rotate(6deg) scale(1.08);
}

.brand-text {
  font-weight: 800;
}

.brand-text span {
  color: var(--accent-gold-bright);
  text-shadow: 0 0 16px rgba(255, 183, 3, 0.45);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-2);
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-shadow: none;
}

.nav-link.is-active {
  color: #0c0910;
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(255, 122, 24, 0.45);
}

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

.btn-cta-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.16), rgba(255, 77, 109, 0.16));
  border: 1px solid var(--border-amber-glow);
  border-radius: var(--radius-pill);
  color: var(--accent-gold-bright);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(255, 122, 24, 0.18);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta-compact:hover {
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  color: #0c0910;
  border-color: transparent;
  box-shadow: 0 0 26px rgba(255, 122, 24, 0.6);
  transform: translateY(-1px);
}

.hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hamburger-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-main);
}

/* Glass Panels & Containers */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 183, 3, 0.8), rgba(255, 122, 24, 0.6), transparent);
  pointer-events: none;
}

/* Hero Section */
.hero-section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.16), rgba(255, 77, 109, 0.1));
  border: 1px solid var(--border-amber-glow);
  color: var(--accent-gold-bright);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 0 18px rgba(255, 122, 24, 0.16);
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--text-muted);
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}

.hero-telemetry-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-3);
}

.telemetry-item {
  display: flex;
  flex-direction: column;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold-bright);
}

.telemetry-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  font-weight: 600;
}

/* Interactive 3D Model Showcase */
.model-3d-wrapper {
  position: relative;
  background: radial-gradient(circle at 50% 40%, #201a2d 0%, #130f1c 75%, #0b0910 100%);
  border: 1px solid var(--border-amber-glow);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-gold-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  user-select: none;
}

.model-3d-wrapper::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.22), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.model-3d-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
  font-size: 0.82rem;
  z-index: 2;
}

.model-tag {
  color: var(--accent-gold-bright);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-tag::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald-bright);
  box-shadow: 0 0 12px var(--accent-emerald-bright);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.model-hint {
  color: var(--text-subtle);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.stage-3d {
  width: 100%;
  height: 380px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  position: relative;
  z-index: 2;
}

.stage-3d:active {
  cursor: grabbing;
}

.phone-3d {
  width: 196px;
  height: 340px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(12deg);
  transition: transform 0.15s ease-out;
}

.phone-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  backface-visibility: hidden;
}

/* Phone Front */
.phone-front {
  transform: translateZ(11px);
  background: #000000;
  border: 4px solid #4a3525;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2), 0 15px 35px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #1b1422 0%, #2f192b 50%, #0d0a11 100%);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  color: #fff;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle at 45% 35%, rgba(255, 122, 24, 0.32), transparent 60%);
  pointer-events: none;
}

.screen-island {
  align-self: center;
  width: 62px;
  height: 18px;
  background: #000000;
  border-radius: 999px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 7px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.screen-lens {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #05f19c 0%, #036b45 100%);
  border: 1px solid #1f2937;
  box-shadow: 0 0 6px rgba(5, 241, 156, 0.6);
}

.screen-widget {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.widget-clock {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.widget-date {
  font-size: 0.65rem;
  color: var(--accent-gold-bright);
  font-weight: 700;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.screen-graph {
  margin-top: auto;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-amber-glow);
  border-radius: 16px;
  padding: 11px;
  backdrop-filter: blur(8px);
}

.graph-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.graph-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 42px;
  margin-top: 8px;
}

.bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent-gold), var(--accent-gold-bright));
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255, 122, 24, 0.4);
}

/* Phone Back */
.phone-back {
  transform: rotateY(180deg) translateZ(11px);
  background: linear-gradient(135deg, #1d1727 0%, #351e2b 50%, #16121f 100%);
  border: 4px solid #55342e;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.85);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.camera-island-3d {
  width: 104px;
  height: 104px;
  background: #0f0c16;
  border-radius: 28px;
  border: 2px solid #7c4c2d;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7), inset 0 0 14px rgba(255, 122, 24, 0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  transform: translateZ(8px);
}

.lens-ring {
  background: #000000;
  border-radius: 50%;
  border: 2.5px solid #ea580c;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.95);
}

.lens-glare {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 183, 3, 0.9) 0%, rgba(5, 241, 156, 0.45) 45%, transparent 80%);
}

.titanium-logo {
  margin-top: auto;
  align-self: center;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  font-weight: 800;
  color: var(--accent-gold-bright);
  opacity: 0.85;
}

/* Extruded Rails */
.phone-edge-left {
  position: absolute;
  width: 22px;
  height: 100%;
  left: -11px;
  top: 0;
  background: linear-gradient(to right, #503328, #30201a);
  transform: rotateY(-90deg);
  border-radius: 9px;
}

.phone-edge-right {
  position: absolute;
  width: 22px;
  height: 100%;
  right: -11px;
  top: 0;
  background: linear-gradient(to left, #503328, #30201a);
  transform: rotateY(90deg);
  border-radius: 9px;
}

.phone-edge-top {
  position: absolute;
  width: 100%;
  height: 22px;
  top: -11px;
  left: 0;
  background: #472d22;
  transform: rotateX(90deg);
  border-radius: 9px;
}

.phone-edge-bottom {
  position: absolute;
  width: 100%;
  height: 22px;
  bottom: -11px;
  left: 0;
  background: #331f18;
  transform: rotateX(-90deg);
  border-radius: 9px;
}

/* 3D Controls */
.model-controls {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: var(--space-2);
  z-index: 2;
}

.model-btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.model-control-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.model-control-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-gold-bright);
}

.model-control-btn.is-active {
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  color: #0c0910;
  border-color: transparent;
  box-shadow: 0 0 16px var(--accent-gold-glow);
}

.color-swatches {
  display: flex;
  gap: 8px;
  align-items: center;
}

.swatch-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s;
}

.swatch-btn:hover, .swatch-btn.is-active {
  transform: scale(1.22);
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.swatch-gold {
  background: linear-gradient(135deg, #ffb703, #ff7a18);
}

.swatch-emerald {
  background: linear-gradient(135deg, #05f19c, #065f46);
}

.swatch-obsidian {
  background: linear-gradient(135deg, #3f3f46, #09090b);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #ffb703 0%, #ff7a18 50%, #ff4d6d 100%);
  color: #0c0910 !important;
  font-weight: 800;
  font-size: 0.96rem;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(255, 122, 24, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 122, 24, 0.65);
  opacity: 0.98;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.96rem;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-amber-glow);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Comparator Section */
.comparator-section {
  padding: var(--space-6) 0;
}

.tool-wrapper {
  background: linear-gradient(180deg, rgba(26, 21, 34, 0.96) 0%, rgba(15, 12, 20, 0.98) 100%);
  border: 1px solid var(--border-amber-glow);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-gold-strong);
  position: relative;
  overflow: hidden;
}

.tool-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold-bright), var(--accent-copper), transparent);
}

.tool-header {
  text-align: center;
  margin-bottom: var(--space-5);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.tool-header h2 {
  margin-bottom: var(--space-2);
}

.selection-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) auto;
  gap: var(--space-3);
  align-items: flex-end;
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.picker-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.picker-label {
  font-size: 0.82rem;
  color: var(--accent-gold-bright);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.select-input {
  background: #171320;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-weight: 500;
  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='%23ffb703' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

.select-input:hover {
  border-color: var(--border-amber-glow);
}

.select-input:focus {
  border-color: var(--accent-gold-bright);
  outline: none;
  box-shadow: 0 0 16px rgba(255, 183, 3, 0.35);
}

.compare-actions {
  display: flex;
  align-items: flex-end;
}

/* Comparison Results Matrix */
.comparison-results-area {
  margin-top: var(--space-5);
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: #14101a;
  box-shadow: var(--shadow-card);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  text-align: left;
}

.spec-table th, .spec-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-table th {
  background: #1e1728;
  color: var(--text-main);
  font-weight: 700;
  vertical-align: top;
}

.spec-table th .phone-th-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-table th img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
}

.spec-table th span {
  font-size: 1.05rem;
  color: #ffffff;
}

.spec-table td {
  color: var(--text-muted);
  vertical-align: top;
  font-size: 0.94rem;
  line-height: 1.55;
}

.spec-table tr:hover td {
  background: rgba(255, 122, 24, 0.045);
}

.winner-banner {
  margin-top: var(--space-5);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.12) 0%, rgba(5, 241, 156, 0.09) 100%);
  border: 1px solid var(--border-amber-glow);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.winner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.winner-badge-card {
  background: rgba(21, 17, 28, 0.92);
  border: 1px solid var(--border-amber-glow);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, border-color 0.2s;
}

.winner-badge-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold-bright);
}

.winner-cat-name {
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--accent-gold-bright);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.winner-device-name {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 700;
}

.winner-device-reason {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* =========================================================
   NEW STYLE CARD: Curated Guides Editorial Data Cards
   ========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.data-card {
  background: linear-gradient(165deg, rgba(28, 22, 38, 0.88) 0%, rgba(17, 13, 23, 0.94) 100%);
  border: 1px solid rgba(255, 183, 3, 0.18);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 183, 3, 0.2);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
  position: relative;
  min-width: 0;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Futuristic illuminated accent rail at card top */
.data-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff7a18, #ffb703, #ff4d6d, #05f19c);
  opacity: 0.45;
  transition: opacity 0.35s ease, height 0.35s ease;
  z-index: 5;
}

.data-card:hover {
  border-color: rgba(255, 183, 3, 0.55);
  box-shadow: 0 24px 48px -10px rgba(0, 0, 0, 0.92), 0 0 32px rgba(255, 122, 24, 0.35);
  transform: translateY(-8px);
}

.data-card:hover::before {
  opacity: 1;
  height: 4px;
}

/* Media Box with Gradient Vignette and Zoom */
.media-card {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #14101c;
}

.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: brightness(0.92) contrast(1.05);
}

.data-card:hover .media-img {
  transform: scale(1.08);
  filter: brightness(1.02) contrast(1.08);
}

/* Dark cinematic vignette overlay */
.media-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 13, 0.25) 0%, rgba(10, 8, 13, 0.05) 50%, rgba(10, 8, 13, 0.88) 100%);
  pointer-events: none;
}

/* Technical HUD Index ID */
.media-id-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-gold-bright);
  background: rgba(14, 11, 20, 0.85);
  border: 1px solid rgba(255, 183, 3, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(10px);
  z-index: 3;
}

/* Cyber Floating Badge */
.media-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(16, 12, 24, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-amber-glow);
  color: var(--accent-gold-bright);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

/* Segmented Telemetry Chip Matrix */
.data-grid-header {
  background: rgba(14, 11, 20, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 14px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 180, 80, 0.08);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background-color 0.2s, border-color 0.2s;
}

.data-card:hover .stat-item {
  border-color: rgba(255, 183, 3, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.stat-value {
  font-size: 0.88rem;
  color: var(--accent-gold-bright);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Card Body */
.data-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--space-3);
}

.data-card-title {
  font-size: 1.32rem;
  color: var(--text-main);
  line-height: 1.3;
  transition: color 0.25s ease;
}

.data-card:hover .data-card-title {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 183, 3, 0.3);
}

.data-card-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.62;
  flex-grow: 1;
}

/* Card Footer and Modern Button Link */
.data-card-footer {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-gold-bright);
  background: rgba(255, 122, 24, 0.08);
  border: 1px solid rgba(255, 183, 3, 0.25);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.read-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 183, 3, 0.2);
  color: var(--accent-gold-bright);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.data-card:hover .read-link {
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  color: #0c0910;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(255, 122, 24, 0.5);
  transform: translateX(2px);
}

.data-card:hover .read-icon-box {
  background: rgba(12, 9, 16, 0.3);
  color: #0c0910;
  transform: translateX(3px);
}

/* Sections */
.section-spacer {
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
}

/* Article & Content Styling */
.article-header {
  padding: var(--space-5) 0 var(--space-4) 0;
  max-width: 900px;
}

.article-header h1 {
  margin-bottom: var(--space-3);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: var(--text-subtle);
  font-size: 0.88rem;
  font-weight: 600;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.article-featured-img-box {
  width: 100%;
  margin: var(--space-4) 0 var(--space-5) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card);
  background: #14101b;
}

.article-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.article-img-caption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: #171320;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.article-content {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-card);
}

.article-content h2 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
  color: #ffffff;
}

.article-content h3 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--accent-gold-bright);
}

.article-content ul, .article-content ol {
  margin-left: var(--space-4);
  margin-bottom: var(--space-4);
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.article-dual-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #171320;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #191424;
}

.comparison-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.spec-box {
  background: linear-gradient(180deg, #1c1628 0%, #130f1c 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}

.spec-box:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold-bright);
}

.spec-box h4 {
  color: var(--accent-gold-bright);
  font-size: 1.12rem;
  margin-bottom: var(--space-3);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-box p {
  font-size: 0.92rem;
  margin-bottom: 8px;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  background: #15111e;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-gold-bright);
  box-shadow: 0 0 16px rgba(255, 183, 3, 0.35);
  outline: none;
  background: #1b1526;
}

.form-control.is-invalid {
  border-color: var(--accent-coral);
}

.error-message {
  display: none;
  font-size: 0.8rem;
  color: #fb7185;
  margin-top: 6px;
  font-weight: 600;
}

.form-control.is-invalid + .error-message {
  display: block;
}

.alert-success {
  background: rgba(5, 241, 156, 0.16);
  border: 1px solid var(--accent-emerald);
  color: #a7f3d0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

/* Map Block */
.map-block {
  width: 100%;
  height: 300px;
  background: #130f1c;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.map-grid-decor {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 183, 3, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 183, 3, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.map-pin {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(25, 20, 34, 0.95);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-gold-bright);
  box-shadow: 0 0 32px rgba(255, 122, 24, 0.4);
  backdrop-filter: blur(10px);
}

/* Footer */
.site-footer {
  background: #08060c;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-6) 0 var(--space-5) 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr repeat(2, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-gold-bright);
}

.footer-bottom {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(16, 12, 24, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-amber-glow);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.88);
  padding: var(--space-4);
  z-index: 2000;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-cookie {
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-cookie-accept {
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  color: #0c0910;
  box-shadow: 0 0 16px var(--accent-gold-glow);
}

.btn-cookie-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(255, 122, 24, 0.6);
}

.btn-cookie-reject {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-cookie-pref {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .model-3d-wrapper {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

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

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

  .selection-bar {
    grid-template-columns: 1fr;
  }

  .compare-actions button {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .site-header {
    height: var(--header-height-mobile);
  }

  .hamburger-btn {
    display: flex;
  }

  /* Mobile menu anchors below the non-sticky header */
  .main-nav {
    position: absolute;
    top: var(--header-height-mobile);
    left: 0;
    width: 100%;
    min-height: calc(100vh - var(--header-height-mobile));
    background: rgba(14, 11, 20, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: none;
    flex-direction: column;
    padding: var(--space-4);
    overflow-y: auto;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-medium);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    gap: 8px;
  }

  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
  }

  .btn-cta-compact {
    display: none;
  }

  .stage-3d {
    height: 320px;
  }

  .phone-3d {
    width: 172px;
    height: 300px;
  }

  .article-content {
    padding: var(--space-4);
  }
}

@media (max-width: 420px) {
  .site-container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .data-grid-header {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .spec-table th, .spec-table td {
    padding: 12px 10px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}