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

/* Launch Banner */
.launch-banner {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 10px 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.launch-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.launch-text {
    font-size: 14px;
}

.launch-text code {
    background: rgba(255,255,255,0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
}

.launch-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
}

.launch-close:hover {
    color: #fff;
}

.launch-banner.hidden {
    display: none;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger feature animations */
.feature.reveal-on-scroll:nth-child(1) { transition-delay: 0s; }
.feature.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.feature.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.feature.reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }

:root {
    --cream: #f5f0e8;
    --cream-dark: #e8e0d4;
    --tan: #d4c4b0;
    --dark: #1a1a1a;
    --dark-light: #2a2a2a;
    --text: #333;
    --text-light: #666;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.6;
}

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

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--dark);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background-color: var(--dark-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-dark {
    background-color: var(--dark);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-dark:hover {
    background-color: var(--dark-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark);
    border: 1px solid var(--dark);
}

.btn-outline:hover {
    background-color: var(--dark);
    color: white;
    transform: translateY(-2px);
}

/* Header */
.header {
    padding: 20px 0;
    background-color: var(--cream);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: opacity 0.2s ease;
}

.logo:hover .logo-img {
    opacity: 0.8;
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark);
    margin-left: 6px;
}

.logo:hover .logo-text {
    opacity: 0.8;
}

@media (max-width: 600px) {
    .logo-text {
        display: none;
    }
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dark);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--dark);
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 60px 0 80px;
    background-color: var(--cream);
    overflow: hidden;
}

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

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 400px;
}

@media (max-width: 900px) {
    .hero-subtitle {
        max-width: none;
    }
}

/* Hero Carousel */
.hero-carousel {
    animation: fadeInRight 0.8s ease-out 0.2s both;
    position: relative;
}

.carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 50%;
    width: 70%;
    transform: translateY(-50%) translateX(50%) scale(0.75);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.2;
}

.carousel-slide.active {
    transform: translateY(-50%) translateX(0) scale(1);
    pointer-events: auto;
    opacity: 1;
    z-index: 2;
}

.carousel-slide.prev {
    transform: translateY(-50%) translateX(-50%) scale(0.75);
    z-index: 1;
    opacity: 0.1;
}

.carousel-slide.next {
    transform: translateY(-50%) translateX(50%) scale(0.75);
    z-index: 1;
    opacity: 0.25;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

/* Smaller carousel image for Aqua Chorus */
.carousel-slide[data-product="aqua-chorus"] img {
    max-height: 70%;
    max-width: 70%;
}

.carousel-slide.active img {
    animation: float 6s ease-in-out infinite;
}

.carousel-slide.active img:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: var(--tan);
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 0;
}

.carousel-dot:hover {
    background-color: var(--dark-light);
}

.carousel-dot.active {
    background-color: var(--dark);
}

/* Carousel Labels */
.carousel-labels {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    height: 24px;
    position: relative;
}

.carousel-label {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
    letter-spacing: 0.05em;
    opacity: 0;
}

.carousel-label.active {
    opacity: 1;
}

@media (max-width: 900px) {
    .hero {
        padding: 20px 0 40px;
    }

    .hero-grid {
        gap: 20px;
    }

    .hero-carousel {
        order: -1;
        max-width: 100%;
        margin: 0 auto;
    }

    .carousel-track {
        aspect-ratio: 1/0.8;
        min-height: 280px;
    }

    .carousel-slide {
        width: 100%;
    }

    .carousel-slide.active {
        transform: translateY(-50%) translateX(0) scale(1);
    }

    .carousel-slide.prev,
    .carousel-slide.next {
        opacity: 0;
    }

    .carousel-slide img {
        max-width: 70%;
        max-height: 90%;
    }

    .carousel-slide[data-product="roomtone"] img {
        max-width: 75%;
        max-height: 95%;
    }

    .carousel-slide[data-product="pad-engine"] img {
        max-width: 85%;
        max-height: 105%;
    }

    .carousel-slide[data-product="aqua-chorus"] img {
        max-height: 52%;
        max-width: 52%;
    }

    .carousel-dots {
        margin-top: 8px;
    }

    .carousel-labels {
        margin-top: 8px;
    }
}

@media (max-width: 500px) {
    .hero {
        padding: 16px 0 30px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .carousel-track {
        aspect-ratio: 1/0.9;
        min-height: 260px;
    }

    .carousel-slide img {
        max-width: 80%;
        max-height: 95%;
    }

    .carousel-slide[data-product="roomtone"] img {
        max-width: 85%;
        max-height: 100%;
    }

    .carousel-slide[data-product="pad-engine"] img {
        max-width: 95%;
        max-height: 110%;
    }

    .carousel-slide[data-product="aqua-chorus"] img {
        max-height: 57%;
        max-width: 57%;
    }
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: var(--cream);
    border-top: 1px solid var(--tan);
    border-bottom: 1px solid var(--tan);
}

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

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cream-dark);
    border-radius: 12px;
    color: var(--dark);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature:hover .feature-icon {
    transform: translateY(-4px);
    background-color: var(--tan);
}

.feature h3 {
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.feature p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Compatibility Bar */
.compatibility-bar {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--tan);
    text-align: center;
}

.compatibility-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 12px;
}

.compatibility-daws {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 12px;
}

.compatibility-daws span {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
}

.compatibility-formats {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.compatibility-disclaimer {
    font-size: 0.65rem;
    color: var(--text-light);
    opacity: 0.7;
    margin: 12px 0 0 0;
}

@media (max-width: 500px) {
    .compatibility-daws {
        gap: 6px 16px;
    }

    .compatibility-daws span {
        font-size: 0.8rem;
    }
}

/* Product Section */
.product-section {
    padding: 100px 0;
    background-color: var(--cream-dark);
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 800px) {
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.product-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.product-image-smaller img {
    width: 65%;
    margin: 0 auto;
    display: block;
}

.product-image-no-box img {
    box-shadow: none;
    border-radius: 0;
}

.product-image-no-box img:hover {
    box-shadow: none;
}

.product-info h2 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    color: var(--dark);
}

.product-tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--dark);
}

.product-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-title-link:hover h2,
.product-title-link:hover .product-tagline {
    color: var(--dark-light);
}

.product-features {
    list-style: none;
    margin-bottom: 32px;
}

.product-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-light);
}

.product-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--dark);
}

.product-artist-tones {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 24px;
}

.product-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Products Grid */
.products-grid-section {
    padding: 80px 0;
    background-color: var(--cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 700px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background-color: var(--cream-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card-image {
    aspect-ratio: 16/10;
    background-color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image.placeholder span {
    color: var(--tan);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.product-card h3 {
    padding: 20px 20px 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.product-card p {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--tan);
}

.about-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background-color: var(--cream);
    border-top: 1px solid var(--tan);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
}

.footer-brand p {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--dark);
    transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--tan);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Presets Dropdown */
.presets-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.presets-dropdown.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 40px;
}

.presets-container {
    background-color: var(--cream);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--tan);
}

.presets-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 24px;
    text-align: center;
}

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

@media (max-width: 900px) {
    .presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .presets-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .presets-container {
        padding: 20px;
    }
}

.preset-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: var(--cream-dark);
    border-radius: 8px;
    border: 1px solid var(--tan);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.preset-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--dark);
}

.preset-card.playing {
    border-color: var(--dark);
    background-color: var(--tan);
}

.preset-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
}

@media (max-width: 500px) {
    .preset-name {
        font-size: 0.8rem;
    }

    .preset-card {
        padding: 12px 14px;
    }
}

.preset-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: var(--dark);
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;
}

.preset-play-btn:hover {
    transform: scale(1.1);
    background-color: var(--dark-light);
}

.preset-play-btn:active {
    transform: scale(0.95);
}

@media (max-width: 500px) {
    .preset-play-btn {
        width: 32px;
        height: 32px;
    }

    .preset-play-btn svg {
        width: 16px;
        height: 16px;
    }
}
