:root {
    --color-primary: #2c3e50;
    --color-secondary: #3498db;
    --color-accent: #e74c3c;
    --color-bg: #ecf0f1;
    --color-text: #2c3e50;
    --color-text-light: #4a5b6a;
    --color-border: #d5dde3;
    --ae-header-h: 72px;
    --ae-page-w: 1120px;
    --space-lg: 24px;
    --ae-font-d: "Red Hat Display", Arial, sans-serif;
    --ae-font-b: "Red Hat Text", Georgia, sans-serif;
}

@media (max-width: 1100px) {
    :root { --ae-header-h: 64px; }
}

[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--ae-font-b);
    font-size: 1.05rem;
    line-height: 1.55;
}

html { scroll-padding-top: var(--ae-header-h); }

body { padding-top: var(--ae-header-h); }

img, video, iframe { max-width: 100%; height: auto; }

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

h1, h2, h3 {
    font-family: var(--ae-font-d);
    line-height: 1.15;
    margin: 0 0 12px;
}

.ae-l-container {
    max-width: var(--ae-page-w);
    margin: 0 auto;
    padding: 0 20px;
}

.ae-l-measure { max-width: 760px; }

.ae-l-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.ae-l-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--ae-header-h);
    background: var(--color-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ae-l-header a,
.ae-l-header a:visited { color: #2c3e50; }

.ae-l-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--ae-header-h);
    position: relative;
    gap: 8px;
}

.ae-m-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    line-height: 0;
}

.ae-m-logo img {
    width: 180px;
    height: auto;
    display: block;
}

.ae-l-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.ae-l-nav--start { justify-content: flex-start; padding-right: 108px; }
.ae-l-nav--end { justify-content: flex-end; padding-left: 108px; }

.ae-m-navlink {
    text-decoration: none;
    font-family: var(--ae-font-d);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.ae-m-navlink.ae-is-active { color: var(--color-accent); }

.ae-m-burger,
.ae-m-overlay,
.ae-m-drawer { display: none; }

.ae-m-burger {
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}

.ae-m-burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-primary);
}

.ae-m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-family: var(--ae-font-d);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

a.ae-m-btn--primary,
a.ae-m-btn--primary:visited,
button.ae-m-btn--primary {
    background: linear-gradient(135deg, #3498db, #e74c3c);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(44, 62, 80, 0.16);
}

.ae-m-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.ae-l-hero {
    background: #2c3e50;
    color: #fff;
    padding: 56px 0 40px;
}

.ae-l-hero-copy { max-width: 760px; margin: 0 auto 28px; text-align: center; }

.ae-m-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #9fd0f5;
    margin: 0 0 10px;
}

.ae-m-hero-title { font-size: clamp(1.8rem, 4vw, 3rem); }

.ae-m-hero-lead { color: #e8eef2; }

.ae-l-hero .ae-m-btn--ghost,
.ae-l-hero a.ae-m-btn:not(.ae-m-btn--primary),
.ae-l-hero a.ae-m-btn:not(.ae-m-btn--primary):visited {
    color: #fff;
    border-color: #fff;
}

.ae-m-hero-still {
    margin: 0 auto;
    max-width: 920px;
    background: #1b2836;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.ae-m-hero-still img { display: block; width: 100%; height: auto; }

.ae-l-section { padding: 56px 0; }

.ae-l-bleed { width: 100%; }

.ae-l-bleed--mist { background: #d6eaf8; }

.ae-l-bleed--ink { background: #2c3e50; color: #f4f7f8; }

.ae-l-bleed--ink .ae-m-title { color: #fff; }

.ae-l-cta {
    background: #1b2836;
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

.ae-l-cta .ae-m-title { color: #fff; }

.ae-m-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.ae-m-lead { color: var(--color-text-light); }

.ae-m-app {
    background: #fff;
    padding: 28px;
    box-shadow: 0 16px 36px rgba(44, 62, 80, 0.12);
    min-width: 0;
}

.ae-m-badges {
    font-family: var(--ae-font-d);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    margin: 0 0 16px;
}

.ae-m-app-head {
    display: flex;
    gap: 16px;
    align-items: center;
    min-width: 0;
}

.ae-m-app-id { min-width: 0; }

.ae-m-app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
}

.ae-m-app-name { font-size: 1.4rem; }

.ae-m-app-dev, .ae-m-app-bundle { margin: 0; overflow-wrap: anywhere; }

.ae-m-facts, .ae-m-limits {
    margin: 18px 0;
    padding: 8px 4px 8px 22px;
}

.ae-m-facts li, .ae-m-limits li { margin: 8px 0; }

.ae-m-note, .ae-m-checked, .ae-m-fineprint { color: var(--color-text-light); }

.ae-l-bleed--ink .ae-m-limits,
.ae-l-bleed--ink p { color: #e8eef2; }

.ae-m-stills, .ae-m-gallery {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.ae-m-stills li, .ae-m-gallery li {
    background: #1b2836;
    box-shadow: 0 12px 28px rgba(44, 62, 80, 0.14);
    min-width: 0;
}

.ae-m-stills img, .ae-m-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.ae-m-faq-item { border-top: 2px solid var(--color-primary); }

.ae-m-faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    min-height: 48px;
    padding: 12px 0;
    font-family: var(--ae-font-d);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary);
    cursor: pointer;
}

.ae-m-faq-a { padding: 0 0 14px; }

.ae-m-note-card {
    background: #fff;
    box-shadow: 0 14px 30px rgba(44, 62, 80, 0.12);
    padding: 0 0 18px;
    min-width: 0;
}

.ae-m-band {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 18px;
}

.ae-m-band--a { background: var(--color-primary); }
.ae-m-band--b { background: var(--color-secondary); }
.ae-m-band--c { background: var(--color-accent); }

.ae-m-note-title { font-size: 1.2rem; padding: 0 18px; }
.ae-m-note-card p { padding: 0 18px; margin: 0; }
.ae-m-note-title a { color: var(--color-primary); text-decoration: none; }

.ae-l-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.ae-m-form {
    background: #fff;
    padding: 20px;
    box-shadow: 0 14px 30px rgba(44, 62, 80, 0.12);
}

.ae-m-field { display: block; margin-bottom: 12px; font-weight: 600; }
.ae-m-field input, .ae-m-field textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    border: 2px solid var(--color-primary);
    background: #fff;
    font: inherit;
}

.ae-m-form-note { margin-top: 12px; }

.ae-m-prose h2 { margin-top: 28px; font-size: 1.35rem; }
.ae-m-prose code { overflow-wrap: anywhere; }

.ae-m-crumbs { font-size: 0.9rem; }
.ae-m-log { margin: 24px 0; }

.ae-l-footer {
    background: #fff;
    border-top: 8px solid var(--color-primary);
    padding: 36px 0 28px;
}

.ae-l-footer-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.ae-m-footer-label {
    font-family: var(--ae-font-d);
    font-weight: 700;
    margin: 0 0 8px;
}

.ae-m-footer-links { list-style: none; margin: 0; padding: 0; }
.ae-m-footer-links a,
.ae-m-footer-link {
    color: var(--color-primary);
    background: none;
    border: 0;
    padding: 6px 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    min-height: 40px;
}

.ae-m-cookie { display: none; }

.ae-m-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    color: #2c3e50;
    box-shadow: 0 -8px 24px rgba(44, 62, 80, 0.16);
}

.ae-m-cookie-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
}

.ae-m-cookie p { margin: 0; }
.ae-m-cookie a { color: #2c3e50; }

@keyframes ae-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ae-l-fade { animation: ae-in 0.3s ease both; }

@media (prefers-reduced-motion: reduce) {
    .ae-l-fade { animation: none; }
}

@media (max-width: 1100px) {
    .ae-l-nav { display: none; }

    .ae-m-logo {
        position: static;
        transform: none;
    }

    .ae-m-logo img { width: 120px; }

    .ae-m-burger { display: block; }

    .ae-m-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, visibility .25s;
    }

    .ae-m-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: var(--color-bg);
        overflow-y: auto;
        visibility: hidden;
        transition: transform .3s ease, opacity .3s ease, visibility .3s;
    }

    .ae-m-drawer a {
        display: block;
        padding: 14px 20px;
        color: #2c3e50;
        text-decoration: none;
        font-family: var(--ae-font-d);
        font-weight: 600;
    }

    .ae-m-drawer-close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
        color: var(--color-primary);
    }

    .ae-m-drawer--wide {
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(85vw, 400px);
        padding: 72px 0 24px;
        transform: translateX(100%);
    }

    body.nav-open { overflow: hidden; }
    body.nav-open .ae-m-overlay { opacity: 1; visibility: visible; }
    body.nav-open .ae-m-drawer { visibility: visible; }
    body.nav-open .ae-m-drawer--wide { transform: translateX(0); }
}

@media (max-width: 768px) {
    .ae-l-grid { grid-template-columns: repeat(2, 1fr); }
    .ae-l-split, .ae-l-footer-row { grid-template-columns: 1fr; }
    .ae-m-cookie:not([hidden]) { left: 12px; right: 12px; }
    .ae-m-cookie-row { flex-direction: column; align-items: stretch; }
    .ae-m-app-head { flex-direction: column; align-items: flex-start; }
    .ae-m-actions { flex-direction: column; }
    .ae-m-actions .ae-m-btn { width: 100%; }
}

@media (max-width: 480px) {
    .ae-l-grid, .ae-m-stills, .ae-m-gallery { grid-template-columns: 1fr; }
}
