/* Dex landing — Trendy light: white, black, gold */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f7f5f1;
  --ink: #16141a;
  --body: #5b5862;
  --dim: #7c7985;
  --faint: #aeacb5;
  --line: rgba(22, 20, 26, 0.09);
  --gold1: #f4cf74;
  --gold2: #e0ab32;
  --gold3: #c2901f;
  --gold-grad: linear-gradient(135deg, #f6d47f 0%, #e3ac33 55%, #d29b26 100%);
  --shadow: 0 14px 40px rgba(30, 24, 45, 0.09);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Clash Display", "Space Grotesk", -apple-system, sans-serif;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(55% 45% at 50% 40%, rgba(224, 171, 50, 0.10), transparent 70%),
    linear-gradient(rgba(22,20,26,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,20,26,0.035) 1px, transparent 1px);
  background-size: 100% 100%, 68px 68px, 68px 68px;
  -webkit-mask-image: radial-gradient(80% 75% at 50% 45%, #000 30%, transparent 100%);
  mask-image: radial-gradient(80% 75% at 50% 45%, #000 30%, transparent 100%);
}
#robot-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 45%, transparent 60%, rgba(247, 245, 241, 0.85) 100%);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
  background: linear-gradient(rgba(247,245,241,0.85), transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.wordmark {
  font-family: var(--display);
  font-weight: 600; font-size: 23px; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
}
.wordmark .dot { font-size: 9px; vertical-align: 6px; margin-left: 2px; color: var(--gold2); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.lang-btn {
  background: none; border: 0; color: var(--dim); font: inherit;
  cursor: pointer; padding: 4px 2px; letter-spacing: 0.08em;
}
.lang-btn.active { color: var(--ink); font-weight: 700; }
.lang-sep { opacity: 0.35; margin: 0 2px; }
.btn-pill {
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 10px 22px; border-radius: 999px; letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(22,20,26,0.18);
}
.btn-pill:hover { transform: scale(1.04); }

/* ---------- panels ---------- */
.panel { position: relative; z-index: 3; }

.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-inner { padding: 0 24px; transform: translateY(-4vh); }
.hero-word {
  font-family: var(--display);
  font-size: clamp(110px, 22vw, 260px);
  font-weight: 600; letter-spacing: -0.045em; line-height: 0.9;
  background: linear-gradient(180deg, #16141a 40%, rgba(22,20,26,0.28));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.hero-tagline { font-family: var(--display); margin-top: 18px; font-size: clamp(20px, 2.7vw, 30px); font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.hero-sub { margin: 14px auto 0; max-width: 560px; color: var(--body); font-size: clamp(14px, 1.6vw, 17px); line-height: 1.55; }
.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold3);
}
.hint-line { width: 1px; height: 46px; background: linear-gradient(var(--gold2), transparent); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* features */
.feature { min-height: 135vh; display: flex; align-items: center; padding: 0 7vw; }
.feature[data-align="right"] { justify-content: flex-end; }
.feature .card {
  max-width: 430px; padding: 36px 38px;
  background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(22,20,26,0.05); border-radius: 24px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(40px);
}
.kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.26em; color: var(--gold3); }
.feature h2 { font-family: var(--display); margin-top: 14px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; color: var(--ink); }
.feature p { margin-top: 14px; color: var(--body); font-size: 15.5px; line-height: 1.6; }

/* finale */
.finale {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; flex-direction: column;
  align-items: flex-end; justify-content: center; padding: 0 8vw 40px;
}
.finale-copy { text-align: left; margin-bottom: 24px; width: min(420px, 100%); opacity: 0; transform: translateY(30px); }
.finale-copy h2 { font-family: var(--display); font-size: clamp(34px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.finale-copy p { margin-top: 8px; color: var(--body); font-size: 16px; }

.auth-card {
  width: min(420px, 100%);
  background: rgba(255,255,255,0.88); border: 1px solid rgba(22,20,26,0.05); border-radius: 26px;
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  padding: 28px 30px 32px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(36px);
}
.auth-tabs { display: flex; gap: 4px; background: rgba(22,20,26,0.06); border-radius: 13px; padding: 4px; margin-bottom: 22px; }
.auth-tab {
  flex: 1; border: 0; background: none; color: var(--dim); cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  padding: 10px 0; border-radius: 10px; transition: all 0.2s ease;
}
.auth-tab.active { background: #ffffff; color: var(--ink); box-shadow: 0 4px 12px rgba(30,24,45,0.1); }
.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.active { display: flex; }
.auth-form label { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--dim); }
.auth-form input {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-family: var(--sans); font-size: 15px; padding: 12px 14px; outline: none;
  transition: border-color 0.2s ease;
}
.auth-form input:focus { border-color: var(--gold2); }
.auth-error { color: #d64545; font-size: 12.5px; min-height: 16px; margin: -6px 0 -4px; }
.btn-solid {
  background: var(--gold-grad); color: #171410; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em;
  padding: 14px 0; border-radius: 13px;
  box-shadow: 0 12px 26px rgba(224,171,50,0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(224,171,50,0.5); }
.btn-solid:disabled { opacity: 0.55; transform: none; cursor: default; box-shadow: none; }

.footer {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 24px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--faint);
  text-align: center; width: 100%;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav { padding: 14px 18px; }
  .feature { min-height: 120vh; padding: 0 20px; }
  .feature[data-align], .feature { justify-content: center; }
  .feature .card { max-width: 100%; padding: 26px 24px; }
  .finale { align-items: center; padding: 0 20px 40px; }
  .finale-copy { text-align: center; }
  .hero-inner { transform: translateY(-8vh); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hint-line { animation: none; }
}
