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

:root {
    --primary: #7B68EE;
    --primary-dark: #6B5BD2;
    --primary-light: #9D8DF5;
    --background: #0D0D1A;
    --surface: #1A1A2E;
    --surface-light: #252542;
    --surface-hover: #2D2D4A;
    --text: #FFFFFF;
    --text-secondary: #A0A0B0;
    --text-muted: #6B6B7B;
    --border: #2A2A45;
    --success: #4ADE80;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--text);
    padding: 8px 16px;
    z-index: 1000;
    border-radius: 0 0 4px 0;
    font-weight: 500;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text);
    box-shadow: var(--shadow-md), 0 0 20px rgba(123, 104, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(123, 104, 238, 0.4);
    color: var(--text);
}

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

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

/* Navigation */
.navbar {
    background-color: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

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

.logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-icon {
    transition: transform var(--transition-fast);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 4px;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform var(--transition-normal);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(123, 104, 238, 0.15);
    color: var(--primary-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(123, 104, 238, 0.3);
}

.hero h1 {
    font-size: clamp(36px, 8vw, 60px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(17px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--surface);
}

.features h2,
.cta-section h2 {
    text-align: center;
    font-size: clamp(28px, 5vw, 38px);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 56px;
}

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

.feature-card {
    background-color: var(--surface-light);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(123, 104, 238, 0.15);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    color: var(--text);
    box-shadow: 0 4px 16px rgba(123, 104, 238, 0.3);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 32px;
}

/* Content Pages (Privacy, Contact) */
.content-page {
    padding: 60px 0 80px;
    flex: 1;
}

.page-header {
    margin-bottom: 48px;
}

.content-page h1 {
    font-size: clamp(32px, 6vw, 44px);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.last-updated {
    color: var(--text-muted);
    font-size: 14px;
}

.page-intro {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
}

.policy-content {
    max-width: 720px;
}

.policy-section,
.contact-section {
    margin-bottom: 48px;
}

.policy-section h2,
.contact-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.policy-section h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--text);
}

.policy-section p,
.contact-section > p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.policy-section ul {
    list-style: none;
    margin: 16px 0;
}

.policy-section ul li {
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.7;
}

.policy-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
}

/* FAQ Items */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

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

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
}

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

.faq-item summary h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.faq-icon {
    color: var(--text-secondary);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

/* Contact Cards */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.contact-card {
    display: block;
    background-color: var(--surface);
    border-radius: 18px;
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    color: var(--text);
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.contact-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 15px;
}

/* Footer */
.footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding: 48px 0 28px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition-fast);
}

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

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--surface);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 8px;
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        box-shadow: var(--shadow-lg);
        z-index: 100;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        padding: 14px 0;
        font-size: 17px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .features {
        padding: 70px 0;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 28px;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .hero-badge {
        font-size: 13px;
        padding: 6px 14px;
    }

    .features {
        padding: 56px 0;
    }

    .feature-card {
        padding: 28px 24px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-card {
        padding: 24px 20px;
    }

    .faq-item summary {
        padding: 16px 20px;
    }

    .faq-item p {
        padding: 0 20px 16px;
    }
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
