:root {
    --bg-dark: #050505;
    --bg-blue: #0a192f;
    --accent: #3b82f6;
    --white: #ffffff;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.031);
    --card-border: rgba(255, 255, 255, 0.05);
    --radius: 1.5rem;
    --container: 72rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 50% 50%, var(--bg-blue) 0%, var(--bg-dark) 100%) fixed;
    min-height: 100dvh;
    overflow-x: hidden;
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- header ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 60;
    background: rgba(5, 5, 5, 0.4);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.16);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 4.5rem;
}

.logo {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.logo:hover {
    color: var(--accent);
}

.header-nav {
    display: none;
    gap: 1.5rem;
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 500;
}

.header-nav a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--white);
}

.header-login {
    margin-left: auto;
}

.header-nav + .header-login {
    margin-left: 0;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.6rem 1.1rem;
    font-size: 0.875rem;
}

.btn-ghost:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.08);
}

.btn-block {
    width: 100%;
}

/* ---------- background glow ---------- */

.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    z-index: -1;
    animation: pulse-bg 8s infinite ease-in-out;
    pointer-events: none;
}

@keyframes pulse-bg {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* ---------- hero ---------- */

main {
    padding-top: 4.5rem;
}

.hero {
    display: grid;
    gap: 3rem;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.eyebrow,
.section-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow {
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2rem, 7vw, 3.75rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h1 .accent {
    color: var(--accent);
}

.lead {
    color: var(--gray-400);
    font-size: 1.05rem;
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero-note {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    letter-spacing: 0.02em;
}

.hero-media {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: min(18rem, 70vw);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease-out, border-color 0.25s ease-out;
    overflow: hidden;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: rgba(59, 130, 246, 0.2);
    filter: blur(60px);
    z-index: -1;
}

.image-wrapper:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    filter: brightness(0.95);
}

/* ---------- sections ---------- */

.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: -0.02em;
    margin: 0.9rem 0 2.5rem;
    font-weight: 700;
}

.grid {
    display: grid;
    gap: 1.25rem;
}

.glass-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease-out, border-color 0.25s ease-out, box-shadow 0.25s ease-out;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45), 0 8px 40px rgba(59, 130, 246, 0.1);
}

.glass-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.glass-card p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.65;
}

.features-grid .glass-card {
    padding: 1.75rem;
}

.icon-wrapper {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent);
    margin-bottom: 1.25rem;
}

/* ---------- steps ---------- */

.steps {
    list-style: none;
    display: grid;
    gap: 1.25rem;
}

.step {
    padding: 1.75rem;
    border-left: 2px solid rgba(59, 130, 246, 0.4);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.step-num {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.step h3 {
    font-size: 1.15rem;
    margin: 0.75rem 0 0.5rem;
}

.step p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* ---------- pricing ---------- */

.pricing-card {
    max-width: 40rem;
    padding: 2rem;
}

.pricing-card:hover {
    transform: none;
}

.pricing-head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.pricing-sub {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: 0.6rem;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.price-value {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.price-period {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.pricing-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 1.75rem;
}

.pricing-list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.92rem;
    color: var(--gray-300);
}

.pricing-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.9rem;
    height: 0.5rem;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

/* ---------- faq ---------- */

.faq {
    display: grid;
    gap: 0.75rem;
    max-width: 48rem;
}

.faq-item {
    padding: 1.1rem 1.4rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

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

.faq-item summary::after {
    content: '+';
    color: var(--accent);
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-top: 0.9rem;
}

/* ---------- final cta ---------- */

.cta-final {
    text-align: center;
    padding-bottom: 5rem;
}

.cta-final .lead {
    margin: 0 auto 2rem;
}

.cta-final h2 {
    margin-bottom: 1rem;
}

/* ---------- footer ---------- */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
    display: grid;
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.footer-col a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-logo {
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 0.9rem;
}

.footer-note {
    color: var(--gray-600);
    font-size: 0.8rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-600);
}

/* ---------- reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- agreement ---------- */

.legal {
    padding-top: 3rem;
    padding-bottom: 4rem;
    max-width: 52rem;
}

.legal h1 {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    margin-bottom: 0.5rem;
}

.legal .updated {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.legal h2 {
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
    padding-left: 0.9rem;
    border-left: 3px solid var(--accent);
}

.legal p,
.legal li {
    color: var(--gray-300);
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
}

.legal ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal a {
    color: var(--accent);
}

/* ---------- desktop ---------- */

@media (min-width: 768px) {
    .header-nav {
        display: flex;
        margin-left: auto;
    }

    .header-login {
        margin-left: 0;
    }

    .hero {
        grid-template-columns: 1.15fr 0.85fr;
        padding-top: 5rem;
        padding-bottom: 4rem;
    }

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

    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 6rem;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pricing-card {
        padding: 2.5rem;
    }
}

@media (max-width: 420px) {
    .btn {
        width: 100%;
    }

    .btn-ghost.header-login {
        width: auto;
    }

    .hero-actions {
        flex-direction: column;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
