/* ==========================================================
   GreenGo Browser   visual enhancement layer
   Loaded after style.css; overrides + new components only
   ========================================================== */

/* ===== GRAIN OVERLAY ===== */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== GLASSMORPHISM PASS ===== */
.navbar.scrolled {
    background: rgba(10, 10, 10, 0.55) !important;
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card,
.audience-card,
.spotlight-card,
.plan-card,
.trial-card,
.step-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)) !important;
}

.feature-card:hover,
.audience-card:hover {
    background: linear-gradient(160deg, rgba(0, 230, 118, 0.06), rgba(255, 255, 255, 0.02)) !important;
    border-color: rgba(0, 230, 118, 0.25) !important;
}

/* ===== TYPOGRAPHY UPGRADE ===== */
.section-title {
    font-size: clamp(34px, 4vw, 52px) !important;
    letter-spacing: -1.8px !important;
}

.hero-left h1 .highlight,
.section-title .highlight,
.final-cta .highlight {
    background: linear-gradient(100deg, #00e676 10%, #6effb0 45%, #16794a 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: gradientShift 6s ease infinite;
}

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

/* ===== HERO WAVEFORM CANVAS ===== */
.hero { position: relative !important; }

#heroWave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 220px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 65%);
    mask-image: linear-gradient(180deg, transparent, #000 65%);
}

/* ===== HERO BROWSER SHELL ===== */
.shell {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(16, 18, 17, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 230, 118, 0.18);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 50px rgba(22, 121, 74, 0.22),
        0 30px 80px rgba(0, 0, 0, 0.55);
    transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-right:hover .shell {
    transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
}

.shell-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 0;
}

.shell-lights {
    display: flex;
    gap: 7px;
    padding-bottom: 9px;
}

.shell-lights span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shell-lights span:first-child { background: rgba(0, 230, 118, 0.55); box-shadow: 0 0 8px rgba(0, 230, 118, 0.4); }

.shell-tabs {
    display: flex;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.shell-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    white-space: nowrap;
}

.shell-tab.active {
    background: rgba(0, 230, 118, 0.07);
    border-color: rgba(0, 230, 118, 0.22);
    color: var(--text-primary);
}

.shell-tab .tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-bright);
    animation: pulse-dot 2s ease infinite;
}

.shell-omnibox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 14px;
    padding: 9px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

.shell-omnibox .lock { color: var(--green-bright); font-size: 11px; }

.shell-omnibox .analysis-chip {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 11px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--green-bright);
    white-space: nowrap;
}

.shell-omnibox .analysis-chip .live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green-bright);
    animation: pulse-dot 1.6s ease infinite;
}

.shell-view {
    margin: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.shell-view video { display: block; width: 100%; height: auto; }

/* ===== MARQUEE STRIP ===== */
.marquee {
    position: relative;
    overflow: hidden;
    padding: 22px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.012);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: marqueeScroll 38s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.marquee-item .diamond { color: var(--green-primary); font-size: 9px; }

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== STEM SPLIT DEMO ===== */
.stem-demo {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stem-lane {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(-14px) scaleY(0.4);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed .stem-lane,
.spotlight-card.in-view .stem-lane {
    opacity: 1;
    transform: translateY(0) scaleY(1);
}

.spotlight-card.in-view .stem-lane:nth-child(1) { transition-delay: 0.1s; }
.spotlight-card.in-view .stem-lane:nth-child(2) { transition-delay: 0.25s; }
.spotlight-card.in-view .stem-lane:nth-child(3) { transition-delay: 0.4s; }
.spotlight-card.in-view .stem-lane:nth-child(4) { transition-delay: 0.55s; }

.stem-lane .stem-label {
    width: 64px;
    flex-shrink: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stem-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
    height: 26px;
}

.stem-bars span {
    flex: 1;
    min-width: 2px;
    border-radius: 2px;
    height: 100%;
    transform-origin: center;
    animation: stemPulse 1.3s ease-in-out infinite alternate;
}

@keyframes stemPulse {
    from { transform: scaleY(0.25); opacity: 0.55; }
    to { transform: scaleY(1); opacity: 1; }
}

.stem-lane--vocals .stem-label { color: #6effb0; }
.stem-lane--vocals .stem-bars span { background: #6effb0; }
.stem-lane--drums .stem-label { color: #00e676; }
.stem-lane--drums .stem-bars span { background: #00e676; }
.stem-lane--bass .stem-label { color: #16b873; }
.stem-lane--bass .stem-bars span { background: #16b873; }
.stem-lane--melody .stem-label { color: #0fa05c; }
.stem-lane--melody .stem-bars span { background: #0fa05c; }

/* ===== SOUNDMAP DEMO ===== */
.map-demo {
    position: relative;
    margin-top: 26px;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 40%, rgba(22, 121, 74, 0.12), transparent 55%),
        rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
}

.map-demo canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map-demo .map-hint {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    pointer-events: none;
}

/* ===== ANALYSIS PANEL   counter styling ===== */
.mock-stat-value.counting { color: #6effb0; }

/* ===== PRICING UPGRADES ===== */
.plan-card { will-change: transform; }

.plan-card--featured {
    position: relative;
    border: 1px solid transparent !important;
    background:
        linear-gradient(180deg, rgba(14, 24, 18, 0.92), rgba(10, 14, 11, 0.95)) padding-box,
        conic-gradient(from var(--ang, 0deg), rgba(0, 230, 118, 0.85), rgba(22, 121, 74, 0.15), rgba(0, 230, 118, 0.5), rgba(22, 121, 74, 0.1), rgba(0, 230, 118, 0.85)) border-box !important;
    animation: borderSpin 5s linear infinite;
}

@property --ang {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes borderSpin {
    to { --ang: 360deg; }
}

.plan-price .amount {
    background: linear-gradient(120deg, #ffffff, #9affd0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-trial-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.plan-trial-link:hover { color: var(--green-bright); }

/* ===== MAGNETIC BUTTONS ===== */
.btn-primary,
.plan-cta,
.nav-cta {
    transition: transform 0.18s ease-out, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ===== SECTION DIVIDER GLOWS ===== */
.section { position: relative; }

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(620px, 70vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.25), transparent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .shell { transform: none; }
    .hero-right:hover .shell { transform: none; }
    .shell-omnibox .analysis-chip { display: none; }
    #heroWave { height: 140px; }
    .map-demo { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track,
    .stem-bars span,
    .plan-card--featured,
    .hero-left h1 .highlight,
    .section-title .highlight { animation: none !important; }
}

/* ===== NEW SHELL LAYOUT (Sidebar & Bottom Bar) ===== */
.shell {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.shell-sidebar {
    width: 50px;
    background: rgba(0, 0, 0, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
}

.shell-lights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 20px;
    align-items: center;
}

.shell-tabs-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
}

.shell-tabs-vertical .shell-tab {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 8px;
    border: none;
    font-size: 16px;
}

.shell-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shell-main .shell-view {
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex: 1;
}

.shell-main .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-right-radius: 18px;
}

.shell-bottom-bar {
    display: flex;
    justify-content: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom-right-radius: 18px;
}


