/* ═══════════════════════════════════════════════════════════════════
   DSD Tools — dsdtools.com stylesheet
   Dark audiophile aesthetic with accent blue and gold
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --bg-deep:    #0a0c12;
    --bg-surface: #10141e;
    --bg-card:    #161c2a;
    --bg-hover:   #1c2438;
    --border:     #232d42;
    --text:       #d0d8e8;
    --text-muted: #6a7a96;
    --text-dim:   #3e4e68;
    --accent:     #5EB5FF;
    --accent-dim: #3a7ec0;
    --gold:       #c8a850;
    --gold-dim:   #8a7838;
    --green:      #50c878;
    --green-dim:  #38a060;
    --red:        #e84040;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Consolas', monospace;
}

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

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

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #8ad0ff; }

/* ─── Navigation ──────────────────────────────────────────────────── */

.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(10, 12, 18, 0.6);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
    background: rgba(10, 12, 18, 0.95);
    border-bottom-color: var(--border);
}
.nav-inner {
    max-width: 1140px; margin: 0 auto;
    padding: 0 24px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: baseline; gap: 1px; font-size: 20px; }
.logo-dsd { font-family: var(--font-mono); font-weight: 700; color: var(--accent); }
.logo-tools { font-family: var(--font-body); font-weight: 500; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--accent) !important; color: var(--bg-deep) !important;
    padding: 7px 18px !important; border-radius: 6px; font-weight: 600 !important;
}
.nav-cta:hover { background: #8ad0ff !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* ─── Hero ────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 120px 24px 80px; text-align: center;
    overflow: hidden;
}
.hero-grain {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 200px;
    pointer-events: none;
}
.hero::before {
    content: '';
    position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(94,181,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-kicker {
    font-family: var(--font-mono); font-size: 13px; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent-dim); margin-bottom: 20px;
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700; line-height: 1.15; color: var(--text); margin-bottom: 24px;
}
.hero-accent {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 17px; color: var(--text-muted); max-width: 560px;
    margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-formats {
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.hero-formats span {
    font-family: var(--font-mono); font-size: 11px; font-weight: 500;
    padding: 4px 10px; border-radius: 4px;
    background: rgba(94, 181, 255, 0.08); color: var(--accent-dim);
    border: 1px solid rgba(94, 181, 255, 0.12);
}
.hero-viz { position: relative; z-index: 1; margin-top: 32px; }
.waveform { width: 100%; max-width: 420px; height: 120px; }

@keyframes wavePulse {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(0.5); opacity: 0.3; }
}
.wave-bar {
    transform-origin: center;
    animation: wavePulse 2.5s ease-in-out infinite;
}

/* ─── Buttons ─────────────────────────────────────────────────────── */

.btn {
    display: inline-flex; flex-direction: column; align-items: center;
    padding: 12px 28px; border-radius: 8px;
    font-family: var(--font-body); font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all 0.25s; border: none; text-decoration: none;
}
.btn small { font-size: 11px; font-weight: 400; opacity: 0.7; margin-top: 2px; }
.btn-primary {
    background: var(--accent); color: var(--bg-deep);
}
.btn-primary:hover { background: #8ad0ff; color: var(--bg-deep); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(94,181,255,0.2); }
.btn-ghost {
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent-dim); color: var(--text); background: rgba(94,181,255,0.06); }
.btn-green { background: var(--green); color: var(--bg-deep); }
.btn-green:hover { background: #68e090; color: var(--bg-deep); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(80,200,120,0.2); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ─── Sections ────────────────────────────────────────────────────── */

.section-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.product { padding: 100px 0; }
.product-alt { background: var(--bg-surface); }

.product-badge {
    font-family: var(--font-mono); font-size: 13px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 12px;
}
.badge-green { color: var(--green); }
.section-title {
    font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700; margin-bottom: 16px; color: var(--text);
}
.section-sub {
    font-size: 16px; color: var(--text-muted); max-width: 600px; margin-bottom: 48px;
    line-height: 1.7;
}

/* ─── Feature cards ───────────────────────────────────────────────── */

.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px; margin-bottom: 48px;
}
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 28px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    opacity: 0; transform: translateY(20px);
}
.feature-card.revealed {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.feature-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.feature-card.accent-gold:hover { border-color: var(--gold-dim); }
.feature-card.accent-blue:hover { border-color: var(--accent); }
.feature-icon {
    font-size: 24px; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; margin-bottom: 16px;
    background: rgba(94, 181, 255, 0.08); color: var(--accent);
}
.accent-gold .feature-icon { background: rgba(200, 168, 80, 0.1); color: var(--gold); }
.accent-blue .feature-icon { background: rgba(94, 181, 255, 0.12); color: var(--accent); }
.feature-card h3 {
    font-family: var(--font-body); font-size: 16px; font-weight: 700;
    margin-bottom: 8px; color: var(--text);
}
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.product-cta { text-align: center; }

/* ─── Pricing ─────────────────────────────────────────────────────── */

.pricing { padding: 100px 0; text-align: center; }

.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; max-width: 960px; margin: 0 auto;
}
.price-card {
    position: relative;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 36px 28px; text-align: center;
    opacity: 0; transform: translateY(20px);
}
.price-card.revealed { opacity: 1; transform: translateY(0); transition: opacity 0.5s, transform 0.5s; }
.price-featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(94, 181, 255, 0.08);
    transform: scale(1.04);
}
.price-featured.revealed { transform: scale(1.04); }
.price-ribbon {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: var(--bg-deep);
    font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 20px;
}
.price-card h3 {
    font-family: var(--font-body); font-size: 18px; font-weight: 700;
    margin-bottom: 8px;
}
.price {
    font-family: var(--font-display); font-size: 42px; font-weight: 700;
    color: var(--text); margin-bottom: 24px;
}
.price span { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.price-card ul {
    list-style: none; text-align: left; margin-bottom: 28px;
    display: flex; flex-direction: column; gap: 8px;
}
.price-card li {
    font-size: 14px; padding-left: 24px; position: relative; color: var(--text-muted);
}
.price-card li.yes::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-card li.no::before { content: '—'; position: absolute; left: 0; color: var(--text-dim); }
.price-card li.no { color: var(--text-dim); }

/* ─── Contact ─────────────────────────────────────────────────────── */

.contact { padding: 80px 0; text-align: center; background: var(--bg-surface); }
.contact-info { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.contact-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 28px 36px; text-align: center; min-width: 260px;
    opacity: 0; transform: translateY(20px);
}
.contact-card.revealed { opacity: 1; transform: translateY(0); transition: opacity 0.5s, transform 0.5s; }
.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.contact-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }

/* ─── Footer ──────────────────────────────────────────────────────── */

.footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-logo { margin-bottom: 12px; font-size: 18px; }
.footer-tagline { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.footer h4 { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer a { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.footer a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; }
.footer-bottom p { font-size: 12px; color: var(--text-dim); }

/* ─── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg-deep); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 12px; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .price-featured { transform: none; }
    .price-featured.revealed { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 2rem; }
}
