@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --bg-deep: #0A0B0E;
    --bg-surface: rgba(20, 22, 28, 0.7);
    --bg-tertiary: #1A1C23;
    --accent: #00e5ff; /* Cyan */
    --accent-glow: rgba(0, 229, 255, 0.2);
    --accent-magenta: #ff00ff; /* Magenta */
    --magenta-glow: rgba(255, 0, 255, 0.2);
    --text-primary: #E0E2E8;
    --text-secondary: #8A8D98;
    --border-color: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(20px);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.04) 0%, transparent 60%),
        url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* --- Layout System --- */

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2.5rem;
    position: sticky;
    top: 2rem;
    z-index: 1000;
    background: rgba(18, 19, 24, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin-bottom: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* --- Hero Section --- */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 6rem 0;
    min-height: 80vh;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-text h1 span {
    color: var(--accent);
    display: block;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 500px;
}

/* --- Common Button & Nav Styles --- */
nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--accent);
}

.btn-primary {
    background: var(--accent);
    color: #000;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    color: var(--accent);
}

/* --- HARDWARE MIXER UI --- */

.mixer-panel {
    background: #1a1b20; /* Deep chassis color */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 820px; /* Prevent clipping */
    box-shadow: 
        0 40px 100px rgba(0,0,0,0.8),
        inset 0 1px 1px rgba(255,255,255,0.1), /* Top highlight */
        inset 0 0 0 1px #0a0a0c,      /* Dark rim */
        inset 0 0 30px rgba(0,0,0,0.9); /* Inner shadow depth */
    overflow: hidden;
    transform: perspective(1200px) rotateX(8deg);
    transition: transform 0.5s ease;
    border: 1px solid #000;
    clip-path: polygon(
        15px 0, calc(100% - 15px) 0, 
        100% 15px, 100% calc(100% - 15px), 
        calc(100% - 15px) 100%, 15px 100%, 
        0 calc(100% - 15px), 0 15px
    );
}

.mixer-panel:hover {
    transform: perspective(1200px) rotateX(1deg);
}

.hw-inner-bevel {
    padding: 25px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.2) 100%);
    position: relative;
    box-shadow: inset 0 5px 20px rgba(0,0,0,0.7);
    height: 100%;
}

.hw-logo-section {
    text-align: right;
    padding-right: 20px;
    margin-bottom: 20px;
}

.hw-logo {
    font-family: Arial, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
}

.hw-logo span {
    color: var(--accent); /* Offset color X */
    font-size: 2.5rem;
    line-height: 0;
    vertical-align: middle;
    margin: 0 -2px;
    display: inline-block;
    transform: translateY(2px);
    text-shadow: 0 0 10px var(--accent);
}

.hw-layout {
    display: flex;
    gap: 15px;
}

/* Sections */
.hw-section {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

/* Etched Text Label */
.hw-etched-text {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #111216;
    padding: 0 10px;
    font-size: 0.6rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Left: Mixer --- */
.hw-mixer {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.hw-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hw-scribble {
    background: var(--accent);
    background-image: 
        linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 3px 3px; /* LCD pixel grid effect */
    width: 65px;
    height: 40px;
    box-shadow: 
        inset 0 3px 6px rgba(0,0,0,0.6), /* LCD screen depth */
        0 0 20px var(--accent-glow);
    border: 2px solid #111;
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #111;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}

.hw-scribble i {
    width: 16px;
    height: 16px;
    margin-top: -2px;
}

.hw-scribble small {
    font-size: 0.6rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hw-ch-num {
    position: absolute;
    top: 2px; left: 4px;
    font-size: 0.5rem;
    opacity: 0.7;
}

.hw-fader-area {
    display: flex;
    height: 220px; /* Taller fader area */
    gap: 12px;
    position: relative;
    margin-top: 35px;
    margin-bottom: 15px;
}

.hw-leds {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    padding: 5px 0;
    width: 8px; /* Wider LED column */
}

.hw-leds span {
    width: 100%;
    height: 5px;
    background: #111;
    border-radius: 1px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
}

.hw-leds span.active {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent), inset 0 0 2px #fff;
}

/* Fader LED Gradient Map */
.hw-leds span:nth-child(-n+5).active { 
    background: var(--accent-magenta); 
    box-shadow: 0 0 6px var(--accent-magenta), inset 0 0 2px #fff; 
}
.hw-leds span:nth-child(n+6):nth-child(-n+10).active { 
    background: #0055ff; 
    box-shadow: 0 0 6px #0055ff, inset 0 0 2px #fff; 
}

.hw-fader-track {
    width: 6px; /* Darker, etched track */
    background: #050505;
    border-radius: 3px;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.9), 0 1px 0 rgba(255,255,255,0.05);
}

.hw-fader-cap {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(50%);
    width: 36px;
    height: 60px;
    /* Photorealistic metallic cap */
    background: 
        linear-gradient(to right, rgba(255,255,255,0.1) 0%, transparent 10%, transparent 90%, rgba(0,0,0,0.4) 100%),
        linear-gradient(to bottom, 
            #e0e0e0 0%, 
            #ffffff 10%, 
            #a0a0a0 30%, 
            #606060 40%, 
            #111 48%, #111 52%, /* Indent */
            #606060 60%, 
            #909090 70%, 
            #ffffff 90%, 
            #c0c0c0 100%);
    border-radius: 4px;
    border: 1px solid #333;
    box-shadow: 
        -5px 10px 15px rgba(0,0,0,0.6), /* Drop shadow */
        inset 0 1px 0 #fff; /* Top rim light */
    cursor: grab;
    z-index: 10;
}

.hw-fader-line {
    position: absolute;
    top: 50%;
    left: 4px;
    width: calc(100% - 8px);
    height: 2px;
    transform: translateY(-50%);
    background: #fff;
    box-shadow: 0 0 6px #fff; 
    border-radius: 1px;
}

/* --- Hardware Buttons (General) --- */
.hw-btn {
    background: #111;
    border: 2px solid #333;
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: all 0.1s;
    font-size: 0.7rem;
}

.hw-btn:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
}

.hw-active {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 
        0 0 15px var(--accent-glow), 
        inset 0 0 15px rgba(0, 229, 255, 0.2);
    text-shadow: 0 0 5px var(--accent);
}

/* Explicit Magenta Buttons */
.hw-btn-mute.hw-active,
.hw-btn-preset:nth-child(2).hw-active,
.hw-btn-square:nth-child(1).hw-active,
.hw-btn-clear.hw-active {
    border-color: var(--accent-magenta);
    color: var(--text-primary);
    box-shadow: 
        0 0 15px var(--magenta-glow), 
        inset 0 0 15px rgba(255, 0, 255, 0.3);
    text-shadow: 0 0 5px var(--accent-magenta);
}

.hw-btn-mute { 
    width: 65px; 
    height: 35px; 
}
.hw-btn-mute i { width: 16px; height: 16px; transition: color 0.2s; }
.hw-btn-mute.hw-active i { color: #fff; }

/* Middle Presets */
.hw-presets-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 0 10px;
}

.hw-btn-preset { 
    width: 45px; 
    height: 24px; 
    font-weight: 800;
    border-radius: 12px;
}

/* --- Right side layout --- */
.hw-right-section {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 320px; /* Prevent shrinking too much */
}

/* FX Section */
.hw-fx {
    display: flex;
    gap: 15px;
}

/* Knobs Matrix */
.hw-knobs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    flex: 1;
    padding: 10px;
}

.hw-knob-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.hw-knob-wrapper small { font-size: 0.65rem; color: #888; font-weight: 600; text-transform: uppercase;}

.hw-knob-ring {
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    width: 65px; height: 65px;
    border-radius: 50%;
    /* Masking to create individual LED dots */
    background: conic-gradient(from 225deg, var(--accent) 0deg, var(--accent) 270deg, transparent 270deg);
    -webkit-mask: repeating-conic-gradient(from 0deg, #000 0deg, #000 10deg, transparent 10deg, transparent 15deg);
    mask: repeating-conic-gradient(from 0deg, #000 0deg, #000 10deg, transparent 10deg, transparent 15deg);
    opacity: 0.6;
    z-index: 1;
    filter: drop-shadow(0 0 2px var(--accent));
}

.hw-knob {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #444 0%, #111 100%);
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.8), 
        inset 0 1px 2px rgba(255,255,255,0.3),
        inset 0 -2px 5px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
    cursor: pointer;
    margin-top: 5px;
}

.hw-knob::after {
    content: '';
    position: absolute;
    top: 10%; left: 10%; right: 10%; bottom: 10%;
    border-radius: 50%;
    background: linear-gradient(to bottom, #222, #333);
}

.hw-knob-pointer {
    position: absolute;
    top: 0; left: 50%;
    width: 3px; height: 12px;
    background: var(--accent);
    transform-origin: bottom center;
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent);
    z-index: 3;
    pointer-events: none;
}

.hw-fx-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.hw-btn-wide {
    width: 100px;
    height: 35px;
}

/* Sampler */
.hw-sampler {
    display: flex;
    gap: 15px;
    padding-bottom: 25px;
    align-items: center;
}

.hw-sampler-banks {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.hw-btn-square {
    width: 45px; height: 40px;
    font-weight: bold;
}

.hw-sampler-pads {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    flex: 1;
}

/* Specific pad placement to mimic hardware */
.hw-pad-1 { grid-column: 1 / 3; }
.hw-pad-2 { grid-column: 3; }
.hw-pad-3 { grid-column: 1; grid-row: 2 / 4; }
.hw-btn-clear { grid-column: 2; grid-row: 2; font-size: 0.65rem; color: #fff; }
.hw-pad-5 { grid-column: 3; grid-row: 2 / 4; }
.hw-pad-6 { grid-column: 2; grid-row: 3; }

.hw-pad-btn, .hw-btn-clear {
    width: 100%; height: 100%;
    min-height: 35px;
}

.hw-utility-buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    height: 100%;
}

.hw-btn-cough i { width: 18px; height: 18px;}

/* End of HW styles */

/* --- Addons Placeholder --- */
.addons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* --- Sections --- */

.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.1rem;
    max-width: 600px;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.addon-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.addon-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.download-label {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent);
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(0, 251, 83, 0.05);
}

.dl-btn {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 800;
    color: #000;
    background: var(--accent);
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.toggle-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.toggle-btn.active {
    background: var(--accent);
    color: #000;
}

.addon-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.addon-info h4 {
    font-size: 0.9rem;
}

.addon-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mixer-panel, .panel-card {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
    }
}

.ios-glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ios-glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.8), 
        0 0 30px rgba(0, 229, 255, 0.1), 
        inset 0 1px 1px rgba(255,255,255,0.3);
}

.addon-card.ios-glass-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
}

.addon-card.ios-glass-card .addon-info h4 {
    font-size: 1.1rem;
    color: #fff;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Toast Notifications --- */
.toast {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--accent);
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}