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

:root {
    --bg: #111;
    --bg-card: #1a1a1a;
    --bg-input: #222;
    --text: #eee;
    --text-muted: #999;
    --accent: #6c9fff;
    --accent-hover: #8fb8ff;
    --border: #333;
    --radius: 6px;
    --max-width: 960px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--accent);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0.5rem;
}

/* ===== Header ===== */
header[role="banner"] {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.15em;
}

.site-logo:hover,
.site-logo:focus {
    color: var(--accent);
}

/* ===== Navigation ===== */
.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.nav-list a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--text);
}

.nav-list a.active,
.nav-list a[aria-current="page"] {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ===== Focus Styles ===== */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== Main Content ===== */
main {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
}

a:hover,
a:focus {
    color: var(--accent-hover);
}

/* ===== Hero Section (Home) ===== */
.hero {
    text-align: center;
    padding: 2rem 0 1rem;
}

.hero h1 {
    font-size: 2.4rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.counter {
    font-size: 1.3rem;
    color: var(--accent);
    margin: 1.5rem 0;
}

.counter strong {
    font-size: 1.5rem;
}

/* ===== Album Card (Music page) ===== */
.album-section {
    margin-bottom: 3rem;
}

.album-card {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.album-card:last-child {
    margin-bottom: 0;
}

.album-cover {
    max-width: 260px;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.album-details {
    flex: 1;
    min-width: 240px;
}

.album-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.album-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1rem 0;
}

.album-agreement {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.vcaddtocart {
    margin: 1rem 0;
}

.vcbuybutton {
    font-family: inherit;
}

.preview-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.preview-section audio {
    width: 100%;
    max-width: 600px;
    margin-top: 0.5rem;
}

/* ===== Bandcamp Embed ===== */
.embed-container {
    margin: 2rem auto;
    max-width: 700px;
}

.embed-container iframe {
    width: 100%;
    border: 0;
}

/* ===== CTA Row ===== */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-height: 44px;
    transition: background 0.2s;
}

.btn:hover,
.btn:focus {
    background: var(--accent-hover);
    color: #000;
}

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

.btn-outline:hover,
.btn-outline:focus {
    background: var(--accent);
    color: #000;
}

/* ===== License Tiers ===== */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.tier-card h3 {
    margin-top: 0;
    color: var(--accent);
}

.tier-card .price {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.75rem 0;
}

/* ===== Sound Pack Placeholders ===== */
.pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.sound-pack-placeholder {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    background: var(--bg-card);
}

.sound-pack-placeholder h3 {
    margin-top: 0;
    color: var(--text-muted);
}

.sound-pack-placeholder p {
    color: var(--text-muted);
    font-style: italic;
}

/* ===== Process Steps ===== */
.steps {
    counter-reset: step;
    list-style: none;
    margin: 1.5rem 0;
}

.steps li {
    counter-increment: step;
    padding: 0.75rem 0 0.75rem 3rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 2rem;
    height: 2rem;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== Forms ===== */
form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    min-height: 44px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.form-message.success {
    background: #1a3a1a;
    border: 1px solid #2d5a2d;
    color: #7dc87d;
}

.form-message.error {
    background: #3a1a1a;
    border: 1px solid #5a2d2d;
    color: #c87d7d;
}

/* ===== Footer ===== */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .tier-grid {
        grid-template-columns: 1fr;
    }
}
