:root {
    /* Dark fluid void - Default Cybernetic Theme */
    --bg: #050811;
    --bg-alt: #0a0f1e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --cyan: #00E5FF;
    --mint: #10FFA0;
    --glass-bg: rgba(0, 229, 255, 0.03);
    --glass-border: rgba(0, 229, 255, 0.2);
    --header-bg: rgba(5, 8, 17, 0.85);
    --shadow-cyan: 0 0 15px rgba(0, 229, 255, 0.3);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    /* Clear Optical Glass - Light Theme Equivalent */
    --bg: #f8fafc;
    --bg-alt: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --cyan: #0088aa;
    --mint: #00aa66;
    --glass-bg: rgba(0, 136, 170, 0.03);
    --glass-border: rgba(0, 136, 170, 0.2);
    --header-bg: rgba(248, 250, 252, 0.85);
    --shadow-cyan: 0 4px 15px rgba(0, 136, 170, 0.15);
}

html {
    scroll-behavior: smooth; /* Smooth transitions for anchor links */
}

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

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s, color 0.5s;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* Header & Deep Glass Navbar */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Illuminated Pipe Line Conduit on Header Bottom */
header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.5;
    animation: pulse-pipe 3s infinite;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    text-shadow: 0 0 10px var(--cyan);
    letter-spacing: 1px;
}

.velocity-badge {
    background: rgba(16, 255, 160, 0.1);
    border: 1px solid rgba(16, 255, 160, 0.4);
    color: var(--mint);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(16, 255, 160, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}
.velocity-badge::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--mint);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--mint);
    animation: blink 1s infinite alternate;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav {
    display: flex;
    gap: 24px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--cyan);
    text-shadow: 0 0 8px var(--cyan);
}

/* Professional Theme Toggle */
.theme-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 54px;
    height: 28px;
    display: flex;
    align-items: center;
    padding: 2px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.theme-toggle .toggle-thumb {
    width: 22px;
    height: 22px;
    background: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--bg);
}

[data-theme="light"] .theme-toggle .toggle-thumb {
    transform: translateX(26px);
}

.toggle-thumb svg { width: 14px; height: 14px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-cyan {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--cyan);
    color: var(--cyan) !important;
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.2), 0 0 15px rgba(0, 229, 255, 0.2);
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

.btn-cyan:hover {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.4), 0 0 25px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 36px;
    font-size: 16px;
}

/* Cybernetic Hero Section */
.hero {
    position: relative;
    padding: 180px 0 120px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 1;
    background: radial-gradient(circle at center, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero-bg svg {
    position: absolute;
    width: 100%; height: 100%;
    opacity: 0.6;
}

.data-stream {
    stroke: var(--cyan);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 15 150;
    animation: flow 3s linear infinite;
    filter: drop-shadow(0 0 5px var(--cyan));
}
.data-stream.delay-1 { animation-delay: -1s; stroke: var(--mint); filter: drop-shadow(0 0 5px var(--mint)); }
.data-stream.delay-2 { animation-delay: -2s; stroke-dasharray: 30 200; stroke-width: 3; }

.hero-content {
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.hero .highlight {
    background: linear-gradient(90deg, var(--cyan), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Sections */
section { padding: 100px 0; position: relative; z-index: 5; }
.bg-darker { background: var(--bg-alt); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; color: var(--text-main); text-shadow: 0 0 10px rgba(0,229,255,0.2); }
.section-header p { font-size: 16px; color: var(--text-muted); }

/* Layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

/* Frosted Cryo-Glass Cards with Neon Liquid Trails */
.glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    overflow: hidden;
    z-index: 1;
}

/* Neon Liquid Trail Hover Effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: conic-gradient(transparent, transparent, transparent, var(--cyan));
    animation: rotate-trail 3s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -2;
}

.glass-card:hover::before { opacity: 1; }

.glass-card::after {
    content: '';
    position: absolute;
    inset: 1px; /* Inner padding matching border */
    background: var(--bg-alt); /* Masks the inner part of gradient */
    border-radius: inherit;
    z-index: -1;
    opacity: 0.95;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
}

.icon-container {
    width: 64px; height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.1);
}

.icon-container svg { width: 32px; height: 32px; }

.glass-card h3 { font-size: 20px; margin-bottom: 16px; color: var(--text-main); }
.glass-card p { color: var(--text-muted); font-size: 14px; }

/* Media/AI Solutions Card */
.solution-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: left;
}

.solution-visual {
    width: 100%;
    height: 200px;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

/* Subtle data grid background */
.solution-visual::before {
    content: '';
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--glass-border) 1px, transparent 1px), linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
}

.solution-visual svg {
    width: 80px; height: 80px;
    color: var(--mint);
    filter: drop-shadow(0 0 10px rgba(16, 255, 160, 0.5));
    z-index: 2;
}

.solution-content { padding: 32px; }
.solution-content h3 { font-size: 22px; margin-bottom: 12px; }
.solution-content p { color: var(--text-muted); margin-bottom: 24px; font-size: 15px; }

/* Pricing: Liquid Fill Level Indicators */
.pricing-card {
    text-align: left;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.liquid-level {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(0, 229, 255, 0.15) 0%, rgba(16, 255, 160, 0.05) 100%);
    border-top: 1px solid rgba(0, 229, 255, 0.3);
    z-index: -1;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: height 1s ease;
}

/* Adding simulated liquid waves */
.liquid-level::before {
    content: '';
    position: absolute; top: 0; left: -100%; width: 200%; height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: wave-liquid 4s linear infinite;
    opacity: 0.5;
}

.pricing-card h3 { font-size: 20px; color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.price { font-size: 42px; font-weight: 800; margin-bottom: 24px; color: var(--text-main); display: flex; align-items: baseline; gap: 4px; }
.price span { font-size: 16px; color: var(--text-muted); font-weight: 500; }

.pricing-features { margin-bottom: 32px; flex-grow: 1; }
.pricing-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--text-muted); font-size: 15px; }
.pricing-features svg { color: var(--mint); flex-shrink: 0; width: 18px; height: 18px; }

/* FAQ & Reviews */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--glass-border); padding: 24px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { font-size: 18px; margin-bottom: 12px; color: var(--text-main); }
.faq-item p { color: var(--text-muted); }

.review-author { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 229, 255, 0.1); border: 1px solid var(--cyan); display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--cyan); }
.author-info h4 { font-size: 15px; }
.author-info p { font-size: 13px; color: var(--text-muted); }

/* Footer */
footer { background: var(--bg-alt); border-top: 1px solid var(--glass-border); padding: 60px 0 30px; text-align: center; }
.footer-nav { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: 14px; transition: var(--transition); }
.footer-nav a:hover { color: var(--cyan); }
.copyright { color: var(--text-muted); font-size: 13px; }

/* Page Generic Styles */
.page-header { padding: 140px 0 60px; text-align: center; background: var(--bg-alt); border-bottom: 1px solid var(--glass-border); }
.page-header h1 { font-size: 36px; font-weight: 700; color: var(--cyan); text-shadow: 0 0 10px rgba(0,229,255,0.2); }
.page-content { padding: 60px 0 100px; max-width: 800px; margin: 0 auto; }
.page-content h2 { font-size: 24px; margin: 40px 0 16px; color: var(--text-main); }
.page-content p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.page-content ul { list-style: disc; padding-left: 24px; color: var(--text-muted); margin-bottom: 24px; }
.page-content li { margin-bottom: 8px; }

/* Animations */
@keyframes flow { 0% { stroke-dashoffset: 165; } 100% { stroke-dashoffset: 0; } }
@keyframes pulse-pipe { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; box-shadow: 0 0 15px var(--cyan); } }
@keyframes blink { 0% { opacity: 0.4; } 100% { opacity: 1; } }
@keyframes rotate-trail { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes wave-liquid { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }

/* Media Queries */
@media (max-width: 992px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .hero h1 { font-size: 42px; } }
@media (max-width: 768px) {
    .main-nav { display: none; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero { padding: 140px 0 80px; }
    .hero h1 { font-size: 32px; }
    .velocity-badge { display: none; }
    .btn { width: 100%; padding: 14px; }
}
