:root {
    --bg: #f4f8ff;
    --bg-2: #e8f1fb;
    --panel: #ffffff;
    --panel-2: #f3f6fb;
    --border: #e2e8f2;
    --text: #0f2447;
    --heading: #0b1e3d;
    --muted: #5b6b85;
    --accent: #2f6bff;      /* blue "ai" / links */
    --accent-2: #14c3a2;    /* teal success / CTA highlight */
    --teal: #14c3a2;
    --teal-dark: #0fae90;
    --danger: #e5484d;
    --shadow: 0 18px 40px rgba(15, 36, 71, .12);
    --shadow-sm: 0 6px 18px rgba(15, 36, 71, .08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.55;
    background:
        radial-gradient(1200px 600px at 78% -8%, #d6ecff 0%, rgba(214,236,255,0) 60%),
        radial-gradient(900px 500px at 110% 40%, #d3fff4 0%, rgba(211,255,244,0) 55%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 34px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--heading); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand-name { font-size: 19px; letter-spacing: -.3px; }
.brand-name .ai { color: var(--accent); }
.brand-name .rest { color: var(--heading); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--heading); text-decoration: none; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--border); font-size: 13px; }
.lang-switch a { color: var(--muted); font-weight: 600; }
.lang-switch a:hover { color: var(--accent); }
.lang-active { color: var(--heading); font-weight: 700; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff !important; box-shadow: 0 10px 22px rgba(20, 195, 162, .32); }
.btn-primary:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 26px rgba(20, 195, 162, .40); }
.btn-ghost { background: var(--panel); color: var(--heading) !important; border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { text-decoration: none; border-color: #c8d4e6; transform: translateY(-1px); }
.btn-block { display: flex; width: 100%; justify-content: center; }

.site-main { max-width: 1160px; margin: 0 auto; padding: 8px 24px 72px; }
.site-footer {
    max-width: 1160px; margin: 0 auto; padding: 28px 24px;
    display: flex; justify-content: space-between; color: var(--muted); font-size: 13px;
    border-top: 1px solid var(--border);
}

/* ---------- Hero (split layout) ---------- */
.hero-split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 56px 0 40px;
}
.hero-copy { min-width: 0; }
.hero-wordmark { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.hero-wordmark img { width: 54px; height: 54px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.hero-wordmark .wm { font-size: 30px; font-weight: 800; letter-spacing: -.6px; }
.hero-wordmark .wm .ai { color: var(--accent); }
.hero-wordmark .wm .rest { color: var(--heading); }

.hero-copy h1 {
    font-size: 58px;
    line-height: 1.04;
    letter-spacing: -1.5px;
    margin: 0 0 22px;
    color: var(--heading);
    font-weight: 800;
}
.hero-copy h1 .accent { color: var(--teal); display: block; }
.hero-lead { font-size: 20px; color: var(--muted); max-width: 520px; margin: 0 0 30px; }

.hero-features { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 20px; }
.hero-features li { display: flex; gap: 16px; align-items: flex-start; }
.hero-ficon {
    flex: 0 0 auto;
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(47,107,255,.12), rgba(20,195,162,.14));
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}
.hero-ficon svg { width: 24px; height: 24px; }
.hero-ftext strong { display: block; color: var(--heading); font-size: 16px; margin-bottom: 2px; }
.hero-ftext span { color: var(--muted); font-size: 14px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn { padding: 14px 26px; font-size: 15px; border-radius: 14px; }

/* stacked screenshots */
.hero-stack { position: relative; min-height: 440px; }
.hero-stack .shot {
    position: absolute;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: #fff;
    overflow: hidden;
}
.hero-stack .shot img { display: block; width: 100%; height: auto; }
.hero-stack .shot-back {
    top: 0; right: 0; width: 82%;
    transform: rotate(3deg);
    z-index: 1;
}
.hero-stack .shot-front {
    bottom: 0; left: 0; width: 82%;
    transform: rotate(-2deg);
    z-index: 2;
}
.hero-stack::after {
    content: "";
    position: absolute;
    inset: -8% -6% -8% -6%;
    background: radial-gradient(closest-side, rgba(20,195,162,.18), rgba(20,195,162,0) 70%);
    z-index: 0;
}

/* ---------- Feature cards ---------- */
.section-head { text-align: center; max-width: 640px; margin: 56px auto 8px; }
.section-head h2 { font-size: 32px; color: var(--heading); margin: 0 0 8px; letter-spacing: -.6px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin: 32px 0 8px; }
.card {
    background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 18px; color: var(--heading); }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
    margin: 56px 0 0;
    text-align: center;
    padding: 48px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0b1e3d 0%, #12346b 100%);
    color: #fff;
    box-shadow: var(--shadow);
}
.cta-band h2 { font-size: 30px; margin: 0 0 8px; letter-spacing: -.5px; }
.cta-band p { color: #b9c9e6; margin: 0 0 24px; font-size: 17px; }
.cta-band .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Generic hero (secondary pages headings) ---------- */
.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-size: 40px; margin: 0 0 12px; line-height: 1.15; color: var(--heading); }
.hero p { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 24px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Pricing / plans ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin: 32px 0; }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan.popular { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(20,195,162,.25), var(--shadow); }
.plan h3 { margin: 0 0 4px; font-size: 21px; color: var(--heading); }
.plan .price { font-size: 36px; font-weight: 800; margin: 8px 0; color: var(--heading); }
.plan .price span { font-size: 15px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 22px; color: var(--muted); font-size: 14px; }
.plan ul li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.plan .spacer { flex: 1; }

.section-title { font-size: 30px; margin: 24px 0 6px; color: var(--heading); letter-spacing: -.5px; }
.section-sub { color: var(--muted); margin: 0 0 24px; font-size: 16px; }

.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { color: var(--muted); font-weight: 600; background: var(--panel-2); }
.table code { background: var(--panel-2); padding: 2px 8px; border-radius: 6px; font-size: 13px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-active { background: rgba(20,195,162,.16); color: var(--teal-dark); }
.badge-expired, .badge-revoked { background: rgba(229,72,77,.14); color: var(--danger); }

.alert { padding: 14px 18px; border-radius: 12px; margin: 0 0 22px; font-size: 14px; }
.alert-success { background: rgba(20,195,162,.12); border: 1px solid rgba(20,195,162,.4); color: var(--teal-dark); }
.alert-info { background: rgba(47,107,255,.10); border: 1px solid rgba(47,107,255,.35); color: var(--accent); }
.alert-key { font-family: Consolas, monospace; font-size: 20px; letter-spacing: 1px; color: var(--heading); }

.profile { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.profile img { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border); }
.profile h2 { margin: 0; font-size: 20px; color: var(--heading); }
.profile span { color: var(--muted); font-size: 14px; }

form.inline { display: inline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; gap: 24px; padding: 36px 0 24px; }
    .hero-copy h1 { font-size: 44px; }
    .hero-stack { min-height: 360px; margin-top: 8px; }
    .site-nav { gap: 14px; }
}
@media (max-width: 560px) {
    .hero-copy h1 { font-size: 36px; }
    .site-header { padding: 14px 18px; }
    .brand-name { display: none; }
}
