/* ===== Premium Design System - Predikt ===== */

/* CSS Custom Properties */
:root {
    --bg-primary: #08090d;
    --bg-secondary: #0e1017;
    --bg-elevated: #14161e;
    --bg-card: rgba(20, 22, 30, 0.6);
    
    --text-primary: #f4f4f5;
    --text-secondary: rgba(244, 244, 245, 0.7);
    --text-muted: rgba(244, 244, 245, 0.45);
    
    --accent-primary: #00f5d4;
    --accent-secondary: #7b61ff;
    --accent-gradient: linear-gradient(135deg, #00f5d4 0%, #00bbf9 50%, #7b61ff 100%);
    
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(0, 245, 212, 0.3);
    
    --glow-accent: 0 0 60px rgba(0, 245, 212, 0.15);
    --glow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-secondary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   LINEAR-STYLE (index.html - Main Landing)
   ============================================ */

body.linear-style {
    background: var(--bg-primary);
    color: var(--text-secondary);
    overflow-x: hidden;
}

/* Animated gradient background */
body.linear-style::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(0, 245, 212, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 10%, rgba(123, 97, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(0, 187, 249, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body.linear-style.nav-open {
    overflow: hidden;
}

/* ===== Header ===== */
body.linear-style .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 9, 13, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.85;
}

body.linear-style .logo {
    height: 36px;
    width: auto;
}

body.linear-style .brand {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s var(--ease-out-expo);
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.25s var(--ease-out-expo);
}

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

.site-nav a:hover::after {
    width: calc(100% - 32px);
}

.site-nav a:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Hamburger button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.25s var(--ease-out-expo);
}

.hamburger-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-medium);
}

.hamburger-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ===== Hero Section ===== */
body.linear-style .hero {
    position: relative;
    padding: 140px 32px 120px;
    text-align: center;
    overflow: hidden;
}

/* Hero grid pattern */
body.linear-style .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 0%, transparent 70%);
    pointer-events: none;
}

/* Glowing orb effect */
body.linear-style .hero::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.12) 0%, rgba(123, 97, 255, 0.06) 40%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
    animation: fade-up 0.8s var(--ease-out-expo) both;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fade-up 0.8s var(--ease-out-expo) 0.1s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: fade-up 0.8s var(--ease-out-expo) 0.2s both;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-link {
    display: block;
    transition: all 0.25s var(--ease-out-expo);
}

.store-badge {
    height: 48px;
    width: auto;
    display: block;
    filter: brightness(0.95);
    transition: all 0.25s var(--ease-out-expo);
}

.store-link:hover .store-badge {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.store-link:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
    border-radius: 10px;
}

/* ===== Buttons ===== */
body.linear-style .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

body.linear-style .btn-primary {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 4px 24px rgba(0, 245, 212, 0.25);
}

body.linear-style .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

body.linear-style .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 245, 212, 0.35);
}

body.linear-style .btn-primary:hover::before {
    opacity: 1;
}

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

body.linear-style .btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

body.linear-style .btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: rgba(0, 245, 212, 0.05);
}

body.linear-style .btn-ghost:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

body.linear-style .btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

/* ===== Sections ===== */
body.linear-style .section {
    position: relative;
    padding: 100px 32px;
    border-top: 1px solid var(--border-subtle);
}

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

.section-inner.narrow {
    max-width: 680px;
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-lead {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 580px;
}

/* Section reveal animation */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s var(--ease-out-expo);
}

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

/* ===== Feature Grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-item {
    padding: 32px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    transition: all 0.35s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.feature-item:hover {
    border-color: var(--border-medium);
    background: rgba(20, 22, 30, 0.8);
    transform: translateY(-4px);
    box-shadow: var(--glow-card);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Steps List ===== */
.steps {
    list-style: none;
    counter-reset: step-counter;
}

.steps li {
    counter-increment: step-counter;
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 20px 0 20px 48px;
    border-bottom: 1px solid var(--border-subtle);
    line-height: 1.6;
    position: relative;
    transition: all 0.25s ease;
}

.steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(0, 245, 212, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 245, 212, 0.2);
}

.steps li:last-child {
    border-bottom: none;
}

.steps li:hover {
    padding-left: 56px;
}

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

/* ===== Pricing Grid ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pricing-item {
    padding: 36px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    transition: all 0.35s var(--ease-out-expo);
    position: relative;
}

.pricing-item:nth-child(2) {
    border-color: var(--border-accent);
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.04) 0%, rgba(123, 97, 255, 0.04) 100%);
}

.pricing-item:nth-child(2)::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
    background: var(--accent-gradient);
    border-radius: 6px;
}

.pricing-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-card);
}

.pricing-item h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.pricing-item .price {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1;
}

.pricing-item .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-item p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Link Grid ===== */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.link-item {
    display: block;
    padding: 32px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    transition: all 0.35s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.link-item::after {
    content: '→';
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: all 0.25s var(--ease-out-expo);
}

.link-item:hover {
    border-color: var(--border-accent);
    background: rgba(0, 245, 212, 0.03);
    transform: translateY(-4px);
    box-shadow: var(--glow-card);
}

.link-item:hover::after {
    transform: translateX(4px);
    color: var(--accent-primary);
}

.link-item:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.link-item h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-right: 32px;
}

.link-item p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== CTA Section ===== */
body.linear-style .cta-section {
    padding: 120px 32px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.linear-style .cta-section::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 245, 212, 0.08) 0%, rgba(123, 97, 255, 0.04) 50%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

body.linear-style .cta-section .section-lead {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

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

/* ===== Footer ===== */
body.linear-style .site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 48px 32px;
    background: var(--bg-primary);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-inner .copy {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-brand:hover {
    color: var(--text-secondary);
}

.footer-brand img {
    height: 22px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-brand:hover img {
    opacity: 1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-top: 20px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

.footer-link-delete {
    color: #f87171 !important;
}

.footer-link-delete:hover {
    color: #fca5a5 !important;
}

/* ===== Responsive - Linear Style ===== */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }

    .hamburger-btn {
        display: flex;
    }

    body.linear-style .site-nav {
        position: fixed;
        top: 64px;
        right: 0;
        width: min(320px, 100vw);
        height: calc(100vh - 64px);
        background: rgba(8, 9, 13, 0.98);
        backdrop-filter: blur(24px);
        border-left: 1px solid var(--border-subtle);
        flex-direction: column;
        align-items: stretch;
        padding: 32px 24px;
        gap: 8px;
        transform: translateX(100%);
        transition: transform 0.35s var(--ease-out-expo);
        z-index: 99;
    }

    body.linear-style .site-nav.is-open {
        transform: translateX(0);
    }

    body.linear-style .site-nav a {
        padding: 16px 20px;
        font-size: 1.0625rem;
        border-radius: 12px;
    }

    body.linear-style .site-nav a::after {
        display: none;
    }

    body.linear-style .hero {
        padding: 100px 24px 80px;
    }

    body.linear-style .section {
        padding: 80px 24px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 16px;
    }

    .store-badge {
        height: 44px;
    }

    .feature-grid,
    .pricing-grid,
    .link-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LEGACY PAGES (documentation, help-center, legal, etc.)
   ============================================ */

body:not(.linear-style) {
    font-family: var(--font-body);
    background: #0a0b0f;
    color: var(--text-secondary);
}

header:not(.site-header) {
    background: rgba(8, 9, 13, 0.9);
    backdrop-filter: blur(20px);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container .logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-container .logo-section a {
    color: inherit;
}

.logo {
    height: 36px;
    width: auto;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav:not(.site-nav):not(.sidebar) {
    display: flex;
    gap: 4px;
}

nav:not(.site-nav):not(.sidebar) a {
    color: var(--text-muted);
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s var(--ease-out-expo);
}

nav:not(.site-nav):not(.sidebar) a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

nav:not(.site-nav):not(.sidebar) a.active {
    color: var(--accent-primary);
    background: rgba(0, 245, 212, 0.08);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
    flex: 1;
}

.container .hero,
.container + .hero,
section.hero:not(.linear-style *) {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 64px 40px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.container .hero::before,
section.hero:not(.linear-style *)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 60% 40% at 20% 0%, rgba(0, 245, 212, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 80% 100%, rgba(123, 97, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.container .hero h1,
.container + .hero h1,
section.hero:not(.linear-style *) h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
}

.container .hero p,
.container + .hero p,
section.hero:not(.linear-style *) p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    position: relative;
}

#help-center-title {
    color: var(--text-primary) !important;
}

/* Tab content */
.tab-content {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-subtle);
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.tab-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    transition: all 0.3s var(--ease-out-expo);
}

.feature-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.link-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s var(--ease-out-expo);
}

.link-card:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 245, 212, 0.03);
}

.link-card a {
    color: inherit;
}

.link-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.link-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.pricing-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.pricing-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.price-popup {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.pricing-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* Sidebar (documentation) */
nav.sidebar {
    width: 260px;
    background: var(--bg-elevated);
    padding: 28px 20px;
    border-right: 1px solid var(--border-subtle);
    position: sticky;
    top: 64px;
    align-self: flex-start;
    border-radius: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

nav.sidebar ul {
    list-style: none;
}

nav.sidebar li {
    margin-bottom: 4px;
}

nav.sidebar li ul {
    margin-left: 16px;
    margin-top: 4px;
    display: none;
}

nav.sidebar li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

nav.sidebar li a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

nav.sidebar li a.active {
    background: rgba(0, 245, 212, 0.1);
    color: var(--accent-primary);
    font-weight: 500;
}

.container.layout-with-sidebar {
    display: flex;
    align-items: flex-start;
    padding: 0;
    gap: 0;
}

main:not(.content) {
    flex: 1;
    padding: 40px 48px;
    min-width: 0;
}

main:not(.content) h2 {
    margin: 32px 0 16px;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
}

main:not(.content) h2:first-child {
    margin-top: 0;
}

main:not(.content) h3 {
    margin: 24px 0 12px;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
}

main:not(.content) p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

main:not(.content) code {
    background: rgba(0, 245, 212, 0.1);
    color: var(--accent-primary);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.875em;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

main:not(.content) pre {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    overflow-x: auto;
    font-size: 0.875rem;
    margin: 20px 0;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

main:not(.content) pre code {
    background: none;
    padding: 0;
    color: inherit;
}

#getting-started,
#faq,
#troubleshooting,
#contact-support {
    scroll-margin-top: 80px;
}

.help-cards {
    padding: 64px 32px;
    background: var(--bg-secondary);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.help-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    transition: all 0.3s var(--ease-out-expo);
}

.help-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px);
    box-shadow: var(--glow-card);
}

.help-card h2 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.help-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.card-link:hover {
    color: var(--text-primary);
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.step-tile {
    padding: 28px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-card);
    transition: all 0.3s var(--ease-out-expo);
}

.step-tile:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.step-tile h3 {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-tile p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.section-divider {
    border: none;
    height: 1px;
    background: var(--border-subtle);
    margin: 40px 0;
}

.faq-item {
    margin-bottom: 20px;
    padding: 20px 24px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.faq-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.faq-item p {
    margin: 0;
    color: var(--text-muted);
}

.legal-content {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 48px;
    max-width: 840px;
    margin: 40px auto;
    border: 1px solid var(--border-subtle);
}

.legal-content h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 36px;
    margin-bottom: 12px;
}

.legal-content h3 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 10px;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.legal-content ul {
    margin-left: 24px;
    margin-bottom: 20px;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9375rem;
}

.legal-content th,
.legal-content td {
    border: 1px solid var(--border-subtle);
    padding: 14px 18px;
    text-align: left;
}

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

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

/* Maintenance page */
body.maintenance {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

body.maintenance::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 245, 212, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(123, 97, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 48px 56px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--glow-card);
}

.content h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.content p {
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Legacy footer */
footer:not(.site-footer) {
    background: var(--bg-secondary);
    color: var(--text-muted);
    text-align: center;
    padding: 40px 32px;
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
}

footer:not(.site-footer) p {
    margin: 8px 0;
    font-size: 0.875rem;
}

footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

footer .footer-brand:hover {
    color: var(--text-secondary);
}

footer .footer-brand img {
    height: 22px;
    width: auto;
    opacity: 0.7;
}

footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-top: 16px;
}

footer .footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

footer .footer-links a[href*="delete"] {
    color: #f87171;
}

footer .footer-links a[href*="delete"]:hover {
    color: #fca5a5;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* Responsive - Legacy pages */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 16px;
        gap: 16px;
    }

    nav:not(.site-nav):not(.sidebar) {
        flex-wrap: wrap;
        justify-content: center;
    }

    .container.layout-with-sidebar {
        flex-direction: column;
    }

    nav.sidebar {
        width: 100%;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        max-height: none;
    }

    main:not(.content) {
        padding: 32px 24px;
    }

    .features,
    .card-container,
    .steps-row {
        grid-template-columns: 1fr;
    }

    .legal-content {
        margin: 24px 16px;
        padding: 32px 24px;
    }
}

/* ===== Selection & Scrollbar ===== */
::selection {
    background: rgba(0, 245, 212, 0.25);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== Focus States ===== */
:focus-visible {
    outline: 2px solid var(--accent-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;
    }
}
