:root {
    --bg: #09090B;
    --card: rgba(24, 24, 27, .72);
    --primary: #6D5DFB;
    --primary-strong: #5B4AF0;
    --secondary: #22D3EE;
    --success: #22C55E;
    --danger: #EF4444;
    --text: #F8FAFC;
    --muted: #A1A1AA;
    --border: rgba(255,255,255,.08);
    --shadow: 0 24px 80px rgba(0,0,0,.42);
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(109, 93, 251, .22), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(34, 211, 238, .13), transparent 28rem),
        var(--bg);
    color: var(--text);
}

.noise-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 80%);
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

.site-shell {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 16px 0 56px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(9, 9, 11, .76);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,.22);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: var(--secondary);
    background: linear-gradient(135deg, rgba(109, 93, 251, .25), rgba(34, 211, 238, .12));
    border: 1px solid var(--border);
}

.brand-mark svg {
    width: 24px;
    height: 24px;
}

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

.nav-links a,
.header-action {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    transition: .2s ease;
}

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

.header-action {
    color: var(--text);
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 10px 28px rgba(109, 93, 251, .28);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: .2s ease;
}

.menu-toggle span:first-child {
    top: 15px;
}

.menu-toggle span:last-child {
    top: 25px;
}

.menu-toggle.is-open span:first-child {
    top: 20px;
    transform: rotate(45deg);
}

.menu-toggle.is-open span:last-child {
    top: 20px;
    transform: rotate(-45deg);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 24px 58px;
    border: 1px solid var(--border);
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
        rgba(9, 9, 11, .62);
    box-shadow: var(--shadow);
    text-align: center;
}

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

.hero-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    filter: blur(42px);
    opacity: .28;
}

.hero-glow-one {
    top: -160px;
    left: 8%;
    background: var(--primary);
}

.hero-glow-two {
    right: 8%;
    bottom: -180px;
    background: var(--secondary);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #D4D4D8;
    background: rgba(255,255,255,.045);
    font-size: 14px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, .12);
}

.hero h1 {
    max-width: 850px;
    margin: 0 auto;
    font-size: clamp(42px, 8vw, 86px);
    line-height: .94;
    letter-spacing: -.075em;
}

.hero-copy {
    max-width: 710px;
    margin: 24px auto 34px;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
}

.download-card {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 60px rgba(0,0,0,.28);
    text-align: left;
}

.download-card label {
    display: block;
    margin: 6px 8px 10px;
    color: #E4E4E7;
    font-size: 14px;
    font-weight: 650;
}

.input-row {
    display: flex;
    gap: 10px;
}

.input-row input {
    flex: 1;
    width: 100%;
    height: 58px;
    padding: 0 18px;
    color: var(--text);
    border: 1px solid var(--border);
    outline: none;
    border-radius: 17px;
    background: rgba(9, 9, 11, .75);
    transition: .2s ease;
}

.input-row input:focus {
    border-color: rgba(34, 211, 238, .5);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .08);
}

.input-row button,
.primary-button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 17px;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    box-shadow: 0 16px 40px rgba(109, 93, 251, .34);
    transition: transform .2s ease, opacity .2s ease;
    font-weight: 750;
}

.input-row button {
    min-width: 190px;
    height: 58px;
}

.input-row button:hover,
.primary-button:hover,
.button-link:hover {
    transform: translateY(-1px);
}

.input-row button:disabled,
.primary-button:disabled,
.ghost-button:disabled {
    opacity: .72;
    cursor: wait;
}

.input-row button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.input-row button.is-loading svg {
    animation: spin 1s linear infinite;
}

.ghost-button {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 17px;
    color: #E4E4E7;
    background: rgba(255,255,255,.065);
    border: 1px solid var(--border);
    font-weight: 750;
}

.form-note {
    margin: 10px 8px 4px;
    color: var(--muted);
    font-size: 13px;
}

.trust-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.trust-row span,
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #D4D4D8;
    background: rgba(255,255,255,.045);
    font-size: 13px;
    font-weight: 650;
}

.result-panel {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    align-items: center;
    width: min(100%, 720px);
    margin: 24px auto 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(24, 24, 27, .8);
    text-align: left;
}

.skeleton-thumb {
    height: 100px;
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.15), rgba(255,255,255,.06));
    background-size: 220% 100%;
    animation: shimmer 1.35s ease-in-out infinite;
}

.result-content h3 {
    margin: 10px 0 6px;
}

.result-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.section {
    padding: 92px 0 0;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 32px;
    text-align: center;
}

.section-kicker {
    color: var(--secondary);
    font-weight: 750;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .18em;
}

.section h2 {
    margin: 12px 0 12px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1;
    letter-spacing: -.055em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.platform-card,
.step-card,
.faq-list details {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--card);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.platform-card {
    padding: 24px;
    transition: transform .2s ease, border-color .2s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, .26);
}

.platform-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, rgba(109, 93, 251, .95), rgba(34, 211, 238, .7));
    font-weight: 900;
}

.platform-card h3,
.step-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.platform-card p,
.step-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.how-section {
    padding-top: 104px;
}

.step-card {
    padding: 26px;
}

.step-card span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--secondary);
    font-weight: 850;
}

.faq-section {
    padding-bottom: 88px;
}

.faq-list {
    display: grid;
    gap: 12px;
    width: min(100%, 850px);
    margin: 0 auto;
}

.faq-list details {
    padding: 0 22px;
}

.faq-list summary {
    cursor: pointer;
    padding: 22px 0;
    font-weight: 750;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list p {
    margin: -4px 0 22px;
    color: var(--muted);
    line-height: 1.7;
}

.faq-list code {
    color: var(--secondary);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 26px;
    padding: 34px 0 44px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.site-footer p {
    max-width: 520px;
    line-height: 1.7;
}

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

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-content: flex-start;
}

.footer-links a {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #D4D4D8;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    max-width: min(380px, calc(100vw - 40px));
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(24, 24, 27, .92);
    color: var(--text);
    box-shadow: var(--shadow);
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: .22s ease;
}

.toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.toast[data-type="error"] {
    border-color: rgba(239, 68, 68, .35);
}

.toast[data-type="success"] {
    border-color: rgba(34, 197, 94, .35);
}

.not-found {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.not-found h1 {
    margin: 14px 0 8px;
    font-size: clamp(36px, 7vw, 72px);
    letter-spacing: -.06em;
}

.not-found p {
    margin: 0;
    color: var(--muted);
}

.button-link {
    display: inline-flex;
    margin-top: 18px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    to {
        background-position: -220% 0;
    }
}

@media (max-width: 860px) {
    .site-header {
        border-radius: 24px;
        position: relative;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 22px;
        background: rgba(9, 9, 11, .95);
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow);
    }

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

    .nav-links a {
        padding: 13px 14px;
    }

    .hero {
        padding: 64px 16px 42px;
    }

    .input-row {
        flex-direction: column;
    }

    .input-row button {
        width: 100%;
    }

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

    .result-panel {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 520px) {
    .site-shell {
        width: min(100% - 20px, var(--max));
    }

    .site-header {
        margin-top: 10px;
    }

    .header-action {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
    }
}
