:root {
    --color-bg: #0a090c;
    --color-surface: #13121a;
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.6);
    --color-accent: #f7931a;
    --color-accent-dim: rgba(247, 147, 26, 0.15);
    --color-border: rgba(255, 255, 255, 0.08);
    --font: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --text-size: 17px;
    --line-height: 1.65;
    --max-width: 1100px;
}

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

html {
    background: var(--color-bg);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: var(--text-size);
    line-height: var(--line-height);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* ============================================================
   MOBILE-FIRST BASE
   Everything below is for narrow viewports.
   Tablet/desktop refinements live in @media (min-width: …) blocks
   at the bottom.
   ============================================================ */

/* ---------- Header (mobile) ---------- */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(10, 9, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 9, 12, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 24px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--color-border);
}

header nav.open {
    display: flex;
}

header nav a {
    color: var(--color-text-secondary);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}

header nav a:hover {
    color: var(--color-text);
    opacity: 1;
}

header nav a.nav-cta {
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 18px;
    padding: 8px 18px;
    align-self: flex-start;
}

header nav a.nav-cta:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.2s;
}

/* ---------- Hero (mobile) ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100svh - 0px);
    padding: 96px 20px 56px;
    text-align: center;
    overflow: hidden;
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    max-width: 600px;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.headline {
    position: relative;
    max-width: 800px;
    width: 100%;
}

.headline h1 {
    font-size: clamp(30px, 8vw, 64px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.headline p {
    font-size: clamp(15px, 4vw, 20px);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.55;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Buttons (mobile) ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    height: 48px;
    min-width: 140px;
    border-radius: 24px;
    border: 1px solid var(--color-accent);
    background: var(--color-accent);
    color: var(--color-bg);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.button:hover {
    opacity: 0.85;
}

.button-ghost {
    background: transparent;
    color: var(--color-accent);
}

.button-ghost:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    opacity: 1;
}

/* ---------- Main / Sections (mobile) ---------- */

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 56px 0;
    border-top: 1px solid var(--color-border);
}

section h1 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

section h2 {
    font-size: clamp(22px, 6vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    max-width: 700px;
}

section p {
    color: var(--color-text-secondary);
    max-width: 700px;
    margin-bottom: 14px;
}

section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ---------- How it works (mobile = single column) ---------- */

.steps-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

.step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 22px 20px;
    transition: border-color 0.2s;
}

.step:hover {
    border-color: rgba(247, 147, 26, 0.3);
}

.step-num {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.step h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.step p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 0;
}

/* ---------- Why (mobile = single column) ---------- */

.why-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
}

.why-item {
    padding-left: 16px;
    border-left: 2px solid var(--color-accent);
}

.why-item h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.why-item p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 0;
}

/* ---------- FAQ (mobile) ---------- */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 32px;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: rgba(247, 147, 26, 0.3);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 48px 16px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    position: relative;
    line-height: 1.4;
}

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

.faq-item summary::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.faq-item p {
    padding: 0 18px 18px;
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

/* ---------- Footer (mobile) ---------- */

footer {
    border-top: 1px solid var(--color-border);
    padding: 32px 20px;
    margin-top: 0;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.footer-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-secondary);
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--color-text-secondary);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.footer-nav a:hover {
    color: var(--color-text);
}

.footer-social {
    color: var(--color-text-secondary);
    transition: color 0.2s;
    display: flex;
}

.footer-social:hover {
    color: var(--color-text);
    opacity: 1;
}

/* ---------- Legal page (mobile) ---------- */

.legal-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 96px 20px 0;
}

.legal-page section {
    border-top: none;
    padding: 28px 0;
}

.legal-page section:first-child {
    padding-top: 40px;
}

.legal-page h3 {
    margin-top: 20px;
}

/* ---------- Animations ---------- */

.fade-in {
    animation: fadeIn 1.5s ease both;
}

.slide-up {
    animation: slideUp 0.8s ease both;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-600 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .slide-up,
    .delay-300,
    .delay-600 {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================================
   TABLET (≥ 640px)
   Two-column grids appear, hero gets more breathing room.
   ============================================================ */

@media (min-width: 640px) {
    main,
    .legal-page {
        padding-left: 32px;
        padding-right: 32px;
    }

    header {
        padding: 16px 32px;
    }

    .hero {
        padding: 110px 32px 72px;
    }

    section {
        padding: 72px 0;
    }

    .steps-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .why-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .footer-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

/* ============================================================
   DESKTOP (≥ 960px)
   Inline header nav, three-column How-it-works, full padding.
   ============================================================ */

@media (min-width: 960px) {
    :root {
        --text-size: 18px;
        --line-height: 1.7;
    }

    header {
        padding: 20px 40px;
    }

    header nav {
        display: flex;
        position: static;
        flex-direction: row;
        gap: 28px;
        align-items: center;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        border-bottom: none;
    }

    header nav a {
        font-size: 14px;
    }

    header nav a.nav-cta {
        padding: 6px 16px;
        align-self: auto;
    }

    .nav-toggle {
        display: none;
    }

    .hero {
        padding: 140px 40px 96px;
    }

    main,
    .legal-page {
        padding-left: 40px;
        padding-right: 40px;
    }

    .legal-page {
        padding-top: 120px;
    }

    section {
        padding: 100px 0;
    }

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

    .step {
        padding: 28px;
    }

    .step h3 {
        font-size: 18px;
    }

    .why-list {
        gap: 32px;
    }

    .why-item {
        padding-left: 20px;
    }

    .why-item h3 {
        font-size: 18px;
    }

    .faq-item summary {
        padding: 20px 56px 20px 24px;
        font-size: 16px;
    }

    .faq-item p {
        padding: 0 24px 20px;
        font-size: 15px;
    }

    footer {
        padding: 40px;
    }
}
