/* Custom Properties */
:root {
    --bg-primary: #0A0E27;
    --bg-surface: #16213E;
    --accent: #00E5CC;
    --text: #FFFFFF;
    --text-secondary: #A0A0A8;
    --border: rgba(255, 255, 255, 0.15);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg-primary);
}

/* Focus States (WCAG 2.4.7) */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 8px 16px;
    z-index: 200;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navigation Header */
header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

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

.logo-link .logo {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
}

header nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

header nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    padding: 12px 4px;
}

header nav a:hover {
    color: var(--text);
    text-decoration: none;
}

.btn-cta-small {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.btn-cta-small:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-surface) 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1,
.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero .subheadline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    text-decoration: none;
}

.btn-ghost {
    display: inline-block;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-ghost:hover {
    background: var(--accent);
    color: var(--bg-primary);
    text-decoration: none;
}

/* How It Works */
.how-it-works {
    padding: 60px 0;
    background-color: var(--bg-surface);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.5rem;
    color: var(--text);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.step {
    flex: 1;
    min-width: 160px;
    max-width: 200px;
    text-align: center;
    padding: 20px 12px;
    transition: transform 0.2s;
}

.step:hover {
    transform: translateY(-2px);
}

.step-number {
    display: inline-block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.step h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: var(--text);
}

.step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Feature Sections */
.features {
    padding: 50px 0;
    background-color: var(--bg-primary);
}

.features.alt {
    background-color: var(--bg-surface);
}

.features h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Safety / Trust Section */
.safety {
    padding: 60px 0;
    background-color: var(--bg-surface);
}

.safety h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.trust-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.trust-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 204, 0.1);
}

.trust-card h3 {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.trust-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Location Section */
.location {
    padding: 50px 0;
    text-align: center;
    background-color: var(--bg-primary);
}

.location h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text);
}

.location p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border);
    color: var(--text);
    padding: 30px 0;
    text-align: center;
}

footer nav {
    margin-bottom: 16px;
}

footer nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.2s;
    padding: 12px 15px;
}

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

footer .contact-email {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

footer .contact-email a {
    color: var(--accent);
}

footer .address {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Legal Pages (Privacy, Terms) */
.legal-page {
    padding: 40px 0 60px;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text);
}

.legal-page .last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-page section {
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.legal-page h3 {
    font-size: 1.1rem;
    margin: 16px 0 8px;
    color: var(--text);
}

.legal-page p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.legal-page ul {
    margin: 12px 0;
    padding-left: 24px;
}

.legal-page li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.legal-page li strong {
    color: var(--text);
}

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

.legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}

.legal-page th,
.legal-page td {
    text-align: left;
    padding: 10px 12px;
    border: 1px solid var(--border);
}

.legal-page th {
    background: var(--bg-surface);
    color: var(--text);
    font-weight: 600;
}

.legal-page td {
    color: var(--text-secondary);
}

/* Support Page */
.support-page {
    padding: 40px 0 60px;
}

.support-page h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text);
}

.support-page .intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.jump-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.jump-links a {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px 0;
}

/* Legal table mobile scroll */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.contact-section {
    background-color: var(--bg-surface);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.contact-section h2 {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 1.2rem;
}

.contact-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-email {
    font-size: 1rem;
    margin: 12px 0;
}

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

/* FAQ Accordion */
.faq-section {
    margin-bottom: 40px;
}

.faq-section h2 {
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 1.3rem;
}

details {
    border-bottom: 1px solid var(--border);
}

details:last-of-type {
    border-bottom: none;
}

summary {
    padding: 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 16px;
}

details[open] summary::after {
    content: "\2212";
}

details .faq-answer {
    padding: 0 0 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

details .faq-answer ul {
    margin: 8px 0;
    padding-left: 20px;
}

details .faq-answer li {
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.faq-section + .faq-section {
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1,
    .hero h2 {
        font-size: 1.75rem;
    }

    .hero .subheadline {
        font-size: 1rem;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
    }

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

    .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    header nav {
        gap: 16px;
    }

    .btn-cta-small {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    footer nav a {
        display: block;
        margin: 10px 0;
    }

    .jump-links {
        flex-direction: column;
        gap: 8px;
    }

    .legal-page table {
        font-size: 0.8rem;
    }

    .legal-page th,
    .legal-page td {
        padding: 8px;
    }
}
