:root {
    color-scheme: light;
    --ink: #101c39;
    --muted: #50617e;
    --blue: #134bd8;
    --line: #dce5f6;
    --wash: #f4f7ff;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; line-height: 1.55; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; }
:focus-visible { outline: 3px solid #006dec; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 78px; }
.header { border-bottom: 1px solid var(--line); }
.logo { width: 124px; height: auto; }
nav { display: flex; gap: 32px; color: var(--muted); font-weight: 600; }
nav a, .footer a { text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; }
.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px;
    border: 1px solid transparent; border-radius: 10px; text-align: center; text-decoration: none;
    font-size: .9375rem; font-weight: 700; transition: background .2s, box-shadow .2s;
}
.primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px #134bd82b; }
.primary:hover { background: #103eb7; }
.outline { border-color: #bccdf0; background: #fff; color: #153d98; }
.outline:hover { background: #eef4ff; }
.hero {
    background: radial-gradient(ellipse at 85% 24%, #dbe9ff, transparent 53%), var(--wash);
    border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; padding-block: 84px; }
.eyebrow { font-size: .875rem; font-weight: 800; color: #1847af; letter-spacing: .085em; text-transform: uppercase; }
h1 { font-size: clamp(2.65rem, 5.7vw, 4.9rem); margin-block: 17px 22px; }
h1 em { color: var(--blue); display: block; font-style: normal; }
.lead { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 47ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.visual {
    display: grid; position: relative; isolation: isolate; place-items: center; overflow: hidden;
    min-height: 360px; border-radius: 28px;
    background: radial-gradient(ellipse at 30% 96%, #2b70ef, transparent 64%), linear-gradient(145deg, #122867, #1648cc);
    box-shadow: 0 24px 54px #143fa036;
}
.orbit { position: absolute; border: 1px solid #c4ddff55; border-radius: 50%; z-index: -1; width: 115%; height: 62%; transform: rotate(-29deg); }
.orbit-narrow { width: 89%; height: 48%; }
.visual-card {
    min-width: 65%; padding: 34px 24px; text-align: center; border: 1px solid #c6dcff85; border-radius: 21px;
    color: #fff; background: linear-gradient(145deg, #adc8ff55, #7ca7fb29); box-shadow: 0 17px 44px #071d6570;
    backdrop-filter: blur(12px); transform: rotate(-6deg);
}
.mark { margin: 0 auto 12px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: #fff; color: var(--blue); font-size: 1.75rem; font-weight: 800; }
.visual-title { font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 750; }
.stars { color: #ffdc84; font-size: 1.35rem; letter-spacing: .17em; }
.spark { color: #bcd9ff; position: absolute; font-size: 2rem; }
.spark-top { right: 12%; top: 12%; }
.spark-bottom { left: 11%; bottom: 11%; }
.plans { padding-block: 74px 84px; }
.section-heading { text-align: center; margin-bottom: 36px; }
h2 { font-size: clamp(2rem, 4.2vw, 3.15rem); margin-block: 10px 13px; }
.section-heading > p:last-child { color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; }
.plan.featured { border-color: #668bf4; background: #f3f7ff; box-shadow: 0 14px 38px #1d48b41b; }
.plan-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.plan-title h3 { font-size: 1.65rem; }
.badge { padding: 4px 10px; border-radius: 999px; color: #113eaa; background: #dfeaff; font-size: .875rem; font-weight: 750; }
.plan-description { color: var(--muted); margin-block: 12px; }
.price { font-size: clamp(2.5rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.055em; font-variant-numeric: tabular-nums; margin-top: auto; }
.price span { font-size: 1rem; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; display: grid; align-content: start; gap: 12px; padding: 20px 0 0; margin: 10px 0 23px; border-top: 1px solid var(--line); min-height: 150px; }
.plan li { padding-left: 24px; position: relative; color: var(--muted); }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.plan strong { color: var(--ink); }
.plan .button { width: 100%; }
.faq { padding-block: 65px; background: var(--wash); border-block: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 30px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
details + details { margin-top: 10px; }
summary { font-weight: 700; cursor: pointer; padding: 15px 18px; }
details p { color: var(--muted); padding: 0 18px 16px; }
.footer { color: var(--muted); }
.footer .logo { width: 98px; }
dialog { border: 1px solid var(--line); border-radius: 22px; width: min(420px, calc(100% - 32px)); padding: 42px 24px 30px; text-align: center; color: var(--ink); box-shadow: 0 22px 75px #0005; }
dialog::backdrop { background: #081634a6; }
dialog h2 { font-size: 1.65rem; }
dialog .button { margin-top: 10px; }
.close { position: absolute; top: 8px; right: 8px; min-height: 44px; min-width: 44px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; font-size: 1.7rem; }
.contact-icon { margin: 0 auto 16px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #eaf1ff; color: var(--blue); font-size: 1.7rem; font-weight: 800; }
.spinner { width: 26px; height: 26px; border: 3px solid #b9ccff; border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) {
    .hero-grid { padding-block: 56px; }
    .visual { min-height: 280px; }
    .plan-grid { grid-template-columns: 1fr; }
    .plan ul { min-height: 0; }
}
@media (max-width: 620px) {
    .wrap { width: calc(100% - 32px); }
    .bar { flex-wrap: wrap; padding-block: 12px; }
    nav { order: 3; flex-basis: 100%; gap: 20px; }
    nav a { display: inline-flex; align-items: center; min-height: 44px; }
    .hero-grid, .faq-grid { grid-template-columns: 1fr; }
    .hero-grid { padding-block: 44px; gap: 24px; }
    .visual { min-height: 215px; }
    .visual-card { padding-block: 18px; }
    .plans, .faq { padding-block: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .spinner { animation: none; }
    .button { transition: none; }
}
