/* === DESIGN SYSTEM & VARIABLES === */
:root {
    /* Light Mode (Default) */
    --bg-main: #F8F9FA;
    --bg-surface: #FFFFFF;
    --bg-surface-alt: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --border-color: #E2E8F0;
    
    --brand-primary: #4F46E5; /* Indigo */
    --brand-primary-hover: #4338CA;
    --brand-secondary: #8B5CF6; /* Violet */
    --accent-glow: rgba(79, 70, 229, 0.15);
    
    --code-bg: #0F172A;
    --code-text: #E2E8F0;
    --code-border: #1E293B;
    
    --nav-bg: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-glow: 0 0 25px var(--accent-glow);
    
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

[data-theme="dark"] {
    /* Dark Mode */
    --bg-main: #0B0F19; /* Deep Navy */
    --bg-surface: #131B2C;
    --bg-surface-alt: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-tertiary: #64748B;
    --border-color: #1E293B;
    
    --brand-primary: #6366F1;
    --brand-primary-hover: #818CF8;
    --brand-secondary: #A78BFA;
    --accent-glow: rgba(99, 102, 241, 0.15);
    
    --code-bg: #0B0F19;
    --code-text: #E2E8F0;
    --code-border: #1E293B;
    
    --nav-bg: rgba(11, 15, 25, 0.85);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text-primary); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
.text-gradient {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-sm { font-size: 0.875rem; }
.text-center { text-align: center; }

/* === LAYOUT UTILITIES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.grid { display: grid; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.bg-light { background-color: var(--bg-surface-alt); }

/* === BUTTONS & COMPONENTS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--brand-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--bg-surface-alt);
    border-color: var(--text-tertiary);
}
.btn-oauth { 
    background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-color); margin-bottom: 12px; 
}
.btn-oauth:hover { background: var(--border-color); }

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pro-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(79, 70, 229, 0.1); color: var(--brand-primary); padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.status-pill.success { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.status-pill.error { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.status-pill.warning { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.status-pill.resolved { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.status-pill.open { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.status-pill.progress { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.env-badge { padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; width: 60px; text-align: center;}
.env-live { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.env-test { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.tag { padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.tag.feature { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.tag.fix { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.tag.breaking { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.event-tag { font-size: 0.75rem; background: var(--bg-surface-alt); border: 1px solid var(--border-color); padding: 4px 10px; border-radius: 12px; color: var(--text-secondary); }

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 72px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}
.logo { font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.logo i { color: var(--brand-primary); font-size: 1.1rem; }

.nav-links { display: flex; gap: 32px; align-items: center; height: 100%; }
.nav-links > li { display: flex; align-items: center; height: 100%; }
.nav-links > li > a, .dropdown-toggle-mobile { 
    font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; cursor: pointer; 
}
.nav-links > li > a:hover, .dropdown-toggle-mobile:hover { color: var(--text-primary); }

/* Dropdown Styles */
.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 72px; /* Height of navbar */
    left: -150px; /* Offset to align nicely */
    width: 720px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1050;
}
/* Desktop Hover logic */
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.dropdown-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
    text-decoration: none;
    color: inherit !important;
    align-items: flex-start;
}
.dropdown-item:hover {
    background: var(--bg-surface-alt);
}
.dropdown-icon {
    width: 40px; height: 40px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--brand-primary);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.dropdown-text h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--text-primary); }
.dropdown-text p { font-size: 0.8rem; color: var(--text-secondary); margin: 0; line-height: 1.4; font-weight: 400;}

.nav-actions { display: flex; gap: 16px; align-items: center; }
.theme-toggle { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.2rem; }
.hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }
.hide-mobile { display: block; }

/* === HERO SECTION === */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}
/* Celestial Background Accent */
.hero::before, .product-hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-content p { font-size: 1.125rem; margin: 24px 0; max-width: 90%; }
.hero-ctas { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.trust-metrics { display: flex; gap: 12px; font-size: 0.85rem; color: var(--text-tertiary); align-items: center; }

/* Secondary Hero Variants */
.product-hero { padding-top: 140px; padding-bottom: 80px; border-bottom: 1px solid var(--border-color); background: var(--bg-surface); position: relative; overflow: hidden; }
.pricing-hero { padding-top: 140px; padding-bottom: 40px; text-align: center; position: relative; overflow: hidden; }
.pricing-hero p { max-width: 600px; margin: 16px auto 32px auto; font-size: 1.1rem; }
.contact-hero, .about-hero { padding-top: 160px; padding-bottom: 60px; text-align: center; position: relative; overflow: hidden; }
.contact-hero::before, .about-hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 800px; height: 500px; background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%); z-index: -1; opacity: 0.5; }
.legal-hero { padding-top: 160px; padding-bottom: 60px; text-align: center; background: var(--bg-surface); border-bottom: 1px solid var(--border-color); position: relative; overflow: hidden; }
.sdk-hero, .status-hero, .changelog-hero { padding: 120px 24px 60px 24px; text-align: center; border-bottom: 1px solid var(--border-color); background: var(--bg-surface); position: relative; overflow: hidden; }

/* Code Editor Card */
.code-window {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}
.code-header {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--code-border);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}
.mac-dot { width: 10px; height: 10px; border-radius: 50%; }
.mac-dot.red { background: #FF5F56; }
.mac-dot.yellow { background: #FFBD2E; }
.mac-dot.green { background: #27C93F; }
.code-body { padding: 24px; color: var(--code-text); overflow-x: auto; line-height: 1.5; }

/* Code Syntax Highlighting */
.syntax-key { color: #7DD3FC; }
.syntax-string { color: #A78BFA; }
.syntax-number { color: #F472B6; }
.syntax-punct { color: #94A3B8; }
.console-preview { background: var(--code-bg); border-radius: var(--radius-md); padding: 16px; font-family: 'Fira Code', monospace; font-size: 0.85rem; color: var(--code-text); }
.code-font { font-family: 'Fira Code', monospace; font-size: 0.85rem; }

/* === FEATURES / CAPABILITIES === */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px auto; }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}
.feature-icon {
    width: 48px; height: 48px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--brand-primary);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

/* === ASTRO AI SECTION === */
.astro-ai-section { background: var(--bg-surface); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); position: relative; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ai-card { background: var(--bg-main); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); position: relative; }
.ai-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(139,92,246,0.1)); border-radius: var(--radius-lg); z-index: 0; filter: blur(20px); }
.ai-card-content { position: relative; z-index: 1; }
.ai-user { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.ai-avatar { width: 40px; height: 40px; background: var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ai-response { background: rgba(79,70,229,0.05); border-left: 3px solid var(--brand-primary); padding: 16px; border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 0.95rem; }
.confidence-indicator { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.progress-bar { flex: 1; height: 6px; background: var(--border-color); border-radius: 3px; margin: 0 12px; overflow: hidden; }
.progress-fill { width: 94%; height: 100%; background: var(--brand-primary); border-radius: 3px; }

/* === DEVELOPER EXPERIENCE === */
.steps-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card { position: relative; }
.step-number { font-size: 0.875rem; font-family: 'Fira Code', monospace; color: var(--brand-primary); font-weight: 600; margin-bottom: 16px; display: block; }
.step-card:not(:last-child)::after { content: ''; position: absolute; top: 10px; right: -24px; width: 48px; height: 1px; background: var(--border-color); }

/* === USE CASES === */
.use-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.use-case-pill { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 16px 20px; border-radius: var(--radius-md); display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 0.95rem; transition: all 0.2s; }
.use-case-pill:hover { border-color: var(--brand-primary); background: rgba(79,70,229,0.02); }

/* === TRUST STATS === */
.stats-section { background: var(--bg-surface); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.stat-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

/* === API PREVIEW PLAYGROUND === */
.api-playground { background: var(--code-bg); border-radius: var(--radius-xl); border: 1px solid var(--code-border); overflow: hidden; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 350px 1fr; }
.api-sidebar { background: rgba(0,0,0,0.2); border-right: 1px solid var(--code-border); padding: 24px; }
.api-endpoint { background: rgba(255,255,255,0.05); padding: 8px 12px; border-radius: var(--radius-md); font-family: 'Fira Code', monospace; color: var(--text-primary); font-size: 0.85rem; margin-bottom: 24px; display: flex; align-items: center; gap: 8px;}
.method-badge { color: #4ADE80; font-weight: 700; }
.api-params label { display: block; font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: 4px; margin-top: 12px; }
.api-input { width: 100%; background: var(--bg-main); border: 1px solid var(--code-border); color: var(--text-primary); padding: 8px; border-radius: var(--radius-md); font-size: 0.85rem; }
.api-main { display: flex; flex-direction: column; }
.api-tabs { display: flex; border-bottom: 1px solid var(--code-border); background: rgba(255,255,255,0.02); }
.api-tab { padding: 12px 24px; color: var(--text-tertiary); font-family: 'Fira Code', monospace; font-size: 0.85rem; cursor: pointer; border-bottom: 2px solid transparent; }
.api-tab.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); background: rgba(255,255,255,0.05); }
.api-content { padding: 24px; flex: 1; overflow: auto; }

/* === ENDPOINTS & FAQS === */
.endpoint-row { display: flex; align-items: flex-start; gap: 48px; margin-bottom: 64px; }
.endpoint-row:last-child { margin-bottom: 0; }
.endpoint-info { flex: 1; }
.endpoint-path { display: inline-block; background: var(--bg-surface-alt); padding: 6px 12px; border-radius: var(--radius-md); border: 1px solid var(--border-color); font-family: 'Fira Code', monospace; font-size: 0.85rem; margin-bottom: 16px; color: var(--text-primary); }
.method-get { color: #3B82F6; font-weight: 700; margin-right: 8px; }
.method-post { color: #10B981; font-weight: 700; margin-right: 8px; }
.endpoint-code { flex: 1; min-width: 0; }
.endpoint-block { background: var(--bg-surface-alt); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px; margin: 24px 0; display: flex; align-items: center; gap: 16px; font-family: 'Fira Code', monospace; font-size: 0.9rem; }
.endpoint-card { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; margin-bottom: 16px; background: var(--bg-main); }
.endpoint-card:last-child { margin-bottom: 0; }
.endpoint-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.endpoint-url { font-family: 'Fira Code', monospace; font-size: 0.95rem; font-weight: 500; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.endpoint-actions { display: flex; gap: 12px; align-items: center; }

.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.2s; }
.faq-question { padding: 20px 24px; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--text-primary); }
.faq-answer { padding: 0 24px 20px 24px; color: var(--text-secondary); font-size: 0.95rem; display: none; line-height: 1.6; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--brand-primary); }
.faq-question i { transition: transform 0.2s ease; }

/* === PRICING & MATRIX === */
.billing-toggle-wrapper { display: inline-flex; align-items: center; gap: 12px; background: var(--bg-surface-alt); padding: 6px; border-radius: 40px; border: 1px solid var(--border-color); margin-bottom: 40px; }
.billing-btn { padding: 8px 20px; border-radius: 30px; font-size: 0.9rem; font-weight: 600; border: none; background: transparent; color: var(--text-secondary); cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; }
.billing-btn.active { background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.save-badge { background: rgba(16, 185, 129, 0.1); color: #10B981; font-size: 0.75rem; padding: 2px 8px; border-radius: 12px; }

.pricing-grid { grid-template-columns: repeat(4, 1fr); align-items: stretch; gap: 10px; margin-bottom: 80px;}
.pricing-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 40px 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; transition: all 0.3s ease; }
.pricing-card.highlight { border-color: var(--brand-primary); box-shadow: var(--shadow-lg), var(--shadow-glow); transform: scale(1.05); position: relative; }
.pricing-card.highlight .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand-primary); color: #fff; }
.price { font-size: 2.5rem; font-weight: 700; margin: 16px 0; display: flex; align-items: baseline; gap: 4px; }
.price span { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }
.pricing-features { margin: 24px 0 32px 0; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--text-secondary); }
.pricing-features i { color: var(--brand-primary); font-size: 0.9rem; }

.plan-price-block { margin-bottom: 24px; }
.plan-meta { padding: 16px; background: var(--bg-surface-alt); border-radius: var(--radius-md); border: 1px solid var(--border-color); font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; }
.plan-meta strong { color: var(--text-primary); }
.card-block { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-main); margin-bottom: 24px; }
.card-icon { font-size: 2rem; color: #1A1F71; }
[data-theme="dark"] .card-icon { color: #ffffff; }
.card-details h4 { font-size: 0.95rem; margin-bottom: 2px; color: var(--text-primary); }
.card-details p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.card-status { margin-left: auto; font-size: 0.75rem; font-weight: 600; background: rgba(16, 185, 129, 0.1); color: #10B981; padding: 4px 8px; border-radius: 12px; }
.address-block { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; }
.address-block strong { color: var(--text-primary); display: block; margin-bottom: 4px; }
.billing-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-bottom: 32px; }

.matrix-section { padding-top: 0; }
.table-responsive { width: 100%; overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-xl); background: var(--bg-surface); box-shadow: var(--shadow-sm); }
.comparison-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.95rem; min-width: 800px; }
.comparison-table th, .comparison-table td { padding: 16px 24px; border-bottom: 1px solid var(--border-color); }
.comparison-table thead th { background: var(--bg-surface-alt); position: sticky; top: 72px; font-weight: 700; color: var(--text-primary); width: 22%; }
.comparison-table thead th:first-child { width: 34%; }
.category-row td { background: rgba(79, 70, 229, 0.04); font-weight: 700; color: var(--brand-primary); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.comparison-table tbody tr:hover { background: rgba(0, 0, 0, 0.015); }
[data-theme="dark"] .comparison-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.check-icon { color: #10B981; font-size: 1.1rem; }
.cross-icon { color: var(--text-tertiary); opacity: 0.5; }

/* === TESTIMONIALS & BLOG ... */
.testimonials-grid { grid-template-columns: repeat(2, 1fr); }
.testimonial-card { background: var(--bg-surface); padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.stars { color: #F59E0B; margin-bottom: 16px; font-size: 0.9rem; }
.client-info { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.client-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--border-color); }
.logo-strip { text-align: center; margin-top: 64px; }
.logos { display: flex; justify-content: center; gap: 48px; margin-top: 24px; flex-wrap: wrap; opacity: 0.6; filter: grayscale(1); }

.blog-grid { grid-template-columns: repeat(3, 1fr); }
.blog-card { border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-surface); transition: all 0.3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-img { height: 160px; background: linear-gradient(135deg, var(--bg-surface-alt), var(--border-color)); }
.blog-content { padding: 24px; }
.blog-category { font-size: 0.75rem; font-weight: 600; color: var(--brand-primary); text-transform: uppercase; margin-bottom: 8px; display: block; }

.final-cta { background: linear-gradient(135deg, #1E1B4B, #312E81); color: #ffffff; text-align: center; border-radius: var(--radius-xl); padding: 80px 24px; margin: 80px auto; max-width: 1200px; position: relative; overflow: hidden; }
.final-cta h2 { color: #ffffff; }
.final-cta p { color: #CBD5E1; max-width: 600px; margin: 0 auto 32px auto; }

.footer { background: var(--bg-main); border-top: 1px solid var(--border-color); padding: 80px 0 32px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--brand-primary); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; color: var(--text-tertiary); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; }

/* === DASHBOARD FRAMEWORK === */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 72px); margin-top: 72px; }
.dashboard-sidebar { background: var(--bg-surface); border-right: 1px solid var(--border-color); padding: 32px 24px; position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; }
.sidebar-menu { display: flex; flex-direction: column; gap: 8px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md); color: var(--text-secondary); font-weight: 500; transition: all 0.2s; font-size: 0.95rem; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(79, 70, 229, 0.08); color: var(--brand-primary); }
.dashboard-content { padding: 40px; max-width: 1200px; margin: 0 auto; width: 100%; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: 24px; }
.col-span-12 { grid-column: span 12; }
.col-span-8 { grid-column: span 8; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }

.panel, .widget { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; }
.widget { padding: 24px; margin-bottom: 0; }
.panel-header, .widget-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.widget-header { align-items: center; margin-bottom: 20px; }
.panel-title, .widget-title { font-size: 1.15rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.widget-title { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.panel-subtitle { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.panel-body { padding: 32px; }

.metric-card { display: flex; flex-direction: column; gap: 4px; }
.metric-value { font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.metric-trend { font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.trend-up { color: #10B981; }
.trend-down { color: #EF4444; }
.progress-track, .usage-bar-bg { height: 8px; background: var(--border-color); border-radius: 4px; overflow: hidden; }
.progress-fill, .usage-bar-fill { height: 100%; border-radius: 4px; background: var(--brand-primary); }

.chart-panel { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.chart-title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }
.chart-container { position: relative; height: 300px; width: 100%; }
.doughnut-container { position: relative; height: 250px; width: 100%; display: flex; justify-content: center; }

.mini-table, .logs-table, .ticket-table, .invoice-table, .endpoint-table, .param-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; text-align: left; }
.logs-table th, .ticket-table th, .invoice-table th, .mini-table th { background: var(--bg-surface-alt); padding: 16px; color: var(--text-tertiary); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border-color); }
.endpoint-table th, .param-table th { padding: 12px 16px; border-bottom: 1px solid var(--border-color); color: var(--text-primary); font-weight: 600; }
.logs-table td, .ticket-table td, .invoice-table td, .mini-table td, .endpoint-table td, .param-table td { padding: 16px; border-bottom: 1px solid var(--border-color); color: var(--text-primary); vertical-align: middle; }
.param-table code { font-family: 'Fira Code', monospace; color: var(--brand-primary); background: rgba(79, 70, 229, 0.1); padding: 2px 6px; border-radius: 4px; }
.logs-table tr:hover, .ticket-table tr:hover, .invoice-table tr:hover { background: rgba(79, 70, 229, 0.02); cursor: pointer;}
.ticket-id, .invoice-id { font-family: 'Fira Code', monospace; color: var(--text-secondary); font-size: 0.85rem; }
.ticket-subject { font-weight: 500; color: var(--text-primary); margin-bottom: 4px; display: block; }
.ticket-meta { font-size: 0.8rem; color: var(--text-tertiary); }

.log-row.active { background: rgba(79, 70, 229, 0.05); border-left: 3px solid var(--brand-primary); }
.log-details-row { display: none; background: var(--bg-surface-alt); }
.log-details-row.open { display: table-row; }
.log-details-container { padding: 24px; }
.json-viewer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.json-panel h4 { font-size: 0.85rem; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 12px; }
.json-code { background: var(--code-bg); border: 1px solid var(--code-border); border-radius: var(--radius-md); padding: 16px; color: var(--code-text); font-family: 'Fira Code', monospace; font-size: 0.8rem; max-height: 300px; overflow-y: auto; line-height: 1.5; }

.form-grid, .settings-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px;}
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group.full, .form-group.full-width { grid-column: span 2; }
.form-group-half { margin-bottom: 0; display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); display: flex; justify-content: space-between;}
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-surface); color: var(--text-primary); font-family: inherit; font-size: 0.95rem; transition: all 0.2s; outline: none; }
.form-control:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); }
textarea.form-control { resize: vertical; min-height: 120px; }

.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid var(--border-color); }
.toggle-row:first-child { border-top: none; padding-top: 0; }
.toggle-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.toggle-info p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--border-color); transition: .3s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: var(--brand-primary); }
input:checked + .slider:before { transform: translateX(20px); }

.api-key-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; background: var(--bg-main); padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.api-key-input { flex: 1; padding: 10px 16px; font-family: 'Fira Code', monospace; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-size: 0.9rem; }
.secret-box { display: flex; align-items: center; gap: 12px; background: var(--bg-surface); border: 1px solid var(--border-color); padding: 8px 16px; border-radius: var(--radius-md); margin-top: 16px; }
.secret-label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.secret-input { flex: 1; border: none; background: transparent; font-family: 'Fira Code', monospace; font-size: 0.85rem; color: var(--text-primary); outline: none; }
.danger-zone { border: 1px solid #EF4444; }
.danger-zone .settings-title { color: #EF4444; }
.danger-header { border-bottom-color: rgba(239, 68, 68, 0.2); }

.logs-controls, .controls-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.filter-group { display: flex; gap: 12px; }
.filter-select { padding: 10px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-surface); color: var(--text-primary); font-family: inherit; font-size: 0.9rem; outline: none; }
.date-picker { padding: 10px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-surface); color: var(--text-primary); font-family: inherit; font-size: 0.9rem; outline: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-top: 1px solid var(--border-color); background: var(--bg-surface); }

/* === AUTHENTICATION & FORMS === */
.auth-wrapper { display: flex; height: 100vh; width: 100%; }
.auth-left { flex: 1; display: flex; flex-direction: column; position: relative; background: var(--bg-main); overflow-y: auto; height: 100vh;}
.auth-right { flex: 1; background: #0B0F19; display: none; position: relative; flex-direction: column; justify-content: center; align-items: center; padding: 40px; overflow: hidden; height: 100vh;}
.auth-right::before { content: ''; position: absolute; top: 20%; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 60%); border-radius: 50%; z-index: 0; }
.auth-header { padding: 32px 48px; display: flex; justify-content: space-between; align-items: center; width: 100%; }
.auth-container { max-width: 440px; width: 100%; margin: auto; padding: 40px 24px; }
.auth-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.auth-subtitle { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 32px; }
.divider { display: flex; align-items: center; text-align: center; margin: 24px 0; color: var(--text-tertiary); font-size: 0.85rem; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-color); }
.divider:not(:empty)::before { margin-right: 16px; }
.divider:not(:empty)::after { margin-left: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 24px; transition: color 0.2s; }
.back-link:hover { color: var(--text-primary); }

.otp-input { letter-spacing: 8px; font-size: 1.25rem; text-align: center; font-family: 'Fira Code', monospace; font-weight: 600; }
.fade-out { opacity: 0; transform: translateY(-10px); transition: all 0.3s ease; pointer-events: none; }
.fade-in { opacity: 1; transform: translateY(0); transition: all 0.3s ease; }

.visual-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: var(--radius-xl); padding: 40px; max-width: 480px; text-align: center; z-index: 1; }
.visual-icon { width: 64px; height: 64px; background: rgba(79, 70, 229, 0.2); color: #818CF8; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin: 0 auto 24px auto; box-shadow: 0 0 30px rgba(79, 70, 229, 0.4); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 80px; align-items: start; }
.contact-info-wrapper { display: flex; flex-direction: column; gap: 32px; }
.contact-method { display: flex; gap: 20px; align-items: flex-start; }
.method-icon { width: 48px; height: 48px; background: rgba(79, 70, 229, 0.08); color: var(--brand-primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.method-details h3 { font-size: 1.1rem; margin-bottom: 4px; }
.method-details p { margin-bottom: 8px; font-size: 0.95rem; }
.method-details a { color: var(--brand-primary); font-weight: 500; font-size: 0.95rem; }
.social-section { margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--border-color); }
.social-grid-icons { display: flex; gap: 16px; margin-top: 16px;}
.social-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-surface); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 1.2rem; transition: all 0.2s ease; }
.social-btn:hover { transform: translateY(-3px); color: #ffffff; border-color: transparent; }
.social-btn.twitter:hover { background: #000000; }
.social-btn.github:hover { background: #333333; }
.social-btn.discord:hover { background: #5865F2; }
.social-btn.linkedin:hover { background: #0A66C2; }
[data-theme="dark"] .social-btn.twitter:hover { background: #ffffff; color: #000000; }
.contact-form-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-lg); }

/* === DOCS, SDK, STATUS, CHANGELOG, LEGAL === */
.docs-layout { display: grid; grid-template-columns: 250px 1fr 200px; max-width: 1400px; margin: 72px auto 0 auto; min-height: calc(100vh - 72px); }
.docs-sidebar { border-right: 1px solid var(--border-color); padding: 32px 24px; position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; }
.docs-nav-group { margin-bottom: 24px; }
.docs-nav-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--text-tertiary); letter-spacing: 0.05em; margin-bottom: 12px; }
.docs-nav-link { display: block; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 8px; transition: color 0.2s; }
.docs-nav-link:hover, .docs-nav-link.active { color: var(--brand-primary); font-weight: 500; }
.docs-content { padding: 48px 64px; }
.docs-content h1 { font-size: 2.5rem; margin-bottom: 16px; }
.docs-content h2 { font-size: 1.5rem; margin-top: 48px; margin-bottom: 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.docs-content p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; margin-bottom: 16px; }
.docs-toc { padding: 32px 24px; position: sticky; top: 72px; height: calc(100vh - 72px); }
.docs-toc-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; }
.docs-toc a { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; }
.docs-toc a:hover { color: var(--text-primary); }

.sdk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; padding: 60px 0; }
.sdk-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px; transition: all 0.3s ease; box-shadow: var(--shadow-sm); }
.sdk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-primary); }
.sdk-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.sdk-icon { font-size: 2.5rem; }
.install-block { background: var(--code-bg); border: 1px solid var(--code-border); padding: 12px 16px; border-radius: var(--radius-md); font-family: 'Fira Code', monospace; font-size: 0.85rem; color: var(--code-text); display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.install-block i { color: var(--text-tertiary); cursor: pointer; transition: color 0.2s; }
.install-block i:hover { color: #ffffff; }

.status-banner { max-width: 800px; margin: 0 auto 40px auto; background: rgba(16, 185, 129, 0.1); border: 1px solid #10B981; border-radius: var(--radius-md); padding: 24px; display: flex; align-items: center; justify-content: space-between; }
.status-banner h2 { margin: 0; font-size: 1.5rem; color: #10B981; display: flex; align-items: center; gap: 12px; }
.pulse-dot { width: 12px; height: 12px; background: #10B981; border-radius: 50%; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.service-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.service-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.service-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.service-header h3 { font-size: 1.1rem; margin: 0; }
.uptime-stat { font-family: 'Fira Code', monospace; color: var(--text-secondary); font-size: 0.9rem; }
.uptime-bars { display: flex; gap: 4px; height: 32px; }
.uptime-day { flex: 1; border-radius: 2px; background: #10B981; transition: opacity 0.2s; cursor: pointer; }
.uptime-day:hover { opacity: 0.7; }
.uptime-day.partial { background: #F59E0B; }
.uptime-day.down { background: #EF4444; }
.legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.8rem; color: var(--text-tertiary); }

.timeline-container { max-width: 800px; margin: 60px auto 100px auto; padding: 0 24px; }
.timeline-item { position: relative; padding-left: 40px; margin-bottom: 48px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: 7px; top: 32px; bottom: -48px; width: 2px; background: var(--border-color); }
.timeline-item:last-child::before { display: none; }
.timeline-marker { position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-primary); border: 4px solid var(--bg-main); box-shadow: 0 0 0 1px var(--border-color); }
.timeline-date { font-family: 'Fira Code', monospace; font-size: 0.85rem; color: var(--text-tertiary); margin-bottom: 8px; display: block; }
.timeline-content { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.timeline-title { font-size: 1.5rem; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.timeline-content ul { padding-left: 20px; color: var(--text-secondary); margin-top: 16px; }
.timeline-content li { margin-bottom: 8px; }

.legal-container { max-width: 840px; margin: 0 auto; padding: 60px 24px 100px 24px; }
.legal-content h2 { font-size: 1.5rem; margin-top: 48px; margin-bottom: 16px; color: var(--text-primary); }
.legal-content h3 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 12px; color: var(--text-primary); }
.legal-content p { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.legal-content ul { margin-bottom: 24px; padding-left: 24px; color: var(--text-secondary); }
.legal-content li { margin-bottom: 12px; line-height: 1.7; }
.legal-content strong { color: var(--text-primary); }
.last-updated { color: var(--text-tertiary); font-size: 0.9rem; margin-top: 16px; }
.alert-box { background: rgba(239, 68, 68, 0.1); border-left: 4px solid #EF4444; padding: 16px 20px; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 24px 0; }
.alert-box p { margin: 0; color: var(--text-primary); font-weight: 500; }

/* === USER PROFILE DROPDOWN === */
.user-dropdown-wrapper { position: relative; border-left: 1px solid var(--border-color); padding-left: 16px; margin-left: 8px; }
.user-dropdown-trigger { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8rem; transition: transform 0.2s ease; }
.user-dropdown-trigger:hover .user-avatar { transform: scale(1.05); }
.user-name { font-weight: 500; font-size: 0.9rem; color: var(--text-primary); }
.user-dropdown-menu { position: absolute; top: calc(100% + 16px); right: 0; width: 240px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.2s ease; z-index: 1050; }
.user-dropdown-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-header { padding: 16px; border-bottom: 1px solid var(--border-color); }
.user-dropdown-title { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin: 0 0 2px 0; }
.user-dropdown-subtitle { font-size: 0.8rem; color: var(--text-secondary); margin: 0; }
.user-dropdown-body { padding: 8px 0; }
.user-dropdown-footer { padding: 8px 0; border-top: 1px solid var(--border-color); }
.user-dropdown-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 0.9rem; color: var(--text-secondary); text-decoration: none; transition: background 0.2s, color 0.2s; }
.user-dropdown-item i { font-size: 1rem; width: 16px; text-align: center; }
.user-dropdown-item:hover { background: var(--bg-surface-alt); color: var(--text-primary); }
.logout-link { color: #EF4444 !important; }
.logout-link:hover { background: rgba(239, 68, 68, 0.05) !important; color: #DC2626 !important; }

/* === RESPONSIVE BREAKPOINTS === */
@media (min-width: 992px) {
    .auth-right { display: flex; }
}

@media (max-width: 1024px) {
    .hero-grid, .ai-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
    .hero-ctas, .trust-metrics { justify-content: center; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; gap: 24px; }
    .pricing-card.highlight { transform: none; }
    .api-playground { grid-template-columns: 1fr; }
    .api-sidebar { border-right: none; border-bottom: 1px solid var(--code-border); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    
    .endpoint-row { flex-direction: column; gap: 24px; }
    .endpoint-code { width: 100%; }
    
    .docs-layout { grid-template-columns: 250px 1fr; } 
    .docs-toc { display: none; }
    
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { display: none; }
    .dashboard-content { padding: 24px; }
    .col-span-8, .col-span-4, .col-span-6 { grid-column: span 12; }
    .json-viewer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn { display: none; }
    .hamburger { display: block; }
    .steps-grid, .stats-grid, .testimonials-grid, .blog-grid { grid-template-columns: 1fr; }
    .step-card::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .section { padding: 56px 0; }
    h1 { font-size: 2.25rem; }
    .use-cases-grid { grid-template-columns: 1fr; }
    
    /* Mobile Nav Active State */
    .nav-links.active {
        display: flex; flex-direction: column; align-items: flex-start;
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--bg-surface); padding: 24px;
        border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-md);
        height: auto; max-height: calc(100vh - 72px); overflow-y: auto;
    }
    .nav-links > li { width: 100%; height: auto; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
    .nav-links > li:last-child { border-bottom: none; }
    
    /* Mobile Dropdown Overrides */
    .nav-dropdown { padding: 0; }
    .dropdown-toggle-mobile { display: flex; justify-content: space-between; width: 100%; padding: 4px 0; }
    .dropdown-menu {
        position: static; width: 100%; opacity: 1; visibility: visible;
        transform: none !important; box-shadow: none; border: none;
        padding: 16px 0 0 0; background: transparent; display: none;
    }
    .nav-dropdown.mobile-expanded .dropdown-menu { display: block; }
    .nav-dropdown:hover .dropdown-menu { /* Disable desktop hover behavior on mobile */ }
    .dropdown-grid { grid-template-columns: 1fr; gap: 8px; }
    .dropdown-item { padding: 8px; gap: 12px; }
    .dropdown-icon { width: 32px; height: 32px; font-size: 0.9rem; }
    .dropdown-text h4 { font-size: 0.9rem; }

    /* Appended Form & Misc Adjustments */
    .billing-grid, .form-grid, .settings-form-grid { grid-template-columns: 1fr; }
    .form-group.full, .form-group.full-width { grid-column: span 1; }
    .auth-header { padding: 24px; }
    .auth-container { padding: 20px 24px; }
    .form-row { grid-template-columns: 1fr; gap: 20px; margin-bottom: 0; }
    .form-group-half { margin-bottom: 20px; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-form-card { padding: 32px 24px; }
    
    .logs-controls, .controls-row { flex-direction: column; align-items: stretch; }
    .api-key-row { flex-direction: column; align-items: stretch; }
    .env-badge { width: auto; align-self: flex-start; }
    .endpoint-card-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    
    .docs-layout { grid-template-columns: 1fr; } 
    .docs-sidebar { display: none; } 
    .docs-content { padding: 32px 24px; }
}