/* ============================================================
   Slyck — Hero. Light mode. Cold look, warm behavior.
   ============================================================ */

:root {
  /* canvas & surface */
  --canvas:        #F4F7FB;
  --surface:       #FFFFFF;
  --surface-tint:  #EEF4FF;

  /* ink */
  --ink:           #0B1733;
  --ink-soft:      #4A5878;
  --ink-faint:     #8A97B5;

  /* brand */
  --primary:       #2E6BFF;
  --primary-hover: #1E54E6;
  --accent:        #5EEAD4;

  /* ice */
  --ice-light:     #EAF3FF;
  --ice-mid:       #A8CBFF;
  --ice-deep:      #6BA0F5;
  --ice-spec:      #FFFFFF;

  /* depth */
  --shadow-soft:   0 8px 30px rgba(20,40,80,0.06);
  --shadow-float:  0 20px 60px rgba(20,40,80,0.10);
  --shadow-press:  0 4px 14px rgba(20,40,80,0.10);

  /* radii */
  --r-sm: 12px;  --r-md: 16px;  --r-lg: 24px;  --r-pill: 999px;
}

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

html, body { height: 100%; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "General Sans", "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

#root { min-height: 100%; }

/* ---- shared atoms ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(24px, 4vh, 40px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 26px; height: 26px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.dot { display: inline-flex; align-items: center; gap: 10px; }
.nav-link.dot::before {
  content: "";
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--ink-faint);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(72px, 11vh, 150px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

/* ---- left ---- */
.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--primary);
  display: inline-block;
}

h1.headline {
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: clamp(2.75rem, 6vw, 5rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}
h1.headline .flow {
  color: var(--primary);
}

.subhead {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 40ch;
  text-wrap: pretty;
}

.cta-row {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  padding: 17px 30px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, transform 0.25s cubic-bezier(.2,.9,.3,1.4),
              box-shadow 0.25s ease;
  will-change: transform;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-press); }
.btn-primary .arrow {
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1.4);
}
.btn-primary:hover .arrow { transform: translateX(4px); }

.trust-line {
  font-size: 0.85rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ============================================================
   SCENE (right column)
   ============================================================ */
.hero-scene {
  position: relative;
  height: clamp(440px, 52vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radial-wash {
  position: absolute;
  inset: -20% -20% -20% -10%;
  background: radial-gradient(60% 60% at 55% 42%,
      var(--surface-tint) 0%,
      rgba(238,244,255,0.5) 38%,
      rgba(244,247,251,0) 72%);
  z-index: 0;
  pointer-events: none;
}

/* ---- ice mascot ---- */
.ice-stage {
  position: absolute;
  top: clamp(8px, 4%, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 248px;
  height: 248px;
}

.ice-wrap {            /* parallax + breathing live here */
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform;
  transform-origin: 50% 60%;
}

.ice-body {           /* melt scaleY + squish live here */
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30%;
  overflow: hidden;
  will-change: transform;
  transform-origin: 50% 100%;
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.9),
    inset 0 -18px 30px rgba(107,160,245,0.35),
    inset 0 14px 26px rgba(255,255,255,0.55);
}
.ice-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* frost sweep clipped by ice-body overflow */
.ice-sweep {
  position: absolute;
  top: -20%;
  left: -60%;
  width: 55%;
  height: 140%;
  transform: rotate(18deg) translateX(-180%);
  background: linear-gradient(90deg,
     rgba(255,255,255,0) 0%,
     rgba(255,255,255,0.85) 50%,
     rgba(255,255,255,0) 100%);
  filter: blur(3px);
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

.ice-shadow {
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: 200px;
  height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%,
      rgba(20,40,80,0.20) 0%, rgba(20,40,80,0) 72%);
  filter: blur(8px);
  will-change: transform, opacity;
  z-index: 3;
}

/* ---- falling droplet → value pill ---- */
.droplet {
  position: absolute;
  left: 50%;
  top: calc(clamp(8px, 4%, 40px) + 232px);   /* near ice bottom */
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--ice-light), var(--ice-deep));
  box-shadow: 0 6px 14px rgba(46,107,255,0.28);
  transform: translate(-50%, 0) scale(1);
  opacity: 0;
  will-change: transform, opacity, width, height, border-radius;
  white-space: nowrap;
  overflow: hidden;
}
.droplet .pill-text {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primary);
  opacity: 0;
}

/* ---- balance card ---- */
.balance-card {
  position: absolute;
  z-index: 5;
  bottom: clamp(10px, 6%, 48px);
  right: clamp(-8px, 2%, 24px);
  width: 264px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  will-change: transform, box-shadow;
}
.balance-card .mint-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 80% 0%,
     rgba(94,234,212,0.55) 0%, rgba(94,234,212,0) 60%);
  opacity: 0;
  pointer-events: none;
}
.bc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.bc-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
.bc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface-tint);
  padding: 5px 10px;
  border-radius: 999px;
}
.bc-badge .live-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(94,234,212,0.6);
  animation: livepulse 2.4s ease-out infinite;
}
@keyframes livepulse {
  0%   { box-shadow: 0 0 0 0 rgba(94,234,212,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(94,234,212,0); }
  100% { box-shadow: 0 0 0 0 rgba(94,234,212,0); }
}
.bc-amount {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bc-sub {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.bc-sub .from-usdt {
  font-weight: 600; color: var(--ink);
}
.bc-arrow {
  color: var(--ink-faint);
}

/* ============================================================
   WAITLIST MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11,23,51,0.32);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.modal-overlay.open { opacity: 1; }

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 34px 34px 30px;
  box-shadow: var(--shadow-float);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(.2,.9,.3,1.25), opacity 0.3s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); opacity: 1; }

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: var(--surface-tint); color: var(--ink); }

.modal-eyebrow {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--primary);
  margin-bottom: 12px;
}
.modal h2 {
  font-family: "Clash Display", sans-serif;
  font-weight: 600; font-size: 1.7rem; letter-spacing: -0.02em;
  line-height: 1.1; color: var(--ink);
}
.modal p.lede {
  margin-top: 12px; font-size: 0.98rem; line-height: 1.5; color: var(--ink-soft);
}

.field { margin-top: 22px; }
.field label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--ink); margin-bottom: 8px;
}
.field input {
  width: 100%;
  font-family: inherit; font-size: 1rem;
  color: var(--ink);
  background: var(--canvas);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46,107,255,0.12);
}
.field input.invalid {
  border-color: #E5484D;
  box-shadow: 0 0 0 4px rgba(229,72,77,0.12);
}
.field-error {
  margin-top: 7px; font-size: 0.8rem; color: #E5484D;
  height: 0; opacity: 0; overflow: hidden;
  transition: opacity 0.2s ease, height 0.2s ease;
}
.field-error.show { height: 1.1rem; opacity: 1; }

/* deposit info block */
.deposit-card {
  margin-top: 20px;
  background: var(--surface-tint);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.deposit-card .dep-icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-soft);
}
.deposit-card .dep-body { font-size: 0.86rem; line-height: 1.45; color: var(--ink-soft); }
.deposit-card .dep-body strong { color: var(--ink); font-weight: 600; }

.modal .btn-primary { width: 100%; justify-content: center; margin-top: 22px; }

/* secondary text action (waitlist link under the deposit CTA) */
.btn-text {
  width: 100%;
  margin-top: 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px;
  border-radius: var(--r-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.btn-text:hover:not(:disabled) { color: var(--ink); background: var(--canvas); }
.btn-text:disabled { opacity: 0.5; cursor: default; }

/* stronger text action (deposit nudge inside waitlist success) */
.btn-text-strong {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 4px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  padding: 8px;
  border-radius: var(--r-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.btn-text-strong:hover:not(:disabled) { color: var(--primary-hover); background: var(--surface-tint); }
.btn-text-strong:disabled { opacity: 0.5; cursor: default; }

.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: var(--shadow-soft); }

/* soft informational note (e.g. payment canceled) */
.modal-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-tint);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* inline error (failed request) */
.modal-error {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: rgba(229,72,77,0.08);
  font-size: 0.85rem;
  line-height: 1.4;
  color: #C0383C;
}

.modal-foot {
  margin-top: 16px; text-align: center;
  font-size: 0.78rem; color: var(--ink-faint);
}

/* success state */
.modal-success { text-align: center; padding: 8px 0 4px; }
.success-ring {
  width: 72px; height: 72px; margin: 6px auto 22px;
  border-radius: 999px;
  background: var(--surface-tint);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-copy { max-width: 100%; order: 2; }
  .hero-scene { order: 1; height: clamp(380px, 46vh, 460px); margin-bottom: 8px; }
  .balance-card { width: 240px; right: clamp(-4px, 4%, 20px); }
  .nav-links .nav-link.hide-sm { display: none; }
}

@media (max-width: 460px) {
  .ice-stage { width: 200px; height: 200px; }
  .droplet { top: calc(clamp(8px, 4%, 40px) + 188px); }
  .balance-card { width: 220px; padding: 18px 20px; }
  .bc-amount { font-size: 1.85rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .bc-badge .live-dot { animation: none; }
  .btn-primary, .btn-primary .arrow, .modal, .modal-overlay { transition: none; }
}
