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

:root {
    /* 3-Level Surface System */
    --bg-base:       #080d14;   /* deepest background, body */
    --bg-surface:    #0f1724;   /* cards, panel backgrounds */
    --bg-elevated:   #161f2e;   /* Gori card, hover states, inputs */
    
    /* Accent System */
    --color-accent:  #3b82f6;   /* electric blue — the ONE pop color */
    --color-accent-glow: rgba(59, 130, 246, 0.15);
    
    /* Typography */
    --color-text-primary:   #e2e8f0;
    --color-text-secondary: #64748b;
    --color-border:  rgba(255, 255, 255, 0.06);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-y: scroll; }

html, body {
    height: 100%;
}

body { 
    background: radial-gradient(circle at center, #0a192f 0%, #080d14 100%); /* Textured Blue */
    color: var(--color-text-primary); 
    font-family: var(--font-primary); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
    overflow: hidden; /* GLOBAL ZERO-SCROLL */
}

/* Black Content Blocks */
.content-block {
    background: #000; /* Solid Black */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.4); /* Stronger backlit border */
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.12); /* Stronger backlit glow */
}

main {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.scene {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 60px; /* Space for footer */
}

.logo img { 
    height: 64px; 
    width: auto; 
    display: block; 
}

/* Header & Footer (Pitch Black) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #000; /* Pitch Black */
    border-bottom: 1px solid var(--color-border);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000; /* Pitch Black */
    border-top: 1px solid var(--color-border);
    padding: 0.75rem 0;
    z-index: 10;
}

.footer-content p { 
    font-size: 0.7rem; 
    color: var(--color-text-secondary); 
    opacity: 0.5; 
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Updated Dashboard Layout Grid */
.dashboard-container {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    width: 100%;
}

@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding-top: 80px;
        align-items: flex-start;
    }
    .scene { align-items: flex-start; }
}

/* Scene Top Animations */
.hero-content {
    opacity: 0;
    transform: translateX(-20px);
    animation: hero-in 0.5s ease-out 0.2s forwards;
}

.intake-intelligence {
    opacity: 0;
    transform: translateX(20px);
    animation: panel-in 0.5s ease-out 0.3s forwards;
    background: var(--bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

@keyframes hero-in { to { opacity: 1; transform: translateX(0); } }
@keyframes panel-in { to { opacity: 1; transform: translateX(0); } }

/* Scene Bottom Styling */
.cta-scene {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    padding: 0 2rem;
}

/* We'll trigger this animation on scroll-to-scene via IntersectionObserver or just keep as forwards if simple */
.scene-bottom.active-scene .cta-scene {
    animation: cta-in 0.5s ease-out forwards;
}

@keyframes cta-in { to { opacity: 1; transform: translateY(0); } }

/* Scene Jump Buttons */
.scene-jump {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 2rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.scene-jump:hover {
    color: var(--color-accent);
}

/* Typography Hierarchy */
h1.glow-text {
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    font-variant-numeric: tabular-nums;
}

/* Dashboard Layout Grid */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Hero Section */
.hero { padding-top: 80px; padding-bottom: 20px; }
.hero-ctas { display: flex; gap: 1rem; margin: 2rem 0 1rem; }
.hero-microcopy { font-size: 0.8rem; color: var(--color-text-secondary); font-style: italic; opacity: 0.6; }

/* Navigation */


nav { display: flex; align-items: center; height: 80px; gap: 4rem; }
.logo { display: flex; align-items: center; }
.logo img { height: 64px; width: auto; display: block; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { 
    color: var(--color-text-secondary); 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: 500;
    transition: color 0.2s ease; 
}
.nav-links a:hover, .nav-links a.active { color: var(--color-text-primary); }

/* Dashboard Layout Sync */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    width: 100%;
    margin-top: 40px; /* Nudge down for perfect centering */
}

.hero-content.content-block,
.intake-intelligence {
    display: flex;
    flex-direction: column;
}

.hero-content.content-block {
    justify-content: center;
}

.intake-intelligence {
    background: #000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.15);
}

.intake-intelligence h2 {
    padding: 1.25rem 2rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
}

.tabs {
    display: flex;
    gap: 1.5rem;
    padding: 0 2rem;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
}

.tab {
    background: transparent;
    border: none;
    padding: 1rem 0;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-accent);
}

.tab-panels {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.tab-panel {
    position: absolute;
    inset: 0;
    padding: 1.5rem 2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    overflow-y: hidden; /* ELIMINATE SCROLL */
}

.tab-panel.active { opacity: 1; pointer-events: auto; }
.tab-panel.slide-right { transform: translateX(20px); }
.tab-panel.slide-left { transform: translateX(-20px); }

.tab-panel.active.slide-right,
.tab-panel.active.slide-left { transform: translateX(0); }

/* List & Stat Styles */
.leak-list { list-style: none; padding: 0; margin: 0.5rem 0; }
.leak-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--color-text-secondary);
}
.leak-list li:last-child { border-bottom: none; }
.leak-list li strong { color: var(--color-text-primary); }

.stat-block { padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
.stat-block:last-of-type { border-bottom: none; }
.stat-block h4 { font-size: 1.75rem; margin-bottom: 0.1rem; }
.stat-block p { font-size: 0.8rem; color: var(--color-text-secondary); }

.price-item { margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--color-border); }
.price-item:last-child { border-bottom: none; }
.price-item h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.price { color: var(--color-accent); font-weight: 600; font-size: 0.85rem; margin-top: 0.25rem; display: block; }

.gori-card {
    background: var(--bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.25rem;
    margin: 1rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 0 16px var(--color-accent-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-weight: 500;
}
.btn-secondary:hover {
    background: var(--color-accent-glow);
}

/* Global Elements */
.cta-strip {
    border-top: 1px solid var(--color-border);
    background: var(--bg-base);
    padding: 6rem 0;
    text-align: center;
}

.footer-content { display: flex; justify-content: center; align-items: center; }

/* Stealth Scrollbars */
::-webkit-scrollbar { width: 0px; background: transparent; }
* { scrollbar-width: none; -ms-overflow-style: none; }

.tab-panel::-webkit-scrollbar { width: 0px; }
.tab-panel::-webkit-scrollbar-thumb { background: transparent; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeIn 0.4s ease forwards; }
