/* ══════════════════════════════════════════════════════════════
   ELIAS Headphones X-Ray — Stylesheet
   ══════════════════════════════════════════════════════════════ */

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

:root {
  --white:   #ffffff;
  --near:    #f6f6f6;
  --text:    #0a0a0a;
  --sub:     #555555;
  --muted:   #888888;
  --border:  rgba(0,0,0,0.08);
  --green:   #10b981;
  --green-l: #34d399;
  --dark:    #0a0a0a;
  --dark2:   #111111;
  --radius:  6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */

.eh-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.eh-nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.eh-nav-logo span { color: var(--green); }

.eh-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.eh-nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.eh-nav-links a:hover { color: #fff; }
.eh-nav-links a.active { color: var(--green); }

.eh-nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  background: var(--green);
  padding: 9px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.eh-nav-cta:hover { background: var(--green-l); }

/* ── Dropdown ── */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.dropdown-arrow { transition: transform 0.2s; flex-shrink: 0; }
.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  list-style: none;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 14px 0 6px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 999;
}
.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-dropdown li + li { border-top: 1px solid rgba(255,255,255,0.04); }
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 500;
  color: #777;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-dropdown a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-dropdown a.active { color: var(--green); }
.nav-dropdown .dd-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); opacity: 0.5; flex-shrink: 0;
}
.nav-dropdown a:hover .dd-dot { opacity: 1; }
.nav-dropdown a.active .dd-dot { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */

.eh-hero {
  min-height: 100vh;
  padding-top: 64px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eh-hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eh-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
}

.eh-h1 {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 20px;
}
.eh-h1 em {
  font-style: normal;
  color: var(--sub);
  font-weight: 300;
}

.eh-hero-sub {
  font-size: 15px;
  font-weight: 400;
  color: var(--sub);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 52px;
}

/* ══════════════════════════════════════════════════════════════
   X-RAY SLIDER
   ══════════════════════════════════════════════════════════════ */

.xr-wrapper {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.xr-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 2752 / 1536;
  overflow: hidden;
  border-radius: 12px;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  background: var(--white);
  box-shadow: 0 2px 40px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
}

.xr-base,
.xr-top {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
  display: block;
}

/* Top (solid) image — clip from right, controlled by JS */
.xr-top {
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

/* Divider line */
.xr-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.95);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0,0,0,0.18);
  will-change: left;
}

/* Drag handle */
.xr-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.xr-slider:active .xr-handle {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 4px 28px rgba(0,0,0,0.22);
}

/* Labels on slider */
.xr-label {
  position: absolute;
  top: 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  pointer-events: none;
}
.xr-label-left {
  left: 16px;
  background: rgba(255,255,255,0.88);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.xr-label-right {
  right: 16px;
  background: rgba(10,10,10,0.72);
  color: #fff;
  backdrop-filter: blur(8px);
}

/* Drag hint below slider */
.xr-hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ══════════════════════════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════════════════════════ */

.eh-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  padding: 0;
}

.eh-stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eh-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 36px 24px;
}

.eh-stat-num {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.eh-stat-num span {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}
.eh-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.eh-stat-div {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   SHARED SECTION STYLES
   ══════════════════════════════════════════════════════════════ */

.eh-section {
  padding: 120px 24px;
}

.eh-container {
  max-width: 1000px;
  margin: 0 auto;
}

.eh-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.eh-label-light {
  color: rgba(16,185,129,0.8);
}

.eh-h2 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 56px;
}
.eh-h2-light {
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   MATERIALS
   ══════════════════════════════════════════════════════════════ */

.eh-materials {
  background: var(--near);
}

.eh-materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.eh-mat-card {
  background: var(--white);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.eh-mat-card:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.eh-mat-card:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }

.eh-mat-icon {
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.1em;
}

.eh-mat-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.eh-mat-card p {
  font-size: 14px;
  font-weight: 400;
  color: var(--sub);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   SOUND — dark section
   ══════════════════════════════════════════════════════════════ */

.eh-dark {
  background: var(--dark);
}

.eh-sound-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 56px;
  border: 1px solid rgba(255,255,255,0.06);
}

.eh-sound-spec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 28px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.eh-sound-spec:last-child { border-right: none; }

.eh-sound-key {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.eh-sound-val {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.eh-sound-copy {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  max-width: 680px;
}

/* ══════════════════════════════════════════════════════════════
   COMFORT & ANC
   ══════════════════════════════════════════════════════════════ */

.eh-comfort {
  background: var(--white);
}

.eh-comfort-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.eh-comfort-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eh-comfort-number {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
  line-height: 1;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 4px;
}

.eh-comfort-block p {
  font-size: 14px;
  font-weight: 400;
  color: var(--sub);
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════════
   SPECS TABLE
   ══════════════════════════════════════════════════════════════ */

.eh-specs {
  background: var(--near);
}

.eh-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.eh-specs-table tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.eh-specs-table tr:hover { background: rgba(0,0,0,0.02); }

.eh-specs-table td {
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top;
}
.eh-specs-table td:first-child {
  width: 40%;
  font-weight: 600;
  color: var(--text);
  padding-right: 24px;
}
.eh-specs-table td:last-child {
  color: var(--sub);
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════════════
   CTA
   ══════════════════════════════════════════════════════════════ */

.eh-cta {
  background: var(--dark);
  padding: 140px 24px;
  text-align: center;
}

.eh-cta .eh-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.eh-cta-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 24px;
}

.eh-cta-h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 48px;
}

.eh-cta-btns {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.eh-btn-primary {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  background: var(--green);
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: -0.01em;
}
.eh-btn-primary:hover { background: var(--green-l); }

.eh-btn-ghost {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: -0.01em;
}
.eh-btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════════════════════════════
   DEMO BADGE
   ══════════════════════════════════════════════════════════════ */

.eh-demo-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  background: rgba(10,10,10,0.80);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .eh-nav { padding: 0 24px; }
  .eh-nav-links { display: none; }

  .eh-materials-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .eh-mat-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .eh-mat-card:last-child  { border-radius: 0 0 var(--radius) var(--radius); }

  .eh-sound-grid { grid-template-columns: repeat(2, 1fr); }

  .eh-comfort-row { grid-template-columns: 1fr; gap: 32px; }

  .eh-stats-inner { flex-wrap: wrap; }
  .eh-stat { flex: 0 0 50%; }
  .eh-stat-div { display: none; }
}

@media (max-width: 600px) {
  .eh-section { padding: 80px 20px; }
  .eh-sound-grid { grid-template-columns: 1fr; }
  .eh-stat { flex: 0 0 50%; padding: 28px 16px; }
  .xr-wrapper { max-width: 100%; }
}
