:root {
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-border: #2a2a2a;
    --color-text: #fafafa;
    --color-text-muted: #888;
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.logo-icon {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

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

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 2rem;
    gap: 0;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.cta-options {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cta-option .brew-command,
.cta-option .btn {
    height: 48px;
    display: flex;
    align-items: center;
}

.cta-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-or {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

.brew-command {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    gap: 1rem;
}

.brew-command code {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-primary);
}

.copy-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--color-primary-hover);
}

.brew-command {
    position: relative;
}

.copy-tooltip {
    position: absolute;
    top: -2rem;
    right: 0;
    background: #22c55e;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    animation: fadeInOut 1.5s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(4px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-4px); }
}

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border);
}

.requirements {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Demo in Hero */
.hero .demo-container {
    width: 100%;
    max-width: 640px;
    margin-top: 2rem;
}

.demo-placeholder {
    aspect-ratio: 16 / 9;
    background: var(--color-surface);
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.play-icon {
    font-size: 2.5rem;
    color: var(--color-text-muted);
}

.demo-placeholder p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.features h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

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

.feature {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.2s;
}

.feature:hover {
    border-color: var(--color-primary);
}

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

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--color-text-muted);
}

/* Download Section */
.download {
    padding: 6rem 0;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.download-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0 auto 2rem;
}

.download-or {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.download-option {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.download-option h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

.download-option .brew-command {
    justify-content: center;
    white-space: nowrap;
}

.download-option .brew-command code {
    font-size: 0.875rem;
}

.signed-note {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem;
    text-align: center;
    color: var(--color-text-muted);
}

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

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    main {
        padding: 0 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
