/* ============================================================
   Skyline Exchange — Coming Soon
   Light theme · tosca/teal · Swiss minimalism + light glass
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --brand: #00E1D3;          /* logo tosca — fills, graphics (pair with dark text) */
  --primary: #008178;        /* same hue, darkened — text, links (4.8:1 on white) */
  --primary-deep: #006B63;   /* hover for primary-colored elements */
  --secondary: #00C4B8;      /* mid tosca — gradients, decorative */
  --ink: #0F172A;            /* slate-900 */
  --muted: #64748B;          /* slate-500 */
  --border: rgba(0, 129, 120, 0.16);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --gold: #D97706;

  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;

  --r-card: 20px;
  --r-pill: 999px;
  --shadow-soft: 0 24px 60px -28px rgba(0, 196, 184, 0.32);
  --shadow-card: 0 10px 34px -18px rgba(15, 23, 42, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(0, 225, 211, 0.16), transparent 60%),
    linear-gradient(180deg, #EDFEFC 0%, #FFFFFF 52%, #EDFEFC 100%);
  min-height: 100dvh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* ============================================================
   Ambient background — aurora + grain
   ============================================================ */
/* Soft "pre-blurred" radial gradients — no filter: blur (GPU-friendly) */
.aurora {
  position: fixed; inset: -10%;
  z-index: 0; pointer-events: none;
}
.aurora-blob { position: absolute; border-radius: 50%; will-change: transform; }
.aurora-a {
  width: 58vw; height: 58vw; left: -12vw; top: -10vw;
  background: radial-gradient(circle, rgba(0, 225, 211, 0.3) 0%, rgba(0, 225, 211, 0.12) 38%, transparent 68%);
  animation: drift-a 19s ease-in-out infinite alternate;
}
.aurora-b {
  width: 52vw; height: 52vw; right: -10vw; top: 16vh;
  background: radial-gradient(circle, rgba(0, 196, 184, 0.26) 0%, rgba(0, 196, 184, 0.1) 40%, transparent 68%);
  animation: drift-b 23s ease-in-out infinite alternate;
}
.aurora-c {
  width: 40vw; height: 40vw; right: 18vw; top: -12vh;
  background: radial-gradient(circle, rgba(253, 230, 138, 0.32) 0%, rgba(253, 230, 138, 0.12) 40%, transparent 66%);
  animation: drift-c 26s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1.08); } to { transform: translate3d(-5vw, -4vh, 0) scale(0.96); } }
@keyframes drift-c { from { transform: translate3d(0,0,0); } to { transform: translate3d(-8vw, 6vh, 0) scale(1.15); } }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #F0FDFA, #FFFFFF);
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-inner { display: grid; justify-items: center; gap: 18px; }
.preloader-logo { width: 52px; height: 52px; }
.preloader-mark {
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  letter-spacing: 0.34em; color: var(--ink);
}
.preloader-mark em { font-style: normal; color: var(--primary); margin-left: 0.34em; }
.preloader-bar {
  width: 180px; height: 2px; border-radius: 2px; overflow: hidden;
  background: rgba(0, 225, 211, 0.22);
}
.preloader-fill {
  display: block; height: 100%; width: 100%;
  background: var(--brand); transform-origin: left center; transform: scaleX(0);
}
.preloader-count {
  font-family: var(--font-head); font-variant-numeric: tabular-nums;
  font-size: 12px; letter-spacing: 0.2em; color: var(--muted);
}

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 40px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; }
.brand-word {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.26em; color: var(--ink); white-space: nowrap;
}
.brand-word em { font-style: normal; color: var(--primary); margin-left: 0.26em; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}
.lang-btn {
  min-width: 48px; min-height: 44px; padding: 6px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.lang-btn:hover { color: var(--primary); }
.lang-btn.is-active { background: var(--brand); color: var(--ink); }

/* ============================================================
   ACT 1 — Hero
   ============================================================ */
.hero {
  position: relative; z-index: 2;
  min-height: 100dvh;
  display: grid; place-items: center;
  padding: 120px clamp(20px, 5vw, 48px) 190px;
}
.hero-inner {
  position: relative; z-index: 3;
  max-width: 900px; text-align: center;
  display: grid; justify-items: center; gap: clamp(20px, 3.2vh, 30px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-head); font-weight: 600; font-size: 12px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--primary);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(0, 225, 211, 0.55);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 225, 211, 0.5); }
  70%  { box-shadow: 0 0 0 11px rgba(0, 225, 211, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 225, 211, 0); }
}

.headline {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.55rem, 7.4vw, 5.9rem);
  line-height: 1.04; letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 16ch;
}
.headline .word { display: inline-block; white-space: nowrap; }
.headline .char { display: inline-block; will-change: transform; }
.headline .accent { color: var(--primary); }

.sub {
  max-width: 54ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
}

/* Countdown */
.countdown { display: flex; gap: clamp(8px, 1.6vw, 16px); }
.cell {
  display: grid; justify-items: center; gap: 2px;
  min-width: clamp(70px, 18vw, 104px);
  padding: clamp(12px, 2vw, 18px) clamp(8px, 1.5vw, 14px);
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}
.num {
  font-family: var(--font-head); font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 4.6vw, 2.8rem);
  line-height: 1.1; color: var(--ink);
}
.lbl {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.live-badge {
  font-family: var(--font-head); font-weight: 600; font-size: 1.3rem;
  color: var(--primary);
}

/* CTA */
.cta-row { margin-top: 4px; }
.cta {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 56px; padding: 16px 32px;
  border-radius: var(--r-pill);
  background: var(--brand); color: var(--ink);
  font-weight: 600; font-size: 16.5px; letter-spacing: 0.01em;
  box-shadow: 0 18px 38px -14px rgba(0, 180, 170, 0.6);
  transition: background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  will-change: transform;
}
.cta:hover { background: #00CFC2; box-shadow: 0 22px 46px -14px rgba(0, 180, 170, 0.7); }
.cta:active { background: #00BCB0; }

/* Currency marquee */
.marquee {
  position: absolute; left: 0; right: 0; bottom: 148px; z-index: 2;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 42px;
  padding: 10px 0;
  white-space: nowrap; width: max-content;
  animation: slide 38s linear infinite;
  font-family: var(--font-head); font-weight: 500; font-size: 13px;
  letter-spacing: 0.32em; color: rgba(0, 129, 120, 0.42);
}
@keyframes slide { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* Skyline line-art */
.skyline {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  pointer-events: none;
}
.skyline svg { width: 100%; height: clamp(120px, 18vw, 240px); will-change: transform; }
.skyline path, .skyline circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sky-back path { stroke: var(--secondary); stroke-opacity: 0.28; stroke-width: 1.4; }
.sky-front path { stroke: var(--primary); stroke-opacity: 0.42; stroke-width: 1.6; }
.sky-sun { stroke: var(--gold); stroke-opacity: 0.55; stroke-width: 1.6; fill: rgba(217, 119, 6, 0.07); }
.sky-horizon { stroke: var(--primary); stroke-opacity: 0.3; stroke-width: 1.4; }

/* stroke-draw entrance */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s var(--ease-out) forwards; }
.d1  { animation-delay: 0.25s; animation-duration: 2s; }
.d2  { animation-delay: 0.45s; }
.d3  { animation-delay: 0.65s; }
.d4  { animation-delay: 0.55s; }
.d5  { animation-delay: 0.75s; }
.d6  { animation-delay: 0.6s; }
.d7  { animation-delay: 0.8s; }
.d8  { animation-delay: 0.9s; }
.d9  { animation-delay: 1.05s; }
.d10 { animation-delay: 0.15s; animation-duration: 1.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: grid; justify-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1.5px; height: 34px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), transparent);
  animation: scroll-drop 2s var(--ease-out) infinite;
  transform-origin: top center;
}
@keyframes scroll-drop {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}

/* ============================================================
   ACT 2 — Find us
   ============================================================ */
.findus {
  position: relative; z-index: 2;
  padding: clamp(72px, 10vh, 120px) clamp(20px, 5vw, 48px) clamp(56px, 8vh, 96px);
}
.findus-inner { max-width: 1060px; margin: 0 auto; text-align: center; }
.findus-title {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.02em;
}
.findus-sub { margin-top: 10px; color: var(--muted); }

.cards {
  margin-top: clamp(32px, 5vh, 48px);
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  text-align: left;
}
.card {
  position: relative;
  display: grid; gap: 4px; align-content: start;
  padding: 24px 22px;
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--glass-strong);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(0, 129, 120, 0.32);
}
.card-icon {
  width: 46px; height: 46px; margin-bottom: 12px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(0, 225, 211, 0.16); color: var(--primary);
}
.card-title { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.card-value { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.card-sub { font-size: 13px; color: var(--muted); }
.card-arrow {
  position: absolute; top: 18px; right: 18px;
  color: var(--primary); opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.card:hover .card-arrow, .card:focus-visible .card-arrow { opacity: 1; transform: translate(0, 0); }

.hours[hidden] { display: none; }
.hours {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hours-title { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.hours-value { font-size: 14px; color: var(--ink); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative; z-index: 2;
  padding: 26px 20px 34px; text-align: center;
  font-size: 13px; color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .brand-word { display: none; }
  .hero { padding-top: 104px; padding-bottom: 170px; }
  .marquee { bottom: 128px; }
  .countdown { width: 100%; justify-content: center; }
  .cell { min-width: 0; flex: 1; max-width: 92px; }
  .cards { grid-template-columns: 1fr; }
  .card { text-align: left; }
}
@media (max-width: 400px) {
  .num { font-size: 1.5rem; }
  .cta { width: 100%; justify-content: center; }
}

/* ============================================================
   Reduced motion — calm everything down
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora-blob, .marquee-track, .pulse-dot, .scroll-line { animation: none !important; }
  .draw { animation: none !important; stroke-dashoffset: 0; }
  .card, .cta { transition: none; }
  .preloader { display: none !important; }
}
