/* Index page. Shared nav/reveal/overlay rules live in style.css. */
.hero img { width: 350px; height: 200px; aspect-ratio: 350 / 200; object-fit: contain; max-height: 200px; margin-bottom: 2rem; }
.hero-title { font-size: clamp(3rem, 10vw, 6rem); letter-spacing: -0.03em; }
.hero-tagline {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    color: #60a5fa;
    margin-top: 1rem;
    min-height: 1.5rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: 2.25rem; }
.app-stats {
    margin-bottom: 1rem;
    min-height: 1.3em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--warn);
    font-variant-numeric: tabular-nums;
}
.app-stats i { margin-right: 0.35rem; }
@media (max-width: 768px) {
    .hero img { width: 280px; height: auto; }
}

/* 3D Stacking Layer Depth CSS */
        .depth-card {
            transform-style: preserve-3d;
            perspective: 1000px;
            transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
            position: relative;
        }
        .depth-card-bg {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(199, 0, 255, 0.05), rgba(42, 101, 229, 0.05));
            border-radius: inherit;
            z-index: 1;
            transition: opacity 0.5s;
            opacity: 0.5;
            pointer-events: none;
        }
        .depth-card:hover .depth-card-bg {
            opacity: 1;
        }
        .depth-card-content {
            position: relative;
            transform: translateZ(30px);
            z-index: 2;
            transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
        .depth-card-float {
            transform: translateZ(60px);
            z-index: 3;
            transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        /* Competitor Comparison Section */
        .comp-container {
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.02);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 32px;
            padding: 3rem;
            margin-top: 4rem;
        }
        .comp-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
        }
        .comp-table th, .comp-table td {
            padding: 1.2rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        .comp-table th {
            font-family: var(--font-display);
            font-size: 0.95rem;
            font-weight: 800;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.4);
        }
        .comp-table td {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.8);
        }
        .comp-table tr:hover td {
            background: rgba(255, 255, 255, 0.01);
        }
        .comp-table .feature {
            font-weight: 600;
            color: white;
            font-family: var(--font-display);
        }
         .comp-table .waverate-col {
            color: #C700FF;
            font-weight: 800;
        }
        .comp-table-wrapper {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        @media (max-width: 768px) {
            .comp-container {
                padding: 1.5rem 1rem !important;
                border-radius: 20px !important;
            }
            .comp-table th, .comp-table td {
                padding: 0.8rem 0.6rem !important;
                font-size: 0.75rem !important;
                min-width: 120px;
            }
            .comp-table th:first-child, .comp-table td:first-child {
                min-width: 140px;
                position: sticky;
                left: 0;
                background: rgba(15, 7, 30, 0.95);
                backdrop-filter: blur(10px);
                z-index: 10;
                border-right: 1px solid rgba(255, 255, 255, 0.05);
            }
            /* Sleek custom scrollbar */
            .comp-table-wrapper::-webkit-scrollbar {
                height: 4px;
            }
            .comp-table-wrapper::-webkit-scrollbar-track {
                background: rgba(255, 255, 255, 0.01);
            }
            .comp-table-wrapper::-webkit-scrollbar-thumb {
                background: rgba(199, 0, 255, 0.3);
                border-radius: 10px;
            }
        }

        /* FAQ Accordion Section */
        .faq-container {
            width: 100%;
            max-width: 1000px;
            margin: 4rem auto 0 auto;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        .faq-item {
            background: rgba(255, 255, 255, 0.02);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            overflow: hidden;
        }
        .faq-item:hover {
            border-color: rgba(199, 0, 255, 0.3);
            background: rgba(255, 255, 255, 0.03);
        }
        .faq-trigger {
            width: 100%;
            padding: 1.5rem 2rem;
            background: none;
            border: none;
            border-radius: 20px;
            color: white;
            font-family: var(--font-display);
            font-size: 1.15rem;
            font-weight: 700;
            text-align: left;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
        }
        .faq-trigger:focus-visible { outline-offset: -3px; }
        .faq-trigger i {
            font-size: 0.9rem;
            transition: transform var(--dur-med) var(--ease-out);
            color: var(--p-base);
            flex: none;
        }
        .faq-trigger[aria-expanded="true"] i { transform: rotate(180deg); }
        .faq-content {
            padding: 0 2rem 1.5rem 2rem;
            font-size: 0.9rem;
            line-height: 1.8;
            color: var(--text-muted);
        }
        .faq-content:not([hidden]) { animation: faq-open var(--dur-med) var(--ease-out); }
        @keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }
        @media (prefers-reduced-motion: reduce) {
            .faq-content:not([hidden]) { animation: none; }
            .faq-trigger i { transition: none; }
        }
/* 3D logo marks (js/svg3d-elements.js). The <img> is the no-JS / no-WebGL fallback and is
   sized to match the rendered 3D model, so the swap to the canvas doesn't jump. */
.svg3d-element { position: relative; flex: none; }
.svg3d-element > .svg3d-fallback {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56%;
    height: 56%;
    object-fit: contain;
}
.svg3d-element > .svg3d-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.svg3d-element.svg3d-ready > .svg3d-fallback { visibility: hidden; }

/* The comparison CTA is long: let it wrap inside its card on narrow phones instead of being clipped. */
.comp-container .btn { max-width: 100%; white-space: normal; text-align: center; }

/* Turntable (Discover Waverate slide). The record and tonearm move with transform only; the
   sheen sits on the platter outside the spinning record, so the light stays put like real vinyl. */
.turntable {
    position: relative;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 4 / 3;
    margin-bottom: 1.75rem;
    align-self: flex-start;
}
.tt-plinth {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(160deg, var(--surface-walnut), var(--surface-walnut-deep));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.45);
}
.tt-platter {
    position: absolute;
    left: 7%;
    top: 50%;
    width: 72%;
    aspect-ratio: 1;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #0c0c0d;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05), 0 8px 18px rgba(0, 0, 0, 0.6);
}
.tt-record {
    position: absolute;
    inset: 3%;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle at 50% 50%, #151516 0 1.2px, #1f1f21 1.2px 2.6px),
        #151516;
    will-change: transform;
}
.tt-label {
    position: absolute;
    inset: 32%;
    border-radius: 50%;
    background: url("../assets/waterate-icon.webp") 54% 50% / 64% auto no-repeat, var(--paper-cream);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}
.tt-sheen {
    position: absolute;
    inset: 3%;
    border-radius: 50%;
    background: conic-gradient(from 20deg, transparent 0deg, rgba(255, 255, 255, 0.10) 35deg, transparent 70deg, transparent 180deg, rgba(255, 255, 255, 0.07) 215deg, transparent 250deg);
    pointer-events: none;
}
/* Tonearm: pivots at its top end; rests off the record until the record spins. */
.tt-arm {
    position: absolute;
    right: 6%;
    top: 9%;
    width: 22%;
    height: 78%;
    transform-origin: 70% 9%;
    transform: rotate(-18deg);
}
.tt-arm.is-playing { transform: rotate(0deg); }
.tt-arm__pivot {
    position: absolute;
    right: 18%;
    top: 0;
    width: 24%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #e9cf96, var(--metal-brass) 60%, #8a6b33);
}
.tt-arm__rod {
    position: absolute;
    right: 28%;
    top: 8%;
    width: 4px;
    height: 72%;
    border-radius: 2px;
    background: linear-gradient(90deg, #8a6b33, #e9cf96 50%, #8a6b33);
    transform-origin: 50% 0;
    transform: rotate(14deg);
}
.tt-arm__head {
    position: absolute;
    left: 22%;
    bottom: 10%;
    width: 18%;
    height: 14%;
    border-radius: 3px;
    background: #2c2c2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(32deg);
}
.tt-knob {
    position: absolute;
    right: 9%;
    bottom: 9%;
    width: 9%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #e9cf96, var(--metal-brass) 60%, #8a6b33);
}
@media (prefers-reduced-motion: no-preference) {
    .tt-arm { transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1); }
}
@media (prefers-reduced-motion: reduce) {
    /* Still: the arm simply rests on the record. */
    .tt-arm { transform: rotate(0deg); }
}

