/* ============================================================
   JDK Technologies — Coming Soon Template · "Aurum Noir"
   ------------------------------------------------------------
   1. Theme tokens (colors live here)
   2. Base & accessibility
   3. Background layers
   4. Frame & top bar
   5. Hero: dial, badge, title, subtitle
   6. Buttons
   7. Countdown
   8. Contact card
   9. Footer
   10. Reveal states & motion preferences
   11. Keyframes
   12. Responsive
   ============================================================ */


/* ------------------------------------------------------------
   1. THEME TOKENS
   Each theme is a set of CSS variables. To change colors,
   edit the values in the theme you use. --webgl-* values
   are read by the 3D scene and must stay as hex.
   ------------------------------------------------------------ */

:root,
[data-theme="dark"] {                    /* Aurum Noir */
  --bg:           #060a08;
  --glow-a:       oklch(0.36 0.07 160 / .9);
  --glow-b:       oklch(0.42 0.09 85 / .35);
  --ink:          #f4f1e7;
  --muted:        #aaa699;
  --faint:        #8f8c80;
  --gold:         oklch(0.80 0.12 90);
  --gold-hi:      oklch(0.93 0.09 95);
  --gold-lo:      oklch(0.66 0.13 86);
  --gold-pale:    oklch(0.88 0.05 92);
  --line:         oklch(0.72 0.10 90 / .2);
  --line-strong:  oklch(0.72 0.10 90 / .42);
  --glass:        rgba(0, 0, 0, .32);
  --glass-strong: rgba(255, 255, 255, .05);
  --btn-ink:      #0b0f0c;
  --stone:        oklch(0.27 0.05 160);
  --stone-deep:   #030605;
  --dot:          oklch(0.80 0.12 92 / .16);
  --grain:        .07;
  --webgl-metal:  #d8b660;
  --webgl-stone:  #0f3a2c;
  --webgl-light:  #fff1d6;
}

[data-theme="corporate"] {               /* Corporate Blue */
  --bg:           #050912;
  --glow-a:       oklch(0.36 0.10 258 / .9);
  --glow-b:       oklch(0.50 0.10 225 / .3);
  --ink:          #eef2f9;
  --muted:        #a3acbf;
  --faint:        #8791a6;
  --gold:         oklch(0.82 0.07 235);
  --gold-hi:      oklch(0.95 0.03 235);
  --gold-lo:      oklch(0.64 0.11 250);
  --gold-pale:    oklch(0.88 0.04 235);
  --line:         oklch(0.75 0.07 240 / .2);
  --line-strong:  oklch(0.75 0.07 240 / .42);
  --glass:        rgba(0, 0, 0, .3);
  --glass-strong: rgba(255, 255, 255, .05);
  --btn-ink:      #06101f;
  --stone:        oklch(0.30 0.08 258);
  --stone-deep:   #020409;
  --dot:          oklch(0.82 0.07 235 / .16);
  --grain:        .07;
  --webgl-metal:  #b9c8e0;
  --webgl-stone:  #10254d;
  --webgl-light:  #eaf2ff;
}

[data-theme="gold"] {                    /* Luxury Gold */
  --bg:           #0a0806;
  --glow-a:       oklch(0.33 0.05 65 / .9);
  --glow-b:       oklch(0.48 0.11 82 / .35);
  --ink:          #f6f0e2;
  --muted:        #b0a791;
  --faint:        #948b76;
  --gold:         oklch(0.80 0.13 82);
  --gold-hi:      oklch(0.92 0.10 90);
  --gold-lo:      oklch(0.62 0.13 72);
  --gold-pale:    oklch(0.88 0.06 86);
  --line:         oklch(0.74 0.11 82 / .22);
  --line-strong:  oklch(0.74 0.11 82 / .44);
  --glass:        rgba(0, 0, 0, .35);
  --glass-strong: rgba(255, 255, 255, .05);
  --btn-ink:      #120c04;
  --stone:        oklch(0.22 0.02 60);
  --stone-deep:   #050403;
  --dot:          oklch(0.80 0.13 82 / .16);
  --grain:        .07;
  --webgl-metal:  #e2b95a;
  --webgl-stone:  #1a140c;
  --webgl-light:  #fff0cf;
}

[data-theme="white"] {                   /* Minimal White */
  --bg:           #f6f3ec;
  --glow-a:       oklch(0.97 0.03 95 / 1);
  --glow-b:       oklch(0.90 0.04 160 / .6);
  --ink:          #17160f;
  --muted:        #56524a;
  --faint:        #6e695d;
  --gold:         oklch(0.52 0.09 75);
  --gold-hi:      oklch(0.55 0.10 78);
  --gold-lo:      oklch(0.38 0.07 65);
  --gold-pale:    oklch(0.42 0.07 70);
  --line:         rgba(23, 22, 15, .12);
  --line-strong:  rgba(23, 22, 15, .26);
  --glass:        rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 255, 255, .75);
  --btn-ink:      #fbf8f1;
  --stone:        #fbf9f4;
  --stone-deep:   oklch(0.84 0.02 85);
  --dot:          rgba(23, 22, 15, .12);
  --grain:        .05;
  --webgl-metal:  #b08a3e;
  --webgl-stone:  #efe9dc;
  --webgl-light:  #ffffff;
}

:root {
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans:  "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease:  cubic-bezier(.16, 1, .3, 1);
}


/* ------------------------------------------------------------
   2. BASE & ACCESSIBILITY
   ------------------------------------------------------------ */

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--gold-hi); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold-hi);
  color: var(--btn-ink);
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; color: var(--btn-ink); }


/* ------------------------------------------------------------
   3. BACKGROUND LAYERS
   ------------------------------------------------------------ */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% -5%, var(--glow-a), transparent 70%),
    radial-gradient(60% 45% at 50% 108%, var(--glow-b), transparent 70%);
}

/* Animated gradient — main background when 3D is off / unavailable */
.bg-aurora {
  position: absolute;
  inset: 0;
  transition: opacity 1.6s var(--ease);
}
.bg-aurora::before,
.bg-aurora::after {
  content: "";
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(40px);
  will-change: transform;
}
.bg-aurora::before {
  top: -35vmax; left: -20vmax;
  background: radial-gradient(circle, var(--glow-a), transparent 65%);
  animation: aurora-a 22s ease-in-out infinite alternate;
}
.bg-aurora::after {
  bottom: -40vmax; right: -25vmax;
  background: radial-gradient(circle, var(--glow-b), transparent 65%);
  animation: aurora-b 26s ease-in-out infinite alternate;
}
.is-3d .bg-aurora { opacity: .35; }
.is-3d .bg-aurora::before,
.is-3d .bg-aurora::after { animation-play-state: paused; }

.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(circle at 50% 36%, transparent 28%, #000 85%);
          mask-image: radial-gradient(circle at 50% 36%, transparent 28%, #000 85%);
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.is-3d #scene { opacity: 1; }

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: var(--grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="white"] .bg-grain { mix-blend-mode: multiply; }


/* ------------------------------------------------------------
   4. FRAME & TOP BAR
   ------------------------------------------------------------ */

.frame {
  position: fixed;
  inset: clamp(10px, 1.6vw, 20px);
  z-index: 2;
  pointer-events: none;
}
.frame i {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--line-strong);
}
.frame i:nth-child(1) { top: 0;    left: 0;  border-top-width: 1px;    border-left-width: 1px; }
.frame i:nth-child(2) { top: 0;    right: 0; border-top-width: 1px;    border-right-width: 1px; }
.frame i:nth-child(3) { bottom: 0; left: 0;  border-bottom-width: 1px; border-left-width: 1px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px) clamp(24px, 3vw, 36px);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.meta-link {
  justify-self: end;
  padding: 6px 0;
  position: relative;
}
.meta-link::after {
  content: "";
  position: absolute;
  left: 0; right: .24em; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.meta-link:hover::after { transform: scaleX(1); transform-origin: left; }

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.brand-logo {
  width: auto;
  height: clamp(60px, 5.4vw, 84px);
  max-width: 220px;
  object-fit: contain;
}
.brand-mono {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--gold-hi), var(--gold-lo) 60%, var(--stone-deep));
  box-shadow: 0 0 28px -4px var(--gold-lo), inset 0 1px 0 rgba(255, 255, 255, .45);
  color: var(--btn-ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
}
.brand-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-tagline {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.brand-tagline:empty { display: none; }


/* ------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------ */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(8px, 2vh, 24px);
}

/* Dial slot: the 3D object is positioned over this box */
.dial-wrap { will-change: transform; }

.dial-slot {
  --dial: clamp(220px, 40vh, 420px);
  position: relative;
  width: min(var(--dial), 78vw);
  aspect-ratio: 1;
  margin: clamp(4px, 1.5vh, 20px) auto clamp(18px, 3.4vh, 40px);
}

.dial-css { position: absolute; inset: 0; transition: opacity 1.4s var(--ease); }
.is-3d .dial-css { opacity: 0; }
.dial-css > span { position: absolute; border-radius: 50%; }

.dial-orbit { inset: 0; border: 1px solid var(--line); }

.dial-ticks {
  inset: 5%;
  background: repeating-conic-gradient(var(--gold) 0deg .7deg, transparent .7deg 6deg);
  -webkit-mask: radial-gradient(closest-side, transparent 91%, #000 92%, #000 98%, transparent 99%);
          mask: radial-gradient(closest-side, transparent 91%, #000 92%, #000 98%, transparent 99%);
  opacity: .6;
  animation: spin 180s linear infinite;
}

.dial-bezel {
  inset: 13%;
  background: conic-gradient(from 90deg, var(--gold-hi), var(--gold-lo) 18%, var(--stone-deep) 34%, var(--gold) 52%, var(--gold-lo) 72%, var(--gold-hi));
  -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 89%, #000 99%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 88%, #000 89%, #000 99%, transparent 100%);
  animation: spin 40s linear infinite;
}

.dial-stone {
  inset: 21%;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, .16), transparent 50%),
    radial-gradient(circle at 50% 50%, var(--stone), var(--stone-deep) 76%);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .75), 0 40px 90px -40px var(--gold-lo);
  animation: float 9s ease-in-out infinite;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-pale);
  white-space: nowrap;
}
.badge-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 12px var(--gold);
}
.badge-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: ping 2.4s var(--ease) infinite;
}

/* Title */
.title {
  margin-top: clamp(18px, 3vh, 28px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8.4vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.025em;
  color: var(--ink);
}
.title-line { display: block; }
.title-line:first-child {             /* "Website" — modern sans contrast */
  font-family: var(--sans);
  font-weight: 500;
  font-size: .62em;
  letter-spacing: -.045em;
  line-height: 1;
  margin-bottom: .06em;
}
.title-accent {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .82em;
  letter-spacing: -.035em;
  line-height: .95;
  padding: 0 .08em .08em;
  background: linear-gradient(100deg, var(--gold-hi) 0%, var(--gold-lo) 50%, var(--gold-hi) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite;
}

.subtitle {
  max-width: 34rem;
  margin-top: clamp(18px, 2.6vh, 26px);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.72;
  color: var(--muted);
  text-wrap: pretty;
}


/* ------------------------------------------------------------
   6. BUTTONS
   ------------------------------------------------------------ */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(26px, 4vh, 36px);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow .5s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease), color .3s var(--ease);
}
.btn > * { position: relative; z-index: 1; }

.btn-primary {
  background: linear-gradient(150deg, var(--gold-hi), var(--gold-lo));
  color: var(--btn-ink);
  box-shadow: 0 18px 40px -20px var(--gold), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary::after {                     /* light sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn-primary:hover { color: var(--btn-ink); box-shadow: 0 24px 50px -18px var(--gold), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-arrow { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: var(--glass);
  color: var(--gold-pale);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--ink); background-color: var(--glass-strong); }


/* ------------------------------------------------------------
   7. COUNTDOWN
   ------------------------------------------------------------ */

.details {
  display: grid;
  gap: 14px;
  width: min(100%, 880px);
  margin-top: clamp(48px, 9vh, 96px);
}
.details:empty { display: none; }

.rule-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-pale);
  white-space: nowrap;
}
.rule-title::before,
.rule-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}
.rule-title::after { background: linear-gradient(90deg, var(--line-strong), transparent); }
.rule-sep { color: var(--gold); }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 14px);
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 2.4vw, 24px) 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  transition: border-color .4s var(--ease), transform .6s var(--ease);
}
.cd-unit:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.cd-num {
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.cd-lbl {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}


/* ------------------------------------------------------------
   8. CONTACT CARD
   ------------------------------------------------------------ */

.card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--glass-strong), var(--glass));
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  text-align: left;
}

.card-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.1;
  color: var(--ink);
  max-width: 11ch;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px 24px;
}
.card-list li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.card-k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.card-v {
  align-self: flex-start;
  max-width: 100%;
  font-size: 15px;
  color: var(--ink);
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s var(--ease);
}
.card-v:hover { background-size: 100% 1px; }


/* ------------------------------------------------------------
   9. FOOTER
   ------------------------------------------------------------ */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-top: clamp(44px, 8vh, 80px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}
.footer a { color: var(--gold-pale); }
.footer a:hover { color: var(--gold-hi); }


/* ------------------------------------------------------------
   10. REVEAL STATES & MOTION PREFERENCES
   Elements start hidden only when JS is running; GSAP fades
   them in. If anything fails, .reveal-all shows everything.
   ------------------------------------------------------------ */

.js .reveal { opacity: 0; }
.reveal-all .reveal { opacity: 1 !important; visibility: visible !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; }
}


/* ------------------------------------------------------------
   11. KEYFRAMES
   ------------------------------------------------------------ */

@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes float   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3%); } }
@keyframes ping    { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes sheen   { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes aurora-a { to { transform: translate3d(18vmax, 12vmax, 0) scale(1.15); } }
@keyframes aurora-b { to { transform: translate3d(-16vmax, -10vmax, 0) scale(1.1); } }


/* ------------------------------------------------------------
   12. RESPONSIVE
   ------------------------------------------------------------ */

/* Touch devices: no sticky hover lifts */
@media (hover: none) {
  .cd-unit:hover { transform: none; }
  .btn-primary:hover::after { transform: translateX(-120%); }
}

/* Tablet */
@media (max-width: 900px) {
  .details { margin-top: clamp(40px, 7vh, 72px); }
  .title { font-size: clamp(2.8rem, 10vw, 5.5rem); }
}

/* Large phone / small tablet */
@media (max-width: 720px) {
  .page {
    padding-left:  max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
  .card { grid-template-columns: 1fr; gap: 14px; border-radius: 20px; }
  .card-title { max-width: none; }
  .card-list { grid-template-columns: 1fr; gap: 0; }
  .card-list li {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }
  .card-v { text-align: right; align-self: auto; font-size: 14px; }
  .rule-title { font-size: 9.5px; letter-spacing: .2em; }
}

/* Phone */
@media (max-width: 560px) {
  .frame { inset: 8px; }
  .frame i { width: 10px; height: 10px; }
  .topbar { grid-template-columns: 1fr; }
  .topbar .meta { display: none; }
  .brand-tagline { white-space: normal; max-width: 26ch; line-height: 1.6; }
  .dial-slot { --dial: clamp(180px, 32vh, 300px); width: min(var(--dial), 72vw); }
  .badge { font-size: 9.5px; letter-spacing: .18em; padding: 6px 14px 6px 11px; }
  .title { font-size: clamp(2.5rem, 13vw, 4rem); }
  .subtitle { font-size: 15px; line-height: 1.65; }
  .actions { width: 100%; flex-direction: column; gap: 10px; }
  .btn { width: 100%; min-height: 52px; padding: 0 22px; }
  .details { margin-top: 44px; }
  .countdown { gap: 8px; }
  .cd-unit { border-radius: 18px; padding: 14px 2px; }
  .cd-num { font-size: clamp(26px, 8vw, 36px); }
  .cd-lbl { font-size: 8px; letter-spacing: .14em; }
  .card { padding: 20px; }
  .footer { font-size: 9px; letter-spacing: .14em; margin-top: 40px; }
}

/* Small phone (iPhone SE, Galaxy Fold closed) */
@media (max-width: 380px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .title { font-size: 2.35rem; }
  .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-unit { padding: 12px 4px; }
  .card-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .card-v { text-align: left; }
  .footer { flex-direction: column; align-items: center; letter-spacing: .12em; }
}

/* Phones in landscape: short viewport */
@media (max-height: 520px) and (orientation: landscape) {
  .page { padding-top: 20px; }
  .dial-slot { --dial: 150px; margin: 8px auto 16px; }
  .title { font-size: clamp(2.2rem, 6vw, 3.4rem); }
  .actions { flex-direction: row; width: auto; }
  .btn { width: auto; }
  .details { margin-top: 32px; }
}

@media (min-width: 1600px) {
  .dial-slot { --dial: clamp(260px, 42vh, 480px); }
}


/* ------------------------------------------------------------
   13. SINGLE-SCREEN LAYOUT (iNSMART HAVEN)
   Everything fits one viewport — no page scroll.
   Sizes are driven by viewport height so short screens
   shrink the dial first, then the type.
   ------------------------------------------------------------ */

html, body { height: 100%; overflow: hidden; }
body { min-height: 0; }

.page {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding-top: clamp(16px, 3.2vh, 40px);
  padding-bottom: clamp(12px, 2.4vh, 28px);
}

/* Logo: large, centred, the hero of the page */
.topbar { align-items: center; }
.brand { gap: 0; }
.brand-logo {
  height: auto;
  width: clamp(260px, 38vw, 560px);
  max-width: min(88vw, 60vh * 4.6);
}

.hero {
  justify-content: center;
  min-height: 0;
  padding-top: 0;
}

.dial-slot {
  --dial: clamp(110px, 30vh, 340px);
  width: min(var(--dial), 64vw);
  margin: 0 auto clamp(12px, 2.6vh, 32px);
  flex-shrink: 1;
}

.badge { margin-bottom: 0; }
.title { margin-top: clamp(10px, 2vh, 22px); font-size: clamp(2.4rem, min(8.4vw, 12vh), 7rem); }
.subtitle { margin-top: clamp(10px, 2vh, 22px); }
.actions { margin-top: clamp(16px, 3vh, 32px); }

/* Countdown / contact card still fit when turned on */
.details { margin-top: clamp(16px, 3vh, 40px); }

.footer {
  margin-top: clamp(12px, 2.4vh, 28px);
  padding-top: clamp(10px, 1.8vh, 18px);
}

/* Echo the logo's blue circuit glow at the bottom */
.bg-glow {
  background:
    radial-gradient(70% 55% at 50% -5%, var(--glow-a), transparent 70%),
    radial-gradient(60% 45% at 50% 108%, var(--glow-b), transparent 70%),
    radial-gradient(40% 30% at 50% 112%, rgba(30, 120, 255, .16), transparent 70%);
}

@media (max-width: 900px) {
  .brand-logo { width: clamp(260px, 62vw, 480px); }
}

@media (max-width: 560px) {
  .brand-logo { width: min(86vw, 380px); }
  .dial-slot { --dial: clamp(100px, 26vh, 240px); width: min(var(--dial), 62vw); }
  .title { font-size: clamp(2.1rem, min(12vw, 8vh), 3.4rem); }
  .subtitle { font-size: 14px; line-height: 1.6; max-width: 30ch; }
  .actions { width: 100%; max-width: 340px; }
  .btn { min-height: 48px; }
  .footer { margin-top: 12px; }
}

/* Short screens (small phones, landscape): drop the dial first */
@media (max-height: 640px) {
  .dial-slot { --dial: clamp(80px, 20vh, 160px); }
  .subtitle { line-height: 1.5; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .brand-logo { width: min(40vw, 300px); }
  .dial-slot { display: none; }
  .title { font-size: clamp(1.8rem, 9vh, 2.8rem); margin-top: 6px; }
  .subtitle { margin-top: 8px; font-size: 13px; }
  .actions { margin-top: 12px; }
  .btn { min-height: 42px; }
}

/* Brand crystal: sapphire blue from the logo's door glow, set in gold */
[data-theme="gold"] {
  --stone:       oklch(0.42 0.14 255);
  --stone-deep:  #050a18;
  --webgl-stone: #1d5fd6;
  --webgl-light: #fff4dc;
}

/* Header side panels */
.side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-family: var(--mono);
  text-transform: uppercase;
}
.side-left  { justify-self: start; align-items: flex-start; text-align: left;
              padding-left: 14px; border-left: 1px solid var(--line-strong); }
.side-right { justify-self: end; align-items: flex-end; text-align: right; gap: 10px;
              padding-right: 14px; border-right: 1px solid var(--line-strong); }
.side-k {
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--gold);
}
.side-lines { display: flex; flex-direction: column; gap: 4px; }
.side-v {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink);
  white-space: nowrap;
}
.side-row { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.side-right .side-v { text-transform: none; letter-spacing: .04em; font-size: 12.5px; }
a.side-v:hover { color: var(--gold-hi); }

@media (max-width: 1100px) {
  .side { display: none; }
  .topbar { grid-template-columns: 1fr; justify-items: center; }
}
