:root {
  --bg-0: #061022;
  --bg-1: #08152d;
  --bg-2: #0b1833;
  --panel: rgba(13, 19, 37, 0.82);
  --panel-border: rgba(255, 255, 255, 0.07);
  --text: #edf1f8;
  --muted: #a7b0c3;
  --pill: rgba(255, 255, 255, 0.07);
  --pill-border: rgba(255, 255, 255, 0.08);
  --hero-grad: linear-gradient(90deg, #6f7cff 0%, #a58cf5 30%, #d99fc1 58%, #f0a16b 100%);
  --blue-glow: rgba(90, 118, 255, 0.24);
  --ember-glow: rgba(240, 161, 107, 0.18);
  --white-glow: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] {
  --bg-0: #edf2f9;
  --bg-1: #e5edf8;
  --bg-2: #dce6f3;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-border: rgba(20, 28, 44, 0.08);
  --text: #162033;
  --muted: #5f6980;
  --pill: rgba(20, 28, 44, 0.05);
  --pill-border: rgba(20, 28, 44, 0.08);
  --blue-glow: rgba(90, 118, 255, 0.14);
  --ember-glow: rgba(240, 161, 107, 0.10);
  --white-glow: rgba(255, 255, 255, 0.30);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 20%, rgba(69, 92, 170, 0.10), transparent 0 18%),
    radial-gradient(circle at 58% 82%, rgba(73, 97, 175, 0.16), transparent 0 16%),
    radial-gradient(circle at 86% 18%, rgba(240, 161, 107, 0.08), transparent 0 16%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 80%, rgba(74, 98, 178, 0.20), transparent 0 17%),
    radial-gradient(circle at 88% 22%, rgba(240, 161, 107, 0.10), transparent 0 14%),
    radial-gradient(circle at 18% 18%, rgba(104, 128, 255, 0.08), transparent 0 12%);
  filter: blur(8px);
}

.shell {
  min-height: 100vh;
  padding: 32px;
  display: grid;
  place-items: center;
}

.panel {
  width: min(1180px, 100%);
  min-height: 920px;
  border-radius: 34px;
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0.00) 36%, rgba(255,255,255,0.02) 100%),
    radial-gradient(circle at 56% 82%, rgba(64, 87, 158, 0.18), transparent 0 18%),
    radial-gradient(circle at 93% 15%, rgba(240, 161, 107, 0.08), transparent 0 14%),
    radial-gradient(circle at 14% 14%, rgba(97, 124, 255, 0.08), transparent 0 10%),
    var(--panel);
  box-shadow:
    0 18px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 34px 44px 42px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 56% 84%, rgba(93, 119, 224, 0.16), transparent 0 12%),
    radial-gradient(circle at 88% 18%, rgba(240, 161, 107, 0.08), transparent 0 10%);
  filter: blur(18px);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-logo {
  width: 64px;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 16px rgba(255,255,255,0.08))
    drop-shadow(0 0 26px rgba(97,124,255,0.16));
}

.brand-name {
  font-size: clamp(40px, 3vw, 48px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.theme-toggle {
  position: relative;
  border: 1px solid var(--pill-border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 999px;
  height: 52px;
  min-width: 156px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 0 1px rgba(255,255,255,0.02);
}

.theme-label {
  font-size: 19px;
  line-height: 1;
  color: var(--muted);
  position: relative;
  z-index: 2;
}

.theme-track {
  position: relative;
  width: 76px;
  height: 8px;
  border-radius: 999px;
  overflow: visible;
}

.theme-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f7cff 0%, #c79cc8 58%, #f0a16b 100%);
  box-shadow:
    0 0 12px rgba(111,124,255,0.20),
    0 0 16px rgba(240,161,107,0.12);
}

.theme-knob {
  position: absolute;
  top: 50%;
  left: 72%;
  width: 18px;
  height: 40px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #ffffff 0%, #e8edf8 100%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  box-shadow:
    0 0 12px rgba(255,255,255,0.16),
    0 0 18px rgba(240,161,107,0.14);
}

html[data-theme="light"] .theme-knob {
  left: 28%;
}

.content {
  position: relative;
  z-index: 2;
  padding-top: 68px;
  max-width: 760px;
}

.status-pill,
.pill {
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  background: var(--pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 30px rgba(0,0,0,0.06);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 24px;
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d7a4be;
  box-shadow:
    0 0 10px rgba(215,164,190,0.38),
    0 0 16px rgba(240,161,107,0.14);
}

.hero-title {
  margin: 34px 0 26px;
  font-size: clamp(72px, 10vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  max-width: 700px;
}

.hero-title span {
  display: inline-block;
}

.hero-title span:nth-child(1),
.hero-title span:nth-child(4),
.hero-title span:nth-child(5) {
  display: block;
  width: 100%;
}

.gradient-word {
  background: var(--hero-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 12px rgba(97,124,255,0.10))
    drop-shadow(0 0 16px rgba(240,161,107,0.08));
}

.hero-copy {
  margin: 0;
  max-width: 900px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.72;
  color: var(--muted);
}

.cta-row {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.pill {
  min-height: 64px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.footer-note {
  margin: 42px 0 0;
  font-size: 18px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .shell {
    padding: 16px;
  }

  .panel {
    min-height: auto;
    padding: 24px 22px 28px;
    border-radius: 28px;
  }

  .topbar {
    align-items: center;
  }

  .brand {
    gap: 14px;
  }

  .brand-logo {
    width: 42px;
  }

  .brand-name {
    font-size: 26px;
  }

  .theme-toggle {
    min-width: 116px;
    height: 42px;
    padding: 0 10px;
  }

  .theme-label {
    font-size: 14px;
  }

  .theme-track {
    width: 54px;
  }

  .theme-knob {
    width: 13px;
    height: 30px;
  }

  .content {
    padding-top: 34px;
    max-width: 100%;
  }

  .status-pill {
    min-height: 48px;
    padding: 0 18px;
    font-size: 14px;
    gap: 10px;
  }

  .hero-title {
    margin-top: 24px;
    font-size: clamp(54px, 15vw, 84px);
    gap: 0 10px;
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.65;
  }

  .cta-row {
    margin-top: 26px;
    gap: 12px;
  }

  .pill {
    min-height: 54px;
    font-size: 17px;
    padding: 0 20px;
    white-space: normal;
  }

  .footer-note {
    margin-top: 28px;
    font-size: 16px;
  }
}
