:root {
  color-scheme: dark;
  --bg: #090704;
  --bg-soft: #14100b;
  --card: rgba(24, 17, 10, 0.84);
  --card-strong: rgba(34, 23, 13, 0.96);
  --text: #fff7ed;
  --muted: #d5bda2;
  --muted-2: #987a5a;
  --orange: #ff7a1a;
  --orange-2: #ffb15d;
  --line: rgba(255, 177, 93, 0.18);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 122, 26, 0.2), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 177, 93, 0.16), transparent 28%),
    linear-gradient(135deg, #090704 0%, #140d07 58%, #050403 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.page-shell {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 76px;
}

.brand,
.nav-link,
.button,
.x-button {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,122,26,0.25), rgba(255,177,93,0.08));
  box-shadow: 0 12px 30px rgba(255, 122, 26, 0.12);
}

.nav-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.035);
}

.hero {
  max-width: 820px;
  padding: 64px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 22px;
  max-width: 780px;
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  line-height: 0.91;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-copy { max-width: 660px; font-size: 1.18rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.x-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #1b0c02;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: start;
}

.login-copy,
.signin-card,
.flow-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.login-copy { padding: 52px; }
.signin-card { padding: 34px; background: var(--card-strong); }

.flow-card {
  display: grid;
  gap: 14px;
  margin-top: 34px;
  padding: 18px;
  box-shadow: none;
}

.flow-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
}

.flow-step.active { border-color: rgba(255, 122, 26, 0.5); }
.flow-step span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 122, 26, 0.14);
  color: var(--orange-2);
  font-weight: 900;
}
.flow-step strong { display: block; }
.flow-step small { color: var(--muted-2); }

.card-badge {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.x-button {
  width: 100%;
  gap: 12px;
  margin: 22px 0 18px;
  background: #f8fafc;
  color: #020617;
}

.x-button svg { width: 20px; height: 20px; fill: currentColor; }

.dev-note {
  padding: 14px;
  border: 1px dashed rgba(255, 177, 93, 0.35);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 177, 93, 0.06);
  font-size: 0.9rem;
  line-height: 1.55;
}

code {
  color: var(--orange-2);
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 8px;
  padding: 1px 6px;
}

.privacy-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .nav { margin-bottom: 34px; }
  .hero, .login-copy, .signin-card { padding: 28px; border-radius: 26px; }
  .login-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.4rem, 13vw, 4.5rem); }
}
