:root {
    color-scheme: dark;
    --bg: #05070c;
    --bg-elevated: #0b1118;
    --panel: rgba(255, 255, 255, 0.035);
    --panel-strong: rgba(255, 255, 255, 0.07);
    --text: #f7f8fb;
    --muted: rgba(247, 248, 251, 0.62);
    --dim: rgba(247, 248, 251, 0.4);
    --line: rgba(255, 255, 255, 0.09);
    --blue: #0a84ff;
    --blue-soft: rgba(10, 132, 255, 0.16);
    --green: #18b26b;
    --orange: #ff9f0a;
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.46);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(180deg, #05070c 0%, #07111a 42%, #030508 100%);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    text-align: left;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 72%);
}

a {
    color: inherit;
}

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

.site-shell {
    width: min(calc(100% - 48px), 1160px);
    margin: 0 auto;
    padding: 32px 0 0;
    position: relative;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0;
    margin-bottom: 48px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 760;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.nav-links,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.nav-links a,
.nav-links .nav-status {
    color: rgba(247, 248, 251, 0.62);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 620;
    padding: 8px 15px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.075);
}

.nav-links .nav-cta {
    display: inline-flex;
    align-items: center;
    color: #d7eaff;
    border: 1px solid rgba(10, 132, 255, 0.36);
    background: rgba(10, 132, 255, 0.08);
}

.nav-links .nav-status {
    cursor: default;
}

.nav-links a.nav-cta:hover {
    background: rgba(10, 132, 255, 0.17);
    border-color: rgba(10, 132, 255, 0.55);
}

.hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.86fr) minmax(520px, 1.25fr);
    gap: 48px;
    align-items: center;
    min-height: clamp(620px, calc(100vh - 180px), 720px);
    padding-bottom: 44px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3.8rem, 6vw, 5.7rem);
    line-height: 0.95;
    font-weight: 780;
    letter-spacing: 0;
}

.hero-lede {
    max-width: 560px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: clamp(1.08rem, 1.8vw, 1.28rem);
    line-height: 1.68;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 720;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

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

.btn-primary {
    color: #fff;
    background: var(--blue);
    border: 1px solid var(--blue);
    box-shadow: 0 12px 34px rgba(10, 132, 255, 0.24);
}

.btn-primary:hover {
    background: #2492ff;
    border-color: #2492ff;
    box-shadow: 0 16px 42px rgba(10, 132, 255, 0.32);
}

.btn-status {
    cursor: default;
}

.btn-status:hover {
    transform: none;
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 12px 34px rgba(10, 132, 255, 0.24);
}

.btn-secondary {
    color: #d7eaff;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.hero-note {
    margin: 16px 0 0;
    color: var(--dim);
    font-size: 0.92rem;
}

.hero-media {
    position: relative;
    min-height: 560px;
}

.device-frame {
    margin: 0;
    overflow: hidden;
    background: #05070c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.device-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.device-frame-ipad {
    width: min(760px, 100%);
    aspect-ratio: 4 / 3;
    border-radius: 24px;
}

.device-frame-iphone {
    position: absolute;
    right: -20px;
    bottom: -36px;
    width: min(260px, 34vw);
    aspect-ratio: 1242 / 2688;
    border-radius: 34px;
    border-width: 3px;
}

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

.feature-card,
.step-card,
.final-cta,
.detail-copy,
.detail-media {
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
}

.feature-card,
.step-card {
    padding: 28px 24px;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover,
.step-card:hover {
    background: var(--panel-strong);
    border-color: rgba(10, 132, 255, 0.25);
    transform: translateY(-2px);
}

.feature-label,
.section-label,
.step-num {
    display: block;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feature-card h2,
.step-card h3 {
    margin: 14px 0 10px;
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.24;
}

.feature-card p,
.step-card p,
.detail-copy p,
.final-cta p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.66;
}

.detail-section {
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 20px;
}

.detail-section-reverse {
    grid-template-columns: 1fr 1.12fr;
}

.detail-section-reverse .detail-copy {
    order: 2;
}

.detail-section-reverse .detail-media {
    order: 1;
}

.detail-copy {
    padding: 42px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-copy h2 {
    margin: 14px 0 18px;
    color: var(--text);
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.detail-list {
    margin: 22px 0 0;
    padding-left: 20px;
    color: rgba(247, 248, 251, 0.64);
    font-size: 0.95rem;
    line-height: 1.65;
}

.detail-list li {
    margin-bottom: 8px;
}

.detail-media {
    min-height: 420px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-stack {
    position: relative;
    width: min(520px, 100%);
    min-height: 520px;
    margin: 0;
}

.phone-stack img,
.single-phone img {
    border-radius: 32px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
    background: #05070c;
}

.phone-stack img {
    position: absolute;
    width: 46%;
}

.phone-stack img:first-child {
    left: 9%;
    top: 0;
    z-index: 2;
}

.phone-stack img:last-child {
    right: 7%;
    bottom: 0;
    opacity: 0.92;
}

.landscape-frame {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.landscape-frame img {
    width: 100%;
    height: auto;
}

.detail-media-single {
    min-height: 560px;
}

.single-phone {
    margin: 0;
    width: min(280px, 72%);
}

.workflow {
    margin: 84px 0;
    text-align: center;
}

.workflow h2 {
    margin: 14px auto 40px;
    color: var(--text);
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.workflow .section-label {
    text-align: center;
}

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

.step-card {
    text-align: left;
}

.step-num {
    color: var(--orange);
}

.final-cta {
    text-align: center;
    padding: 58px 32px;
    margin-bottom: 0;
    background:
        linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(24, 178, 107, 0.05)),
        var(--panel);
    border-color: rgba(10, 132, 255, 0.18);
}

.final-cta h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    line-height: 1.12;
}

.final-cta p {
    max-width: 520px;
    margin: 0 auto 30px;
}

.final-cta .cta-group {
    justify-content: center;
    margin-top: 0;
}

.site-footer {
    width: min(calc(100% - 48px), 1160px);
    margin: 0 auto;
    padding: 40px 0 50px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.policy-shell {
    min-height: calc(100vh - 148px);
}

.policy-card {
    width: 100%;
    max-width: 780px;
    margin: 0 auto 84px;
    padding: 46px 42px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
}

.policy-card h1 {
    margin: 0 0 24px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.policy-card h2 {
    margin: 34px 0 12px;
    color: var(--text);
    font-size: 1.22rem;
    line-height: 1.25;
}

.policy-card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.72;
    overflow-wrap: break-word;
}

.policy-list {
    margin: 0 0 18px;
    padding-left: 22px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.72;
}

.policy-list li {
    margin-bottom: 8px;
}

.policy-card a {
    color: #9dcbff;
    text-decoration: none;
}

.policy-card a:hover {
    color: #c7e2ff;
}

.policy-date {
    color: var(--dim);
    font-size: 0.9rem;
}

.not-found-card {
    text-align: center;
}

.not-found-card .cta-group {
    justify-content: center;
}

.footer-links {
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a,
.footer-credit a {
    color: rgba(247, 248, 251, 0.42);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-credit a:hover {
    color: rgba(247, 248, 251, 0.72);
}

.footer-credit {
    color: rgba(247, 248, 251, 0.25);
    font-size: 0.86rem;
    margin: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-grid .reveal:nth-child(2),
.steps .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.feature-grid .reveal:nth-child(3),
.steps .reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.feature-grid .reveal:nth-child(4) {
    transition-delay: 0.24s;
}

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

    .reveal,
    .btn,
    .feature-card,
    .step-card,
    .nav-links a {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

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

    .hero-media {
        min-height: 520px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-nav {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 46px;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .detail-section,
    .detail-section-reverse {
        grid-template-columns: 1fr;
    }

    .detail-section-reverse .detail-copy,
    .detail-section-reverse .detail-media {
        order: initial;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .site-shell,
    .site-footer {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }

    .site-shell {
        padding-top: 20px;
    }

    .hero {
        gap: 34px;
        padding-bottom: 52px;
    }

    .hero h1 {
        font-size: clamp(2.9rem, 14vw, 3.55rem);
    }

    .hero-lede {
        max-width: 31ch;
    }

    .hero-lede-second {
        display: block;
    }

    .hero .cta-group {
        width: 100%;
        max-width: 22rem;
    }

    .hero-media {
        min-height: 390px;
    }

    .device-frame-ipad {
        border-radius: 16px;
    }

    .device-frame-iphone {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        margin-bottom: 52px;
    }

    .btn {
        width: 100%;
    }

    .detail-copy {
        padding: 30px 24px;
    }

    .detail-media {
        min-height: 360px;
        padding: 18px;
    }

    .phone-stack {
        min-height: 420px;
    }

    .phone-stack img {
        width: 50%;
    }

    .single-phone {
        width: min(260px, 86%);
    }

    .workflow {
        margin: 56px 0;
    }

    .final-cta {
        padding: 42px 22px;
    }

    .policy-card {
        width: 358px;
        max-width: 100%;
        padding: 32px 24px;
        margin-bottom: 56px;
    }

    .policy-shell .policy-card {
        margin-left: 0;
        margin-right: 0;
    }

    .footer-links {
        gap: 16px;
    }
}

@media (max-width: 430px) {
    .nav-links a {
        padding: 8px 12px;
    }

    .hero-media {
        min-height: 330px;
    }

    .phone-stack {
        min-height: 360px;
    }
}
