/* Consolidated styles for docs/index.html */

/* === Base styles (moved from inline <style>) === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #c8a84a;
    --gold-hot: #e6c76a;
    --brown-dark: #1c1a18;
    --brown-mid: #2a2620;
    --brown-light: #3d3832;
    --text-primary: #e8e6e3;
    --text-dim: #a8a6a3;
    --green-live: #7fff7f;
    --text-hero: clamp(4rem, 9vw, 8rem);
    --text-h2: clamp(1.8rem, 3.5vw, 2.8rem);
    --text-body: 1.0625rem;
    --text-small: 0.875rem;
}

body {
    font-family:
        "DM Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: var(--text-body);
    line-height: 1.75;
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-mid) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(
        180deg,
        rgba(200, 168, 74, 0.1) 0%,
        transparent 100%
    );
}

.header-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 4px 16px rgba(200, 168, 74, 0.3));
}

.header-icon img {
    width: 100%;
    height: 100%;
}

.logo {
    font-size: var(--text-hero);
    font-family: "Cinzel", serif;
    font-weight: 500;
    letter-spacing: 0.18em;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hot) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.5rem;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    color: var(--text-dim);
    margin-bottom: 30px;
}

.hero {
    background: var(--brown-light);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    border: 2px solid rgba(200, 168, 74, 0.2);
    position: relative;
    overflow: hidden;
}

.hero h2 {
    color: var(--gold);
    font-size: var(--text-h2);
    font-family: "Cinzel", serif;
    font-weight: 500;
    margin-bottom: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature-card {
    background: var(--brown-light);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(200, 168, 74, 0.15);
    transition:
        transform 0.2s,
        border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.feature-card h3 {
    color: var(--gold);
    font-family: "Cinzel", serif;
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.downloads {
    margin: 60px 0;
}

.downloads h2 {
    text-align: center;
    font-size: var(--text-h2);
    font-family: "Cinzel", serif;
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--gold);
}

.download-grid {
    display: flex;
    justify-content: center;
    margin: 0 auto 40px;
    max-width: 760px;
}

.download-link {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 34px 16px;
    text-align: center;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.download-link + .download-link {
    border-left: 1px solid rgba(200, 168, 74, 0.35);
}

.download-link::after {
    content: "";
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.download-link:hover::after,
.download-link:focus-visible::after {
    transform: scaleX(1);
}

.download-platform {
    display: block;
    color: var(--text-primary);
    font-family: "Cinzel", serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 6px;
}

.download-detail {
    display: block;
    font-family: "DM Sans", sans-serif;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.45;
}

.download-btn {
    display: inline-block;
    font-family: "Cinzel", serif;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    padding: 12px 36px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: none;
    transition: color 0.3s ease;
}

.download-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hot) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.download-btn:hover {
    color: var(--brown-dark);
}

.download-btn:hover::before {
    transform: scaleX(1);
}

.download-caption {
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    color: rgba(200, 154, 42, 0.55);
    margin-top: 8px;
    text-align: center;
}

.requirements {
    background: var(--brown-mid);
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    border-left: 4px solid var(--gold);
}

.requirements h3 {
    color: var(--gold);
    font-family: "Cinzel", serif;
    font-weight: 500;
    margin-bottom: 15px;
}

.requirements ul {
    list-style: none;
    padding-left: 0;
}

.requirements li {
    padding: 8px 0;
    color: var(--text-dim);
    padding-left: 24px;
    position: relative;
}

.requirements li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--gold);
}

.installation {
    margin: 60px 0;
}

.installation h2 {
    color: var(--gold);
    font-family: "Cinzel", serif;
    font-weight: 500;
    font-size: var(--text-h2);
    margin-bottom: 30px;
}

.install-steps {
    background: var(--brown-light);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.install-steps h4 {
    color: var(--gold-hot);
    font-family: "Cinzel", serif;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.install-steps ol {
    padding-left: 20px;
}

.install-steps li {
    margin: 10px 0;
    color: var(--text-dim);
}

.install-steps code {
    background: var(--brown-dark);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--green-live);
    font-family: "Courier New", monospace;
}

footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(200, 168, 74, 0.2);
}

footer p {
    color: var(--text-dim);
    margin: 10px 0;
}

footer a {
    color: var(--gold);
    text-decoration: none;
}

footer a:hover {
    color: var(--gold-hot);
    text-decoration: underline;
}

.badge {
    display: inline-block;
    background: rgba(127, 255, 127, 0.1);
    color: var(--green-live);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .hero {
        padding: 30px 20px;
    }

    .download-grid {
        display: block;
        max-width: 320px;
    }

    .download-link {
        display: block;
        padding: 18px 0 16px;
    }

    .download-link + .download-link {
        border-left: 0;
        border-top: 1px solid rgba(200, 168, 74, 0.35);
    }

    .download-link::after {
        left: 0;
        right: 0;
    }
}

/* === Sticky navbar (moved from inline <style>) === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 300;
    background: rgba(28, 26, 24, 0.95);
    transition:
        background 0.3s ease,
        backdrop-filter 0.3s ease;
    backdrop-filter: none;
}

nav.scrolled {
    background: rgba(28, 26, 24, 0.95);
    backdrop-filter: blur(12px);
}

.nav-logo {
    font-size: 24px;
    font-family: "Cinzel", serif;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--gold);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-links a {
    font-size: 13px;
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--gold);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: rgba(28, 26, 24, 0.98);

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;

        padding: 30px 0;

        transform: translateY(-200%);
        opacity: 0;

        transition: all 0.35s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
}

.product-hunt-wrapper {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.product-hunt-btn {
    position: relative;
    display: inline-flex;
    padding: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-hunt-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: radial-gradient(
        circle at left center,
        rgba(212, 175, 55, 0.18),
        transparent 45%
    );
    pointer-events: none;
}

.product-hunt-btn img {
    border-radius: 6px;
    display: block;
    filter: sepia(0.25) brightness(0.9) contrast(1.05);
}

.product-hunt-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.12);
}

/* === Feature section styles (merged from feature_style.css) === */
.features-section {
    width: 100%;
    min-height: 100vh;
    max-width: 1200px;

    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 64px;
    padding-top: 48px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* HEADER */
.section-header h1 {
    text-align: center;
    font-size: 3rem;
    color: var(--gold);

    font-family: "Cinzel", serif;
}

/* GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding-top: 24px;
}

/* CARD */
.features-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(200, 162, 77, 0.2);
    border-radius: 24px;

    padding: 24px;
    transition: 0.35s ease;
    min-height: 240px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.features-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(200, 162, 77, 0.12);
}

.features-card:hover .icon-box {
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(200, 162, 77, 0.12);
}

/* ICON */
.icon-box {
    width: 62px;
    height: 62px;

    margin-bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gold);

    border: 2px solid rgba(200, 162, 77, 0.2);
    border-radius: 16px;
    background: rgba(200, 162, 77, 0.08);
    transition: all 0.3sec ease;
}

.icon-box span {
    font-size: 2rem;
}

/* TEXT */
.features-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;

    color: var(--gold);
    font-family: "Cinzel", serif;
}

.features-card p {
    font-size: 0.92rem;
    line-height: 1.6;

    color: rgba(255, 255, 255, 0.8);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .section-header h1 {
        font-size: 2.5rem;
    }

    .icon-box {
        width: 62px;
        height: 62px;

        border-radius: 16px;
    }

    .icon-box span {
        font-size: 1.7rem;
    }

    .features-section {
        flex-direction: column;
    }

    .feature-card h3 {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .section-header h1 {
        font-size: 1.8rem;
        text-align: left;
    }

    .feature-card {
        flex-direction: column;
        padding: 20px;
        min-height: auto;
    }

    .icon-box {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .icon-box span {
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 0.92rem;
    }

    .feature-card p {
        font-size: 0.62rem;
    }
}

/* === Guitar string visualization (moved from inline <style>) === */
.guitar-strings-container {
    position: relative;
    width: 100%;
    height: 150px;
    z-index: 1;
    pointer-events: none;
    margin-top: 20px;
}

.string {
    position: absolute;
    left: 0;
    width: 100%;
    background: rgba(200, 168, 74, 0.4);
    box-shadow: 0 0 20px rgba(200, 168, 74, 0.3);
}

.string-E {
    top: 10%;
    height: 8px;
    animation: vibrate-E 1.55s ease-in-out infinite;
}

.string-A {
    top: 25%;
    height: 6px;
    animation: vibrate-a 0.93s ease-in-out infinite;
    animation-delay: 0.1s;
}

.string-D {
    top: 40%;
    height: 5px;
    animation: vibrate-d 0.7s ease-in-out infinite;
    animation-delay: 0.2s;
}

.string-G {
    top: 55%;
    height: 4px;
    animation: vibrate-g 0.53s ease-in-out infinite;
    animation-delay: 0.3s;
}

.string-B {
    top: 70%;
    height: 3px;
    animation: vibrate-b 0.42s ease-in-out infinite;
    animation-delay: 0.4s;
}

.string-e {
    top: 85%;
    height: 2px;
    animation: vibrate-e 0.32s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes vibrate-e {
    0%,
    100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.08);
    }
}

@keyframes vibrate-b {
    0%,
    100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.12);
    }
}

@keyframes vibrate-g {
    0%,
    100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.15);
    }
}

@keyframes vibrate-d {
    0%,
    100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.18);
    }
}

@keyframes vibrate-a {
    0%,
    100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.2);
    }
}

@keyframes vibrate-E {
    0%,
    100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .string {
        animation: none;
    }
}
