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

:root {
    /* Color Palette */
    --bg-dark: #07090e;
    --bg-card: rgba(18, 22, 32, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 243, 255, 0.15);
    
    --accent-cyan: #00f3ff;
    --accent-cyan-glow: rgba(0, 243, 255, 0.4);
    --accent-violet: #d026ff;
    --accent-violet-glow: rgba(208, 38, 255, 0.4);
    
    --text-primary: #f0f3f8;
    --text-secondary: #909bb0;
    --text-muted: #5e697e;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(208, 38, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1c2230;
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: #2a3348;
}

/* Premium Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Glassmorphism Classes */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 9, 14, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 243, 255, 0.2);
}

/* Buttons */
.cta-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, var(--accent-violet) 0%, #9013fe 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-violet-glow);
    border: none;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(208, 38, 255, 0.6);
}

.cta-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

/* Header */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
}

.logo-sweet {
    color: var(--text-primary);
}

.logo-sweet-alt {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan-glow);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

.header-cta {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    padding: 140px 24px 80px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tag-badge {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.hero-title {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 12px;
    font-weight: 800;
}

.glowing-text {
    background: linear-gradient(90deg, var(--accent-violet) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trademark {
    font-size: 1.5rem;
    vertical-align: super;
    color: var(--accent-cyan);
}

.hero-tagline {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

.mockup-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 100%;
}

.plugin-mockup-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: brightness(0.95);
}

.glowing-border-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.25);
    border-radius: 12px;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.indicator-arrow {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    position: relative;
    overflow: hidden;
}

.indicator-arrow::after {
    content: '';
    display: block;
    width: 100%;
    height: 50%;
    background: var(--accent-cyan);
    position: absolute;
    top: 0;
    animation: scroll-arrow-anim 2s infinite linear;
}

@keyframes scroll-arrow-anim {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* Sections Global */
.simulator-section, .suite-section, .specs-section {
    padding: 100px 24px;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.accent-text {
    color: var(--accent-cyan);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Suite Grid */
.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 440px;
}

.product-meta {
    margin-bottom: 20px;
}

.product-tag {
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--accent-cyan);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 12px;
}

.product-card:nth-child(2) .product-tag {
    background: rgba(208, 38, 255, 0.08);
    border: 1px solid rgba(208, 38, 255, 0.2);
    color: var(--accent-violet);
}

.product-card:nth-child(3) .product-tag {
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--accent-cyan);
}

.product-card h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.product-features span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features span::before {
    content: '•';
    color: var(--accent-cyan);
    font-weight: bold;
}

.product-card:nth-child(2) .product-features span::before {
    color: var(--accent-violet);
}

.product-actions .cta-btn {
    width: 100%;
}

/* Simulator Grid */
.sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.sim-panel {
    display: flex;
    flex-direction: column;
    min-height: 540px;
    overflow: hidden;
}

.panel-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.status-indicator.live {
    background-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Plugin Selector Buttons */
.plugin-selector-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.select-plugin-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    padding: 10px 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-plugin-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.select-plugin-btn.active {
    background: rgba(0, 243, 255, 0.08);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.15);
}

.select-plugin-btn.active#btn-candi {
    background: rgba(208, 38, 255, 0.08);
    border-color: var(--accent-violet);
    color: var(--accent-violet);
    box-shadow: 0 0 12px rgba(208, 38, 255, 0.15);
}

.select-plugin-btn.active#btn-melty {
    background: rgba(0, 243, 255, 0.08);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.15);
}

/* Control Panel Knobs */
.control-panel {
    justify-content: space-between;
}

.knobs-row {
    display: flex;
    justify-content: space-around;
    padding: 30px 20px;
    gap: 15px;
}

.knob-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dial-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    cursor: ns-resize;
    margin-bottom: 12px;
}

.dial-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-135deg);
}

.dial-bg {
    fill: none;
    stroke: #161a26;
    stroke-width: 8;
}

.dial-fill {
    fill: none;
    stroke: var(--accent-cyan);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s ease;
}

#spread-fill {
    stroke: var(--accent-violet);
}

#rand-fill {
    stroke: #00f3ff;
}

.dial-pointer-group {
    transform-origin: 50px 50px;
    transition: transform 0.1s ease;
}

.dial-pointer {
    stroke: #fff;
    stroke-width: 4;
    stroke-linecap: round;
}

.dial-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    pointer-events: none;
}

.knob-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.knob-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.action-btn-container {
    padding: 0 24px;
    display: flex;
    justify-content: center;
}

.oprah-trigger-btn {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.oprah-trigger-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.5), 0 0 15px rgba(208, 38, 255, 0.3);
}

.oprah-trigger-btn:active {
    transform: scale(0.98);
}

/* CPU / Applause Meter */
.applause-container {
    padding: 30px 24px;
    border-top: 1px solid var(--border-color);
}

.applause-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.applause-percentage {
    color: var(--accent-cyan);
    font-family: var(--font-heading);
}

.applause-track {
    width: 100%;
    height: 8px;
    background: #161a26;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.applause-fill {
    width: 12%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    border-radius: 4px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.applause-fill.spiked {
    animation: bar-glow 0.5s infinite alternate;
}

@keyframes bar-glow {
    to { box-shadow: 0 0 10px rgba(208, 38, 255, 0.8); }
}

.applause-message {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Visualizer Panel */
.visualizer-panel {
    background: rgba(10, 12, 18, 0.85);
}

.canvas-wrapper {
    position: relative;
    flex-grow: 1;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #0b0d13;
}

#fft-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.alert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 24px;
}

.alert-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.alert-content {
    background: #121520;
    border: 1px solid var(--accent-cyan);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-overlay.show .alert-content {
    transform: scale(1);
}

.alert-content h4 {
    color: var(--accent-cyan);
    font-size: 1.5rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.alert-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Specs & Pricing */
.specs-box {
    padding: 60px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.specs-title {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

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

.specs-list li {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.specs-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
}

.pricing-info {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-header {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pricing-cost {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-gradient: linear-gradient(90deg, #fff, var(--text-secondary));
    margin-bottom: 4px;
}

.pricing-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 30px;
}

.download-trigger {
    width: 100%;
}

/* Footer Section */
.footer-section {
    background: #040508;
    border-top: 1px solid var(--border-color);
    padding: 80px 24px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.links-group h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.links-group a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.links-group a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.disclaimer-text {
    line-height: 1.4;
}

/* prefers-reduced-motion media query */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    body {
        background-attachment: scroll;
    }

    .indicator-arrow::after,
    .status-indicator.live,
    .applause-fill.spiked,
    .oprah-trigger-btn {
        animation: none !important;
    }
    
    .cta-btn, .secondary-btn, .oprah-trigger-btn, .glass-card {
        transition: none !important;
    }
}

/* Responsiveness Media Queries */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .sim-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.6rem;
    }
    
    .knobs-row {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}
