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

:root {
    --bg: #f5f2ed;
    --bg-dark: #1a1a1a;
    --text: #1a1a1a;
    --text-light: #555;
    --text-muted: #777;
    --accent: #2a2a2a;
    --border: #d4d0c8;
    --border-dark: #1a1a1a;
    --card-bg: #fff;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', 'Courier New', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}
.btn:focus-visible,
.nav-btn:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 3rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    border-radius: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-btn {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border-dark);
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--text);
    color: var(--bg);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
    font-size: clamp(5rem, 14vw, 12rem);
}

.hero-title-accent {
    font-style: italic;
    font-weight: 400;
}

.hero-guitar {
    margin: 3rem auto;
    max-width: 600px;
}

.guitar-strings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 1.5rem 0;
    position: relative;
}

.string {
    height: 1px;
    width: 100%;
    position: relative;
    animation: string-appear 0.8s ease-out forwards;
    opacity: 0;
}

.string:nth-child(1) { animation-delay: 0.1s; background: linear-gradient(90deg, transparent, #888 10%, #888 90%, transparent); height: 1px; }
.string:nth-child(2) { animation-delay: 0.2s; background: linear-gradient(90deg, transparent, #999 10%, #999 90%, transparent); height: 1px; }
.string:nth-child(3) { animation-delay: 0.3s; background: linear-gradient(90deg, transparent, #aaa 10%, #aaa 90%, transparent); height: 1.5px; }
.string:nth-child(4) { animation-delay: 0.4s; background: linear-gradient(90deg, transparent, #bbb 10%, #bbb 90%, transparent); height: 2px; }
.string:nth-child(5) { animation-delay: 0.5s; background: linear-gradient(90deg, transparent, #aaa 10%, #aaa 90%, transparent); height: 2.5px; }
.string:nth-child(6) { animation-delay: 0.6s; background: linear-gradient(90deg, transparent, #888 10%, #888 90%, transparent); height: 3px; }

.string::before {
    content: attr(data-note);
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes string-appear {
    from { opacity: 0; transform: scaleX(0); }
    to { opacity: 1; transform: scaleX(1); }
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid var(--border-dark);
    cursor: pointer;
    transition: all 0.3s;
    background: none;
    color: var(--text);
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    background: #333;
}

.btn-outline:hover {
    background: var(--text);
    color: var(--bg);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.section-divider {
    display: flex;
    align-items: center;
    padding: 0 3rem;
    margin: 1rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-dark);
}

.features {
    padding: 4rem 3rem;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    flex: 0 1 calc((100% - 4rem) / 3);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--border-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.feature-card h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.footer {
    background: var(--bg-dark);
    color: #ccc;
    padding: 4rem 3rem 2rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 0.75rem;
}

.footer p {
    font-size: 0.85rem;
    color: #888;
}

.footer-col h4 {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-newsletter h4 {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    font-family: var(--sans);
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border: 1px solid #444;
    border-right: none;
    background: transparent;
    color: #fff;
    outline: none;
}

.newsletter-form .btn {
    border-color: #444;
    color: #ccc;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.newsletter-form .btn:hover {
    background: #fff;
    color: var(--bg-dark);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 1024px) {
    .feature-card {
        flex: 0 1 calc((100% - 2rem) / 2);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    .nav-logo-img {
        height: 28px;
    }
    .nav-btn {
        font-size: 0.78rem;
        padding: 0.4rem 0.8rem;
    }
    .hero {
        min-height: auto;
        padding: 6rem 1.25rem 2.5rem;
    }
    .hero-title {
        margin-bottom: 1.5rem;
    }
    .hero-guitar {
        margin: 1.5rem auto;
    }
    .hero-cta {
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    .hero-cta .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    .string::before {
        left: -1.5rem;
        font-size: 0.65rem;
    }
    .features {
        padding: 2.5rem 1.25rem;
    }
    .features-grid {
        gap: 1rem;
    }
    .feature-card {
        flex: 0 1 100%;
        padding: 1.5rem 1.25rem;
    }
    .feature-card:hover {
        transform: none;
    }
    .section-divider {
        padding: 0 1.25rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer {
        padding: 2.5rem 1.25rem 1.5rem;
    }
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    .newsletter-form input {
        border-right: 1px solid #444;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0.75rem;
    }
    .nav-logo-img {
        height: 24px;
    }
    .nav-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
    }
    .hero {
        padding: 5rem 1rem 2rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    .features {
        padding: 2rem 1rem;
    }
    .feature-card {
        padding: 1.25rem 1rem;
    }
    .feature-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 1rem;
    }
    .feature-card h3 {
        font-size: 1.1rem;
    }
    .footer {
        padding: 2rem 1rem 1rem;
    }
}

#splash {
    position: fixed;
    inset: 0;
    height: 100dvh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f2ed;
    color: #1a1a1a;
    cursor: default;
    transition: opacity 450ms ease-out;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: none;
    padding: 2rem 1.25rem;
}

html.splash-locked,
html.splash-locked body {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
}

#splash.splash-armed {
    cursor: grab;
}

#splash.splash-armed:active {
    cursor: grabbing;
}

#splash.splash-out {
    opacity: 0;
    pointer-events: none;
}

#splash.splash-skip {
    display: none;
}

html.no-splash #splash {
    display: none;
}

.splash-info {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(26, 26, 26, 0.45);
    background: transparent;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    padding: 0;
    opacity: 0;
    animation: splash-fade-in 700ms ease-out 1.6s forwards;
    transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
    z-index: 2;
}
.splash-info:hover,
.splash-info:focus-visible {
    background: rgba(26, 26, 26, 0.08);
    border-color: #1a1a1a;
    transform: scale(1.05);
    outline: none;
}
.splash-info-glyph {
    font-family: 'Courier New', Courier, monospace;
    font-style: normal;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    pointer-events: none;
}
.splash-info-tip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    white-space: normal;
    max-width: min(280px, calc(100vw - 2rem));
    width: max-content;
    background: #1a1a1a;
    border: 1px solid rgba(26, 26, 26, 0.6);
    color: #f5f2ed;
    font-family: 'Courier New', Courier, monospace;
    font-style: normal;
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0.55rem 0.8rem;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 180ms ease-out, transform 180ms ease-out;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.splash-info-tip kbd {
    display: inline-block;
    padding: 0.05rem 0.35rem;
    margin: 0 0.1rem;
    font-family: var(--mono, ui-monospace, monospace);
    font-style: normal;
    font-size: 0.78rem;
    color: #f5f2ed;
    background: rgba(245, 242, 237, 0.10);
    border: 1px solid rgba(245, 242, 237, 0.30);
    border-radius: 3px;
}
.splash-info:hover .splash-info-tip,
.splash-info:focus-visible .splash-info-tip {
    opacity: 1;
    transform: translateY(0);
}

.splash-skip-btn {
    position: absolute;
    top: 1.25rem;
    right: calc(1.25rem + 32px + 0.6rem);
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(26, 26, 26, 0.45);
    background: transparent;
    color: #1a1a1a;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    animation: splash-fade-in 700ms ease-out 1.6s forwards;
    transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
    z-index: 2;
}
.splash-skip-btn:hover,
.splash-skip-btn:focus-visible {
    background: rgba(26, 26, 26, 0.08);
    border-color: #1a1a1a;
    transform: scale(1.03);
    outline: none;
}

@media (max-width: 480px) {
    .splash-skip-btn { font-size: 1rem; }
}

.splash-stage {
    position: relative;
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    user-select: none;
    overflow: visible;
}

.splash-guitar-wrap {

    --gw: var(--guitar-width, min(90vw, 580px));
    position: relative;
    width: var(--gw);
    height: calc(var(--gw) * 200 / 422);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.splash-guitar {

    height: var(--guitar-width, min(90vw, 580px));
    width: auto;
    display: block;
    overflow: visible;
    transform: rotate(-90deg);
    transform-origin: center center;
    position: absolute;
}

.splash-stroke,
.splash-string-line,
.splash-soundhole {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: splash-stroke-in 800ms cubic-bezier(0.65, 0, 0.35, 1) var(--delay, 0s) forwards;
}

.splash-soundhole {
    animation-duration: 900ms;
}

.splash-soundhole-hud {
    opacity: 0;
    animation: splash-fade-in 900ms ease-out var(--delay, 1.25s) forwards;
}
.splash-soundhole-hud .hud-ring {
    stroke-linecap: round;
}

.splash-bridge {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    transform: scaleX(0);
    animation: splash-bridge-in 500ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--delay, 1.5s) forwards;
}

.splash-wordmark { display: none; }

.splash-string-line { fill: none; }

.splash-prompt {
    position: relative;
    margin: 0;
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    letter-spacing: 0.04em;
    line-height: 1;
    color: #1a1a1a;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 450ms ease-out;
}

#splash.splash-armed .splash-prompt {
    opacity: 1;
    animation: splash-prompt-pulse 2.2s ease-in-out infinite;
}

#splash.splash-strummed .splash-prompt {

}

#splash .splash-quote {
    transition: opacity 450ms ease-out;
}
#splash.splash-strummed .splash-quote {

}

@keyframes splash-prompt-pulse {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1; }
}

.splash-quote {

    position: relative;
    margin: 0;
    max-width: min(640px, 90vw);
    text-align: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.45;
    color: #4a4a4a;
    opacity: 0;
    animation: splash-fade-in 700ms ease-out 1.6s forwards;
}

.splash-quote-text {
    display: inline;
}

.splash-quote-brand {
    font-weight: 900;
    font-style: normal;
    color: #1a1a1a;
    letter-spacing: 0.06em;
}

.splash-quote-author {
    display: inline;
    margin-left: 0.4rem;
    color: #6b6b6b;
    font-style: normal;
    white-space: nowrap;
}

.splash-quote-author em {
    font-style: italic;
}

@keyframes splash-stroke-in {
    to { stroke-dashoffset: 0; }
}

@keyframes splash-bridge-in {
    to { opacity: 1; transform: scaleX(1); }
}

@keyframes splash-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes splash-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (max-width: 720px) {
    .splash-quote {
        max-width: 90vw;
        font-size: 0.85rem;
    }
    .splash-prompt {
        font-size: clamp(1.4rem, 6vw, 2.25rem);
    }
}

@media (max-width: 480px) {
    .splash-quote {
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #splash .splash-stroke,
    #splash .splash-string-line,
    #splash .splash-soundhole,
    #splash .splash-soundhole-hud,
    #splash .splash-soundhole-hud .hud-ring,
    #splash .splash-bridge,
    #splash .splash-quote {
        animation: none;
        opacity: 1;
        stroke-dashoffset: 0;
    }
    #splash .splash-bridge { transform: scaleX(1); }
}
