/* ============================================================
   Audioasis — Landing Page Styles
   Mirrors AnimatedBackground.swift and app visual language
   ============================================================ */

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

:root {
    --bg:       #08080F;
    --blob-1:   #8e44ad;
    --blob-2:   #e74c3c;
    --blob-3:   #f39c12;
    --white:    #ffffff;
    --white-60: rgba(255,255,255,0.6);
    --white-30: rgba(255,255,255,0.3);
    --white-15: rgba(255,255,255,0.15);
    --white-08: rgba(255,255,255,0.08);
    --radius:   16px;
    --font:     -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   Animated Background — matches AnimatedBackground.swift
   Blob 1: 9s, Blob 2: 13s, Blob 3: 11s
   ============================================================ */

.bg-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--bg);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.85;
}

/* Blob 1 — upper region, 9s */
.blob-1 {
    width: 160%;
    height: 85vh;
    background: var(--blob-1);
    top: -20%;
    left: -30%;
    animation: blob1 9s ease-in-out infinite alternate;
}

@keyframes blob1 {
    from { transform: translate(0, 0); }
    to   { transform: translate(35%, -30%); }
}

/* Blob 2 — lower region, 13s */
.blob-2 {
    width: 150%;
    height: 80vh;
    background: var(--blob-2);
    bottom: -10%;
    right: -30%;
    animation: blob2 13s ease-in-out infinite alternate;
}

@keyframes blob2 {
    from { transform: translate(0, 0); }
    to   { transform: translate(-35%, 35%); }
}

/* Blob 3 — mid accent, 11s */
.blob-3 {
    width: 120%;
    height: 60vh;
    background: var(--blob-3);
    top: 30%;
    left: -10%;
    animation: blob3 11s ease-in-out infinite alternate;
}

@keyframes blob3 {
    from { transform: translate(0, 0); }
    to   { transform: translate(30%, -20%); }
}

/* ============================================================
   Layout
   ============================================================ */

nav, section, footer { position: relative; z-index: 1; }

/* Nav */
.nav {
    display: flex;
    align-items: center;
    padding: 28px 48px;
}

.nav-logo {
    height: 28px;
}

/* Sections */
.section {
    padding: 100px 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    text-align: center;
}

.section-sub {
    color: var(--white-60);
    font-size: 17px;
    text-align: center;
    margin-bottom: 56px;
    line-height: 1.6;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 32px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(42px, 7vw, 80px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-logo {
    width: min(340px, 70vw);
    margin-bottom: 48px;
}

.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--white-60);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 48px;
}

/* App Store badge */
.hero-badges { display: flex; gap: 16px; justify-content: center; }

.badge-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--white-15);
    border: 1px solid var(--white-30);
    border-radius: 14px;
    text-decoration: none;
    color: var(--white);
    transition: background 0.2s;
    backdrop-filter: blur(12px);
}

.badge-btn:hover { background: rgba(255,255,255,0.22); }

.badge-icon {
    width: 28px;
    height: 28px;
    fill: white;
}

.badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.badge-small {
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-large {
    font-size: 19px;
    font-weight: 600;
}

/* ============================================================
   Cards — matches the track card glass style in AmbienceView
   ============================================================ */

.card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ============================================================
   Screenshots
   ============================================================ */

.screenshots-section {
    position: relative;
    z-index: 1;
    padding: 80px 48px;
    overflow: hidden;
}

.screenshots-wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.phone {
    flex-shrink: 0;
    width: 240px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 1px 3px 18px rgba(255, 255, 255, 0.67), 0 0 0 3px rgba(0, 0, 0, 0.97);
    transition: transform 0.4s ease;
}

.phone img {
    width: 100%;
    display: block;
}

.phone-left  { transform: rotate(-4deg) translateY(20px); }
.phone-right { transform: rotate(4deg) translateY(20px); }

.phone-left:hover  { transform: rotate(-2deg) translateY(10px); }
.phone-right:hover { transform: rotate(2deg) translateY(10px); }

.screenshots-text {
    text-align: center;
    max-width: 300px;
    flex-shrink: 0;
}

.screenshots-text h2 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.screenshots-text p {
    font-size: 16px;
    color: var(--white-60);
    line-height: 1.7;
}

@media (max-width: 860px) {
    .screenshots-wrap {
        flex-direction: column;
        gap: 32px;
    }
    .phone-left, .phone-right {
        transform: none;
        width: 200px;
    }
    .phone-left:hover, .phone-right:hover { transform: none; }
    .screenshots-wrap { flex-direction: column; }
    .phone-right { display: none; }
}

/* ============================================================
   How it works — 3 steps
   ============================================================ */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.step-card {
    padding: 32px 28px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.step-number {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white-30);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 15px;
    color: var(--white-60);
    line-height: 1.6;
}

/* ============================================================
   Soundscapes grid
   ============================================================ */

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

.scape-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 28px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s ease, background 0.25s ease;
    flex: 0 1 300px;
    min-width: 260px;
}

.scape-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.14);
}

/* Colour dot using the soundscape's primary colour */
.scape-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c2), var(--c3));
    margin-bottom: 14px;
    flex-shrink: 0;
}

.scape-content {
    width: 100%;
}

.scape-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.scape-content p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* ============================================================
   Pricing
   ============================================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 620px;
    margin: 0 auto;
}

.pricing-card {
    padding: 36px 28px;
    text-align: center;
}

.pricing-featured {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
    position: relative;
}

.pricing-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--white);
    color: #000;
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.pricing-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.feature-list {
    list-style: none;
    text-align: left;
    font-size: 15px;
    line-height: 2;
    margin-bottom: 32px;
}

.feature-list .muted { color: var(--white-30); }

.unlock-btn {
    display: block;
    background: var(--white);
    color: #000;
    font-weight: 600;
    font-size: 16px;
    padding: 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.unlock-btn:hover { opacity: 0.88; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 48px 48px;
    border-top: 1px solid var(--white-08);
}

.footer-logo {
    height: 22px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--white-60);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 13px;
    color: var(--white-30);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 640px) {
    .nav  { padding: 20px 24px; }
    .section { padding: 64px 24px; }
    .hero { padding: 60px 24px; }
    .hero-title { letter-spacing: -1px; }
    .footer { padding: 48px 24px 36px; }
    .scapes-grid { gap: 12px; }
    .scape-card { flex: 0 1 calc(50% - 6px); min-width: 0; }
}

@media (max-width: 400px) {
    .scape-card { flex: 0 1 100%; }
}
