:root {
    --slate: #1E2226;
    --bone: #EDE6DA;
    --rust: #C4552D;
    --ember: #E07A4F;
    --graphite: #5B636B;
    --bg-light: #FAFAF8;
    --bg-dark: #0F1113;
    --border: #E5E0D8;

    --transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: white;
    color: var(--slate);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--slate);
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    display: none;
}

@media (min-width: 768px) {
    .logo-text {
        display: inline;
    }
}

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

.nav-link {
    font-size: 0.875rem;
    color: var(--graphite);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rust);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav {
        gap: 1rem;
        font-size: 0.75rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    overflow: hidden;
    background: linear-gradient(135deg, #FAFAF8 0%, #ffffff 50%, #F5F2ED 100%);
}

.hero-canvas-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#keyboard-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(30, 34, 38, 0.4);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 3;
    animation: bounce 2s infinite;
    font-weight: 500;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(30,34,38,0.02) 100%);
    pointer-events: none;
    backdrop-filter: blur(0.5px);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--slate);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(196, 85, 45, 0.1);
}

.hero-tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--graphite);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    font-style: italic;
}

.cta-button {
    padding: 0.875rem 2rem;
    background: var(--slate);
    color: white;
    border: 2px solid var(--slate);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--rust);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    border-color: var(--rust);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 85, 45, 0.25);
}

.cta-button:active {
    transform: translateY(0);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Story Section */
.story {
    padding: 6rem 0;
    background: white;
    border-top: 1px solid var(--border);
}

.story-content {
    max-width: 700px;
}

.story-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--slate);
}

.story-content p {
    font-size: 1.125rem;
    color: var(--graphite);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-light);
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--slate);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--rust), var(--ember));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--rust);
    transition: height 0.4s ease;
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card:hover {
    border-color: var(--rust);
    box-shadow: 0 12px 32px rgba(196, 85, 45, 0.12);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--slate);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--graphite);
    line-height: 1.6;
}

/* Specs Section */
.specs {
    padding: 6rem 0;
    background: white;
    border-top: 1px solid var(--border);
}

.specs h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--slate);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--rust), var(--ember));
    border-radius: 2px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.spec-group {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--rust);
}

.spec-group h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--slate);
    font-weight: 600;
}

.spec-group dl {
    display: grid;
    gap: 1rem;
}

.spec-group dt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--graphite);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.spec-group dd {
    font-size: 0.95rem;
    color: var(--slate);
    margin-bottom: 0.5rem;
}

/* Demo Section */
.demo {
    padding: 6rem 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.demo h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--slate);
}

.demo-subtitle {
    font-size: 1.125rem;
    color: var(--graphite);
    margin-bottom: 3rem;
}

.demo-container {
    max-width: 800px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .demo-container {
        grid-template-columns: 1fr 1fr;
    }
}

.typing-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-input {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    background: white;
    color: var(--slate);
    transition: var(--transition);
}

.demo-input:focus {
    outline: none;
    border-color: var(--rust);
    box-shadow: 0 0 0 3px rgba(196, 85, 45, 0.1);
}

.sound-viz {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    height: 80px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, var(--rust) 0%, var(--ember) 100%);
    border-radius: 4px;
    min-height: 4px;
    transition: height 0.05s ease;
}

.sound-info {
    display: flex;
    align-items: center;
}

.sound-info p {
    font-size: 0.95rem;
    color: var(--graphite);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: white;
    border-top: 1px solid var(--border);
}

.pricing h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--slate);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--rust), var(--ember));
    border-radius: 2px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    padding: 2.5rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: white;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--rust);
    box-shadow: 0 16px 48px rgba(30, 34, 38, 0.1);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border: 3px solid var(--rust);
    transform: scale(1.03);
    background: linear-gradient(135deg, #ffffff 0%, #FAFAF8 100%);
    position: relative;
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--rust), var(--ember));
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card.featured:hover::before {
    opacity: 0.1;
}

.pricing-card.featured:hover {
    box-shadow: 0 24px 64px rgba(196, 85, 45, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 2rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--graphite);
}

.pricing-badge.accent {
    background: var(--rust);
    color: white;
    border-color: var(--rust);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--slate);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rust);
    margin: 1rem 0 0.5rem;
}

.price-desc {
    font-size: 0.95rem;
    color: var(--graphite);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--graphite);
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .cta-button {
    width: 100%;
    margin-top: 1.5rem;
}

.shipping-info {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--rust);
}

.shipping-info p {
    font-size: 0.95rem;
    color: var(--graphite);
    margin-bottom: 1rem;
}

.shipping-info strong {
    color: var(--slate);
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.faq h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--slate);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--rust), var(--ember));
    border-radius: 2px;
}

.faq-grid {
    max-width: 900px;
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    text-align: left;
}

.faq-question:hover {
    background: var(--bg-light);
    color: var(--rust);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--graphite);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--slate);
    color: var(--bone);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--graphite);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.footer-section p {
    font-size: 0.9rem;
    color: rgba(237, 230, 218, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(237, 230, 218, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--rust);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(237, 230, 218, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(237, 230, 218, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .story-content h2,
    .features h2,
    .specs h2,
    .demo h2,
    .pricing h2,
    .faq h2 {
        font-size: 1.75rem;
    }

    .story {
        padding: 4rem 0;
    }

    .features {
        padding: 4rem 0;
    }

    .specs {
        padding: 4rem 0;
    }

    .demo {
        padding: 4rem 0;
    }

    .pricing {
        padding: 4rem 0;
    }

    .faq {
        padding: 4rem 0;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .hero-scroll-hint {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
    }

    .nav {
        gap: 0.75rem;
        font-size: 0.7rem;
    }

    .container {
        padding: 0 1rem;
    }

    .story-content h2,
    .features h2,
    .specs h2,
    .demo h2,
    .pricing h2,
    .faq h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .price {
        font-size: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}
