/* Plume AirPlay — site vitrine. Warm "plume" palette: cream, soft brown, amber accent. */

:root {
    --bg: #faf6f0;
    --bg-2: #f3ebe0;
    --surface: #ffffff;
    --border: #eadfd0;
    --text: #2b2118;
    --muted: #7a6a5a;
    --accent: #e8772e;
    --accent-dark: #c95f1c;
    --accent-soft: #fdebdc;
    --shadow: 0 1px 2px rgba(43, 33, 24, 0.04), 0 8px 24px -12px rgba(43, 33, 24, 0.18);
    --shadow-lg: 0 30px 60px -25px rgba(90, 55, 25, 0.35);
    --radius: 16px;
    --max: 1120px;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }

/* ---------- Navigation: full width, thin, solid ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--max);
    height: 60px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }

.nav nav { display: flex; align-items: center; gap: 28px; font-size: 0.93rem; color: var(--muted); }
.nav nav a:not(.btn) { transition: color 0.15s ease; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 20px -10px rgba(232, 119, 46, 0.8);
    transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-small { padding: 7px 14px; font-size: 0.88rem; box-shadow: none; color: #fff !important; }
.btn-big { padding: 17px 30px; font-size: 1.08rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); }
.btn-disabled { opacity: 0.5; cursor: not-allowed; }
.btn-disabled:hover { transform: none; background: var(--accent); }

/* ---------- Hero ---------- */

main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    min-height: min(calc(100vh - 60px), 720px);
    padding: 56px 0 80px;
}

.pill {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 600;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; }

h1 {
    margin: 20px 0;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.accent { color: var(--accent); font-style: italic; }

.lead { font-size: 1.18rem; color: var(--muted); max-width: 34rem; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Visual: iPhone AirPlay menu sending to the app window */

.hero-visual { position: relative; height: 460px; }

.phone {
    position: absolute;
    left: 0;
    top: 60px;
    width: 200px;
    height: 380px;
    padding: 46px 14px 14px;
    border-radius: 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), inset 0 0 0 6px #2b2118;
    animation: float 6s ease-in-out infinite;
}
.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    width: 76px;
    height: 22px;
    margin-left: -38px;
    border-radius: 12px;
    background: #2b2118;
}
.phone-title { font-weight: 700; margin: 0 6px 12px; }
.phone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 11px 12px;
    border-radius: 14px;
    background: var(--bg-2);
    font-size: 0.82rem;
    color: var(--muted);
}
.phone-item .dot { width: 17px; height: 17px; border-radius: 50%; border: 2px solid #d8c9b6; }
.phone-item.active { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.phone-item.active svg { color: var(--accent); }
.phone-item .check { margin-left: auto; color: var(--accent); font-weight: 700; }

.waves { position: absolute; left: 196px; top: 215px; }
.waves span {
    position: absolute;
    width: 70px;
    height: 70px;
    border: 2px solid var(--accent);
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: rotate(45deg);
    opacity: 0;
    animation: wave 2.4s ease-out infinite;
}
.waves span:nth-child(2) { animation-delay: 0.8s; }
.waves span:nth-child(3) { animation-delay: 1.6s; }

.window {
    position: absolute;
    right: 0;
    top: 0;
    width: 280px;
    padding: 14px 18px 20px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite 1s;
}
.window-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 0.75rem; color: var(--muted); }
.window-bar span { width: 9px; height: 9px; border-radius: 50%; background: #e7dccd; }
.window-bar b { margin-left: 8px; font-weight: 500; }
.status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #e9f5ea;
    color: #2f7a3b;
    font-size: 0.78rem;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: #3fa34d; }
.cover {
    margin: 16px auto;
    width: 180px;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #f6b26b 0%, #e8772e 55%, #9c3f12 100%);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 30px -14px rgba(43, 33, 24, 0.45);
}
.cover svg { width: 38%; height: 38%; stroke-width: 1.6; }
.track { text-align: center; }
.track strong { display: block; font-size: 1.05rem; }
.track small { color: var(--muted); }
.progress { height: 4px; margin: 14px 0; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.progress div { width: 42%; height: 100%; background: var(--accent); animation: progress 12s linear infinite; }
.eq-bars { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 34px; }
.eq-bars span {
    width: 7px;
    height: var(--h);
    border-radius: 3px;
    background: var(--accent);
    opacity: 0.85;
    animation: bounce 1.1s ease-in-out infinite alternate;
    animation-delay: var(--d);
    transform-origin: bottom;
}

@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes wave {
    0% { opacity: 0.9; transform: rotate(45deg) scale(0.4) translate(0, 0); }
    100% { opacity: 0; transform: rotate(45deg) scale(1.4) translate(10px, -10px); }
}
@keyframes bounce { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
@keyframes progress { from { width: 8%; } to { width: 96%; } }

/* ---------- Sections ---------- */

.section { padding: 88px 0; scroll-margin-top: 60px; }

h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.015em; line-height: 1.15; }
.section > h2, .section > .section-lead { text-align: center; }
.section-lead { margin: 0 0 48px; color: var(--muted); font-size: 1.1rem; }

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

.card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 18px 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.card-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}
.steps li { padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.steps b {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--serif);
    font-size: 1.1rem;
}
.steps h3 { margin: 18px 0 6px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Download ---------- */

.download {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 56px;
    border-radius: 24px;
    background: #2b2118;
    color: #f6efe6;
    box-shadow: var(--shadow-lg);
}
.download .section-lead { margin-bottom: 24px; color: #bba896; }
.reqs { margin: 0; padding: 0; list-style: none; }
.reqs li { position: relative; padding-left: 28px; margin: 8px 0; color: #e6dacb; }
.reqs li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.download-action { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.download .muted { color: #bba896; }
.muted { margin: 0; color: var(--muted); font-size: 0.9rem; }

.hash { max-width: 100%; color: #bba896; font-size: 0.85rem; }
.hash summary { cursor: pointer; }
.hash code {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #e6dacb;
    font-size: 0.72rem;
    word-break: break-all;
}

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 40px auto 0; }
.faq details {
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.faq details[open] { border-color: #e6c3a6; }
.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- Footer ---------- */

.footer {
    margin-top: 40px;
    padding: 40px 24px 56px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}
.footer .brand { justify-content: center; margin-bottom: 12px; color: var(--text); }
.footer p { margin: 4px 0; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; text-align: center; overflow-x: clip; }
    .hero .lead { margin: 0 auto; }
    .cta { justify-content: center; }
    .hero-visual { width: 540px; max-width: 100%; margin: 0 auto; }
    .grid, .steps { grid-template-columns: 1fr 1fr; }
    .download { grid-template-columns: 1fr; padding: 40px 28px; }
}

@media (max-width: 640px) {
    .nav nav a:not(.btn) { display: none; }
    .grid, .steps { grid-template-columns: 1fr; }
    /* Shrink the whole illustration as one block (its layout box stays 520 px wide). */
    .hero-visual {
        width: 520px;
        max-width: none;
        left: 50%;
        transform: translateX(-50%) scale(0.68);
        transform-origin: top center;
        margin-bottom: -150px;
    }
    .btn-big { padding: 16px 22px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
