:root {
    --background: #f5f9ff;
    --surface: #ffffff;
    --text: #071a4a;
    --muted: #526076;
    --accent: #2f75df;
    --accent-dark: #245db7;
    --border: rgba(40, 77, 135, 0.13);
    --shadow: 0 28px 70px rgba(32, 70, 128, 0.20), 0 4px 18px rgba(32, 70, 128, 0.09);
    --content: 1320px;
}

* { box-sizing: border-box; }

html {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(60rem 35rem at 12% 25%, rgba(98, 157, 238, 0.13), transparent 72%),
        radial-gradient(46rem 34rem at 87% 18%, rgba(98, 157, 238, 0.12), transparent 72%),
        linear-gradient(180deg, #fbfdff 0%, var(--background) 67%, #ffffff 67%);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
    line-height: 1.5;
}

.shell {
    width: min(calc(100% - 48px), var(--content));
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding-top: 34px;
    color: var(--text);
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.brand img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    box-shadow: 0 9px 20px rgba(37, 94, 184, 0.24);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
    align-items: center;
    gap: clamp(42px, 5vw, 76px);
    min-height: 680px;
    padding: 48px 24px 82px;
}

.hero::before {
    position: absolute;
    z-index: -1;
    top: 8%;
    left: 8%;
    width: 360px;
    height: 490px;
    border-radius: 42px;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: 0 16px 50px rgba(57, 105, 178, 0.05);
    content: "";
}

.hero-copy { max-width: 660px; }

h1 {
    margin: 0;
    max-width: 650px;
    font-size: clamp(50px, 4.7vw, 66px);
    font-weight: 750;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.tagline {
    max-width: 620px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: clamp(19px, 1.7vw, 24px);
    letter-spacing: -0.015em;
    line-height: 1.47;
}

.tagline kbd {
    display: inline-block;
    padding: 0.08em 0.38em;
    border: 1px solid rgba(40, 77, 135, 0.16);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 1px 0 rgba(40, 77, 135, 0.08);
    color: var(--text);
    font: inherit;
    font-size: 0.86em;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.download-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    margin-top: 35px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 25px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(180deg, #3a83ec 0%, var(--accent) 68%, var(--accent-dark) 100%);
    box-shadow: 0 12px 28px rgba(47, 117, 223, 0.29);
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.download-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(47, 117, 223, 0.36);
}

.download-button:disabled {
    cursor: wait;
    opacity: 0.58;
}

.download-button svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.download-button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(47, 117, 223, 0.38);
    outline-offset: 4px;
}

.requirements,
.download-status {
    margin: 0 0 0 5px;
    color: var(--muted);
    font-size: 14px;
}

.download-status {
    min-height: 21px;
    color: #394a66;
}

.download-status[hidden] { display: none; }

.turnstile-wrap {
    min-height: 0;
    /* Allow interactive Turnstile challenges to paint when needed */
    overflow: visible;
}

.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.product-stage {
    position: relative;
    justify-self: center;
    width: min(100%, 650px);
    min-height: 575px;
}

.product {
    position: absolute;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    animation: product-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
    filter: drop-shadow(0 28px 48px rgba(16, 36, 65, 0.28));
}

.product-primary {
    z-index: 3;
    top: 10px;
    left: 50%;
    width: 390px;
    transform: translateX(-50%) rotate(0.1deg);
    animation-delay: 120ms;
}

.product-support {
    z-index: 1;
}

.product-settings {
    top: 100px;
    left: 0;
    width: 420px;
    height: 330px;
    transform: rotate(-3.3deg);
    animation-delay: 40ms;
}

.product-favorites {
    z-index: 2;
    top: 132px;
    right: 0;
    width: 315px;
    height: 398px;
    transform: rotate(3.2deg);
    animation-delay: 80ms;
}

.product-settings img,
.product-favorites img {
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 26px;
}

@keyframes product-rise {
    from {
        opacity: 0;
        translate: 0 18px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

.features {
    padding: 94px 0 24px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(40, 77, 135, 0.07);
}

.features-intro {
    margin-bottom: 46px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.features h2 {
    margin: 0;
    font-size: clamp(38px, 4.6vw, 58px);
    letter-spacing: -0.052em;
    line-height: 1.04;
}

.feature-story {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
    gap: clamp(54px, 7vw, 102px);
    align-items: center;
    min-height: 610px;
    padding-block: 76px;
    border-top: 1px solid var(--border);
}

.feature-story-reverse .feature-copy { order: 2; }
.feature-story-reverse .feature-visual { order: 1; }

.feature-number {
    margin: 0 0 20px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.13em;
}

.feature-copy h3 {
    margin: 0;
    font-size: clamp(35px, 4vw, 52px);
    letter-spacing: -0.052em;
    line-height: 1.04;
}

.feature-copy > p:not(.feature-number) {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.55;
}

.feature-list {
    display: grid;
    gap: 15px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 29px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.58;
}

.feature-list li::before {
    position: absolute;
    top: 0.44em;
    left: 1px;
    width: 12px;
    height: 7px;
    border-bottom: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    content: "";
    transform: rotate(-45deg);
}

.feature-list strong { color: var(--text); }

.feature-visual {
    display: grid;
    min-height: 480px;
    margin: 0;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 34px;
    background:
        radial-gradient(circle at 68% 22%, rgba(73, 137, 226, 0.16), transparent 38%),
        radial-gradient(circle at 18% 78%, rgba(73, 137, 226, 0.08), transparent 42%),
        #edf5ff;
}

.feature-visual img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 28px;
    filter: drop-shadow(0 26px 36px rgba(16, 36, 65, 0.22));
}

.feature-visual-favorites img {
    width: min(63%, 390px);
    margin-top: 44px;
}

.feature-visual-wide {
    align-items: end;
    padding: 56px 40px 0;
}

.feature-visual-wide img {
    width: min(100%, 720px);
    border-radius: 24px;
}

.feature-visual-panel {
    place-items: center;
    padding: 40px;
}

.capability-panel {
    width: min(100%, 420px);
    padding: 32px 34px 28px;
    border: 1px solid rgba(40, 77, 135, 0.12);
    border-radius: 28px;
    background: linear-gradient(180deg, #1c2330 0%, #121722 100%);
    box-shadow: var(--shadow);
    color: #f4f7ff;
}

.capability-kicker {
    margin: 0 0 18px;
    color: #8eb6f5;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.capability-steps {
    margin: 0;
    padding: 0 0 0 22px;
    display: grid;
    gap: 14px;
    color: rgba(244, 247, 255, 0.88);
    font-size: 18px;
    line-height: 1.4;
}

.capability-foot {
    margin: 26px 0 0;
    color: rgba(244, 247, 255, 0.62);
    font-size: 15px;
}

.capability-foot kbd,
.deep-card kbd,
.feature-list kbd {
    display: inline-block;
    padding: 0.08em 0.36em;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font: inherit;
    font-size: 0.9em;
    font-weight: 650;
}

.feature-list kbd {
    border-color: rgba(40, 77, 135, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
}

.transform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 460px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.transform-grid li {
    padding: 14px 16px;
    border: 1px solid rgba(40, 77, 135, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.deep-dive {
    padding: 24px 0 88px;
    background: #ffffff;
}

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

.deep-card {
    padding: 28px 26px;
    border: 1px solid rgba(40, 77, 135, 0.10);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(73, 137, 226, 0.10), transparent 45%),
        #f7faff;
}

.deep-card h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.deep-card p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.welcome-visual {
    display: grid;
    place-items: center;
    margin: 54px 0 0;
    padding: 40px 24px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 68% 22%, rgba(73, 137, 226, 0.16), transparent 38%),
        #edf5ff;
}

.welcome-visual img {
    width: min(100%, 420px);
    height: auto;
    border-radius: 28px;
    filter: drop-shadow(0 26px 36px rgba(16, 36, 65, 0.22));
}

footer {
    padding: 46px 24px 30px;
    color: #6a7485;
    background: #ffffff;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .deep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    body { background: linear-gradient(180deg, #fbfdff, var(--background) 63%, #ffffff 63%); }
    .brand { padding-top: 24px; }
    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 58px 0 72px;
    }
    .hero::before { left: -6%; width: 76%; height: 430px; }
    .hero-copy { max-width: 700px; }
    .product-stage { width: min(100%, 650px); }
    .feature-story {
        grid-template-columns: 1fr;
        gap: 44px;
        min-height: 0;
        padding-block: 68px;
    }
    .feature-story-reverse .feature-copy,
    .feature-story-reverse .feature-visual { order: initial; }
    .feature-visual { min-height: 450px; }
    .deep-dive { padding-bottom: 72px; }
}

@media (max-width: 560px) {
    .shell { width: min(calc(100% - 32px), var(--content)); }
    .brand { gap: 12px; font-size: 25px; }
    .brand img { width: 48px; height: 48px; border-radius: 12px; }
    .hero { padding-top: 48px; }
    h1 { font-size: clamp(42px, 13vw, 58px); }
    .tagline { font-size: 18px; }
    .download-button { width: 100%; font-size: 17px; }
    .download-form { align-items: stretch; }
    .requirements, .download-status { margin-left: 0; text-align: center; }
    .product-stage { min-height: 526px; }
    .product-support { display: none; }
    .product-primary { top: 0; width: 100%; }
    .features { padding-top: 72px; }
    .features-intro { margin-bottom: 34px; }
    .feature-story { gap: 34px; padding-block: 56px; }
    .feature-copy > p:not(.feature-number) { font-size: 18px; }
    .feature-visual { min-height: 370px; border-radius: 25px; }
    .feature-visual-favorites img { width: 78%; margin-top: 32px; }
    .feature-visual-wide { padding: 30px 18px 0; }
    .deep-grid { grid-template-columns: 1fr; }
    .transform-grid { grid-template-columns: 1fr; }
    .welcome-visual img { width: min(100%, 340px); }
}

@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;
    }

    .product { animation: none; }
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--background);
}

.error-card {
    width: min(calc(100% - 48px), 540px);
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 20px 55px rgba(32, 70, 128, 0.12);
}

.error-card h1 {
    margin: 0 0 12px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.error-card p {
    margin: 0;
    color: var(--muted);
}

.error-card a {
    display: inline-block;
    margin-top: 22px;
    color: var(--accent);
    font-weight: 650;
}
