/* style.css */
:root {
    --primary-color: #00FFCC; /* Tsunami Cyan */
    --primary-hover: #00E6B8;
    --text-color: #ffffff;
    --text-light: #B0C4DE;
    --bg-color: #020D1A; /* Mariana Trench Blue */
    --bg-light: rgba(0, 255, 204, 0.03);
    --border-color: rgba(0, 255, 204, 0.15);
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(2, 13, 26, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Fluid Dynamics Background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #020D1A 0%, #051A33 50%, #020D1A 100%);
    background-size: 200% 200%;
    animation: fluidCurrent 15s ease infinite;
    z-index: -2;
}

@keyframes fluidCurrent {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: rgba(2, 13, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0,255,204,0.4);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-btn {
    padding: 8px 24px;
    font-size: 0.95rem;
    box-shadow: 0 0 10px rgba(0,255,204,0.3);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
    text-shadow: 0 0 15px rgba(0,255,204,0.3);
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.3;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(0,255,204,0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 25px rgba(0,255,204,0.6);
}

.btn-block {
    display: block;
    width: 100%;
}

.cta-btn {
    font-size: 1.25rem;
    padding: 16px 40px;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

/* Sonar Dashboard */
.sonar-dashboard {
    margin-top: 50px;
    background: rgba(0,255,204,0.05);
    border: 1px solid rgba(0,255,204,0.2);
    border-radius: 8px;
    padding: 12px;
    box-shadow: inset 0 0 20px rgba(0,255,204,0.05);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.sonar-dashboard::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; width: 4px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.sonar-marquee {
    display: inline-block;
    color: var(--primary-color);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Grids - Maintain original layout */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    perspective: 1500px; /* For 3D effects */
}

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

/* Glassmorphism Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* Ensure no layout break on hover, only visually 3D */
.card:hover {
    border-color: rgba(0,255,204,0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0,255,204,0.1);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0,255,204,0.5));
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-light);
}

/* Media & AI */
.media-ai .card {
    text-align: left;
}

.highlight-title {
    color: var(--primary-color);
}

/* Pricing */
.pricing-card {
    position: relative;
    padding: 40px 30px;
    /* Water-drop glassmorphism specific */
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,255,204,0.05));
}

.pricing-card.popular {
    border: 1px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.15);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,255,204,0.5);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
    text-shadow: 0 0 10px rgba(0,255,204,0.2);
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-light);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-color);
}

/* Testimonials */
.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.testimonial-card .author {
    font-weight: bold;
    color: var(--primary-color);
}

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

.faq-item {
    margin-bottom: 30px;
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.faq-item p {
    color: var(--text-light);
}

/* Footer */
.site-footer {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 40px 0 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0,255,204,0.5);
}

.copyright {
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    margin-top: 20px;
}

/* SVG Animation */
@keyframes floatWave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-visual {
        margin-top: 30px;
    }
    
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 0;
    }
}

/* Phase 2: A11y, Touch, Scroll-margin, Details */
.skip-link { position: absolute; top: -100px; left: 20px; background: var(--primary-color); color: #020D1A; padding: 10px 15px; font-weight: bold; z-index: 10000; transition: top 0.3s; border-radius: 4px; text-decoration: none; }
.skip-link:focus { top: 20px; }
:focus-visible { outline: 2px dashed var(--primary-color); outline-offset: 4px; }
h1, h2, h3, h4, h5, h6, section, [id] { scroll-margin-top: 90px; }
.btn, .nav-links a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
details { background: rgba(0,255,204,0.02); border: 1px solid var(--glass-border); border-radius: 8px; margin-bottom: 15px; padding: 15px; transition: all 0.3s; }
summary { cursor: pointer; color: #fff; font-weight: bold; font-size: 1.05rem; }
summary:hover { color: var(--primary-color); }
details[open] summary { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); color: var(--primary-color); }
details > p { color: var(--text-light); line-height: 1.6; margin: 0; }
