:root {
  --bg: #05090b;
  --surface: #0f171b;
  --surface-border: rgba(255, 255, 255, 0.09);
  --text: #f8f7f2;
  --text-secondary: rgba(248, 247, 242, 0.74);
  --text-muted: rgba(248, 247, 242, 0.5);
  --accent: #5fe3c3;
  --accent-text: #7be7c6;
  --accent-soft: rgba(95, 227, 195, 0.12);
  --accent-glow: rgba(79, 215, 200, 0.18);
  --border: rgba(255, 255, 255, 0.1);
  --gradient: linear-gradient(120deg, #7bef9f, #4fd7c8 45%, #4fb8ff);
  --error: #f87171;
  --error-soft: rgba(248, 113, 113, 0.1);
  --success: #6ee7a8;
  --success-soft: rgba(110, 231, 168, 0.1);
  --info-soft: rgba(95, 227, 195, 0.08);
  --btn-text: #071113;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shell-pad: clamp(20px, 4vw, 32px);
  --content-width: 440px;
  --landing-width: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: var(--accent-text);
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page--landing {
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(79, 215, 200, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(79, 184, 255, 0.1), transparent 50%),
    var(--bg);
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, var(--accent-glow), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(79, 184, 255, 0.1), transparent 24%);
}

.ambient--soft {
  opacity: 0.55;
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--landing-width);
  margin: 0 auto;
  padding: var(--shell-pad);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shell--task {
  max-width: calc(var(--content-width) + var(--shell-pad) * 2);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 6vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.header__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
}

.header__link:hover,
.header__link--active {
  color: var(--text);
  border-color: rgba(95, 227, 195, 0.35);
  background: var(--accent-soft);
  text-decoration: none;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.main--landing {
  gap: 40px;
}

@media (min-width: 800px) {
  .main--landing {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }

  .landing-copy {
    flex: 1;
    padding-top: 8px;
  }

  .landing-panel {
    width: var(--content-width);
    flex-shrink: 0;
  }
}

.landing-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
}

.landing-title {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 3.25rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.2px;
  max-width: 11ch;
}

.landing-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(95, 227, 195, 0.22);
  background: rgba(95, 227, 195, 0.08);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.landing-lede {
  margin: 16px 0 0;
  max-width: 42ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.landing-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.landing-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--text-secondary);
}

.landing-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.panel {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  padding: clamp(22px, 4vw, 28px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.panel--cta {
  border-color: rgba(95, 227, 195, 0.18);
  background: linear-gradient(180deg, rgba(16, 24, 28, 0.98), rgba(12, 18, 22, 0.98));
}

.panel__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.panel__lede {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.panel__body {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.stack {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.input:focus {
  outline: none;
  border-color: rgba(95, 227, 195, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input::placeholder {
  color: var(--text-muted);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: opacity 120ms ease;
}

.btn:hover:not(:disabled) {
  opacity: 0.9;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--gradient);
  color: var(--btn-text);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--text {
  width: auto;
  min-height: auto;
  padding: 0;
  background: none;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 500;
  justify-content: flex-start;
}

.notice {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: 14px;
  line-height: 1.5;
}

.notice--error {
  border-color: rgba(248, 113, 113, 0.35);
  background: var(--error-soft);
  color: #fecaca;
}

.notice--success {
  border-color: rgba(110, 231, 168, 0.35);
  background: var(--success-soft);
  color: #bbf7d0;
}

.notice--info {
  border-color: rgba(95, 227, 195, 0.28);
  background: var(--info-soft);
  color: var(--text-secondary);
}

.status {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 8px 0;
}

.status--left {
  justify-items: start;
  text-align: left;
}

.status__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.status__body {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.download-lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 16px 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.app-store-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.app-store-btn__apple {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.app-store-btn__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.app-store-btn__small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.92;
}

.app-store-btn__large {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 12px;
}

.footer a:first-of-type {
  margin-left: 0;
}

.footer a:hover {
  color: var(--text);
}

.legal-doc {
  max-width: 680px;
  margin: 0 auto;
}

.legal-doc__meta {
  margin: 8px 0 28px;
  font-size: 13px;
  color: var(--text-muted);
}

.legal-section {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.legal-section p,
.legal-section li {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.legal-section ul {
  margin: 0;
  padding-left: 18px;
}

.legal-section h3 {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.success-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--btn-text);
  background: var(--gradient);
}

.otp-fallback {
  padding-top: 6px;
  border-top: 1px solid var(--surface-border);
}

.otp-fallback summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.info-grid {
  display: grid;
  gap: 8px;
}

.info-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.02);
}

.info-card--accent {
  border-color: rgba(95, 227, 195, 0.25);
  background: var(--accent-soft);
}

.info-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.info-card__value {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  word-break: break-word;
}