:root {
    --bg: #f7f5f2;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-strong: #ffffff;
    --text: #151822;
    --muted: #5e6678;
    --border: rgba(17, 24, 39, 0.08);
    --blue: #0f66ff;
    --blue-deep: #083f9b;
    --accent: #eaf3ff;
    --success: #effaf1;
    --warning: #fff5e9;
    --danger: #fff0f1;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "Segoe UI", Inter, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
code { font-family: "Cascadia Code", Consolas, monospace; }

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); background: rgba(247, 245, 242, 0.82); border-bottom: 1px solid var(--border); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.02em; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 10px 22px rgba(15, 102, 255, 0.24); }
.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.88);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--text);
    display: block;
}
.nav-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--text); color: white !important; padding: 11px 18px; border-radius: 999px; }

.hero {
    position: relative;
    min-height: 78vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(4, 11, 25, 0.86), rgba(4, 11, 25, 0.58)),
        url("../img/athesus-background.png") center/cover no-repeat;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent, rgba(247, 245, 242, 0.98));
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 36px; padding: 72px 0 120px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #dbeafe; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { margin: 18px 0 16px; color: white; font-size: clamp(42px, 6vw, 72px); line-height: 0.95; letter-spacing: -0.04em; }
.hero p { margin: 0; max-width: 680px; color: rgba(255, 255, 255, 0.84); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 14px 22px; cursor: pointer; transition: transform 140ms ease, opacity 140ms ease, background 140ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), #2e86ff); color: white; box-shadow: 0 16px 40px rgba(15, 102, 255, 0.28); }
.btn-secondary { background: rgba(255, 255, 255, 0.12); color: white; border: 1px solid rgba(255,255,255,0.18); }
.btn-secondary.light { background: white; color: var(--text); border: 1px solid var(--border); }
.hero-card, .panel { background: var(--panel); border: 1px solid rgba(255,255,255,0.1); box-shadow: var(--shadow); backdrop-filter: blur(22px); border-radius: 28px; }
.hero-card { padding: 26px; align-self: end; }
.hero-card h2 { margin: 0 0 12px; font-size: 24px; }
.hero-card p { color: #283041; font-size: 15px; line-height: 1.7; }
.hero-list { display: grid; gap: 12px; margin-top: 20px; }
.hero-list div { background: rgba(15, 102, 255, 0.06); border-radius: 18px; padding: 14px 16px; }

.section { padding: 48px 0; }
.demo-section {
    background:
        radial-gradient(circle at top right, rgba(15, 102, 255, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.54), rgba(240,246,255,0.72));
}
.demo-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 34px; align-items: center; }
.video-frame {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    padding: 10px;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(15, 102, 255, 0.16);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.62), rgba(255,255,255,0.18)),
        #0b1020;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}
.video-frame video {
    width: 100%;
    height: clamp(230px, 31vw, 390px);
    display: block;
    object-fit: contain;
    border-radius: 22px;
    background: #0b1020;
}
.mobile-ai-band { background: rgba(255,255,255,0.5); }
.section-head { margin-bottom: 24px; }
.section-head h2 { margin: 0 0 8px; font-size: 34px; letter-spacing: -0.03em; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.7; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.pricing-grid .panel { display: flex; flex-direction: column; }
.pricing-grid .btn,
.pricing-grid stripe-buy-button { margin-top: auto; }
.card { background: var(--panel-strong); border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); line-height: 1.7; }

.feature-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.stat { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 28px; }
.stat span { color: var(--muted); font-size: 14px; }

.auth-shell, .content-shell { width: min(720px, calc(100% - 32px)); margin: 40px auto 64px; }
.content-shell.wide { width: min(1120px, calc(100% - 32px)); }
.panel { padding: 28px; }
.panel h1 { margin-top: 0; font-size: 34px; letter-spacing: -0.03em; }
.panel p.lead { color: var(--muted); line-height: 1.7; margin-top: -2px; }
.form-grid { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 8px; font-weight: 600; }
.field input, .field textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--text);
}
.field textarea { min-height: 160px; resize: vertical; }
.field small { display: block; margin-top: 8px; color: var(--muted); }
.inline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field input[type="text"],
.field input[type="url"],
.field input[type="email"],
.field input[type="password"],
.field textarea {
    min-width: 0;
}

.flash-wrap { margin-top: 18px; }
.flash { border-radius: 18px; padding: 15px 18px; border: 1px solid var(--border); }
.flash-success { background: var(--success); }
.flash-warning { background: var(--warning); }
.flash-error { background: var(--danger); }

.account-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; }
.list-clean { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-clean li { padding: 14px 16px; border-radius: 18px; background: #f8fafc; border: 1px solid var(--border); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--blue-deep); font-weight: 600; font-size: 13px; }

.download-card { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; align-items: center; }
.downloads-stack { display: grid; gap: 22px; }
.download-box { padding: 22px; border-radius: 24px; background: linear-gradient(160deg, rgba(15, 102, 255, 0.08), rgba(8, 63, 155, 0.04)); border: 1px solid rgba(15, 102, 255, 0.12); }
.download-box strong { display: block; font-size: 26px; margin-bottom: 8px; }
.hash-value {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    background: #f4f7fb;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 12px;
    padding: 8px 10px;
}

.legal { line-height: 1.8; color: #263043; }
.legal h2 { margin-top: 32px; }

.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 22px; }
.contact-info { display: grid; gap: 16px; }
.contact-info .card { height: 100%; }
.map-embed {
    width: 100%;
    min-height: 260px;
    border: 0;
    border-radius: 20px;
}
.usage-panel {
    display: flex;
    align-items: center;
    gap: 18px;
}
.usage-ring {
    --progress: 0;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: conic-gradient(var(--blue) calc(var(--progress) * 1%), rgba(15, 102, 255, 0.12) 0);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.usage-ring::before {
    content: "";
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: white;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
    grid-area: 1 / 1;
}
.usage-ring-value {
    grid-area: 1 / 1;
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 22px;
    color: var(--blue-deep);
}
.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.docs-grid .card {
    height: 100%;
}
.docs-shell {
    display: grid;
    gap: 22px;
}
.docs-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    background:
        radial-gradient(circle at top left, rgba(15, 102, 255, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
}
.docs-hero-stats {
    display: grid;
    gap: 14px;
}
.docs-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,255,0.95));
}
.provider-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.provider-pill {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 18px;
    background: #f4f8ff;
    border: 1px solid rgba(15, 102, 255, 0.12);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}
.provider-pill strong {
    color: var(--text);
}
.provider-pill span {
    color: var(--muted);
    font-size: 14px;
}
.docs-faq {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 30px 0 42px; }
.footer-brand { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.footer-copy { max-width: 540px; color: var(--muted); line-height: 1.8; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.social-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    color: var(--blue-deep);
    font-weight: 700;
    text-transform: lowercase;
}
.social-link:hover { color: var(--blue); transform: translateY(-1px); }

@media (max-width: 980px) {
    .hero-inner,
    .demo-grid,
    .grid-3,
    .pricing-grid,
    .feature-stats,
    .account-grid,
    .download-card,
    .contact-grid,
    .docs-hero,
    .docs-faq {
        grid-template-columns: 1fr;
    }

    .nav-shell { align-items: center; padding: 14px 0; flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .nav-links {
        width: 100%;
        justify-content: flex-start;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        background: rgba(255,255,255,0.96);
        border: 1px solid var(--border);
        border-radius: 22px;
        padding: 16px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
    }
    .nav-links.is-open { display: flex; }
    .nav-links a { width: 100%; }
    .video-frame { margin: 0 auto; }
    .docs-grid { grid-template-columns: 1fr; }
    .provider-grid { grid-template-columns: 1fr; }
    .footer-grid { flex-direction: column; }
}

@media (max-width: 640px) {
    .inline-grid { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .hero-inner { padding: 56px 0 100px; }
    .hero h1 { font-size: 40px; }
    .panel, .card, .hero-card { padding: 20px; border-radius: 22px; }
    .container,
    .auth-shell,
    .content-shell,
    .content-shell.wide { width: min(100%, calc(100% - 20px)); }
    .usage-panel { flex-direction: column; align-items: flex-start; }
    .download-box strong { font-size: 22px; }
    .panel h1,
    .section-head h2 { font-size: 28px; }
    .video-frame { padding: 7px; border-radius: 24px; }
    .video-frame video { height: clamp(190px, 58vw, 300px); border-radius: 18px; }
}
