@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap");

:root {
  --background: #eef1f6;
  --foreground: #0d1421;
  --card: #ffffff;
  --primary: #1b3a6b;
  --secondary: #e8edf5;
  --muted: #f3f5f9;
  --muted-foreground: #6b7a99;
  --accent: #2563eb;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0f1e;
    --foreground: #e8edf5;
    --card: #111827;
    --primary: #3b82f6;
    --secondary: #1e2a3f;
    --muted: #1a2235;
    --muted-foreground: #8896b3;
    --accent: #3b82f6;
    --border: #1e2a3f;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3, .display { font-family: Outfit, Inter, sans-serif; line-height: 1.2; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--background) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--foreground); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--primary); display: grid; place-items: center; }
.brand-name { font-family: Outfit, sans-serif; font-weight: 800; font-size: 20px; }
nav.links { display: flex; gap: 20px; }
nav.links a { color: var(--muted-foreground); text-decoration: none; font-weight: 500; font-size: 14px; }
nav.links a:hover { color: var(--foreground); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font-family: Outfit, sans-serif; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: .92; }
.btn-outline { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.hero { padding: 72px 0 48px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin: 0 0 16px; }
.hero p.lead { font-size: 18px; color: var(--muted-foreground); margin: 0 0 28px; max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.phone {
  justify-self: center; width: 300px; border-radius: 36px; padding: 14px;
  background: #0d1421; box-shadow: 0 30px 60px -20px rgba(13, 20, 33, .45);
}
.phone-screen { border-radius: 26px; overflow: hidden; background: var(--background); }
.phone-head { background: #1b3a6b; color: #fff; padding: 28px 16px 18px; }
.phone-head small { opacity: .7; font-size: 12px; }
.phone-head strong { display: block; font-family: Outfit, sans-serif; font-size: 20px; }
.chip-row { display: flex; gap: 6px; margin-top: 12px; }
.chip { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 10px; background: rgba(255,255,255,.15); }
.chip.active { background: #fff; color: #1b3a6b; }
.phone-body { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px; }
.mini.span { grid-column: span 2; }
.mini .k { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-foreground); font-weight: 600; }
.mini .v { font-family: Outfit, sans-serif; font-weight: 800; font-size: 18px; }
.bar { height: 5px; background: var(--muted); border-radius: 9px; margin-top: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 72%; background: var(--warning); border-radius: 9px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px 0 72px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted-foreground); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }

.doc { padding: 48px 0 72px; }
.doc h1 { font-size: 36px; margin: 0 0 6px; }
.doc .meta { color: var(--muted-foreground); margin: 0 0 32px; font-size: 14px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: color-mix(in srgb, var(--foreground) 85%, var(--muted-foreground)); }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; margin: 20px 0; }
label { display: block; font-family: Outfit, sans-serif; font-weight: 500; font-size: 14px; margin: 14px 0 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--card); color: var(--foreground); padding: 0 16px; font-size: 16px; outline: none;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.alert { border-radius: 14px; padding: 12px 14px; font-size: 14px; margin: 14px 0; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin: 14px 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 10px;
  background: var(--secondary); color: var(--primary); font-family: Outfit, sans-serif; font-weight: 700;
  display: grid; place-items: center;
}
.hidden { display: none !important; }

footer.site { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted-foreground); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted-foreground); text-decoration: none; margin-left: 16px; }
footer.site a:hover { color: var(--foreground); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .features { grid-template-columns: 1fr; }
  nav.links { display: none; }
}
