:root {
    color-scheme: light;
    --ink: #0b1720;
    --ink-soft: #344554;
    --paper: #f7f4ee;
    --surface: #ffffff;
    --line: #d9e1e6;
    --sky: #2f7fad;
    --sky-dark: #0d3d5c;
    --teal: #1f8a85;
    --amber: #d9963a;
    --green: #5b7f3b;
    --shadow: 0 18px 50px rgba(16, 35, 51, 0.16);
    --radius: 8px;
    --max: 1180px;
    --header-height: 76px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 30;
    transform: translateY(-160%);
    background: var(--surface);
    color: var(--ink);
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 14px 22px;
    transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(247, 244, 238, 0.94);
    border-bottom: 1px solid rgba(217, 225, 230, 0.9);
    box-shadow: 0 12px 30px rgba(16, 35, 51, 0.08);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(100%, var(--max));
    min-height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.nav-links a,
.button,
.back-top {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.brand {
    gap: 10px;
    color: var(--surface);
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0;
}

.is-scrolled .brand,
.is-open .brand {
    color: var(--ink);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.16);
    color: var(--surface);
    font-size: 0.78rem;
}

.is-scrolled .brand-mark,
.is-open .brand-mark {
    border-color: rgba(13, 61, 92, 0.16);
    background: var(--sky-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.9);
    padding: 0 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
}

.is-scrolled .nav-links a,
.is-open .nav-links a {
    color: var(--ink-soft);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.is-scrolled .nav-links a:hover,
.is-open .nav-links a:hover {
    background: rgba(47, 127, 173, 0.12);
    color: var(--ink);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.14);
    color: var(--surface);
    cursor: pointer;
}

.is-scrolled .nav-toggle,
.is-open .nav-toggle {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-lines::before {
    transform: translateY(-7px);
}

.nav-toggle-lines::after {
    transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
    transform: translateY(-2px) rotate(-90deg);
}

.hero {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--surface);
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 17, 28, 0.92) 0%, rgba(5, 17, 28, 0.72) 36%, rgba(5, 17, 28, 0.28) 72%, rgba(5, 17, 28, 0.16) 100%),
        linear-gradient(180deg, rgba(5, 17, 28, 0.42) 0%, rgba(5, 17, 28, 0) 48%, rgba(5, 17, 28, 0.38) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100% - 44px, var(--max));
    margin: 0 auto;
    padding: 130px 0 70px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.intro .eyebrow,
.features .eyebrow,
.demos .eyebrow,
.download-panel .eyebrow {
    color: #84520b;
}

.hero h1,
.section-heading h2,
.content-grid h2,
.download-content h2 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1.02;
}

.hero h1 {
    max-width: 740px;
    font-size: clamp(2.25rem, 6vw, 5rem);
}

.hero-copy {
    max-width: 640px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 2.1vw, 1.32rem);
}

.hero-actions,
.download-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    justify-content: center;
    border-radius: var(--radius);
    padding: 0 20px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(10, 25, 38, 0.18);
}

.button-primary {
    background: var(--amber);
    color: #160d02;
}

.button-primary:hover {
    background: #efad51;
}

.store-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-radius: var(--radius);
}

.store-link img {
    width: 156px;
    height: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 690px);
    margin: 52px 0 0;
}

.hero-stats div {
    min-height: 94px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.hero-stats dt {
    color: var(--surface);
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.1;
}

.hero-stats dd {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.section-pad {
    padding: 92px 22px;
}

.content-grid,
.section-heading,
.feature-list,
.demo-grid,
.download-content,
.site-footer {
    width: min(100%, var(--max));
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: start;
}

.intro {
    background: var(--surface);
}

.intro p:last-child,
.download-content p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.12rem;
}

.content-grid h2,
.section-heading h2,
.download-content h2 {
    font-size: clamp(1.5rem, 3.4vw, 3.1rem);
}

.features {
    background: #edf5f4;
}

.section-heading {
    margin-bottom: 44px;
}

.section-heading h2 {
    max-width: 820px;
}

.feature-list {
    display: grid;
    gap: 28px;
}

.feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
    gap: 28px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(13, 61, 92, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.feature-card-reverse {
    grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
}

.feature-card-reverse .feature-media {
    order: 2;
}

.feature-media {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--line);
}

.feature-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.feature-copy {
    padding: 12px;
}

.feature-number {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: var(--green);
    font-weight: 900;
}

.feature-copy h3,
.demo-card h3 {
    margin: 10px 0 12px;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.12;
}

.feature-copy p {
    margin: 0;
    color: var(--ink-soft);
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 18px;
    color: var(--sky-dark);
    font-weight: 900;
    text-decoration-color: rgba(13, 61, 92, 0.35);
    text-underline-offset: 5px;
}

.demos {
    background: var(--surface);
}

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

.demo-grid-single {
    max-width: 860px;
    margin: 0 auto;
    grid-template-columns: 1fr;
}

.demo-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(16, 35, 51, 0.08);
}

.demo-card h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.video-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(13, 61, 92, 0.92), rgba(31, 138, 133, 0.82)),
        url("../images/background.jpg") center / cover;
}

.video-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-button {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--sky-dark);
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(10, 25, 38, 0.3);
}

.video-button:hover {
    transform: translateY(-1px);
}

.video-button span {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 16px solid currentColor;
}

.setup {
    background: #101b22;
    color: var(--surface);
}

.setup .content-grid {
    align-items: stretch;
}

.setup-note {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(244, 166, 64, 0.36);
    border-radius: var(--radius);
    background: rgba(244, 166, 64, 0.1);
    color: rgba(255, 255, 255, 0.82);
}

.setup-steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: steps;
}

.setup-steps li {
    position: relative;
    min-height: 102px;
    padding: 20px 20px 20px 74px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    counter-increment: steps;
}

.setup-steps li::before {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--amber);
    color: #160d02;
    font-weight: 900;
    content: counter(steps);
}

.setup-steps strong,
.setup-steps span {
    display: block;
}

.setup-steps strong {
    font-size: 1.08rem;
}

.setup-steps span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.74);
}

.download-panel {
    background:
        linear-gradient(90deg, rgba(247, 244, 238, 1) 0%, rgba(247, 244, 238, 0.9) 58%, rgba(217, 229, 230, 0.78) 100%);
}

.download-content {
    padding: 42px;
    border: 1px solid rgba(13, 61, 92, 0.14);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.download-content h2 {
    max-width: 820px;
}

.download-content p {
    max-width: 700px;
    margin-top: 18px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 22px 42px;
    color: var(--ink-soft);
}

.site-footer p {
    margin: 8px 0 0;
}

.site-footer a {
    color: var(--sky-dark);
    font-weight: 800;
    text-underline-offset: 4px;
}

.back-top {
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 22px;
        right: 22px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface);
        box-shadow: var(--shadow);
    }

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

    .nav-links a {
        color: var(--ink);
    }

    .hero {
        min-height: 720px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(5, 17, 28, 0.92), rgba(5, 17, 28, 0.66)),
            linear-gradient(180deg, rgba(5, 17, 28, 0.24), rgba(5, 17, 28, 0.44));
    }

    .content-grid,
    .feature-card,
    .feature-card-reverse,
    .demo-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-reverse .feature-media {
        order: 0;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 12px 16px;
    }

    .hero-content,
    .content-grid,
    .section-heading,
    .feature-list,
    .demo-grid,
    .download-content,
    .site-footer {
        width: min(100% - 32px, var(--max));
    }

    .hero {
        min-height: 780px;
    }

    .hero-content {
        padding-top: 112px;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 9.6vw, 3.1rem);
    }

    .hero-stats {
        grid-template-columns: 1fr;
        margin-top: 34px;
    }

    .hero-stats div {
        min-height: 78px;
    }

    .section-pad {
        padding: 68px 0;
    }

    .feature-card {
        padding: 12px;
    }

    .feature-copy {
        padding: 8px 2px 4px;
    }

    .download-content {
        padding: 28px 18px;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
