/* ==========================================================================
   GenForAi — Modern High-Performance Design System
   Pure Vanilla CSS — Zero Dependencies, Ultra-Crisp Typography, Fluid UX
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-page: #0a0b10;
    --bg-surface: #12141e;
    --bg-surface-elevated: #171b29;
    --bg-surface-hover: #1e2335;
    --bg-surface-glass: rgba(18, 20, 30, 0.75);
    
    /* Hairline Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-bright: rgba(255, 255, 255, 0.24);
    --border-accent: rgba(99, 102, 241, 0.35);

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #0f172a;

    /* Brand Accents — Modern AI High-Speed Palette */
    --primary: #00f0ff;
    --primary-light: #38bdf8;
    --primary-hover: #0284c7;
    --primary-glow: rgba(0, 240, 255, 0.25);
    
    --brand-ruby: #e0142b;
    --brand-ruby-glow: rgba(224, 20, 43, 0.25);
    
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.2);
    
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.25);

    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.2);
    
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.2);
    
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.2);

    /* Code & Elements */
    --code-bg: #07080d;
    --code-border: rgba(255, 255, 255, 0.06);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", -apple-system, Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, Monaco, monospace;

    /* Sizing & Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --container-max: 1200px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px var(--primary-glow);
}

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

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    font-family: inherit;
    border: none;
    background: transparent;
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

::selection {
    background: rgba(99, 102, 241, 0.35);
    color: #fff;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #93c5fd;
}

p {
    color: var(--text-secondary);
}

strong {
    color: #fff;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Layout & Container
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Site Header & Navbar
   -------------------------------------------------------------------------- */
.site-header {
    background: rgba(8, 10, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

.logo:hover {
    color: #fff;
    opacity: 0.95;
}

.brand-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.35));
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.brand-name {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 17.5px;
    color: #ffffff;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 9px;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.logo-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 3px 5px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-full);
}

.nav-links li {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li.mobile-nav-actions,
li.mobile-nav-actions,
.mobile-nav-actions {
    display: none !important;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.1);
    font-weight: 600;
}

.nav-link-community {
    color: #c084fc !important;
    font-weight: 600 !important;
}

.nav-link-community:hover {
    color: #e9d5ff !important;
    background: rgba(192, 132, 252, 0.12) !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-cmd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    cursor: pointer;
    outline: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cmd-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(0, 240, 255, 0.45);
    color: #ffffff;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.18), inset 0 0 12px rgba(0, 240, 255, 0.05);
}

.nav-cmd-icon {
    color: #00f0ff;
    flex-shrink: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-cmd-btn:hover .nav-cmd-icon {
    transform: scale(1.12);
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}

.nav-cmd-label {
    letter-spacing: -0.01em;
}

.nav-cmd-key {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #cbd5e1;
    line-height: 1.2;
}

.nav-cmd-btn:hover .nav-cmd-key {
    background: rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.3);
    color: #00f0ff;
}

.nav-ghost-link {
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.15s ease;
}

.nav-ghost-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-ghost-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 10px;
    transition: color 0.15s ease;
}

.nav-ghost-btn:hover {
    color: #ffffff;
}

.btn-nav-cta {
    background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%) !important;
    color: #050814 !important;
    font-weight: 700 !important;
    padding: 7px 16px !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 2px 14px rgba(0, 240, 255, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-size: 13px !important;
    line-height: 1 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-nav-cta:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 22px rgba(0, 240, 255, 0.6) !important;
    transform: translateY(-1px) !important;
}

.mobile-header-controls {
    display: none;
    align-items: center;
    gap: 8px;
}

.mobile-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mobile-search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.4);
}

.mobile-nav-actions {
    display: none;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
    color: #050814;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 18px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: #ffffff;
    box-shadow: 0 6px 26px rgba(0, 240, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    color: #fff;
}

.btn-premium {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: #ffffff;
    border-color: rgba(216, 180, 254, 0.3);
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.35);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #7e22ce 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.55);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: #ef4444;
    color: #ffffff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 26px;
    font-size: 15.5px;
    border-radius: var(--radius-md);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Badges & Pills
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    line-height: 1.3;
    white-space: nowrap;
}

.badge-info {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-neutral {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid var(--border);
}

.badge-premium {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(217, 70, 239, 0.18));
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.dot-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 6px #10b981;
}

/* --------------------------------------------------------------------------
   Cards & Content Surfaces
   -------------------------------------------------------------------------- */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    border-color: var(--border-hover);
}

.card-elevated {
    background: var(--bg-surface-elevated);
}

.card-glow {
    position: relative;
    overflow: hidden;
}

.card-glow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    padding: 96px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: #c7d2fe;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.hero-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
}

.hero h1 {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #ffffff;
    max-width: 880px;
    margin: 0 auto 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.hero p {
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* --------------------------------------------------------------------------
   Features Grid & Sections
   -------------------------------------------------------------------------- */
.features-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    position: relative;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #fff;
    text-align: center;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
}

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

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

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

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818cf8;
    margin-bottom: 18px;
}

.feature-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #818cf8;
    margin-bottom: 8px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

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

/* --------------------------------------------------------------------------
   Code Snippet Preview Cards
   -------------------------------------------------------------------------- */
.code-preview-card {
    max-width: 860px;
    margin: 0 auto;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.code-header {
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-tabs {
    display: flex;
    gap: 4px;
}

.code-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s ease;
}

.code-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.code-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.code-block {
    padding: 20px 22px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.7;
    color: #e2e8f0;
    overflow-x: auto;
    white-space: pre;
}

.code-tag {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--code-bg);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    color: #60a5fa;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

table.data-table th {
    background: var(--bg-surface-elevated);
    padding: 12px 16px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

table.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
}

table.data-table tr:last-child td {
    border-bottom: none;
}

table.data-table tr:hover td {
    background: var(--bg-surface-hover);
}

/* --------------------------------------------------------------------------
   Forms & Inputs
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--bg-page);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

/* --------------------------------------------------------------------------
   ChatGPT-like Fullscreen Chat UI
   -------------------------------------------------------------------------- */
.chatgpt-layout {
    display: flex;
    height: calc(100vh - 68px);
    width: 100%;
    overflow: hidden;
    background: var(--bg-page);
    position: relative;
}

.chat-sidebar {
    width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    z-index: 50;
}

.chat-sidebar-header {
    margin-bottom: 12px;
}

.new-chat-btn {
    width: 100%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.new-chat-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

.chat-history-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-history-item {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.chat-history-item .chat-item-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-history-item .chat-item-del {
    opacity: 0;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 14px;
    line-height: 1;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.chat-history-item:hover .chat-item-del {
    opacity: 0.7;
}

.chat-history-item .chat-item-del:hover {
    opacity: 1;
    color: #f87171;
}

.chat-history-item:hover,
.chat-history-item.active {
    background: var(--bg-surface-elevated);
    color: #fff;
}

.chat-sidebar-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: var(--bg-page);
}

.chat-top-bar {
    height: 52px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(10, 11, 16, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.studio-model-selector-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    transition: all 0.2s ease;
}

.studio-model-selector-wrap:hover {
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.06);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.studio-model-icon {
    color: #00f0ff;
    flex-shrink: 0;
}

.studio-model-select {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding-right: 4px;
}

.studio-model-select option {
    background: #0d1117;
    color: #ffffff;
    font-size: 13px;
    padding: 6px 10px;
}

.chat-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px 140px;
    scroll-behavior: smooth;
}

/* Studio Hero Canvas (Empty State) */
.studio-empty-hero {
    max-width: 760px;
    margin: 36px auto 0;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.studio-hero-icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.28);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-hero-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

.studio-hero-title {
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.studio-hero-sub {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.studio-prompt-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    text-align: left;
}

@media (max-width: 640px) {
    .studio-prompt-cards {
        grid-template-columns: 1fr;
    }
}

.studio-card {
    background: rgba(18, 22, 34, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: inherit;
    text-decoration: none;
    font-family: inherit;
    border-style: solid;
}

.studio-card:hover {
    background: rgba(24, 30, 48, 0.9);
    border-color: rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
}

.studio-card-icon {
    font-size: 18px;
    margin-bottom: 8px;
}

.studio-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.studio-card-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Chat Message Rows & Distinct Bubble Architecture */
.chat-message-row {
    max-width: 820px;
    margin: 0 auto 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.chat-message-row.user-row {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-avatar.user-av {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #38bdf8;
}

.chat-avatar.ai-av {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.28);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.18);
}

.chat-avatar.ai-av img,
.chat-ai-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.45));
}

.chat-message-row.user-row .chat-content-wrap {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px 18px 4px 18px;
    padding: 12px 18px;
    color: #ffffff;
    max-width: 78%;
    flex: initial;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    font-size: 14.5px;
    line-height: 1.6;
    word-break: break-word;
}

.chat-message-row.ai-row .chat-content-wrap {
    background: rgba(14, 17, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px 18px 18px 18px;
    padding: 16px 22px;
    color: #f1f5f9;
    flex: 1;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    font-size: 14.5px;
    line-height: 1.7;
    word-break: break-word;
}

.chat-content-wrap pre {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin: 12px 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    position: relative;
}

.chat-content-wrap code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 5px;
    border-radius: 4px;
}

/* Stream Switch Pill */
.stream-pill-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    transition: all 0.15s ease;
}

.stream-pill-switch:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.stream-pill-switch input {
    display: none;
}

.stream-pill-track {
    width: 28px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    position: relative;
    transition: background 0.2s ease;
}

.stream-pill-switch input:checked + .stream-pill-track {
    background: #00f0ff;
}

.stream-pill-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
}

.stream-pill-switch input:checked + .stream-pill-track .stream-pill-thumb {
    transform: translateX(12px);
    background: #050814;
}

/* Bottom Chat Input Bar */
.chat-input-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10, 11, 16, 0) 0%, rgba(10, 11, 16, 0.95) 35%, rgba(10, 11, 16, 1) 100%);
    padding: 24px 20px 14px;
}

.chat-input-pill {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    padding: 8px 14px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-input-pill:focus-within {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 4px 28px rgba(0, 240, 255, 0.15);
}

.chat-textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14.5px;
    font-family: var(--font-sans);
    outline: none;
    resize: none;
    max-height: 180px;
    min-height: 24px;
    line-height: 1.5;
    padding: 5px 0;
}

.chat-textarea::placeholder {
    color: var(--text-muted);
}

.chat-send-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
    color: #050814;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
    box-shadow: 0 2px 10px rgba(0, 240, 255, 0.3);
}

.chat-send-icon-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.5);
}

.chat-send-icon-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.chat-send-icon-btn.btn-stop {
    background: #ef4444;
    color: #fff;
    opacity: 1;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.4);
}

.chat-send-icon-btn.btn-stop:hover {
    background: #dc2626;
}

.chat-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
}

.chat-typing-indicator span {
    width: 6px;
    height: 6px;
    background: #60a5fa;
    border-radius: 50%;
    display: inline-block;
    animation: typingPulse 1.4s infinite ease-in-out both;
}

.chat-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingPulse {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.chat-disclaimer {
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 8px;
}

.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.chat-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 45;
    display: none;
}

.chat-sidebar-backdrop.active {
    display: block;
}

/* --------------------------------------------------------------------------
   Modern Footer
   -------------------------------------------------------------------------- */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 13.5px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand-col .footer-tagline {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 380px;
    margin-bottom: 14px;
}

.footer-security-note {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.footer-links-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s ease;
}

.footer-links-col a:hover {
    color: #fff;
}

.footer-bottom-row {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   Responsive Mobile Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 15px;
    }

    .chat-sidebar {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        transform: translateX(-100%);
    }

    .chat-sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
    }

    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .nav-actions .btn-secondary {
        display: none;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand-col {
        grid-column: span 1;
    }
}

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

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

    .hero h1 {
        font-size: 28px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    .chat-top-bar {
        padding: 0 12px;
    }

    .chat-input-bottom-bar {
        padding: 12px 12px 8px;
    }

    .chat-message-row {
        gap: 10px;
        margin-bottom: 20px;
    }

    .chat-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .chat-content-wrap {
        font-size: 13.5px;
    }

    .chat-input-pill {
        padding: 6px 12px;
        border-radius: 20px;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand-col {
        grid-column: span 1;
    }

    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ==========================================================================
   Split-Screen Authentication (Layout Reference: Image 1)
   No external colors used — Strict GenForAi Obsidian + Ruby brand system
   ========================================================================== */
.auth-split-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 180px);
    max-width: 1140px;
    margin: 40px auto 60px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.auth-form-side {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-surface);
}

.auth-showcase-side {
    background: radial-gradient(circle at 75% 30%, rgba(224, 20, 43, 0.12) 0%, rgba(18, 20, 30, 0.95) 70%);
    border-left: 1px solid var(--border);
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-showcase-side::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 20, 43, 0.18) 0%, transparent 70%);
    top: 20%;
    right: 15%;
    pointer-events: none;
}

.auth-card-3d {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(135deg, rgba(25, 28, 42, 0.9) 0%, rgba(15, 17, 26, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(224, 20, 43, 0.15);
    position: relative;
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.auth-card-3d:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.auth-divider-or {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-divider-or::before,
.auth-divider-or::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider-or::before {
    margin-right: 14px;
}

.auth-divider-or::after {
    margin-left: 14px;
}

.auth-secondary-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-bottom: 10px;
}

.auth-secondary-btn:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--border-hover);
    color: #fff;
}

@media (max-width: 900px) {
    .auth-split-wrapper {
        grid-template-columns: 1fr;
        margin: 20px auto;
    }
    .auth-showcase-side {
        display: none;
    }
    .auth-form-side {
        padding: 36px 24px;
    }
}

/* ==========================================================================
   Developer Console & Dashboard Layout (Layout Reference: Image 2)
   Sidebar, Endpoint cards, Get started row, Bottom embedded chat
   ========================================================================== */
.console-layout {
    display: flex;
    min-height: calc(100vh - 68px);
}

.console-sidebar {
    width: 250px;
    height: calc(100vh - 68px);
    position: sticky;
    top: 68px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 20;
}

.console-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

.console-sidebar-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

.centered-plans-container {
    max-width: 860px;
    margin: 0 auto;
}

.table-scroll-container {
    max-height: 480px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    position: relative;
}

.table-scroll-container thead th {
    position: sticky;
    top: 0;
    background: var(--bg-surface-elevated);
    z-index: 2;
    box-shadow: 0 1px 0 var(--border);
}

.comparison-table-wrapper {
    max-width: 960px;
    margin: 40px auto 0;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.comparison-table th {
    background: var(--bg-page);
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid var(--border);
}

.comparison-table th.col-free {
    color: var(--cyan);
}

.comparison-table th.col-premium {
    color: var(--primary-light);
}

.comparison-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table td.feature-title {
    font-weight: 600;
    color: #fff;
}

.console-workspace-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 24px;
}

.console-nav-group {
    margin-bottom: 24px;
}

.console-nav-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.console-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.console-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.console-nav-link.active {
    color: #fff;
    background: rgba(224, 20, 43, 0.12);
    border: 1px solid rgba(224, 20, 43, 0.25);
    font-weight: 600;
}

.console-nav-link svg {
    color: inherit;
    flex-shrink: 0;
}

.console-main {
    flex: 1;
    padding: 36px 40px 120px;
    overflow-y: auto;
    position: relative;
    max-width: 1200px;
}

/* Endpoint Cards (Image 2 style) */
.console-endpoints-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.console-endpoint-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    transition: all 0.2s ease;
}

.console-endpoint-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.console-endpoint-title {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.console-endpoint-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Get Started Row (Image 2 style) */
.console-get-started {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}

.console-started-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Integrated Bottom Chat Bar (Image 2 style) */
.console-bottom-chat-wrap {
    position: fixed;
    bottom: 0;
    left: 250px;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 11, 16, 0.95) 40%, #0a0b10 100%);
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.prompt-suggestions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.prompt-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 5px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.prompt-pill:hover {
    color: #fff;
    border-color: var(--primary-light);
    background: rgba(224, 20, 43, 0.1);
}

.console-chat-bar {
    width: 100%;
    max-width: 760px;
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-full);
    padding: 6px 8px 6px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.console-chat-bar:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.console-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-family: var(--font-sans);
    outline: none;
}

.console-chat-input::placeholder {
    color: var(--text-muted);
}

.console-chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.console-chat-send:hover {
    background: var(--primary-hover);
}

@media (max-width: 1024px) {
    .console-endpoints-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .console-get-started {
        grid-template-columns: 1fr;
    }
    .console-bottom-chat-wrap {
        left: 0;
        padding: 16px 20px;
    }
}

@media (max-width: 768px) {
    .console-layout {
        flex-direction: column;
    }
    .console-sidebar {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        position: relative !important;
        top: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
        padding: 12px 14px !important;
        z-index: 10 !important;
    }
    .console-sidebar-nav {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
        scrollbar-width: thin;
    }
    .console-nav-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        margin-bottom: 0 !important;
    }
    .console-nav-heading {
        display: none !important;
    }
    .console-nav-link {
        white-space: nowrap !important;
        padding: 8px 12px !important;
        font-size: 12.5px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        border-radius: var(--radius-sm);
    }
    .console-sidebar-footer {
        display: flex !important;
        margin-top: 8px !important;
        padding-top: 8px !important;
        border-top: 1px solid var(--border) !important;
        justify-content: flex-end;
    }
    .console-main {
        padding: 20px 14px 60px;
    }
    .console-endpoints-grid {
        grid-template-columns: 1fr;
    }
}

/* Deep Reasoning Toggle & Thinking Block (Harmonized with Ruby Obsidian Theme) */
.btn-think-active {
    background: rgba(224, 20, 43, 0.16) !important;
    border-color: rgba(224, 20, 43, 0.55) !important;
    color: #fff !important;
    box-shadow: 0 0 16px rgba(224, 20, 43, 0.3) !important;
}

.thinking-accordion {
    margin-bottom: 12px;
    background: rgba(224, 20, 43, 0.04);
    border: 1px solid rgba(224, 20, 43, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.thinking-accordion:hover {
    border-color: rgba(224, 20, 43, 0.35);
}

.thinking-accordion summary {
    cursor: pointer;
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    list-style: none;
}

.thinking-accordion summary::-webkit-details-marker {
    display: none;
}

.thinking-accordion .thinking-body {
    margin-top: 10px;
    font-size: 12.5px;
    color: #cbd5e1;
    font-family: var(--font-sans);
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    white-space: pre-wrap;
}

/* ==========================================================================
   Admin Modal Backdrops & Dialogs
   ========================================================================== */
.admin-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal-dialog {
    background: var(--bg-surface);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* ==========================================================================
   Video Showcase & Platform Walkthrough Player (Anti-AI-Slop, High-End SaaS)
   ========================================================================== */
.video-showcase-container {
    background: #08090e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(224, 20, 43, 0.08);
    position: relative;
}

.video-header-bar {
    background: #0e111a;
    border-bottom: 1px solid var(--border);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================================================
   Modern SaaS Site Footer (Ultra-Clean, Production Grade)
   ========================================================================== */
.site-footer {
    background: #06080e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 72px 0 36px;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
}

.footer-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
    gap: 48px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    max-width: 380px;
}

.footer-tagline {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.footer-security-note {
    font-size: 11.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.footer-links-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 18px;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links-col ul li a {
    color: var(--text-secondary);
    font-size: 13.5px;
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-block;
}

.footer-links-col ul li a:hover {
    color: #38bdf8;
    transform: translateX(2px);
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-copyright {
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand-col {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-brand-col {
        grid-column: span 1;
    }
    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==========================================================================
   Modern Mobile Navigation Drawer & Header Enhancements
   ========================================================================== */
@media (max-width: 960px) {
    .mobile-header-controls {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: var(--radius-sm);
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
    }

    .mobile-nav-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(56, 189, 248, 0.4);
    }

    .nav-container {
        display: contents;
    }

    .nav-links {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(8, 10, 16, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 20px 24px 28px;
        gap: 8px;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        display: none;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
        animation: navSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes navSlideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-links a {
        padding: 11px 16px;
        font-size: 15px;
        font-weight: 600;
        border-radius: var(--radius-sm);
        width: 100%;
        display: block;
    }

    .nav-links li.mobile-nav-actions,
    li.mobile-nav-actions,
    .mobile-nav-actions {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        margin-top: 14px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
        background: transparent !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    .nav-actions {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo-badge {
        display: none;
    }
    .header-inner {
        padding: 0 16px;
    }
}

/* ==========================================================================
   Modern SaaS Pricing Cards & Visual Checklist System
   ========================================================================== */
.pricing-card {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-xl);
    padding: 38px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.pricing-card.highlighted {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.12);
}

.pricing-card.highlighted:hover {
    border-color: rgba(0, 240, 255, 0.65);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 240, 255, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-check-bullet {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Live Benchmark Ticker Strip */
.benchmark-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 40px 0;
}

@media (max-width: 850px) {
    .benchmark-strip {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .benchmark-strip {
        grid-template-columns: 1fr;
    }
}

.benchmark-card {
    background: rgba(18, 20, 30, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.benchmark-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    opacity: 0.6;
}

.benchmark-val {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    font-family: var(--font-mono);
    line-height: 1.1;
    margin-bottom: 4px;
}

.benchmark-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Modern Web Guidance: Scroll-Driven Animations */
@media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
        @keyframes reveal-up {
            from {
                opacity: 0;
                transform: translateY(32px) scale(0.98);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .scroll-reveal {
            animation: reveal-up auto cubic-bezier(0.16, 1, 0.3, 1) backwards;
            animation-timeline: view();
            animation-range: entry 10% cover 30%;
        }
    }
}

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

/* ==============================================================================
   Modern SaaS Layout & Component Utilities (Linear / Vercel Aesthetic)
   ============================================================================== */
.hero-ambient-glow {
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 520px;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56, 189, 248, 0.18) 0%, rgba(139, 92, 246, 0.09) 45%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* Modern Pill Badge */
.hero-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #e0f2fe;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
    transition: all 0.2s ease;
}

.hero-status-badge:hover {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.12);
}

/* Modern Section Eyebrow Pill Badge */
.section-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.24);
    color: #38bdf8;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.1);
    transition: all 0.2s ease;
}

.section-eyebrow-pill:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.12);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 10px #00f0ff;
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Modern Hero Typography */
.hero-title-giant {
    font-size: clamp(40px, 6.5vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin-bottom: 22px;
}

.hero-description-lead {
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto 38px;
}

/* Modern Hero Developer Terminal Showcase */
.hero-terminal-wrapper {
    max-width: 820px;
    margin: 48px auto 0;
    background: rgba(11, 14, 23, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.08);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hero-terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(7, 9, 15, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
    gap: 10px;
}

.terminal-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-tabs {
    display: flex;
    gap: 4px;
}

.terminal-tab-btn {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.terminal-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.terminal-tab-btn.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.hero-terminal-body {
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.65;
    text-align: left;
    overflow-x: auto;
}

.terminal-code-tab {
    display: none;
    width: 100%;
}

.terminal-code-tab.active {
    display: block;
}

.hero-terminal-body pre {
    margin: 0;
    background: transparent;
    padding: 0;
    border: none;
}

.hero-terminal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: rgba(5, 7, 12, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* Modern Minimalist Metrics Bar */
.modern-metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 56px auto 0;
    max-width: 960px;
}

.modern-metric-card {
    background: rgba(12, 15, 24, 0.95);
    padding: 24px 20px;
    text-align: center;
    transition: background 0.2s ease;
}

.modern-metric-card:hover {
    background: rgba(18, 22, 35, 0.95);
}

.modern-metric-val {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 4px;
}

.modern-metric-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .modern-metrics-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Bento Grid System for Capabilities */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.bento-card {
    background: rgba(14, 17, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(56, 189, 248, 0.08);
}

.bento-card-7 {
    grid-column: span 7;
}

.bento-card-5 {
    grid-column: span 5;
}

.bento-card-6 {
    grid-column: span 6;
}

.bento-card-12 {
    grid-column: span 12;
}

@media (max-width: 900px) {
    .bento-card-7,
    .bento-card-5,
    .bento-card-6 {
        grid-column: span 12;
    }
}

.bento-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
}

.bento-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.bento-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* Modern Workflow Step Progression */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.workflow-card {
    background: rgba(14, 17, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    position: relative;
    transition: all 0.2s ease;
}

.workflow-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(18, 22, 35, 0.85);
}

.workflow-num {
    font-size: 13px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #38bdf8;
    margin-bottom: 14px;
    display: inline-block;
    padding: 3px 8px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 4px;
}

@media (max-width: 900px) {
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Electric Gradient & Typography Enhancements
   ========================================================================== */
.gradient-text-electric {
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 45%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 35px rgba(56, 189, 248, 0.45);
}

.hero-sub-text {
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
}

/* ==========================================================================
   Command Palette Modal (Ctrl+K / Cmd+K)
   ========================================================================== */
.cmd-palette-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: none !important;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 16px 20px;
    animation: cmdFadeIn 0.18s ease-out;
}

.cmd-palette-backdrop.active {
    display: flex !important;
}
    display: flex;
}

@keyframes cmdFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.cmd-palette-dialog {
    width: 100%;
    max-width: 600px;
    background: #0b0f19;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.15);
    overflow: hidden;
}

.cmd-palette-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
}

.cmd-palette-search-icon {
    color: var(--primary-light);
    flex-shrink: 0;
}

.cmd-palette-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.cmd-palette-input::placeholder {
    color: var(--text-muted);
}

.cmd-palette-esc-key {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cmd-palette-results {
    max-height: 380px;
    overflow-y: auto;
    padding: 10px 12px;
}

.cmd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: #e2e8f0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cmd-item:hover,
.cmd-item.active {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #fff;
}

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

.cmd-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    flex-shrink: 0;
}

.cmd-item-label {
    font-weight: 600;
    font-size: 14px;
}

.cmd-item-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.cmd-item-badge {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.mobile-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: #00f0ff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-search-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
    color: #fff;
}

.cmd-category-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 10px 16px 4px;
}

.cmd-model-tier {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.cmd-model-tier.tier-free {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cmd-model-tier.tier-premium {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

/* ==========================================================================
   Interactive AI Demo Box (Part 7)
   ========================================================================== */
.demo-preview-card {
    background: rgba(14, 17, 26, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.12);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 900px;
    margin: 0 auto;
}

.demo-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(8, 10, 16, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 12px;
}

.demo-prompt-chips {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    white-space: nowrap;
}

.demo-prompt-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 12px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-prompt-chip:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: #fff;
    transform: translateY(-1px);
}

.demo-chat-body {
    padding: 20px;
    min-height: 220px;
    max-height: 340px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.demo-msg-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.demo-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-msg-avatar.ai {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.28);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.15);
}

.demo-ai-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.45));
}

.demo-msg-avatar.user {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #38bdf8;
}

.demo-msg-bubble {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #f1f5f9;
    font-size: 13.5px;
    line-height: 1.6;
    flex: 1;
    word-break: break-word;
}

.demo-msg-bubble pre {
    background: #090c15;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 12px;
    margin: 10px 0;
    font-family: var(--font-mono);
    font-size: 12px;
    overflow-x: auto;
    position: relative;
}

.demo-input-bar {
    display: flex;
    padding: 14px 20px;
    background: rgba(8, 10, 16, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 10px;
    align-items: center;
}

.demo-input-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.demo-input-box:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.demo-send-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #00f0ff, #38bdf8);
    color: #050814;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.demo-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.4);
}

.demo-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Model Explorer Grid & Cards (Part 8)
   ========================================================================== */
.model-explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.model-card-item {
    background: rgba(14, 17, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.model-card-item:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.1);
}

.model-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.model-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    word-break: break-all;
}

.model-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0 16px;
}

.model-tag-pill {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.model-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   FAQ Accordion (Part 14)
   ========================================================================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(14, 17, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.2s ease;
}

.faq-item:hover,
.faq-item.active {
    border-color: rgba(56, 189, 248, 0.35);
}

.faq-question-btn {
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.faq-chevron {
    color: var(--primary-light);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 22px 18px;
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.65;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}




/* ==========================================================================
   PATCH: Additional Fixes & Missing CSS Classes — GenForAi v2 Production
   ========================================================================== */

/* ---- Fix: gradient-text-electric needs display:inline for Safari ---- */
.gradient-text-electric {
    display: inline;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---- Fix: Hero section centering & spacing ---- */
.hero {
    text-align: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-status-badge {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

/* ---- Fix: Terminal wrapper horizontal overflow on mobile ---- */
.hero-terminal-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.hero-terminal-body pre {
    overflow-x: auto;
    max-width: 100%;
    white-space: pre;
    word-wrap: normal;
}

/* ---- Fix: Modern metrics bar responsive ---- */
@media (max-width: 560px) {
    .modern-metrics-bar {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 380px) {
    .modern-metrics-bar {
        grid-template-columns: 1fr;
    }
}

/* ---- Fix: Demo preview card overflow ---- */
.demo-preview-card {
    width: 100%;
    box-sizing: border-box;
}

.demo-prompt-chips {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* ---- Fix: Model explorer grid min-width on small screens ---- */
@media (max-width: 680px) {
    .model-explorer-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Fix: Bento grid overflow clipping on mobile ---- */
@media (max-width: 700px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .bento-card-7,
    .bento-card-5,
    .bento-card-6,
    .bento-card-12 {
        grid-column: span 1;
    }
}

/* ---- Fix: Workflow grid on very small screens ---- */
@media (max-width: 480px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Fix: Pricing card grid responsive ---- */
@media (max-width: 700px) {
    .pricing-card {
        padding: 28px 20px;
    }
}

/* ---- Fix: FAQ accordion answer transition ---- */
.faq-answer {
    display: none;
    animation: faqFadeIn 0.22s ease-out;
}
.faq-item.active .faq-answer {
    display: block;
}
@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Fix: Section heading top margin for anchors behind sticky header ---- */
#features,
#models-explorer,
#how-it-works,
#pricing,
#trust,
#faq,
#ai-demo {
    scroll-margin-top: 80px;
}

/* ---- Fix: Code block in terminal does not break layout ---- */
.hero-terminal-body code {
    white-space: pre;
    font-family: var(--font-mono);
}

/* ---- Fix: Pulse dot animation for section eyebrow pills ---- */
.section-eyebrow-pill .pulse-dot {
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

/* ---- Fix: hero-description-lead text centering ---- */
.hero-description-lead {
    text-align: center;
}

/* ---- Fix: nav-actions btn hidden on mobile ---- */
@media (max-width: 960px) {
    .nav-actions .nav-ghost-link,
    .nav-actions .btn-nav-cta {
        display: none;
    }
    .nav-actions {
        display: flex;
    }
}

/* ---- Fix: Trust cards full width on mobile ---- */
@media (max-width: 620px) {
    #trust .container > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }
}

/* ---- Fix: Pricing grid stacks below 600px ---- */
@media (max-width: 620px) {
    #pricing .container > div[style*="grid"] {
        grid-template-columns: 1fr !important;
        max-width: 420px !important;
    }
}

/* ---- Fix: Footer top grid on tablet ---- */
@media (max-width: 700px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .footer-brand-col {
        grid-column: span 1;
        max-width: 100%;
    }
}

/* ---- Fix: Console main padding safety ---- */
@media (max-width: 900px) {
    .console-main {
        padding: 24px 20px 100px;
    }
}

/* ---- Fix: Admin modal display flex when shown ---- */
.admin-modal-backdrop[style*="flex"] {
    display: flex !important;
}

/* ---- Fix: CTA buttons in hero section responsive ---- */
@media (max-width: 560px) {
    #hero .container > div[style*="gap: 14px"] {
        flex-direction: column;
        align-items: center;
    }
    #hero .container > div[style*="gap: 14px"] .btn {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }
}

/* ---- Fix: Comparison table horizontal scroll on mobile ---- */
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---- Fix: Prevent body horizontal overflow without breaking sticky/fixed positioning ---- */
body {
    overflow-x: clip;
}
main {
    overflow-x: clip;
}

/* ---- Fix: demo section background continuity ---- */
#ai-demo {
    background: var(--bg-page);
}

/* ---- Fix: section-desc bottom margin normalization ---- */
.section-desc {
    margin-bottom: 36px;
}

/* ---- Fix: btn-filter active state ---- */
.model-filter-btn.active {
    background: rgba(0, 240, 255, 0.1) !important;
    border-color: rgba(0, 240, 255, 0.4) !important;
    color: #00f0ff !important;
}

/* ---- Fix: model-card-item min-height for consistent grid ---- */
.model-card-item {
    min-height: 200px;
}

/* ---- Fix: make filter control bar wrap nicely on mobile ---- */
@media (max-width: 640px) {
    #models-explorer .container > div[style*="justify-content: space-between"] {
        flex-direction: column;
        align-items: stretch;
    }
    #models-explorer .container > div[style*="justify-content: space-between"] > div:last-child {
        min-width: unset;
        max-width: 100%;
    }
}

/* ==========================================================================
   PATCH v2: Override Inline Styles & Critical Layout Fixes for cPanel
   ========================================================================== */

/* ---- HERO: Force correct centering against inline style overrides ---- */
section#hero {
    text-align: center !important;
}
section#hero .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    z-index: 2 !important;
}
.hero-title-giant {
    text-align: center !important;
    width: 100% !important;
}
.hero-description-lead {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

/* ---- HERO TERMINAL: Constrain width & fix overflow ---- */
.hero-terminal-wrapper {
    width: 100% !important;
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.hero-terminal-body {
    overflow-x: auto !important;
    max-width: 100% !important;
}
.hero-terminal-body pre,
.hero-terminal-body code {
    white-space: pre !important;
    overflow-x: auto !important;
    max-width: 100% !important;
    display: block !important;
}

/* ---- HERO METRICS BAR: Full width, responsive ---- */
.modern-metrics-bar {
    width: 100% !important;
    max-width: 960px !important;
    box-sizing: border-box !important;
}

/* ---- DEMO SECTION: Fix card overflow ---- */
.demo-preview-card {
    width: 100% !important;
    max-width: 900px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.demo-header-bar {
    min-height: 52px !important;
    flex-wrap: wrap !important;
}

/* ---- MODELS EXPLORER: Grid auto-fills correctly ---- */
.model-explorer-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    width: 100% !important;
}

/* ---- BENTO GRID: Always fits in container ---- */
.bento-grid {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* ---- WORKFLOW GRID: Fix on mid screens ---- */
.workflow-grid {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ---- FAQ: Fix accordion panel ---- */
.faq-accordion {
    width: 100% !important;
}

/* ---- GENERAL: Container never overflows ---- */
.container {
    box-sizing: border-box !important;
    overflow-x: clip !important;
}
section {
    overflow-x: hidden !important;
}

/* ---- FIX: gradient-text-electric text-shadow conflicts with transparent fill ---- */
.gradient-text-electric {
    text-shadow: none !important;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 45%, #a855f7 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    display: inline !important;
}

/* ---- FIX: Hero status badge text wrapping on narrow screens ---- */
.hero-status-badge {
    max-width: 90vw !important;
    text-align: center !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
}

/* ---- FIX: Pricing cards never clip content ---- */
.pricing-card {
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* ---- FIX: Section eyebrow pills display correctly ---- */
.section-eyebrow-pill {
    display: inline-flex !important;
}

/* ---- FIX: model filter controls bar full width on mobile ---- */
@media (max-width: 720px) {
    .model-explorer-grid {
        grid-template-columns: 1fr !important;
    }
    .hero-terminal-wrapper {
        margin-top: 32px !important;
    }
    .modern-metrics-bar {
        grid-template-columns: 1fr 1fr !important;
    }
    .bento-card-7,
    .bento-card-5,
    .bento-card-6 {
        grid-column: span 12 !important;
    }
    .workflow-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-title-giant {
        font-size: clamp(28px, 8vw, 42px) !important;
    }
    .hero-description-lead {
        font-size: 15px !important;
    }
    .modern-metrics-bar {
        grid-template-columns: 1fr !important;
    }
    .workflow-grid {
        grid-template-columns: 1fr !important;
    }
    .demo-prompt-chips {
        gap: 6px !important;
        padding: 10px 14px !important;
    }
}
