:root {
  --navy: #0a2552;
  --blue: #1769f6;
  --blue-dark: #0a56d9;
  --cyan: #18b9d6;
  --muted: #62738d;
  --line: #dce6f3;
  --soft: #f3f8ff;
  --danger: #c0394a;
  --shadow: 0 24px 70px rgba(25, 74, 143, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 720px; }

.site-header {
  position: relative;
  z-index: 10;
  height: 72px;
  border-bottom: 1px solid rgba(194, 213, 238, .7);
  background: rgba(255, 255, 255, .96);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 26px; font-weight: 850; letter-spacing: .4px; }
.brand-icon { width: 34px; height: 34px; display: inline-flex; color: var(--blue); }
.brand-icon svg { width: 100%; height: 100%; }
nav { display: flex; align-items: center; gap: 34px; font-weight: 650; }
nav a { position: relative; color: #334967; text-decoration: none; padding: 24px 0; }
nav a:hover, nav a.active { color: var(--blue); }
nav a.active::after { content: ""; position: absolute; height: 3px; left: 0; right: 0; bottom: 0; border-radius: 3px; background: var(--blue); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 68px;
  background:
    radial-gradient(circle at 15% 32%, rgba(109, 187, 255, .18), transparent 27%),
    radial-gradient(circle at 88% 35%, rgba(25, 185, 214, .14), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #eef7ff 72%, #f9fcff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 70px -3% auto;
  height: 360px;
  opacity: .24;
  background-image: radial-gradient(#79aeee 1.3px, transparent 1.3px);
  background-size: 20px 20px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.hero-heading { position: relative; text-align: center; margin-bottom: 38px; }
.hero-heading h1 { margin: 8px 0 9px; color: #082555; font-size: clamp(38px, 5vw, 58px); line-height: 1.08; letter-spacing: -.03em; }
.hero-heading p { margin: 0; font-size: clamp(18px, 2vw, 23px); color: #5b6f8e; }
.eyebrow { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 42px; align-items: center; }

.form-card, .status-card, .policy {
  border: 1px solid rgba(210, 224, 242, .85);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}
.form-card { padding: 32px 34px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.card-heading h1, .card-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.card-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.secure-badge, .status-active { flex: none; padding: 7px 11px; color: #0b6a57; background: #e8faf5; border: 1px solid #bfeee2; border-radius: 20px; font-size: 12px; font-weight: 750; }

form > label:not(.toggle-row) { display: block; margin: 17px 0 8px; font-size: 14px; font-weight: 720; }
input[type="email"], input[type="text"], input[type="date"] {
  width: 100%; height: 48px; padding: 0 14px; color: var(--navy); background: #fff; border: 1px solid #cad8ea; border-radius: 9px; font: inherit; outline: none;
}
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 105, 246, .13); }
.input-wrap { position: relative; }
.input-wrap input { padding-left: 46px; }
.field-icon { position: absolute; z-index: 1; left: 15px; top: 50%; transform: translateY(-50%); display: grid; width: 22px; height: 22px; place-items: center; color: #7185a1; font-weight: 800; }
.sim-mini { color: #a9811d; }
fieldset { padding: 0; margin: 18px 0 0; border: 0; }
legend { margin-bottom: 10px; font-size: 14px; font-weight: 720; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check-pill { position: relative; cursor: pointer; }
.check-pill input { position: absolute; opacity: 0; pointer-events: none; }
.check-pill span { display: flex; min-height: 43px; align-items: center; justify-content: center; border: 1px solid #ccd9e9; border-radius: 9px; color: #496079; font-size: 14px; font-weight: 650; transition: .15s ease; }
.check-pill input:checked + span { color: var(--blue); border-color: #8cb8ff; background: #edf4ff; box-shadow: inset 0 0 0 1px rgba(23, 105, 246, .1); }
.check-pill input:focus-visible + span { outline: 3px solid rgba(23,105,246,.22); }
.toggle-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; cursor: pointer; }
.toggle-row > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.toggle-row strong { font-size: 14px; }
.toggle-row small { color: var(--muted); font-size: 12px; }
.toggle-row input { position: absolute; opacity: 0; }
.toggle { position: relative; width: 48px; height: 27px; border-radius: 18px; background: #b8c5d6; transition: .2s ease; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: .2s ease; }
.toggle-row input:checked + .toggle { background: var(--blue); }
.toggle-row input:checked + .toggle::after { transform: translateX(21px); }
.primary-button, .secondary-button, .danger-button {
  display: inline-flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; padding: 0 20px; border: 0; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 750; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.primary-button { color: #fff; background: linear-gradient(135deg, #1778ff, #075be5); box-shadow: 0 10px 22px rgba(23, 105, 246, .24); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(23, 105, 246, .3); }
.secondary-button { color: #0f58ca; background: #eaf2ff; border: 1px solid #c8dcff; }
.danger-button { color: var(--danger); background: #fff4f5; border: 1px solid #f2ccd1; }
.consent { margin: 13px 0 0; color: #8290a5; text-align: center; font-size: 12px; }
.consent a { color: var(--blue); text-decoration: none; }

.how-card { min-height: 500px; display: flex; flex-direction: column; justify-content: center; }
.illustration { position: relative; height: 300px; }
.orbit { position: absolute; left: 50%; top: 48%; border: 2px dashed rgba(23, 105, 246, .32); border-radius: 50%; transform: translate(-50%, -50%) rotate(-12deg); }
.orbit-one { width: 355px; height: 210px; }
.orbit-two { width: 260px; height: 260px; border-color: rgba(24,185,214,.22); transform: translate(-50%, -50%) rotate(18deg); }
.mail-shape { position: absolute; left: 70px; top: 82px; width: 210px; height: 140px; border-radius: 16px; background: linear-gradient(145deg, #fff, #dceaff); box-shadow: 0 24px 45px rgba(36, 92, 167, .22); transform: rotate(-7deg); }
.mail-shape::after { content: ""; position: absolute; inset: 0; clip-path: polygon(0 18%, 50% 65%, 100% 18%, 100% 100%, 0 100%); background: linear-gradient(160deg, #f8fbff, #bdd8ff); border-radius: 0 0 16px 16px; }
.mail-shape span { position: absolute; z-index: 1; left: 75px; top: 28px; color: var(--blue); font-size: 50px; font-weight: 850; }
.calendar-shape { position: absolute; z-index: 2; right: 36px; top: 96px; display: grid; width: 128px; height: 142px; place-items: center; border-radius: 16px; border-top: 30px solid var(--blue); background: #fff; box-shadow: 0 20px 40px rgba(36, 92, 167, .22); transform: rotate(5deg); }
.calendar-shape b { color: #8da6c8; font-size: 42px; }
.sim-shape { position: absolute; z-index: 3; left: 235px; top: 165px; width: 86px; height: 106px; border-radius: 15px; background: linear-gradient(145deg, #2e86ff, #0b56cf); box-shadow: 0 14px 28px rgba(13,83,195,.32); transform: rotate(-10deg); }
.sim-shape span { position: absolute; inset: 28px 17px 17px; border-radius: 8px; background: repeating-linear-gradient(90deg, #e9b943 0 14px, #c99726 15px 16px); border: 2px solid #9d761d; }
.bell-shape { position: absolute; z-index: 4; right: 88px; top: 35px; display: grid; width: 72px; height: 72px; place-items: center; color: #fff; background: linear-gradient(145deg, #2e86ff, #0b56cf); border-radius: 50%; box-shadow: 0 12px 28px rgba(13,83,195,.3); }
.bell-shape::before { content: ""; width: 25px; height: 29px; border-radius: 15px 15px 8px 8px; background: #fff; }
.bell-shape::after { content: ""; position: absolute; bottom: 17px; width: 8px; height: 5px; border-radius: 50%; background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.step { text-align: center; }
.step > span { display: grid; width: 38px; height: 38px; place-items: center; margin: 0 auto 11px; color: var(--blue); background: #fff; border: 1px solid #cfe0f5; border-radius: 50%; box-shadow: 0 8px 18px rgba(35, 89, 161, .1); font-weight: 800; }
.step div { display: flex; flex-direction: column; gap: 5px; }
.step strong { font-size: 14px; }
.step small { color: var(--muted); font-size: 12px; line-height: 1.5; }

.trust-strip { padding: 25px 0; border-top: 1px solid #e4edf7; background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.trust-grid > div { display: flex; align-items: center; justify-content: center; gap: 13px; }
.trust-grid > div > span { display: grid; width: 46px; height: 46px; place-items: center; color: var(--blue); background: var(--soft); border-radius: 50%; font-size: 20px; font-weight: 800; }
.trust-grid p { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.trust-grid small { color: var(--muted); }

.alerts { position: relative; z-index: 20; }
.alert { margin-top: 14px; padding: 13px 16px; border-radius: 9px; font-size: 14px; }
.alert-error { color: #8d2936; background: #fff0f2; border: 1px solid #f3c8ce; }
.alert-success { color: #106348; background: #edfbf5; border: 1px solid #c6eedf; }
.subpage { min-height: calc(100vh - 142px); padding: 56px 0 72px; background: linear-gradient(180deg, #f5faff, #eef6ff); }
.manage-card { padding: 36px; }
.manage-card .card-heading h1 { margin-top: 7px; }
.email-summary { margin: -6px 0 22px; padding: 12px 14px; color: #526784; background: #f5f8fc; border-radius: 8px; font-size: 14px; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.status-card { padding: 54px 42px; text-align: center; }
.status-icon { display: grid; width: 70px; height: 70px; place-items: center; margin: 0 auto 22px; border-radius: 50%; font-size: 31px; font-weight: 800; }
.status-success { color: #087857; background: #e4faf2; }
.status-mail { color: var(--blue); background: #e9f2ff; }
.status-error { color: var(--danger); background: #fff0f2; }
.status-card h1 { margin: 0 0 12px; font-size: 30px; }
.status-card p { max-width: 510px; margin: 0 auto 25px; color: var(--muted); line-height: 1.8; }
.button-link { max-width: 280px; margin: 0 auto 18px; }
.text-link { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 650; text-decoration: none; }
.policy { padding: 44px 48px; }
.policy h1 { margin: 8px 0 28px; font-size: 34px; }
.policy h2 { margin: 28px 0 7px; font-size: 19px; }
.policy p { margin: 0; color: #526784; line-height: 1.9; }

footer { padding: 25px 0; color: #74849a; background: #fff; border-top: 1px solid #e7eef7; font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
footer a { text-decoration: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .how-card { min-height: auto; }
  .illustration { height: 280px; }
  nav a:not(.active) { display: none; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1120px); }
  .site-header { height: 64px; }
  .brand { font-size: 22px; }
  .brand-icon { width: 30px; height: 30px; }
  nav { gap: 16px; }
  nav a { padding: 20px 0; font-size: 14px; }
  .hero { padding: 38px 0 48px; }
  .hero-heading { margin-bottom: 28px; }
  .hero-heading h1 { font-size: 38px; }
  .hero-heading p { font-size: 17px; }
  .form-card { padding: 25px 20px; border-radius: 17px; }
  .card-heading { align-items: center; }
  .secure-badge { display: none; }
  .check-grid { gap: 6px; }
  .check-pill span { min-height: 41px; font-size: 13px; }
  .how-card { display: none; }
  .trust-grid { grid-template-columns: 1fr; gap: 18px; }
  .trust-grid > div { justify-content: flex-start; max-width: 220px; width: 100%; margin: auto; }
  .footer-inner { flex-direction: column; text-align: center; }
  .action-grid { grid-template-columns: 1fr; }
  .status-card, .policy { padding: 36px 22px; }
  .policy h1 { font-size: 28px; }
}
