:root {
    --bg-black: #050505;
    --bg-card: #0A0A0A;
    --text-light: #E0E0E0;
    --text-muted: #888;
    --titanium: #B0B0B0;
    --titanium-gloss: linear-gradient(135deg, #FFF, #8F8F8F);
    --purple-core: #4c00ff;
    --purple-glow: rgba(76, 0, 255, 0.4);
    --font-serif: 'Cormorant Garamond', serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    --section-pad: 12rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg-black);
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); font-weight: 300; letter-spacing: 0.1em; }
.color-purple { color: var(--purple-core); }

.titanium-heading {
    font-family: var(--font-serif);
    background: var(--titanium-gloss);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    line-height: 1.1;
}

/* --- System HUD (Background Layer) --- */
.system-hud-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1; /* Above background grid, below content */
    padding: 2rem;
}

.hud-corner {
    position: absolute;
    font-size: 0.65rem;
    color: var(--purple-core);
    opacity: 0.2;
}

.top-left { top: 2rem; left: 2rem; }
.top-right { top: 2rem; right: 2rem; text-align: right; }
.bottom-left { bottom: 2rem; left: 2rem; }
.bottom-right { bottom: 2rem; right: 2rem; text-align: right; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    padding: 2.5rem 0;
    transition: all 0.4s ease;
    background: linear-gradient(to bottom, rgba(5,5,5,0.95), transparent);
}

.navbar.scrolled {
    padding: 1.2rem 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 1.1rem; text-decoration: none; font-weight: 700; }

.nav-links { display: flex; list-style: none; gap: 4rem; align-items: center; }
.nav-links a { 
    text-decoration: none; color: var(--text-muted); 
    font-size: 0.75rem; font-weight: 400;
    transition: all 0.3s ease;
}
.nav-links a:hover { color: var(--text-light); }

.nav-cta {
    border: 1px solid var(--purple-core);
    padding: 0.6rem 1.5rem !important;
    color: var(--purple-core) !important;
}

.nav-cta:hover {
    background: var(--purple-core);
    color: white !important;
    box-shadow: 0 0 20px var(--purple-glow);
}

/* --- Hero Section (Fixed Overlap) --- */
.hero-new {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Spaces top, middle, and bottom sections */
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 10;
    padding: 8rem 0 4rem 0;
}

.data-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 60px 60px;
    z-index: -1;
}

.hero-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.vesica-piscis-container {
    margin-bottom: 2rem;
    opacity: 0.7;
    pointer-events: none;
}

.vesica-piscis { width: 450px; }

.hero-text-content {
    max-width: 800px;
    z-index: 20;
}

.hero-subhead {
    font-size: 0.7rem;
    color: var(--purple-core);
    letter-spacing: 0.4em;
    margin-bottom: 1.5rem;
}

.hero-main-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 300;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
}

.hero-tabs {
    display: flex;
    gap: 5rem;
    z-index: 20;
    margin-top: 2rem;
}

.tab {
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.tab .mono { color: var(--purple-core); margin-right: 0.75rem; font-size: 0.7rem; opacity: 0.6; }
.tab:hover, .tab.active { color: var(--text-light); }
.tab.active { border-bottom: 1px solid var(--purple-core); }

/* --- Unified Content Styling --- */
.kairos-section, .services-section, .contact-section {
    padding: var(--section-pad) 0;
    position: relative;
    z-index: 10;
}

.dashboard-redesign {
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem;
    border-radius: 4px;
}

.split-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 5rem; }

.dashboard-grid-v2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; }

.moat-narrative {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(76, 0, 255, 0.2);
    padding-left: 3rem;
}

.narrative-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-light);
    margin: 1.5rem 0 2rem 0;
    line-height: 1.2;
    font-weight: 300;
}

.narrative-p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.narrative-p strong {
    color: var(--purple-core);
    font-weight: 400;
}

.emphasis-v2 { font-size: 1.6rem; color: var(--text-light); margin-bottom: 4rem; font-weight: 300; line-height: 1.3; }

.product-description { display: flex; flex-direction: column; gap: 3rem; }
.prod-block p { font-size: 1.1rem; color: var(--text-muted); margin-top: 0.5rem; }

.section-header-v2 { text-align: center; margin-bottom: 6rem; }
.section-header-v2 .mono { color: var(--purple-core); font-size: 0.7rem; margin-bottom: 1rem; display: block; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; max-width: 1400px; margin: 0 auto; padding: 0 4rem; }
.service-box { 
    background: #080808; 
    padding: 4rem; border: 1px solid rgba(255,255,255,0.03); 
    transition: all 0.4s ease;
}
.service-box:hover { border-color: var(--purple-core); transform: translateY(-10px); }
.icon-label { font-size: 0.6rem; color: var(--purple-core); margin-bottom: 2.5rem; display: block; opacity: 0.6; }
.service-box h3 { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 1rem; font-weight: 400; }
.service-box p { font-size: 0.95rem; color: var(--text-muted); }

/* --- Forms & Buttons --- */
.contact-grid-v2 { max-width: 1000px; margin: 0 auto; padding: 0 4rem; }
.contact-header-v2 { text-align: center; margin-bottom: 4rem; }

.technical-form { display: grid; gap: 2rem; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

input, textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 0;
    color: var(--text-light);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

input:focus, textarea:focus { outline: none; border-bottom-color: var(--purple-core); }

.btn {
    padding: 1.2rem 3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    display: inline-block;
    position: relative;
    z-index: 50; /* Ensure buttons are always at the very top */
}

.btn-primary { background: var(--purple-core); color: white; border: none; }
.btn-primary:hover { background: white; color: var(--bg-black); box-shadow: 0 0 30px var(--purple-glow); }

/* --- Footer --- */
.footer-v2 {
    display: flex; justify-content: space-between;
    padding: 6rem 4rem; border-top: 1px solid rgba(255,255,255,0.03);
    max-width: 1400px; margin: 0 auto;
}

.footer-block { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.7rem; opacity: 0.3; }

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .nav-container { padding: 0 2rem; }
    .grid-3 { grid-template-columns: 1fr; padding: 0 2rem; }
    .dashboard-grid-v2 { grid-template-columns: 1fr; }
    .dashboard-redesign { padding: 3rem; }
    .hero-tabs { gap: 2rem; flex-wrap: wrap; justify-content: center; }
    .nav-links { display: none; }
}
