:root {
  --bg: #f7f7fb;
  --ink: #151827;
  --muted: #636779;
  --line: #e3e5ee;
  --surface: #ffffff;
  --primary: #635bff;
  --primary-dark: #342fb7;
  --mint: #23a978;
  --amber: #f3a31b;
  --danger: #d94d57;
  --shadow: 0 24px 60px rgba(34, 38, 66, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
  font-size: 22px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(99, 91, 255, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero {
  min-height: 680px;
  position: relative;
  overflow: hidden;
  background: #111827;
}

.hero-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0 82px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  color: #fff;
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.96;
  margin: 0;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 22px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-actions .secondary {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
}

.phone {
  width: min(100%, 360px);
  justify-self: end;
  background: #101322;
  border: 10px solid #24283b;
  border-radius: 38px;
  box-shadow: var(--shadow);
  padding: 18px;
  color: #fff;
}

.phone-screen {
  min-height: 560px;
  background: #f4f5fa;
  border-radius: 28px;
  padding: 18px;
  color: var(--ink);
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.screen-title {
  font-size: 20px;
  font-weight: 900;
}

.status-pill {
  background: #e9f8f1;
  color: #137b55;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 9px;
  border-radius: 999px;
}

.mission-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.mission-card.urgent {
  border-color: rgba(243, 163, 27, 0.55);
}

.mission-title {
  font-weight: 900;
  margin-bottom: 6px;
}

.mission-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-weight: 900;
}

.code-box {
  margin-top: 16px;
  border-radius: 16px;
  padding: 14px;
  background: #ecebff;
  color: var(--primary-dark);
  font-weight: 900;
  text-align: center;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.section.compact {
  padding: 48px 0;
}

.section-kicker {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: 0;
}

.section-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 760px;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(24, 30, 50, 0.05);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #edefff;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 9px;
  font-size: 19px;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.band {
  background: #111827;
  color: #fff;
}

.band .section-lead,
.band .card p {
  color: rgba(255, 255, 255, 0.76);
}

.band .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.band .card-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.legal-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.legal-list a,
.legal-list .note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
}

.legal-list span {
  color: var(--muted);
  font-weight: 600;
}

.content-page {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.content-page h1 {
  color: var(--ink);
  font-size: clamp(38px, 5vw, 58px);
}

.content-page p,
.content-page li {
  color: var(--muted);
  line-height: 1.72;
  font-size: 16px;
}

.content-page h2 {
  font-size: 27px;
  margin-top: 42px;
}

.notice {
  margin: 28px 0;
  padding: 18px 20px;
  background: #fff7e8;
  border: 1px solid #f6d18c;
  border-radius: 8px;
  color: #6f4c08;
  line-height: 1.6;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-page {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(99, 91, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #f7f7fb 0%, #eef1ff 100%);
}

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

.auth-card {
  width: min(100%, 520px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.auth-brand {
  margin-bottom: 30px;
}

.auth-title {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1;
  margin: 0 0 14px;
}

.auth-copy {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  margin-top: 8px;
}

.auth-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.auth-form input:focus {
  outline: 3px solid rgba(99, 91, 255, 0.18);
  border-color: var(--primary);
}

.auth-message {
  min-height: 22px;
  margin: 8px 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-message[data-type="error"] {
  color: var(--danger);
  font-weight: 700;
}

.auth-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  margin-top: 4px;
}

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

.auth-alt {
  margin-top: 14px;
}

.auth-alt .button {
  width: 100%;
  border: 1px solid var(--line);
}

.auth-success {
  text-align: center;
}

.success-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f8f1;
  color: var(--mint);
  font-size: 42px;
  font-weight: 900;
  margin: 0 auto 22px;
}

@media (max-width: 860px) {
  .nav {
    min-height: 62px;
  }

  .nav-links {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .phone {
    justify-self: start;
    width: 100%;
    max-width: 360px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
