/* ===== CSS Variables ===== */
:root {
    --color-bg: #0d0d0f;
    --color-bg-warm: #131315;
    --color-surface: #1a1a1e;
    --color-surface-light: #242428;
    --color-text: #f5f5f7;
    --color-text-muted: #a1a1a6;
    --color-accent: #7ec8e3;
    --color-accent-glow: rgba(126, 200, 227, 0.3);
    --color-keys-white: #fefefe;
    --color-keys-black: #1a1a1e;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ===== Grain Overlay ===== */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

p {
    font-weight: 300;
}

/* ===== Header & Nav ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    background: linear-gradient(to bottom, var(--color-bg) 0%, transparent 100%);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(244, 162, 97, 0.08) 0%, transparent 50%),
        var(--color-bg);
}

.hero-content {
    text-align: center;
    max-width: 700px;
}

.highlight {
    color: var(--color-accent);
    display: block;
}

.tagline {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--color-text-muted);
    margin: 1.5rem 0 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CTA Button ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-text);
    color: var(--color-bg);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(244, 162, 97, 0.2);
}

.apple-icon {
    width: 20px;
    height: 20px;
}

/* ===== Realistic Piano Snippet ===== */
.hero-visual {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.piano-snippet {
    display: flex;
    position: relative;
    opacity: 0.25;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.piano-key {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.5rem;
}

.piano-key.white {
    width: 36px;
    height: 120px;
    background: linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 100%);
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    z-index: 1;
}

.piano-key.black {
    width: 24px;
    height: 75px;
    background: linear-gradient(to bottom, #333 0%, #111 100%);
    border-radius: 0 0 3px 3px;
    margin-left: -12px;
    margin-right: -12px;
    z-index: 2;
}

.piano-key.highlighted {
    background: linear-gradient(to bottom, var(--color-accent) 0%, #5ba3c4 100%);
}

.piano-key.highlighted span {
    color: var(--color-bg);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== Workflow Section ===== */
.workflow {
    padding: 6rem 2rem;
    background: var(--color-bg-warm);
    text-align: center;
}

.section-intro {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 4rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    position: relative;
    padding: 2rem;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    z-index: 2;
}

.step-image-container {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 3rem 0 1.5rem;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.step-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.step h3 {
    color: var(--color-accent);
}

.step p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ===== Features Section ===== */
.features {
    padding: 6rem 2rem;
    text-align: center;
}

.features h2 {
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    border: 1px solid var(--color-surface-light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(244, 162, 97, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    display: block;
}

.feature-icon.tablet-preview {
    font-size: 1rem;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--color-surface-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feature-icon.tablet-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-card h3 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

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

/* ===== CTA Section ===== */
.cta-section {
    padding: 6rem 2rem;
    text-align: center;
    background: 
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(244, 162, 97, 0.1) 0%, transparent 50%),
        var(--color-bg-warm);
}

.cta-section p {
    color: var(--color-text-muted);
    margin: 1rem 0 2rem;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--color-bg);
}

.contact-section p {
    color: var(--color-text-muted);
    margin: 1rem 0 2rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(126, 200, 227, 0.3);
}

/* ===== Footer ===== */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--color-surface-light);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.copyright {
    width: 100%;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ===== Privacy Policy Page Styles ===== */
.privacy-page {
    padding: 8rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.privacy-page .last-updated {
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.privacy-page h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.privacy-page p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.privacy-page a {
    color: var(--color-accent);
}

.section-divider {
    border: none;
    border-top: 1px solid var(--color-surface-light);
    margin: 4rem 0;
}

.privacy-page h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    color: var(--color-text);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
