/* ═══════════════════════════════════════
   SonaFly Marketing Site — Style Sheet
   ═══════════════════════════════════════ */

:root {
    --bg-primary: #0a0a14;
    --bg-secondary: #0f0f1e;
    --bg-card: #161629;
    --bg-card-hover: #1c1c36;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --text-muted: #6a707a;
    --accent-1: #4ecdc4;
    --accent-2: #44b3f7;
    --accent-3: #ffe66d;
    --accent-4: #ff6b6b;
    --gradient-main: linear-gradient(135deg, #4ecdc4, #44b3f7, #a78bfa);
    --gradient-warm: linear-gradient(135deg, #ffe66d, #ff6b6b);
    --border: rgba(255, 255, 255, 0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.nav-logo-img { width: 36px; height: 36px; object-fit: contain; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

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

.nav-links a:hover { color: var(--text-primary); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); margin: 5px 0; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: #0a0a14;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(78, 205, 196, 0.3); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); }

.btn-glass {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,0.1); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78,205,196,0.12) 0%, transparent 70%);
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-1);
    animation: float linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    25% { transform: translateY(-30px) translateX(10px) scale(1.2); }
    50% { transform: translateY(-15px) translateX(-15px) scale(0.8); }
    75% { transform: translateY(-40px) translateX(5px) scale(1.1); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-1);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat { text-align: center; }
.stat-value { display: block; font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

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

.hero-logo-container {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo { width: 260px; height: 260px; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 0 40px rgba(78,205,196,0.2)); }

.hero-logo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(78, 205, 196, 0.15);
    animation: ring-spin 20s linear infinite;
}

.ring-2 {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border-color: rgba(68, 179, 247, 0.08);
    animation-direction: reverse;
    animation-duration: 30s;
}

@keyframes ring-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 3;
}
.hero-wave svg { display: block; width: 100%; height: auto; }

/* ── Section Headers ── */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-1);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Features ── */
.features {
    background: var(--bg-secondary);
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(78, 205, 196, 0.15);
    transform: translateY(-4px);
}

.feature-highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(78,205,196,0.08), rgba(68,179,247,0.06));
    border-color: rgba(78, 205, 196, 0.12);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-card code {
    background: rgba(78, 205, 196, 0.1);
    color: var(--accent-1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.85em;
}

/* ── Auditorium ── */
.auditorium {
    padding: 100px 0;
    background: var(--bg-primary);
}

.aud-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.aud-content .section-tag { display: block; margin-bottom: 12px; }

.aud-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.aud-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.aud-features { display: flex; flex-direction: column; gap: 20px; }

.aud-feat {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.aud-feat-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.aud-feat strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.aud-feat span { font-size: 0.85rem; color: var(--text-secondary); }

/* Auditorium Card Mock */
.aud-visual { display: flex; justify-content: center; }

.aud-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.aud-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1rem;
}

.aud-card-dot { width: 8px; height: 8px; border-radius: 50%; background: #444; }
.aud-card-dot.playing { background: var(--accent-1); box-shadow: 0 0 10px var(--accent-1); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.aud-badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 3px 10px;
    border-radius: 100px;
}

.aud-now-playing {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.aud-art {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a1a2e, #252540);
    flex-shrink: 0;
}

.aud-track { font-weight: 700; font-size: 1rem; }
.aud-artist { font-size: 0.85rem; color: var(--text-secondary); }

.aud-progress {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.aud-progress-bar {
    height: 100%;
    background: var(--accent-1);
    border-radius: 2px;
    transition: width 0.5s;
}

.aud-queue-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.aud-queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--border);
}

.aud-qi-note { color: var(--accent-1); font-size: 1rem; }
.aud-qi-title { font-size: 0.9rem; font-weight: 500; }
.aud-qi-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ── Formats ── */
.formats {
    background: var(--bg-secondary);
    padding: 100px 0;
}

.formats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.format-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    text-align: center;
    min-width: 130px;
    transition: all var(--transition);
}

.format-card:hover { transform: translateY(-4px); border-color: rgba(78,205,196,0.2); }

.format-lossless { border-color: rgba(255, 230, 109, 0.2); background: rgba(255, 230, 109, 0.04); }
.format-lossless .format-ext { color: var(--accent-3); }

.format-ext {
    font-family: var(--mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-1);
    margin-bottom: 6px;
}

.format-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.format-type { font-size: 0.75rem; color: var(--text-muted); }

/* ── Tech Stack ── */
.tech-stack {
    padding: 80px 0;
    background: var(--bg-primary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.tech-item {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.tech-item:hover { background: var(--bg-card-hover); transform: translateY(-3px); }

.tech-logo { font-size: 2rem; margin-bottom: 10px; }
.tech-name { font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.tech-role { font-size: 0.75rem; color: var(--text-muted); }

/* ── Quick Start ── */
.quickstart {
    background: var(--bg-secondary);
    padding: 100px 0;
}

.steps {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: #0a0a14;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content { flex: 1; }
.step-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.step-content p { font-size: 0.9rem; color: var(--text-secondary); margin-top: 8px; }
.step-content code { background: rgba(78,205,196,0.1); color: var(--accent-1); padding: 2px 6px; border-radius: 4px; font-family: var(--mono); font-size: 0.85em; }

.code-block {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--accent-1);
    background: none;
    padding: 0;
}

/* ── Responsible Use ── */
.responsible-use {
    padding: 100px 0;
    background: var(--bg-primary);
}

.responsible-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.responsible-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}

.responsible-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.responsible-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.responsible-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-card {
    border-color: rgba(255, 255, 255, 0.08);
}

.legal-examples {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.legal-yes {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legal-check {
    color: var(--accent-1);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.create-card {
    border-color: rgba(78, 205, 196, 0.12);
    background: linear-gradient(135deg, rgba(78,205,196,0.04), rgba(68,179,247,0.03));
}

.ai-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ai-tool {
    display: block;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
}

.ai-tool:hover {
    background: rgba(78, 205, 196, 0.06);
    border-color: rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

.ai-tool-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ai-tool-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.create-cta {
    font-size: 0.95rem;
    color: var(--accent-1);
    font-weight: 500;
    margin-bottom: 0;
}

/* ── CTA ── */
.cta {
    padding: 80px 0;
    background: var(--bg-primary);
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 80px 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(78,205,196,0.06), rgba(68,179,247,0.04));
    border: 1px solid rgba(78, 205, 196, 0.12);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78,205,196,0.1) 0%, transparent 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.cta-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 30px rgba(78,205,196,0.2));
}

.cta-card h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-actions { display: flex; justify-content: center; gap: 16px; }

/* ── Footer ── */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-logo { width: 28px; height: 28px; object-fit: contain; }

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--text-primary); }

/* ── Animations ── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }
.fade-in:nth-child(7) { transition-delay: 0.6s; }
.fade-in:nth-child(8) { transition-delay: 0.7s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-highlight { grid-column: span 2; }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transition: right var(--transition);
        border-left: 1px solid var(--border);
    }
    .nav-links.open { right: 0; }
    .nav-toggle { display: block; z-index: 1001; }

    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.6rem; }
    .hero-subtitle { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-logo-container { width: 240px; height: 240px; }
    .hero-logo { width: 160px; height: 160px; }

    .section-header h2 { font-size: 2rem; }

    .features-grid { grid-template-columns: 1fr; }
    .feature-highlight { grid-column: span 1; }

    .aud-layout { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .responsible-grid { grid-template-columns: 1fr; }

    .footer-container { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .formats-grid { flex-direction: column; align-items: center; }
    .format-card { width: 100%; }
}
