:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #5b6b83;
  --line: #dbe4f0;
  --surface: #ffffff;
  --soft: #f3f7ff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --shadow: 0 18px 50px rgba(26, 64, 125, 0.12);
}

* { 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;
  color: var(--ink);
  background: #f8fbff;
  line-height: 1.6;
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(248, 251, 255, .9);
  border-bottom: 1px solid rgba(219, 228, 240, .8);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 8px 20px rgba(37, 99, 235, .2); }
.nav-links { display: flex; gap: 24px; align-items: center; font-size: .95rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 650; }
.nav-links a:hover { color: var(--blue); }

.hero { padding: 90px 0 75px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.eyebrow { color: var(--blue); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 14px 0 20px; max-width: 680px; font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: .98; letter-spacing: -.065em; }
.lead { max-width: 600px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 14px; text-decoration: none; font-weight: 800; border: 1px solid transparent; }
.button.primary { color: white; background: var(--blue); box-shadow: 0 12px 24px rgba(37, 99, 235, .22); }
.button.primary:hover { color: white; background: var(--blue-dark); }
.button.secondary { color: var(--ink); background: white; border-color: var(--line); }
.button.secondary:hover { border-color: var(--blue); }

.hero-card { position: relative; min-height: 390px; display: grid; place-items: center; border-radius: 34px; background: linear-gradient(145deg, #e9f1ff, #fff); box-shadow: var(--shadow); border: 1px solid #e2ebf8; }
.hero-card::before, .hero-card::after { content: ""; position: absolute; border-radius: 999px; filter: blur(2px); }
.hero-card::before { width: 160px; height: 160px; background: rgba(147, 197, 253, .38); top: 28px; right: 30px; }
.hero-card::after { width: 110px; height: 110px; background: rgba(191, 219, 254, .5); bottom: 34px; left: 35px; }
.hero-logo { position: relative; z-index: 1; width: 180px; height: 180px; border-radius: 46px; box-shadow: 0 25px 55px rgba(37, 99, 235, .25); }

section { padding: 76px 0; }
.section-heading { max-width: 680px; margin-bottom: 32px; }
h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 26px rgba(26, 64, 125, .05); }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--blue); background: #e8f0ff; font-size: 1.25rem; font-weight: 900; }
.feature h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); }
.security { background: var(--ink); color: white; }
.security .section-heading p, .security .feature p { color: #b8c5d8; }
.security .feature { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.security .feature-icon { background: rgba(147,197,253,.16); color: #bfdbfe; }
.notice { margin-top: 30px; padding: 20px 22px; border-radius: 18px; background: #eef5ff; color: #29466d; }

footer { padding: 34px 0 48px; color: var(--muted); font-size: .94rem; }
.footer-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.legal { padding: 68px 0 100px; }
.legal-card { max-width: 820px; padding: 42px clamp(24px, 5vw, 60px); background: white; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.legal-card h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 0; }
.legal-card h2 { font-size: 1.45rem; margin-top: 36px; }
.legal-card p, .legal-card li { color: #43536c; }
.legal-card .updated { color: var(--muted); font-size: .92rem; }
.form-row { margin-top: 18px; }
label { display: block; margin-bottom: 7px; font-weight: 750; }
input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #b9c8dc; border-radius: 12px; font: inherit; }
input:focus { outline: 3px solid rgba(37, 99, 235, .2); border-color: var(--blue); }
button { cursor: pointer; border: 0; font: inherit; }
.danger { background: #b42318; box-shadow: none; }
.danger:hover { background: #8f1d14; }
.warning { padding: 18px 20px; border-radius: 14px; background: #fff5d8; color: #6d4d00; }
#result { min-height: 1.6em; margin-top: 18px; font-weight: 700; }

@media (max-width: 800px) {
  .nav-links { gap: 12px; font-size: .85rem; }
  .hero { padding-top: 55px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-card { min-height: 280px; }
  .hero-logo { width: 140px; height: 140px; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .shell { width: min(100% - 28px, 1120px); }
  .nav { min-height: 68px; }
  .brand span { font-size: .94rem; }
  .nav-links a:not(:last-child) { display: none; }
  h1 { font-size: 3rem; }
  .legal-card { padding: 30px 20px; }
}
