:root {
    --bg: #0b1220;
    --bg-soft: #111a2e;
    --card: #16213a;
    --border: #233252;
    --text: #e6ecf7;
    --muted: #93a3c0;
    --brand: #2f7cf6;
    --brand-soft: #1d5fd6;
    --accent: #16c784;
    --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Nav ---------- */
header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(10px);
    z-index: 50;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.3px;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

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

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

.nav-cta { display: flex; gap: 12px; align-items: center; }

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.btn-ghost {
    color: var(--muted);
    border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: #34456b; }

.btn-primary {
    background: var(--brand);
    color: #fff;
}
.btn-primary:hover { background: var(--brand-soft); }

.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
}

.section-head h2 {
    font-size: 32px;
    letter-spacing: -0.6px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-head p {
    color: var(--muted);
    font-size: 16px;
}

/* ---------- Page shell (for inner pages) ---------- */
.page {
    padding: 72px 0 96px;
    min-height: calc(100vh - 68px - 220px);
}

.page-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.page-head .eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
}

.page-head h1 {
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.8px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.page-head p {
    color: var(--muted);
    font-size: 17px;
}

/* ---------- Cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
}

.card h3 {
    font-size: 17px;
    font-weight: 650;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Prose (for legal pages) ---------- */
.prose {
    max-width: 760px;
    margin: 0 auto;
    font-size: 16px;
    color: #c8d3e8;
}

.prose h2 {
    font-size: 22px;
    letter-spacing: -0.3px;
    margin: 40px 0 14px;
    color: var(--text);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
    font-size: 17px;
    margin: 28px 0 10px;
    color: var(--text);
}

.prose p { margin-bottom: 16px; }

.prose ul {
    margin: 0 0 16px 20px;
}

.prose ul li { margin-bottom: 8px; }

.prose a {
    color: var(--brand);
    text-decoration: underline;
}

.prose .meta {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

/* ---------- Coming soon block ---------- */
.coming-soon {
    text-align: center;
    padding: 80px 24px;
    border: 1px dashed var(--border);
    border-radius: 18px;
    background: var(--bg-soft);
    max-width: 620px;
    margin: 0 auto;
}

.coming-soon .icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(47, 124, 246, 0.12);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.coming-soon h2 {
    font-size: 24px;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
}

.coming-soon p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 26px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon .actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Forms ---------- */
.auth-wrap {
    max-width: 440px;
    margin: 0 auto;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
}

.auth-card h1 {
    font-size: 24px;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}

.auth-card .sub {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 22px;
    font-size: 13px;
    color: var(--muted);
}

.form-row a { color: var(--brand); }

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.checkbox input { width: auto; }

.btn-block { width: 100%; text-align: center; }

.auth-foot {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--muted);
}

.auth-foot a { color: var(--brand); font-weight: 600; }

.form-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-info p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.contact-info .item {
    margin-bottom: 18px;
}

.contact-info .item strong {
    display: block;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info .item span {
    font-size: 15px;
}

textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

textarea:focus {
    outline: none;
    border-color: var(--brand);
}

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

footer h5 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 16px;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a { font-size: 14px; color: var(--muted); }
footer ul a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- Hero (home) ---------- */
.hero {
    padding: 96px 0 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(circle, rgba(47, 124, 246, 0.18), transparent 70%);
    pointer-events: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 26px;
    background: var(--bg-soft);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(22, 199, 132, 0.15);
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
    letter-spacing: -1.2px;
    font-weight: 800;
    max-width: 820px;
    margin: 0 auto 20px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
}

.trust {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}

.trust div strong {
    color: var(--text);
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    counter-reset: step;
}

.step {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -14px;
    left: 24px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
}

.step h4 { margin-top: 10px; font-size: 15px; font-weight: 650; }
.step p { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Regions ---------- */
.regions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.region {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
}

.region .name { font-weight: 600; font-size: 15px; }
.region .sub { font-size: 12px; color: var(--muted); }

.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-live {
    background: rgba(22, 199, 132, 0.12);
    color: var(--accent);
    border: 1px solid rgba(22, 199, 132, 0.3);
}

.badge-soon {
    background: rgba(147, 163, 192, 0.1);
    color: var(--muted);
    border: 1px solid var(--border);
}

/* ---------- Pricing ---------- */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.plan {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.plan.featured {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

.plan .plan-name {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand);
    margin-bottom: 12px;
}

.plan .spec {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.plan .spec div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.plan .spec div span:last-child { color: var(--text); font-weight: 600; }

.plan .price {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.plan .price small {
    font-size: 13px;
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 0;
}

.plan .btn { margin-top: 20px; width: 100%; text-align: center; }

/* ---------- Code block ---------- */
.code-wrap {
    background: #0a0f1c;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    max-width: 680px;
    margin: 0 auto;
}

.code-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.code-head .b { width: 11px; height: 11px; border-radius: 50%; }
.b1 { background: #ff5f56; }
.b2 { background: #ffbd2e; }
.b3 { background: #27c93f; }

.code-head span {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
}

pre {
    padding: 22px;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    color: #c8d3e8;
}

pre .k { color: #7aa2f7; }
pre .s { color: #9ece6a; }
pre .c { color: #5a6a88; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--brand), var(--brand-soft));
    border-radius: 18px;
    padding: 56px 40px;
    text-align: center;
    margin: 20px 0 80px;
}

.cta-band h2 {
    font-size: 30px;
    letter-spacing: -0.6px;
    margin-bottom: 12px;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    font-size: 16px;
}

.cta-band .btn-primary {
    background: #fff;
    color: var(--brand-soft);
}
.cta-band .btn-primary:hover { background: #eef3ff; }

.field-error {
    display: block;
    color: #fca5a5;
    font-size: 12px;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    section { padding: 56px 0; }
    .page { padding: 48px 0 72px; }
    .auth-card { padding: 28px 22px; }
}