@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #080b10;
    --bg-secondary: #0c1220;
    --bg-card: rgba(12, 18, 32, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    --accent: #1a9fff;
    --accent-cyan: #00e5c7;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-cyan));
    --gradient-bg: linear-gradient(180deg, var(--bg-primary) 0%, #0c1929 50%, var(--bg-primary) 100%);
    --glass-blur: blur(16px);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 30px rgba(26, 159, 255, 0.15);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(8, 11, 16, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-glass);
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(8, 11, 16, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.875rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: inherit;
}

.nav-link:hover { color: var(--text-primary); background: var(--bg-glass); }

/* Status dot */
.status-indicator {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-status 2s ease-in-out infinite;
}
.status-indicator.degraded { background: #f59e0b; }
.status-indicator.down { background: #ef4444; }

@keyframes pulse-status {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

/* Billing button */
.nav-billing {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
    margin-left: 0.5rem;
}
.nav-billing:hover {
    background: #1586d9;
    box-shadow: 0 0 20px rgba(26, 159, 255, 0.3);
}

/* Dropdown (Important links) */
.dropdown { position: relative; }
.dropdown-btn { padding: 0.5rem 0.85rem; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: rgba(12, 18, 32, 0.95);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.dropdown-menu.active {
    opacity: 1; visibility: visible; transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.6rem 0.85rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 0.9rem;
}
.dropdown-item:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

/* Products Mega Dropdown */
.products-dropdown { position: relative; }

.products-mega-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(12, 18, 32, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.products-mega-menu::before {
    content: '';
    position: absolute;
    top: -6px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px;
    background: rgba(12, 18, 32, 0.95);
    border-top: 1px solid var(--border-glass);
    border-left: 1px solid var(--border-glass);
}

.products-dropdown.open .products-mega-menu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.products-dropdown.open .nav-link svg {
    transform: rotate(180deg);
}

.mega-section { margin-bottom: 0.5rem; }
.mega-section:last-child { margin-bottom: 0; }

.mega-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.2rem 0.6rem 0.4rem;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.mega-item:hover {
    background: var(--bg-glass);
    transform: translateX(3px);
}

.mega-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.mega-icon.mc { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.15); }
.mega-icon.vps { background: rgba(26, 159, 255, 0.12); border: 1px solid rgba(26, 159, 255, 0.15); }
.mega-icon.proxy { background: rgba(255, 152, 0, 0.12); border: 1px solid rgba(255, 152, 0, 0.15); }
.mega-icon.bot { background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.15); }

.mega-item-info { display: flex; flex-direction: column; }
.mega-item-name { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); }
.mega-item-desc { font-size: 0.72rem; color: var(--text-muted); line-height: 1.3; }

.mega-divider { height: 1px; background: var(--border-glass); margin: 0.5rem 0; }

/* Mobile toggle */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.nav-mobile-toggle span {
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 11, 16, 0.3) 0%,
        rgba(8, 11, 16, 0.5) 50%,
        rgba(8, 11, 16, 1) 100%
    );
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(26, 159, 255, 0.1);
    border: 1px solid rgba(26, 159, 255, 0.2);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease 0.2s both;
}

.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-status 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.6s ease 0.35s both;
}

.hero-title .gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    animation: fadeUp 0.6s ease 0.65s both;
}

.btn {
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}
.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}
.btn-accent:hover {
    background: #1586d9;
    box-shadow: 0 0 25px rgba(26, 159, 255, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}
.btn-outline:hover {
    background: var(--bg-glass);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Hero Feature Cards */
.hero-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    animation: fadeUp 0.6s ease 0.5s both;
}

.hero-feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition);
}

.hero-feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.hero-feature-card .feature-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: rgba(26, 159, 255, 0.1);
    color: var(--accent);
}

.hero-feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.hero-feature-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== SECTIONS (below hero) ===== */
.section {
    padding: 5rem 2rem;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto;
}

/* Our Story */
.story-section {
    background: var(--gradient-bg);
}

.story-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.story-content .lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Location Cards */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.location-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
}

.location-card:hover {
    border-color: rgba(26, 159, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.location-card .location-flag { font-size: 0; margin-bottom: 1rem; display: inline-block; }
.location-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.location-card .city { color: var(--text-muted); font-size: 0.85rem; display: block; margin-bottom: 0.75rem; }

.location-features span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--accent-green);
}

/* Hosting Solutions / Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.service-card:hover {
    border-color: rgba(26, 159, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.service-card .service-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.service-card .service-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card .service-image .service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 11, 16, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.service-card .service-image .service-overlay h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.service-card .service-body {
    padding: 1.25rem;
}

.service-card .service-body p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.service-card .service-actions {
    display: flex;
    gap: 0.5rem;
}

/* FAQ Section */
.faq-section { background: var(--bg-primary); }

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item.active { border-color: rgba(26, 159, 255, 0.2); }

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    text-align: left;
}

.faq-question .faq-icon {
    transition: transform var(--transition);
    flex-shrink: 0;
    color: var(--text-muted);
}

.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-answer a { color: var(--accent); }
.faq-answer a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 3rem 2rem 1.5rem;
}

.footer-container { max-width: 1200px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.footer-logo img { height: 28px; }

.footer-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-column ul { list-style: none; }

.footer-column ul li { margin-bottom: 0.5rem; }

.footer-column ul a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-column ul a:hover { color: var(--text-primary); }

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 1.25rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

/* ===== BILLING PAGE: CYCLING BG ===== */
.billing-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.billing-bg-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.billing-bg-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.billing-bg-slideshow img.active { opacity: 1; }

.billing-bg-slideshow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 11, 16, 0.5) 0%,
        rgba(8, 11, 16, 0.7) 50%,
        rgba(8, 11, 16, 0.95) 100%
    );
    z-index: 1;
}

/* ===== DOCS PAGE ===== */
.docs-hero {
    padding: 8rem 2rem 3rem;
    text-align: center;
    background: var(--gradient-bg);
}

.docs-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.docs-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.docs-category {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}

.docs-category:hover {
    border-color: rgba(26, 159, 255, 0.2);
    transform: translateY(-2px);
}

.docs-category-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    background: rgba(26, 159, 255, 0.1);
}

.docs-category h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.docs-category > p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.25rem; }

.docs-article-list { list-style: none; }

.docs-article-list li {
    padding: 0.6rem 0;
    border-top: 1px solid var(--border-glass);
}

.docs-article-list a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition);
}

.docs-article-list a:hover { color: var(--accent); }

.docs-article-list a::before {
    content: '→';
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 2rem; }
    .hero-features-grid { max-width: 500px; }
    .locations-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-billing { display: none; }
    .nav-mobile-toggle { display: flex; }

    .hero-container { padding: 7rem 1.5rem 3rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-features-grid { grid-template-columns: 1fr; }
    .hero-feature-card { padding: 1.25rem; }

    .locations-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .products-mega-menu {
        position: fixed;
        top: auto; left: 1rem; right: 1rem; bottom: 1rem;
        transform: none;
        min-width: auto;
        max-height: 60vh;
        overflow-y: auto;
        border-radius: var(--radius-lg);
    }
    .products-mega-menu::before { display: none; }
    .products-dropdown.open .products-mega-menu { transform: none; }
}

/* ===== LEGAL PAGES (terms, privacy, refund) ===== */
.legal-page {
    padding: 7rem 2rem 4rem;
    background: var(--bg-primary);
    min-height: 100vh;
}

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

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-glass);
}

.legal-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-header .update-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.legal-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content h3 {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-content ul, .legal-content ol {
    margin: 0.75rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

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

.legal-content a:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
    padding: 8rem 2rem 3rem;
    text-align: center;
    background: var(--gradient-bg);
}

.about-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.about-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-content h2 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.about-content p {
    margin-bottom: 1rem;
}

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

/* ===== FEATURES PAGE ===== */
.features-hero {
    padding: 8rem 2rem 3rem;
    text-align: center;
    background: var(--gradient-bg);
}

.features-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.features-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

.feature-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-card:hover {
    background: var(--bg-glass);
    border-color: rgba(26, 159, 255, 0.15);
}

.feature-card.active {
    background: rgba(26, 159, 255, 0.08);
    border-color: rgba(26, 159, 255, 0.25);
}

.feature-card .icon { font-size: 1.25rem; }
.feature-card .name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.feature-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.feature-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.feature-preview img.fade-out { opacity: 0; }

.feature-preview-info {
    padding: 1.5rem;
}

.feature-preview-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-preview-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .feature-showcase {
        grid-template-columns: 1fr;
    }
    .feature-preview {
        position: static;
    }
}

/* ===== 404 PAGE ===== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}