:root {
    color-scheme: light;
    --accent: #3491fe;
    --accent-strong: #017fff;
    --success: #01ba78;
    --warning: #fe7923;
    --purple: #9168de;
    --danger: #fd5153;
    --bg: #f4f5f8;
    --bg-2: #edeef2;
    --surface: #ffffff;
    --surface-2: #f0f1f5;
    --text: #0d0d1a;
    --muted: #737387;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 16px 48px rgba(18, 24, 40, 0.10);
    --radius: 20px;
    --container: 1120px;
    --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a { color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    width: min(var(--container), calc(100% - 32px));
    margin: 14px auto 0;
    padding: 10px 12px;
    background: rgba(244, 245, 248, 0.82);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(18, 24, 40, 0.07);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    text-decoration: none;
}

.brand img { border-radius: 9px; }

.site-nav {
    display: flex;
    justify-content: center;
    gap: 22px;
    color: var(--muted);
    font-size: 0.94rem;
}

.site-nav a,
.site-footer a,
.text-link {
    text-decoration: none;
}

.site-nav a:hover,
.text-link {
    color: var(--accent-strong);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-link {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-toggle {
    display: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--accent-strong);
    color: #fff;
    font: 700 0.95rem/1 var(--font);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(1, 127, 255, 0.22);
}

.button-small {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.86rem;
}

.button-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 72px;
    width: min(var(--container), calc(100% - 32px));
    min-height: calc(100vh - 84px);
    margin: 0 auto;
    padding: 56px 0 72px;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.9rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero p {
    max-width: 620px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.phone-frame {
    width: min(100%, 360px);
    aspect-ratio: 0.49;
    justify-self: end;
    padding: 14px;
    border-radius: 48px;
    background: #10121a;
    box-shadow: var(--shadow);
}

.phone-screen {
    position: relative;
    height: 100%;
    padding: 54px 20px 20px;
    border-radius: 36px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #f3f5fb 100%);
}

.phone-notch {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 112px;
    height: 28px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #10121a;
}

.phone-screen h2 {
    margin: 0 0 18px;
    font-size: 1.4rem;
}

.gauge {
    width: 180px;
    aspect-ratio: 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: conic-gradient(var(--success), var(--accent), var(--warning), var(--danger), var(--surface-2) 0);
    box-shadow: inset 0 0 0 24px #fff;
}

.macro-row,
.quick-menu {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0;
    padding: 13px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
}

.quick-menu span {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    border-radius: 999px;
    background: rgba(52, 145, 254, 0.1);
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 0.84rem;
}

.section {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 92px 0;
}

.section.muted {
    width: 100%;
    padding-left: max(16px, calc((100% - var(--container)) / 2));
    padding-right: max(16px, calc((100% - var(--container)) / 2));
    background: var(--bg-2);
}

.narrow {
    max-width: 760px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 32px;
}

.section-heading-row {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-label {
    display: block;
    margin-bottom: 12px;
    color: var(--accent-strong);
    font-weight: 800;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

.section h2,
.article-page h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.02;
}

.section-heading p,
.lede {
    color: var(--muted);
    font-size: 1.05rem;
}

.why-grid,
.testimonial-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.why-grid article,
.testimonial-grid figure,
.blog-grid article,
.feature-grid article,
.insight-list article {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.why-grid h3,
.copy-row h3,
.insight-list h3,
.feature-grid h3,
.blog-grid h3,
.timeline h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.why-grid p,
.copy-row p,
.insight-list p,
.feature-grid p,
.blog-grid p,
.timeline p {
    margin: 0;
    color: var(--muted);
}

.avatar {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--success));
}

blockquote {
    margin: 0 0 16px;
    font-size: 1.05rem;
}

figcaption {
    color: var(--muted);
    font-weight: 700;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 64px;
}

.reverse {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.media-panel {
    min-height: 520px;
    border-radius: 34px;
    background: #11131d;
    padding: 28px;
    box-shadow: var(--shadow);
}

.app-stack {
    display: grid;
    gap: 18px;
    height: 100%;
    align-content: center;
}

.mini-shot {
    min-height: 128px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.mini-shot.active {
    background: #fff;
    color: var(--text);
}

.copy-row {
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.copy-row:first-of-type {
    margin-top: 22px;
}

.insight-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.trust-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.trust-band > div {
    padding: 34px;
    border-radius: 28px;
    color: #fff;
    background: #11131d;
}

.trust-band > div:nth-child(2) {
    background: var(--accent-strong);
}

.trust-band p {
    color: rgba(255, 255, 255, 0.82);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.timeline {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}

.timeline article {
    scroll-snap-align: start;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.timeline time,
.blog-grid span,
.article-date {
    display: block;
    margin-bottom: 12px;
    color: var(--accent-strong);
    font-weight: 800;
    font-size: 0.86rem;
}

.timeline-page {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
}

.blog-grid a {
    text-decoration: none;
}

.faq-list {
    display: grid;
    gap: 10px;
}

details {
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

summary {
    cursor: pointer;
    font-weight: 800;
}

details p {
    margin-bottom: 0;
    color: var(--muted);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 14px;
}

.site-footer small {
    grid-column: 1 / -1;
}

.brand-footer {
    color: var(--text);
}

.cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    display: grid;
    gap: 14px;
    width: min(420px, calc(100% - 40px));
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.cookie-banner p {
    margin: 0;
    color: var(--muted);
}

.cookie-banner div {
    display: flex;
    gap: 10px;
}

.article-page {
    padding-top: 72px;
}

.article-page h1 {
    margin-bottom: 22px;
}

.editor-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.editor-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.editor-form input,
.editor-form select,
.editor-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font: 1rem/1.4 var(--font);
}

@media (max-width: 860px) {
    .site-header {
        grid-template-columns: auto auto 1fr;
        border-radius: 24px;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: start;
        border: 0;
        background: transparent;
        color: var(--muted);
        font: 800 0.9rem/1 var(--font);
    }

    .site-nav {
        display: none;
        grid-column: 1 / -1;
        justify-content: start;
        flex-wrap: wrap;
    }

    .site-nav.is-open {
        display: flex;
    }

    .header-actions {
        justify-self: end;
    }

    .hero,
    .split,
    .reverse,
    .trust-band,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 36px;
        min-height: auto;
        padding-top: 44px;
    }

    .phone-frame {
        justify-self: center;
    }

    .why-grid,
    .testimonial-grid,
    .blog-grid,
    .feature-grid,
    .insight-list,
    .timeline-page {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 68px 0;
    }

    .section-heading-row {
        display: block;
    }

    .media-panel {
        min-height: 360px;
    }

    .site-footer nav {
        justify-content: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
