/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

:root {
    --bg-color: #f0f4f8;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --primary: #ff5722;     /* Sunset Orange */
    --secondary: #00e5ff;   /* Electric Cyan */
    --border-color: #cbd5e1;
    --header-bg: rgba(240, 244, 248, 0.85);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Plan Matrix Specific */
    --bw-card-bg: #ffffff;
    --bw-card-text: #000000;
    --bw-border: #000000;
}

/* Pitch obsidian canvas default dark mode */
:root[data-theme="dark"] {
    --bg-color: #080a0f;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: #11151f;
    --primary: #ff5722;
    --secondary: #00e5ff;
    --border-color: #1e293b;
    --header-bg: rgba(8, 10, 15, 0.85);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.6);

    /* Plan Matrix Specific */
    --bw-card-bg: #050608;
    --bw-card-text: #ffffff;
    --bw-border: #334155;
}

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

.mono { font-family: 'Courier New', Courier, monospace; font-weight: 600; }
a { color: var(--secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }

/* Canvas Background */
#wind-tunnel {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0; pointer-events: none;
}

/* Marquee */
.marquee-container {
    width: 100vw; overflow: hidden; background: #000; color: var(--secondary);
    padding: 8px 0; display: flex; border-bottom: 1px solid var(--primary);
    position: relative; z-index: 101; font-size: 0.9rem; letter-spacing: 1px;
}
.marquee-content {
    display: flex; white-space: nowrap; animation: marquee 20s linear infinite; font-weight: bold;
}
.marquee-content span { padding: 0 2vw; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Header */
header {
    position: sticky; top: 0; z-index: 100;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: 0.5px; }
.desktop-nav a { margin: 0 12px; font-weight: 600; color: var(--text-main); transition: color 0.2s; font-size: 0.95rem; }
.desktop-nav a:hover { color: var(--primary); }

/* Theme Toggle */
.theme-switch {
    cursor: pointer; padding: 8px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background-color: transparent; transition: background-color 0.3s, transform 0.3s;
}
.theme-switch:hover { background-color: var(--border-color); transform: rotate(15deg); }
.theme-switch svg { width: 22px; height: 22px; color: var(--text-main); transition: color 0.3s; }

/* Buttons */
.btn {
    display: inline-block; padding: 14px 32px; border-radius: 30px;
    font-weight: 600; text-align: center; cursor: pointer; transition: all 0.3s ease;
    border: none; outline: none; letter-spacing: 0.5px;
}
/* Glowing Chromatic Edge Button */
.btn-glow {
    position: relative; background: var(--primary); color: #fff !important; z-index: 1;
}
.btn-glow::after {
    content: ''; position: absolute; inset: -3px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), #ff00ff, var(--primary));
    background-size: 300%; border-radius: 32px; z-index: -1; opacity: 0;
    transition: opacity 0.3s; animation: glowShift 3s linear infinite;
}
.btn-glow:hover { transform: translateY(-2px); }
.btn-glow:hover::after { opacity: 1; filter: blur(8px); }
@keyframes glowShift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

.btn-outline {
    background: transparent; border: 2px solid var(--secondary); color: var(--secondary) !important;
}
.btn-outline:hover { background: var(--secondary); color: #000 !important; }

/* Hero Section */
.hero { padding: 100px 0 80px; text-align: center; position: relative; z-index: 10; }
.hero .headline { font-size: 3.8rem; margin-bottom: 24px; font-weight: 900; line-height: 1.2; letter-spacing: -1px; text-shadow: 0 0 20px rgba(255,87,34,0.3); }
.hero .sub-headline { font-size: 1.2rem; color: var(--text-muted); max-width: 750px; margin: 0 auto 40px; font-weight: 500; }

/* Wind-Tunnel Widget */
.wind-widget {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 24px; max-width: 450px; margin: 0 auto 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); position: relative;
    backdrop-filter: blur(5px);
}
.widget-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 15px; color: var(--secondary); letter-spacing: 1px;}
.widget-controls { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.widget-btn {
    background: transparent; border: 1px solid var(--text-muted); color: var(--text-muted);
    padding: 6px 20px; border-radius: 20px; cursor: pointer; transition: 0.3s; font-weight: bold;
}
.widget-btn:hover { border-color: var(--secondary); color: var(--text-main); }
.widget-btn.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255,87,34,0.6);
}
.widget-stats { font-size: 1.1rem; }
.widget-stats span { color: var(--secondary); font-size: 1.3rem; margin: 0 5px; text-shadow: 0 0 8px rgba(0, 229, 255, 0.4); }
.hero-actions { display: flex; gap: 20px; justify-content: center; }

/* General Sections */
section { padding: 80px 0; position: relative; z-index: 10; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 60px; font-weight: 800; letter-spacing: 1px; }

/* Grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* Cards & Laser Hover Effects */
.card {
    background-color: var(--card-bg); border-radius: 12px; padding: 30px;
    box-shadow: var(--shadow); border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.laser-card { position: relative; overflow: hidden; padding: 2px; border: none; background: transparent; }
.laser-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--secondary));
    animation: rotateLaser 3s linear infinite; opacity: 0; z-index: -2; transition: opacity 0.3s;
}
.laser-card::after {
    content: ''; position: absolute; inset: 1px; background: var(--card-bg); border-radius: 11px; z-index: -1;
}
.laser-card:hover::before { opacity: 1; }
.laser-card:hover { transform: translateY(-5px); }
@keyframes rotateLaser { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.card-inner { z-index: 2; position: relative; height: 100%; display: flex; flex-direction: column; }
.card-icon { color: var(--secondary); margin-bottom: 20px; }
.card-icon svg { width: 40px; height: 40px; }
.card-title { font-size: 1.3rem; margin-bottom: 16px; font-weight: 700; }
.card-desc { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

/* Cluster Progress Bars */
.cluster-stats { margin-top: 15px; font-size: 0.85rem; color: var(--text-muted); }
.cluster-stats div { margin-bottom: 8px; }
.progress-bar { width: 100%; height: 6px; background: var(--border-color); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.progress-fill { height: 100%; background: var(--secondary); box-shadow: 0 0 10px var(--secondary); transition: width 0.5s; }

/* Sharp Black-and-White Pricing Cards */
.bw-card {
    background-color: var(--bw-card-bg); color: var(--bw-card-text);
    border: 2px solid var(--bw-border); border-radius: 0; text-align: center; display: flex; flex-direction: column;
}
.bw-card:hover { transform: translateY(-8px); box-shadow: 10px 10px 0px rgba(255, 87, 34, 0.2); }
.bw-card.popular { border-color: var(--primary); position: relative; }
.popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; padding: 4px 16px;
    font-size: 0.85rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
}
.bw-card .card-title { color: var(--bw-card-text); text-transform: uppercase; letter-spacing: 2px; }
.bw-card .price { font-size: 3rem; font-weight: 900; margin: 20px 0; color: var(--bw-card-text); }
.bw-card .price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.pricing-features { list-style: none; margin-bottom: 40px; text-align: left; flex-grow: 1; }
.pricing-features li { margin-bottom: 12px; padding-left: 28px; position: relative; font-weight: 500; font-size: 0.95rem; }
.pricing-features li::before { content: '>'; color: var(--primary); position: absolute; left: 0; font-weight: 900; font-family: monospace; }
.btn-orange { background-color: var(--primary); color: #fff !important; border-radius: 0; text-transform: uppercase; letter-spacing: 1px; }
.btn-orange:hover { background-color: #e64a19; }

/* Reviews */
.review-card { position: relative; }
.review-card .quote-mark { font-size: 4rem; color: var(--border-color); position: absolute; top: 0px; left: 20px; line-height: 1; opacity: 0.3; font-family: Georgia, serif; }
.review-card p { position: relative; z-index: 1; font-style: italic; margin-bottom: 20px; color: var(--text-main); margin-top: 20px; }
.review-author { font-weight: 700; color: var(--secondary); font-family: monospace;}

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background-color: var(--card-bg); border-radius: 8px; padding: 24px;
    margin-bottom: 20px; border: 1px solid var(--border-color);
}
.faq-question { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; color: var(--text-main); }
.faq-answer { color: var(--text-muted); line-height: 1.7; }

/* Subpage Content */
.subpage-hero { padding: 80px 0 40px; text-align: center; border-bottom: 1px solid var(--border-color); margin-bottom: 60px; position: relative; z-index: 10;}
.subpage-title { font-size: 2.8rem; font-weight: 900; margin-bottom: 16px; text-shadow: 0 0 15px rgba(0, 229, 255, 0.3); }
.subpage-content { max-width: 800px; margin: 0 auto; padding-bottom: 100px; position: relative; z-index: 10;}
.subpage-content h2 { margin: 40px 0 20px; font-size: 1.8rem; color: var(--secondary); }
.subpage-content p { margin-bottom: 20px; color: var(--text-main); font-size: 1.1rem; line-height: 1.8; }
.subpage-content ul { padding-left: 20px; margin-bottom: 20px; color: var(--text-main); font-size: 1.1rem; line-height: 1.8; }

/* Footer */
footer { background-color: var(--card-bg); padding: 60px 0 30px; border-top: 1px solid var(--border-color); position: relative; z-index: 10; }
.footer-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.footer-links a:hover { color: var(--secondary); }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.9rem; font-family: monospace; }

/* Media Queries for Mobile Responsiveness */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-container { flex-direction: column; height: auto; padding: 16px 20px; gap: 16px; position: relative; }
    .desktop-nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
    .theme-switch { position: absolute; top: 16px; right: 20px; }

    .hero { padding: 60px 0; }
    .hero .headline { font-size: 2.5rem; }
    .hero .sub-headline { font-size: 1rem; padding: 0 10px; }
    .hero-actions { flex-direction: column; padding: 0 20px; }

    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 20px; }
    .section-title { font-size: 1.8rem; margin-bottom: 40px; }

    .btn { padding: 16px 30px; width: 100%; box-sizing: border-box; }

    .footer-links { gap: 20px; flex-direction: column; align-items: center; }
}
