:root {
    --bg: #050a14;
    --bg-alt: #0a1122;
    --text: #ffffff;
    --text-muted: #a0aec0;
    --accent: #3182ce;
    --accent-glow: rgba(49, 130, 206, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --header-h: 80px;
    --container: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text); }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--accent); }

.text-accent { color: var(--accent); }
.lead { font-size: 1.5rem; font-weight: 300; color: var(--text-muted); margin-bottom: 1rem; }
.sub-lead { font-size: 1.1rem; color: var(--text-muted); opacity: 0.8; margin-bottom: 2.5rem; }

/* Components */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-muted);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}

header.scrolled {
    background: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    height: 70px;
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    filter: drop-shadow(0 0 5px rgba(49, 130, 206, 0.2));
    transition: opacity 0.3s ease;
}

.logo:hover { opacity: 0.9; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

/* Hero */
.hero {
    position: relative;
    padding-top: calc(var(--header-h) + 4rem);
    padding-bottom: 8rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.node-glow {
    animation: breathing 6s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; filter: drop-shadow(0 0 8px var(--accent)); }
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Sections General */
section {
    padding: 8rem 0;
}

.section-header {
    max-width: 800px;
    margin-bottom: 4rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Problem Section */
.problem { background: var(--bg-alt); }

.leak-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
    opacity: 0.6;
}

.pipeline { width: 300px; margin-bottom: 1rem; }

.leak-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; r: 4; }
    100% { opacity: 0; r: 12; }
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.bullet-list {
    list-style: none;
}

.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* System Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 8px;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(255,255,255,0.04);
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

/* Process Steps */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border-left: 2px solid var(--border);
    transition: border-color 0.4s ease;
}

.step:hover {
    border-left-color: var(--accent);
}

.step-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.1);
    min-width: 40px;
}

/* Industries */
.industries { background: var(--bg-alt); }

.industry-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.use-cases {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.use-case {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 1rem;
}

.arrow { color: var(--accent); padding: 0 10px; }

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    color: white;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question .icon::before {
    content: '+';
    color: var(--accent);
    font-size: 1.5rem;
}

.faq-item.active .faq-question .icon::before {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Final CTA & Contact */
.cta-final, .contact {
    text-align: center;
}

.cta-final .btn {
    margin-top: 2.5rem;
}

.cta-final { background: linear-gradient(to bottom, var(--bg), var(--bg-alt)); }

.contact-info {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.email-link {
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-brand p { max-width: 300px; font-size: 0.9rem; margin-top: 1rem; }

.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* Animations & Utilities */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.7s ease-out;
}

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

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    z-index: 100;
}

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .problem-grid, .card-grid, .industry-blocks { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; gap: 2rem; }
    .hero-btns { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}



/* Force spacing in final CTA */
#cta-final p {
  margin-bottom: 2.5rem !important;
}

#cta-final .btn {
  margin-top: 0 !important;
}