/* ============================================================================
   AudioMaster — Landing Page Custom Styles
   Dark navy + electric blue theme matching the Keyhan Studio design system
   ============================================================================ */

/* --- CSS Variables --- */
:root {
    --navy-deep: #050816;
    --navy: #0a0e1a;
    --navy-light: #111827;
    --navy-card: #151c2e;
    --cyan: #38bdf8;
    --cyan-bright: #7dd3fc;
    --cyan-dim: #0ea5e9;
    --purple: #a78bfa;
    --purple-bright: #c4b5fd;
    --text: #e0e7ff;
    --text-dim: rgba(224, 231, 255, 0.6);
    --text-bright: #f0f4ff;
    --border: rgba(56, 189, 248, 0.08);
    --border-light: rgba(56, 189, 248, 0.18);
    --glow-cyan: rgba(56, 189, 248, 0.3);
    --glow-purple: rgba(167, 139, 250, 0.3);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--navy-deep);
    color: var(--text);
    font-family: "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Background Grid --- */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* --- Glow Orbs (background decoration) --- */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.glow-orb-cyan {
    background: var(--glow-cyan);
}

.glow-orb-purple {
    background: var(--glow-purple);
}

/* --- Glass Card --- */
.glass-card {
    background: rgba(21, 28, 46, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.08);
    transform: translateY(-2px);
}

/* --- Mastering Meter Animation (Hero) --- */
.meter-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}

.meter-bar {
    width: 28px;
    border-radius: 6px 6px 4px 4px;
    background: linear-gradient(to top, var(--cyan-dim), var(--cyan), var(--purple), #f472b6);
    animation: meterPulse 2s ease-in-out infinite;
    opacity: 0.85;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.meter-bar:nth-child(1)  { height: 30%; animation-delay: 0.0s; }
.meter-bar:nth-child(2)  { height: 50%; animation-delay: 0.1s; }
.meter-bar:nth-child(3)  { height: 70%; animation-delay: 0.2s; }
.meter-bar:nth-child(4)  { height: 90%; animation-delay: 0.3s; }
.meter-bar:nth-child(5)  { height: 100%; animation-delay: 0.4s; }
.meter-bar:nth-child(6)  { height: 85%; animation-delay: 0.5s; }
.meter-bar:nth-child(7)  { height: 95%; animation-delay: 0.6s; }
.meter-bar:nth-child(8)  { height: 75%; animation-delay: 0.7s; }
.meter-bar:nth-child(9)  { height: 55%; animation-delay: 0.8s; }
.meter-bar:nth-child(10) { height: 35%; animation-delay: 0.9s; }
.meter-bar:nth-child(11) { height: 45%; animation-delay: 1.0s; }
.meter-bar:nth-child(12) { height: 65%; animation-delay: 1.1s; }

@keyframes meterPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.85; }
    50% { transform: scaleY(0.6); opacity: 0.6; }
}

/* --- Meter glow line --- */
.meter-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), var(--cyan), transparent);
    opacity: 0.4;
}

/* --- Animated Gradient Text --- */
.gradient-text {
    background: linear-gradient(135deg, var(--cyan), var(--purple), var(--cyan-bright));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

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

/* --- Step Connector Line --- */
.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    margin: 0 auto;
}

/* --- Platform Badge --- */
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(21, 28, 46, 0.8);
    border: 1px solid var(--border-light);
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.platform-badge:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
    color: var(--text-bright);
}

.platform-badge-disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* --- Format Tag --- */
.format-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.15);
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.format-tag-alt {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.15);
    color: var(--purple);
}

/* --- Scroll Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grids */
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }
.fade-delay-4 { transition-delay: 0.4s; }
.fade-delay-5 { transition-delay: 0.5s; }
.fade-delay-6 { transition-delay: 0.6s; }

/* --- Email Input --- */
.email-input-group {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: rgba(21, 28, 46, 0.8);
    backdrop-filter: blur(16px);
    transition: border-color 0.3s ease;
}

.email-input-group:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

.email-input-group input {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}

.email-input-group input::placeholder {
    color: var(--text-dim);
}

.email-input-group button {
    padding: 14px 28px;
    background: var(--cyan);
    color: var(--navy);
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.email-input-group button:hover {
    background: var(--cyan-bright);
}

.email-input-group button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Notification Toast --- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 28px;
    border-radius: 12px;
    background: rgba(21, 28, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    color: var(--text);
    font-size: 0.9rem;
    z-index: 1000;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: rgba(52, 211, 153, 0.4);
}

.toast.error {
    border-color: rgba(248, 113, 113, 0.4);
}

/* --- Section Divider --- */
.section-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    border-radius: 1px;
    margin: 0 auto;
}

/* --- Icon Pulse --- */
.icon-pulse {
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3)); }
    50% { filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.5)); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .meter-container {
        height: 80px;
        gap: 5px;
    }

    .meter-bar {
        width: 20px;
    }

    .email-input-group {
        flex-direction: column;
        border-radius: 14px;
    }

    .email-input-group button {
        border-radius: 0;
    }
}
