:root {
    --ink: #172033;
    --muted: #667085;
    --panel: #ffffff;
    --line: #d9e1ec;
    --blue: #2563eb;
    --teal: #0f766e;
    --gold: #d97706;
    --rose: #be123c;
    --bg: #f6f4ef;
    --dark: #101827;
    --radius: 8px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 64px);
    color: #fff;
    background: rgba(16, 24, 39, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.brand,
.nav-links,
.hero-actions,
.field-grid,
.format-list {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 850;
    font-size: 1.1rem;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent 44%, #fff 45% 55%, transparent 56%),
        conic-gradient(from 130deg, var(--gold), var(--rose), var(--blue), var(--teal), var(--gold));
}

.nav-links {
    gap: 22px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.78);
}

.nav-links a:hover { color: #fff; }

.hero {
    position: relative;
    min-height: 760px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    padding: 72px clamp(18px, 5vw, 76px) 98px;
    color: #fff;
    overflow: hidden;
    background: #101827;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(16,24,39,0.94) 0%, rgba(16,24,39,0.76) 48%, rgba(16,24,39,0.52) 100%),
        url("https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=2200&q=80");
    background-size: cover;
    background-position: center;
}

.hero > * { position: relative; }
.hero-copy { max-width: 800px; }

.eyebrow {
    margin: 0 0 12px;
    color: #fbbf24;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(3rem, 6vw, 6.6rem);
    line-height: 0.96;
    letter-spacing: 0;
}
h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.03;
    letter-spacing: 0;
}
h3 { margin: 0; font-size: 1.1rem; }

.hero-text {
    max-width: 670px;
    margin: 24px 0 0;
    color: rgba(255,255,255,0.78);
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.55;
}

.hero-actions {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--blue); }
.button.secondary {
    color: #fff;
    border-color: rgba(255,255,255,0.34);
    background: rgba(255,255,255,0.08);
}
.button.wide { width: 100%; }

.story-board {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 28px 80px rgba(0,0,0,0.28);
}

.scene-card {
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.78);
}
.scene-card.active {
    background: #fff;
    color: var(--ink);
}
.scene-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-weight: 900;
}
.scene-card strong { display: block; font-size: 1.05rem; }
.scene-card p { margin: 8px 0 0; line-height: 1.5; }

.section {
    padding: 74px clamp(18px, 5vw, 76px);
}

.create-band,
.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: start;
}

.create-band p,
.section-heading p,
.process p,
.contact p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 1.02rem;
}

.create-panel,
.contact-form,
.example-card,
.steps div {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(15,23,42,0.08);
}

.create-panel,
.contact-form {
    padding: 18px;
}

.source-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.source-tabs button {
    min-height: 42px;
    border: 1px solid #cfd9e8;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}
.source-tabs button.active {
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
}

.drop-zone {
    display: grid;
    place-items: center;
    min-height: 190px;
    padding: 24px;
    border: 2px dashed #b7c6dc;
    border-radius: var(--radius);
    color: var(--ink);
    text-align: center;
    cursor: pointer;
    background: #fffdf8;
}
.drop-zone input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.drop-zone strong { margin-top: 8px; font-size: 1.2rem; }
.drop-zone small { color: var(--muted); }
.drop-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #fff;
    background: var(--gold);
    font-size: 2.3rem;
    line-height: 1;
}

.field-grid {
    flex-wrap: wrap;
    gap: 14px;
    margin: 16px 0;
}
.field-grid label,
.contact-form label,
.create-panel > label {
    display: grid;
    flex: 1 1 230px;
    gap: 7px;
    font-weight: 750;
    color: #334155;
}

input, select, textarea {
    width: 100%;
    border: 1px solid #cfd9e8;
    border-radius: var(--radius);
    padding: 12px 13px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}
textarea { resize: vertical; }

.upload-status { margin-top: 14px; }
.progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeafe;
}
.progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
    transition: width 0.25s ease;
}
.upload-status p { margin: 8px 0 0; color: var(--muted); }

.section-heading {
    max-width: 780px;
    margin-bottom: 28px;
}
.example-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.example-card { overflow: hidden; }
.video-window {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.video-window::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.58));
}
.video-window.storybook { background-image: url("https://images.unsplash.com/photo-1519682337058-a94d519337bc?auto=format&fit=crop&w=1200&q=80"); }
.video-window.memoir { background-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80"); }
.video-window.lesson { background-image: url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80"); }

.play-dot {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
}
.play-dot::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 12px;
    border-left: 14px solid var(--blue);
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}
.page-turn,
.memory-glow,
.diagram-lines {
    position: absolute;
    z-index: 1;
    inset: 0;
}
.page-turn {
    background: linear-gradient(112deg, transparent 0 52%, rgba(255,255,255,0.34) 53% 59%, transparent 60%);
    animation: page 5s ease-in-out infinite;
}
.memory-glow {
    background: radial-gradient(circle at 32% 28%, rgba(251,191,36,0.56), transparent 24%);
    animation: breathe 3.5s ease-in-out infinite alternate;
}
.diagram-lines {
    background: repeating-linear-gradient(0deg, transparent 0 38px, rgba(37,99,235,0.2) 39px 41px);
    animation: drift 7s linear infinite;
}
@keyframes page {
    0%, 35% { transform: translateX(-70%); opacity: 0; }
    60% { opacity: 1; }
    100% { transform: translateX(72%); opacity: 0; }
}
@keyframes breathe {
    from { transform: scale(0.9); opacity: 0.55; }
    to { transform: scale(1.08); opacity: 0.95; }
}
@keyframes drift {
    from { transform: translateY(-80px); }
    to { transform: translateY(80px); }
}

.example-body { padding: 18px; }
.example-body p { color: var(--muted); line-height: 1.5; }

.process {
    background: var(--dark);
    color: #fff;
}
.process .section-heading p,
.process p { color: rgba(255,255,255,0.72); }
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.steps div {
    padding: 22px;
    color: var(--ink);
}
.steps span {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--teal);
    font-weight: 900;
}

.formats {
    display: grid;
    grid-template-columns: minmax(260px, 0.55fr) 1fr;
    gap: 30px;
    align-items: center;
}
.format-list {
    flex-wrap: wrap;
    gap: 10px;
}
.format-list span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
    font-weight: 800;
    font-size: 0.9rem;
}

.contact { background: #fff; }
.contact-form {
    display: grid;
    gap: 14px;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(18px, 5vw, 76px);
    color: rgba(255,255,255,0.72);
    background: var(--dark);
}

@media (max-width: 980px) {
    .hero,
    .create-band,
    .contact,
    .formats { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .example-grid,
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .topbar,
    .footer {
        align-items: flex-start;
        flex-direction: column;
    }
    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        overflow-x: auto;
    }
    .hero { padding-top: 44px; }
    h1 { font-size: 3rem; }
    .example-grid,
    .steps { grid-template-columns: 1fr; }
    .section { padding-block: 52px; }
}
