/* ============================================================
   AETHON marketing site — design tokens per docs/design/DESIGN-BRIEF.md
   No external fonts (GDPR): Inter if installed, otherwise system stack.
   ============================================================ */

:root {
    --color-alarm: #C8102E;
    --color-alarm-dark: #9C0C24;
    --color-ok: #2E7D32;
    --color-warn-30: #EF6C00;
    --color-warn-90: #F9A825;
    --color-bg-dark: #1A1D23;
    --color-bg-darker: #14161B;
    --color-bg-light: #F5F6F8;
    --color-text: #2E3440;
    --color-text-soft: #5C6470;
    --color-line: #E2E5EA;
    --radius: 12px;
    --space: 8px;
    --font: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow: 0 8px 30px rgba(26, 29, 35, 0.10);
    --shadow-lg: 0 20px 60px rgba(26, 29, 35, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 16px; }

a { color: var(--color-alarm); }

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

.icon { width: 1.2em; height: 1.2em; vertical-align: -0.22em; }

/* ------------------------------------------------------------ header --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(26, 29, 35, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-alarm);
    color: #fff;
}
.brand-mark .icon { width: 20px; height: 20px; }

.brand-name {
    font-weight: 800;
    letter-spacing: 0.14em;
    font-size: 1.05rem;
}

.brand-logo { height: 40px; width: auto; display: block; }
.brand-logo-footer { height: 32px; }

.site-nav { display: flex; align-items: center; gap: 26px; }

.site-nav a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
.site-nav a:hover { color: #fff; }

.site-nav .nav-cta {
    background: var(--color-alarm);
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--color-alarm-dark); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    border-radius: 2px;
}

/* -------------------------------------------------------------- hero --- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(200, 16, 46, 0.28), transparent 60%),
        linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
    color: #fff;
    padding: 88px 0 56px;
}

.hero-glow {
    position: absolute;
    inset: auto -20% -60% -20%;
    height: 400px;
    background: radial-gradient(closest-side, rgba(200, 16, 46, 0.16), transparent);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFB4C0;
    background: rgba(200, 16, 46, 0.16);
    border: 1px solid rgba(200, 16, 46, 0.35);
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-visual img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

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

.btn-ghost {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: #fff; }

.section .btn-ghost, .section-contact .btn-ghost {
    color: var(--color-text);
    border-color: var(--color-line);
}

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

.stats-bar {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 56px 0 0;
    padding: 0;
}

.stats-bar li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius);
    padding: 18px 20px;
    text-align: center;
}

.stats-bar strong {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
}
.stats-bar span { font-size: 0.86rem; color: rgba(255, 255, 255, 0.65); }

/* ----------------------------------------------------------- sections --- */

.section { padding: 88px 0; }

.section-alt { background: #fff; }

.section-dark {
    background: linear-gradient(180deg, var(--color-bg-dark), var(--color-bg-darker));
    color: #fff;
}
.section-dark .section-head p { color: rgba(255, 255, 255, 0.72); }

.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head p { color: var(--color-text-soft); font-size: 1.08rem; }

.card-grid { display: grid; gap: 22px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 2px 10px rgba(26, 29, 35, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--color-text-soft); font-size: 0.98rem; }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 12px;
    background: rgba(200, 16, 46, 0.09);
    color: var(--color-alarm);
    margin-bottom: 16px;
}
.feature-icon .icon { width: 22px; height: 22px; }

.security-card { display: flex; gap: 18px; align-items: flex-start; }
.security-card .feature-icon { margin-bottom: 0; background: rgba(46, 125, 50, 0.10); color: var(--color-ok); }

/* -------------------------------------------------------- screenshots --- */

.shot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.shot { margin: 0; }

.shot-frame {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    background: var(--color-bg-dark);
    box-shadow: 0 2px 12px rgba(26, 29, 35, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.shot-frame:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot-frame img { width: 100%; }

.shot figcaption { padding: 14px 4px 0; }
.shot figcaption strong { display: block; font-size: 1rem; }
.shot figcaption span { color: var(--color-text-soft); font-size: 0.9rem; }

.shot-note {
    margin-top: 36px;
    text-align: center;
    color: var(--color-text-soft);
    font-size: 0.92rem;
}
.shot-note .icon { color: var(--color-ok); }

/* -------------------------------------------------------------- steps --- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius);
    padding: 26px;
}
.step h3 { color: #FFB4C0; }
.step p { color: rgba(255, 255, 255, 0.78); margin: 0; font-size: 0.98rem; }

/* ------------------------------------------------------------ contact --- */

.section-contact { background: #fff; text-align: center; }
.contact-inner { max-width: 42em; }
.contact-inner p { color: var(--color-text-soft); font-size: 1.08rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 26px 0 10px; }
.contact-note { font-size: 0.92rem; }

/* ------------------------------------------------------------- footer --- */

.site-footer {
    background: var(--color-bg-darker);
    color: rgba(255, 255, 255, 0.7);
    padding: 44px 0 22px;
    font-size: 0.92rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
}
.footer-inner .brand-name { color: #fff; }
.footer-inner p { margin: 6px 0 0; }
.footer-inner a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-inner a:hover { color: #fff; }

.footer-legal { text-align: right; }

.footer-privacy {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}
.footer-privacy p { margin: 0; }

/* ----------------------------------------------------------- lightbox --- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(20, 22, 27, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox[hidden] { display: none; }

.lightbox figure { margin: 0; max-width: min(1100px, 94vw); }
.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    margin: 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.lightbox figcaption {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: 16px;
    font-size: 0.95rem;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
}

/* --------------------------------------------------------- legal page --- */

.legal-page { max-width: 760px; }
.legal-page h1 { margin-bottom: 28px; }
.legal-page p { color: var(--color-text-soft); }
.legal-page strong { color: var(--color-text); }

/* --------------------------------------------------------- reveal fx --- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .card, .shot-frame, .btn { transition: none; }
}

/* --------------------------------------------------------- responsive --- */

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .card-grid.cols-3, .shot-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .section { padding: 60px 0; }
    .hero { padding: 56px 0 40px; }
    .card-grid.cols-3, .card-grid.cols-2, .shot-grid, .steps { grid-template-columns: 1fr; }

    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--color-bg-darker);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 8px 0 16px;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px 24px; }
    .site-nav .nav-cta { margin: 10px 24px 0; text-align: center; border-radius: var(--radius); }

    .footer-inner { flex-direction: column; }
    .footer-legal { text-align: left; }
}
