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

:root {
    --bg: #0F0D13;
    --container: #17131C;
    --card: #291F35;
    --cta-bg: #3E2B54;
    --primary: #D0BCFE;
    --on-primary: #381E72;
    --border: #2E2440;
    --text: #FFFFFF;
    --muted: #9E96B0;
    --r: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    background-image: url('assets/background_pattern.png');
    background-repeat: no-repeat;
    background-size: 160%;
    background-position: center;
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

ol,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

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

button {
    cursor: pointer;
    font-family: inherit;
}

/* ─── OUTER WRAPPER — positions everything centered ─── */
.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

/* ─── NAV ─── */
nav {
    position: sticky;
    top: 20px;
    z-index: 100;
    padding: 16px 0;
    background: none;
    pointer-events: none;
}

nav .nav-pill {
    pointer-events: auto;
}

.nav-pill {
    background: rgba(23, 19, 28, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 10px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    max-width: 900px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.nav-logo img {
    height: 28px;
    width: auto;
}

.nav-actions {
    display: flex;
    gap: 8px;
}

.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    transition: border-color .15s;
}

.btn-ghost:hover {
    border-color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: var(--on-primary);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    transition: opacity .15s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* ─── MAIN CONTAINER ─── */
.main-box {
    background: var(--container);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    margin-top: -24px;
    position: relative;
    z-index: 0;
    padding: 36px;
}

/* ─── HERO ─── */
.hero {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 88px 32px 72px;
}

.hero-heading {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(36px, 3.5vw, 54px);
    font-weight: 900;
    line-height: 1.07;
    letter-spacing: -2px;
    margin-bottom: 24px;
    margin-left: 42px;
    margin-right: 42px;
}

.hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

.btn-hero {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    transition: opacity .15s;
}

.btn-hero:hover {
    opacity: 0.9;
}

/* ─── HERO IMAGE ─── */
.hero-image {
    padding: 0 32px 64px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
}

.hero-image .img-ph {
    aspect-ratio: 16/9;
    background: var(--card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
}

/* ─── SECTION DIVIDER ─── */
/* .divider {
            height: 1px;
            background: var(--border);
            margin: 0 32px;
        } */

/* ─── FEATURES ─── */
.features {
    padding: 0 32px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 72px 0;
    /* border-bottom: 1px solid var(--border); */
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-text h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.feature-text p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.7;
}

.feature-img {
    border-radius: var(--r-lg);
    /* border: 1px solid var(--border); */
    overflow: hidden;
    background: var(--card);
}

.feature-img img {
    width: 100%;
}

.feature-img .img-ph {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
}

/* ─── HOW IT WORKS ─── */
.how-section {
    padding: 72px 32px;
    /* border-top: 1px solid var(--border); */
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: -1.2px;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 17px;
    color: var(--muted);
}

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

.step-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px 24px 0;
    overflow: hidden;
}

.step-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.step-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.step-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.step-img {
    border-radius: var(--r) var(--r) 0 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-bottom: none;
}

.step-img img {
    width: 100%;
    display: block;
}

.step-img .img-ph {
    aspect-ratio: 16/10;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
}

/* ─── FAQ ─── */
.faq-section {
    padding: 72px 32px;
    /* border-top: 1px solid var(--border); */
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* max-width: 760px; */
    margin: 0 auto;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: inherit;
}

.faq-q:hover {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--muted);
    transition: transform .25s, color .2s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .25s;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    padding: 0 24px;
}

.faq-item.open .faq-a {
    max-height: 400px;
    padding: 0 24px 20px;
}

/* ─── FINAL CTA ─── */
.cta-section {
    padding: 64px 32px;
}

.cta-card {
    background: var(--cta-bg);
    border: 1px solid rgba(208, 188, 254, 0.15);
    border-radius: var(--r-xl);
    padding: 72px 40px;
    text-align: center;
}

.cta-card h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin-bottom: 14px;
}

.cta-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

/* ─── FOOTER ─── */
footer {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* border-top: 1px solid var(--border); */
}

.footer-copy {
    font-size: 13px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    color: var(--muted);
    transition: color .15s;
}

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

/* ─── REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease;
}

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

/* Privacy Policy Styles */
.page-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    padding: 0 32px;
    /* border-bottom: 1px solid var(--border); */
}

/* 
.terms-page-header {
    padding: 0;

} */

.page-header p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}

.page-header h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -1px;
}

.privacy-policy-content,
.terms-content {
    padding: 0 32px;
}

.privacy-policy-content section,
.terms-content section {
    margin-bottom: 40px;
}

.privacy-policy-content h2,
.terms-content h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.privacy-policy-content p,
.terms-content p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 12px;
}

.privacy-policy-content p:last-child,
.terms-content p:last-child {
    margin-bottom: 0;
}

.privacy-policy-content ul,
.terms-content ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.privacy-policy-content ul li,
.terms-content ul li {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.65;
    padding-left: 20px;
    position: relative;
}

.privacy-policy-content ul li::before,
.terms-content ul li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    padding: 10px 16px;
    background: var(--card);
    color: var(--text);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.highlight-box {
    background: var(--card);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 16px 0;
}

.highlight-box p {
    margin: 0;
    font-size: 14px;
}

.contact-link {
    color: var(--primary);
}

/* Help Center Styles */
/* ─── CTA MODIFIERS (smaller variant, used on help center) ─── */
.btn-hero.btn-sm {
    padding: 12px 28px;
    font-size: 14px;
}

.cta-card.cta-sm {
    padding: 56px 40px;
}

.cta-card.cta-sm h2 {
    font-size: clamp(22px, 3vw, 36px);
    letter-spacing: -0.8px;
    margin-bottom: 10px;
}

.cta-card.cta-sm p {
    font-size: 15px;
    margin-bottom: 28px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── HELP HERO ─── */
.help-hero {
    text-align: center;
    padding: 64px 48px 56px;
}

.help-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.help-hero p {
    font-size: 17px;
    color: var(--muted);
    max-width: 440px;
    margin: 0 auto;
}

/* ─── QUICK LINKS ─── */
.quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 40px;
}

.quick-card {
    background: var(--card);
    border-radius: var(--r-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .15s;
}

.quick-card:hover {
    border-color: var(--border);
}

.quick-icon {
    width: 40px;
    height: 40px;
    background: var(--cta-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.quick-card h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
}

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

/* ─── BODY LAYOUT ─── */
.help-body {
    display: grid;
    grid-template-columns: 210px 1fr;
}

/* ─── SIDEBAR ─── */
.help-sidebar {
    padding: 40px 20px;
    position: sticky;
    top: 90px;
    align-self: start;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
    padding-left: 12px;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: var(--r);
    transition: background .15s, color .15s;
}

.sidebar-links a:hover {
    background: var(--card);
    color: var(--text);
}

.sidebar-links a.active {
    background: var(--card);
    color: var(--primary);
}

/* ─── MAIN CONTENT ─── */
.help-content {
    padding: 40px 48px;
}

.help-section {
    margin-bottom: 56px;
    scroll-margin-top: 100px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.4px;
    margin-bottom: 20px;
    padding-bottom: 14px;
}

/* ─── FAQ ANSWER EXTRAS (lists inside answers) ─── */
/* .faq-a p {
    margin-bottom: 8px;
} */

.faq-a p:last-child {
    margin-bottom: 0;
}


.faq-a ol {
    margin: 8px 0 8px 18px;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-a ol li {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.inline-link {
    color: var(--primary);
}

/* ─── CONTACT SECTION ─── */
.contact-wrap {
    padding: 48px 40px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--text);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: border-color .15s;
}

.btn-outline:hover {
    border-color: var(--primary);
}


/* ─── HELP CENTER MOBILE ─── */
@media (max-width: 720px) {


    .quick-links {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .help-body {
        grid-template-columns: 1fr;
    }

    .help-sidebar {
        display: none;
    }

    .help-content {
        padding: 32px 20px;
    }

    .contact-wrap {
        padding: 40px 20px;
    }

    .cta-card.cta-sm {
        padding: 40px 24px;
    }

}


/* ─── MOBILE ─── */
@media (max-width: 680px) {
    .page-wrap {
        padding: 0 8px 32px;
    }

    .nav-pill {
        padding: 8px 8px 8px 14px;
        gap: 8px;
    }

    .nav-logo {
        font-size: 13px;
        gap: 6px;
    }

    .nav-logo img {
        height: 22px;
    }

    .nav-actions {
        gap: 6px;
    }

    .btn-ghost,
    .btn-primary {
        padding: 7px 14px;
        font-size: 13px;
    }

    .main-box {
        padding: 0;

    }

    .hero {
        padding: 42px 20px 48px;
    }


    .hero-image {
        padding: 0 20px 40px;
    }

    .features {
        padding: 0 20px;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 0;
    }

    .how-section,
    .faq-section {
        padding: 36px 20px;
    }

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

    .cta-section {
        padding: 40px 20px;
    }

    .cta-card {
        padding: 36px 24px;
    }

    footer {
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
    }

    .footer-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding-left: 0;
    }

    .page-header {
        padding: 0 20px;
    }

    .privacy-policy-content,
    .terms-content {
        padding: 0 20px;
    }
}

@media (max-width: 400px) {
    .btn-ghost {
        display: none;
    }

    .nav-logo span,
    .nav-logo {
        font-size: 12px;
    }

    .nav-pill {
        padding: 6px 6px 6px 12px;
    }
}