/* ==========================================================================
   HOROLENS — Official Showcase Website Stylesheet
   Design System derived from HorologyTheme & WeishiPalette (WatchDrop iOS)
   ========================================================================== */

:root {
  /* Raw Brand Palette from SharedComponents.swift & TimegrapherView.swift */
  --gold-primary: #d6b069;
  --gold-light: #ebc785;
  --gold-dark: #ad8542;
  --sapphire-blue: #007aff;
  --sapphire-deep: #0d61e0;
  --emerald-green: #2ead73;
  --ruby-red: #e04747;
  --amethyst-purple: #9461f2;
  --titanium-slate: #8c94a3;

  /* Weishi Timegrapher Palette */
  --weishi-bg: #080d12;
  --weishi-card: #121a24;
  --weishi-scope: #050a0f;
  --weishi-cyan: #2eebe0;
  --weishi-green: #38e07a;
  --weishi-amber: #ffb833;
  --weishi-red: #f54747;

  /* Light & Dark Theme Token Pairs */
  --bg-canvas-light: #f6f7f9;
  --bg-canvas-dark: #07090e;

  --bg-elevated-light: #ffffff;
  --bg-elevated-dark: #10141f;

  --bg-subtle-light: #eef0f5;
  --bg-subtle-dark: #151b29;

  --bg-glass-light: rgba(255, 255, 255, 0.82);
  --bg-glass-dark: rgba(13, 17, 26, 0.82);

  --text-primary-light: #0d1117;
  --text-primary-dark: #f4f6fb;

  --text-secondary-light: #4b5565;
  --text-secondary-dark: #9ba5b7;

  --text-muted-light: #6e7889;
  --text-muted-dark: #697386;

  --border-subtle-light: rgba(13, 17, 23, 0.08);
  --border-subtle-dark: rgba(244, 246, 251, 0.08);

  --border-gold-light: rgba(173, 133, 66, 0.35);
  --border-gold-dark: rgba(214, 176, 105, 0.35);

  --shadow-card-light: 0 12px 32px -8px rgba(13, 17, 23, 0.07);
  --shadow-card-dark: 0 16px 40px -8px rgba(0, 0, 0, 0.55);

  --scrollbar-thumb-light: #b8c0cc;
  --scrollbar-thumb-dark: #2c3548;
  --scrollbar-track-light: #eef0f5;
  --scrollbar-track-dark: #0b0e16;

  /* Default Fallback Assignments (Light) */
  --bg-canvas: var(--bg-canvas-light);
  --bg-elevated: var(--bg-elevated-light);
  --bg-subtle: var(--bg-subtle-light);
  --bg-glass: var(--bg-glass-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --text-muted: var(--text-muted-light);
  --border-subtle: var(--border-subtle-light);
  --border-gold: var(--border-gold-light);
  --shadow-card: var(--shadow-card-light);
  --scrollbar-thumb: var(--scrollbar-thumb-light);
  --scrollbar-track: var(--scrollbar-track-light);

  /* Fallback for browsers without light-dark() support */
  @media (prefers-color-scheme: dark) {
    --bg-canvas: var(--bg-canvas-dark);
    --bg-elevated: var(--bg-elevated-dark);
    --bg-subtle: var(--bg-subtle-dark);
    --bg-glass: var(--bg-glass-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-muted: var(--text-muted-dark);
    --border-subtle: var(--border-subtle-dark);
    --border-gold: var(--border-gold-dark);
    --shadow-card: var(--shadow-card-dark);
    --scrollbar-thumb: var(--scrollbar-thumb-dark);
    --scrollbar-track: var(--scrollbar-track-dark);
  }

  /* Modern CSS light-dark() resolution */
  @supports (color: light-dark(white, black)) {
    --bg-canvas: light-dark(var(--bg-canvas-light), var(--bg-canvas-dark));
    --bg-elevated: light-dark(var(--bg-elevated-light), var(--bg-elevated-dark));
    --bg-subtle: light-dark(var(--bg-subtle-light), var(--bg-subtle-dark));
    --bg-glass: light-dark(var(--bg-glass-light), var(--bg-glass-dark));
    --text-primary: light-dark(var(--text-primary-light), var(--text-primary-dark));
    --text-secondary: light-dark(var(--text-secondary-light), var(--text-secondary-dark));
    --text-muted: light-dark(var(--text-muted-light), var(--text-muted-dark));
    --border-subtle: light-dark(var(--border-subtle-light), var(--border-subtle-dark));
    --border-gold: light-dark(var(--border-gold-light), var(--border-gold-dark));
    --shadow-card: light-dark(var(--shadow-card-light), var(--shadow-card-dark));
    --scrollbar-thumb: light-dark(var(--scrollbar-thumb-light), var(--scrollbar-thumb-dark));
    --scrollbar-track: light-dark(var(--scrollbar-track-light), var(--scrollbar-track-dark));
  }

  /* MANDATORY: Viewport-wide native UI adaptation */
  color-scheme: light dark;
  accent-color: var(--gold-primary);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);

  /* Typography & Layout Tokens */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-serif: "New York", "Playfair Display", Georgia, serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max-width: 78rem;
  --radius-sm: 0.75rem;
  --radius-md: 1.125rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

/* Explicit User Theme Overrides */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-canvas: var(--bg-canvas-dark);
  --bg-elevated: var(--bg-elevated-dark);
  --bg-subtle: var(--bg-subtle-dark);
  --bg-glass: var(--bg-glass-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --text-muted: var(--text-muted-dark);
  --border-subtle: var(--border-subtle-dark);
  --border-gold: var(--border-gold-dark);
  --shadow-card: var(--shadow-card-dark);
  --scrollbar-thumb: var(--scrollbar-thumb-dark);
  --scrollbar-track: var(--scrollbar-track-dark);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-canvas: var(--bg-canvas-light);
  --bg-elevated: var(--bg-elevated-light);
  --bg-subtle: var(--bg-subtle-light);
  --bg-glass: var(--bg-glass-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --text-muted: var(--text-muted-light);
  --border-subtle: var(--border-subtle-light);
  --border-gold: var(--border-gold-light);
  --shadow-card: var(--shadow-card-light);
  --scrollbar-thumb: var(--scrollbar-thumb-light);
  --scrollbar-track: var(--scrollbar-track-light);
}

/* Legacy scrollbar fallback for older engines */
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
  }
  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  text-align: start;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

::selection {
  background-color: rgba(214, 176, 105, 0.28);
  color: var(--text-primary);
}

/* Targeted Text Wrapping per modern-web-guidance */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

p,
li,
dd,
blockquote {
  text-wrap: pretty;
}

p {
  max-width: 72ch;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Utility & Layout Containers */
.container {
  width: min(var(--max-width), 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 7vw, 7rem);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: clamp(2.75rem, 5vw, 4.25rem);
}

.section-header p {
  margin-inline: auto;
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem);
  margin-top: 0.9rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: rgba(214, 176, 105, 0.12);
  border: 1px solid var(--border-gold);
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.85rem, 1.35rem + 2.2vw, 3rem);
  font-weight: 800;
}

.gold-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sapphire-text {
  background: linear-gradient(135deg, #4da3ff, var(--sapphire-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   1. STICKY HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.brand-icon {
  width: 2.35rem;
  height: 2.35rem;
  aspect-ratio: 1 / 1;
  border-radius: 0.6rem;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0;
}

.brand-version {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.14);
  color: var(--sapphire-blue);
  letter-spacing: 0.02em;
}

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

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text-primary);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.15rem;
}

.lang-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: var(--text-secondary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn[aria-pressed="true"] {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-btn:hover {
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-dark));
  color: #090b10;
  box-shadow: 0 8px 24px -6px rgba(214, 176, 105, 0.45);
}

.btn-sapphire {
  background: linear-gradient(135deg, #218bff, var(--sapphire-deep));
  color: #ffffff;
  box-shadow: 0 8px 24px -6px rgba(0, 122, 255, 0.45);
}

.btn-outline {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--gold-primary);
}

/* ==========================================================================
   2. HERO SECTION & INTERACTIVE IPHONE MOCKUP
   ========================================================================== */
.hero {
  min-height: calc(100dvh - 4.5rem);
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 5rem);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -15% -10% auto -10%;
  height: 42rem;
  background:
    radial-gradient(circle at 22% 30%, rgba(214, 176, 105, 0.14), transparent 52%),
    radial-gradient(circle at 78% 25%, rgba(0, 122, 255, 0.14), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4.1rem);
  font-weight: 850;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.hero-trust-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.trust-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.55rem;
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  font-size: 0.95rem;
}

.trust-badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.trust-badge-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.trust-badge-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Interactive iPhone 16 Pro Device Frame with Real iOS Screenshots */
.iphone-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.iphone-frame {
  width: min(100%, 21.25rem);
  background: linear-gradient(145deg, #2a3040, #0d1018 55%, #1d2230);
  color: #f4f6fb;
  border-radius: 3.15rem;
  padding: 0.65rem;
  border: 2px solid rgba(214, 176, 105, 0.35);
  box-shadow:
    0 30px 65px -15px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  position: relative;
}

.iphone-screen {
  background: #000000;
  border-radius: 2.55rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1206 / 2622;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dynamic-island {
  position: absolute;
  top: 1.45%;
  left: 50%;
  transform: translateX(-50%);
  width: 28.5%;
  height: 3.05%;
  background: #050507;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-inline: 0.55rem;
}

.island-lens {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #253861, #090d16 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-screen-pane {
  width: 100%;
  height: 100%;
}

.app-screen-pane[hidden] {
  display: none !important;
}

.app-screenshot-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Clickable Overlay directly over the Screenshot's Native iOS TabBar */
.iphone-native-tab-overlay {
  position: absolute;
  bottom: 1.55%;
  left: 5.2%;
  right: 5.2%;
  height: 7.6%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 6;
  border-radius: 999px;
}

.native-tab-hit {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  transition: background-color 0.15s ease;
}

.native-tab-hit:hover {
  background: rgba(255, 255, 255, 0.06);
}

.native-tab-hit:focus-visible {
  outline: 2px solid var(--sapphire-blue);
  outline-offset: -2px;
}

.mock-wrist-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(214, 176, 105, 0.16);
  border: 1px solid rgba(214, 176, 105, 0.4);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

/* ==========================================================================
   3. BENTO GRID — COMPLETE FEATURE ARCHITECTURE (@container enabled)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.35rem;
}

.bento-card {
  container-type: inline-size;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.05rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
}

.span-8 {
  grid-column: span 8;
}
.span-6 {
  grid-column: span 6;
}
.span-4 {
  grid-column: span 4;
}
.span-12 {
  grid-column: span 12;
}

.card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.icon-halo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.halo-sapphire {
  background: rgba(0, 122, 255, 0.14);
  color: var(--sapphire-blue);
  border-color: rgba(0, 122, 255, 0.28);
}

.halo-gold {
  background: rgba(214, 176, 105, 0.15);
  color: var(--gold-primary);
  border-color: rgba(214, 176, 105, 0.32);
}

.halo-emerald {
  background: rgba(46, 173, 115, 0.15);
  color: var(--emerald-green);
  border-color: rgba(46, 173, 115, 0.32);
}

.halo-amethyst {
  background: rgba(148, 97, 242, 0.15);
  color: var(--amethyst-purple);
  border-color: rgba(148, 97, 242, 0.32);
}

.halo-ruby {
  background: rgba(224, 71, 71, 0.15);
  color: var(--ruby-red);
  border-color: rgba(224, 71, 71, 0.32);
}

.pill-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.bento-title {
  font-size: clamp(1.25rem, 1.05rem + 0.65vw, 1.6rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.bento-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.spec-pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.68rem;
  border-radius: 0.6rem;
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

/* Container query inside Bento Card */
@container (min-width: 34rem) {
  .bento-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: center;
  }
}

/* ==========================================================================
   4. INTERACTIVE HOROLOGICAL WORKBENCH (LIVE TOOLS DEMO)
   ========================================================================== */
.workbench-shell {
  background: var(--weishi-bg);
  color: #f4f6fb;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(214, 176, 105, 0.3);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.workbench-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: #0d141e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wb-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #9ba5b7;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.wb-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.wb-tab-btn[aria-selected="true"] {
  color: #090b10;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  border-color: var(--gold-light);
}

.workbench-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.workbench-panel[hidden] {
  display: none !important;
}

/* Weishi Timegrapher LCD & Oscilloscope */
.weishi-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
}

.weishi-lcd-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lcd-box {
  background: var(--weishi-card);
  border: 1px solid #293847;
  border-radius: 0.85rem;
  padding: 0.75rem;
  text-align: center;
}

.lcd-label {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8c94a3;
  display: block;
  margin-bottom: 0.25rem;
}

.lcd-val {
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
  font-weight: 800;
  color: var(--weishi-cyan);
}

.lcd-val.green {
  color: var(--weishi-green);
}

.lcd-val.amber {
  color: var(--weishi-amber);
}

.scope-canvas-wrap {
  background: var(--weishi-scope);
  border: 1px solid #293847;
  border-radius: 1rem;
  padding: 0.75rem;
  position: relative;
}

#timegrapherCanvas {
  width: 100%;
  height: 11.5rem;
  display: block;
  border-radius: 0.5rem;
}

.iso-positions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}

.iso-pos-btn {
  background: var(--weishi-card);
  border: 1px solid #293847;
  border-radius: 0.75rem;
  padding: 0.65rem;
  text-align: start;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.iso-pos-btn[aria-pressed="true"] {
  border-color: var(--weishi-cyan);
  background: rgba(46, 235, 224, 0.1);
}

.iso-pos-code {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--weishi-cyan);
  display: flex;
  justify-content: space-between;
}

.iso-pos-name {
  font-size: 0.72rem;
  color: #9ba5b7;
  margin-top: 0.15rem;
}

/* Atomic Clock & Moon Phase Panel */
.clock-moon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.atomic-box,
.moon-box {
  background: var(--weishi-card);
  border: 1px solid #293847;
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.digital-atomic-readout {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin-block: 0.65rem;
}

.danger-zone-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 1rem;
}

.danger-zone-banner.safe {
  background: rgba(46, 173, 115, 0.15);
  border: 1px solid rgba(46, 173, 115, 0.4);
  color: #5ce6a0;
}

.danger-zone-banner.danger {
  background: rgba(224, 71, 71, 0.18);
  border: 1px solid rgba(224, 71, 71, 0.45);
  color: #ff7b7b;
}

/* Magnetic Detector Demo */
.mag-meter-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
}

.mag-gauge-circle {
  width: 13.5rem;
  height: 13.5rem;
  border-radius: 50%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid var(--emerald-green);
  background: radial-gradient(circle, rgba(46, 173, 115, 0.14), transparent 70%);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.mag-val-readout {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
}

/* ==========================================================================
   5. WIDGETS & APPLE ECOSYSTEM SHOWCASE
   ========================================================================== */
.widgets-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.ios-widget-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 1.65rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.widget-preview-stage {
  background: radial-gradient(circle at 50% 25%, rgba(0, 122, 255, 0.12), rgba(11, 14, 23, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem;
  min-height: 15.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Authentic iOS Widget Shells inside the Stage */
.ios-widget-shell {
  background: #161c2a;
  color: #f4f6fb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.35rem;
  padding: 0.95rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.ios-widget-shell.size-small {
  width: 10.2rem;
  height: 10.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.ios-widget-shell.size-medium {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ios-widget-shell.size-large {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.widget-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #9ba5b7;
  text-transform: uppercase;
}

.widget-medium-cols {
  display: grid;
  grid-template-columns: 0.85fr 1px 1.15fr;
  gap: 0.75rem;
  align-items: center;
}

.widget-col-divider {
  width: 1px;
  height: 100%;
  min-height: 4.2rem;
  background: rgba(255, 255, 255, 0.1);
}

.widget-ring-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.podium-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
}

.medal-dot {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #090b10;
}

.medal-gold { background: #ebc259; }
.medal-silver { background: #bfc7d1; }
.medal-bronze { background: #cc8559; }

.ecosystem-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   6. PRICING TABLE (FREEMIUM VS HOROLENS PRO 7,99 € LIFETIME)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  max-width: 62rem;
  margin-inline: auto;
}

.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.pricing-card.pro-tier {
  border: 2px solid var(--gold-primary);
  box-shadow: 0 20px 50px -12px rgba(214, 176, 105, 0.25);
}

.price-tag {
  font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3.1rem);
  font-weight: 850;
  line-height: 1;
  margin-block: 0.5rem;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.feature-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-block: 1rem;
}

.feature-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.94rem;
}

.check-icon {
  color: var(--emerald-green);
  font-weight: 800;
  flex-shrink: 0;
}

.check-icon.gold {
  color: var(--gold-primary);
}

/* ==========================================================================
   7. FAQ ACCORDION (<details name="horolens-faq">)
   ========================================================================== */
.faq-list {
  max-width: 52rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-gold);
}

.faq-item summary {
  padding: 1.15rem 1.4rem;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  transition: transform 0.25s ease;
  color: var(--gold-primary);
  font-weight: 800;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.4rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  padding-block: 3.5rem 2.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  margin-bottom: 0.9rem;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

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

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 64rem) {
  .hero-grid,
  .weishi-grid,
  .clock-moon-grid,
  .mag-meter-wrap,
  .widgets-showcase,
  .ecosystem-duo-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .span-8,
  .span-6,
  .span-4 {
    grid-column: span 12;
  }

  .main-nav {
    display: none;
  }

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

@media (max-width: 40rem) {
  .hero-trust-badges {
    grid-template-columns: 1fr;
  }

  .weishi-lcd-bar {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

