/* Luna Nine Landing Page */

:root {
    --bg: #0a0a0f;
    --text: #e8e8f0;
    --text-dim: #a8a8b8;
    --accent: #d97706;
    --accent-hover: #f59e0b;
    --surface: #1a1a24;
    --border: #2a2a38;
    --code-bg: #14141f;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 4rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 600;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8),
                 0 0 10px rgba(0, 0, 0, 0.9),
                 2px 2px 4px rgba(0, 0, 0, 1);
}

/* Hero */
.hero {
    margin-bottom: 4rem;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.three-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.pillar {
    background:
        radial-gradient(circle at center, rgba(26, 26, 36, 1) 0%, rgba(26, 26, 36, 0.95) 60%, rgba(26, 26, 36, 0.85) 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(42, 42, 56, 0.5);
}

.pillar h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

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

/* Sections */
section {
    margin-bottom: 4rem;
    background:
        radial-gradient(circle at center, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.85) 60%, rgba(10, 10, 15, 0.7) 100%);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(42, 42, 56, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
}

/* Features */
.feature {
    background:
        radial-gradient(circle at center, rgba(26, 26, 36, 1) 0%, rgba(26, 26, 36, 0.95) 60%, rgba(26, 26, 36, 0.85) 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(42, 42, 56, 0.5);
    margin-bottom: 1.5rem;
}

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

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

.feature li {
    padding: 0.5rem 0;
    color: var(--text-dim);
    padding-left: 1.5rem;
    position: relative;
}

.feature li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Code Example - Neovim Style */
.code-example {
    background: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.code-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
    background: #1a1a1a;
    padding: 0.5rem 1rem 0 1rem;
    border-radius: 8px 8px 0 0;
}

.code-tab {
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.code-tab:hover {
    color: #9ca3af;
}

.code-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.code-editor {
    position: relative;
    background: #1a1a1a;
    border-radius: 0 0 8px 8px;
}

.code-content {
    display: none;
}

.code-content.active {
    display: block;
}

.code-example h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.code-example > p {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-family: 'Space Grotesk', sans-serif;
}

pre {
    background: #1a1a1a;
    padding: 0;
    border-radius: 0;
    overflow-x: auto;
    border: none;
    margin: 0;
    display: flex;
}

.line-numbers {
    background: #0f0f0f;
    color: #4a4a4a;
    padding: 1.5rem 1rem;
    text-align: right;
    user-select: none;
    border-right: 1px solid #2a2a2a;
    font-family: 'Iosevka', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-lines {
    flex: 1;
    padding: 1.5rem;
    font-family: 'Iosevka', 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #d4d4e8;
    line-height: 1.6;
}

code {
    font-family: 'Iosevka', 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #d4d4e8;
    line-height: 1.6;
}

/* Syntax Highlighting */
code .keyword {
    color: #c792ea;
    font-weight: 500;
}

code .string {
    color: #c3e88d;
}

code .function {
    color: #82aaff;
}

code .property {
    color: #f07178;
}

code .boolean {
    color: #ff5370;
}

code .comment {
    color: #697098;
    font-style: italic;
}

code .number {
    color: #ff5370;
}

/* Inline code */
:not(pre) > code {
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.875rem;
}

/* Terminal Demo Section */
.terminal-demo-section,
.desktop-demo-section {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    margin: 3rem auto;
    max-width: 1100px;
}

/* Terminal needs full width breakout */
.terminal-demo-section {
    max-width: none;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

@media (min-width: 1200px) {
    .terminal-demo-section,
    .desktop-demo-section {
        padding: 3rem 2rem;
    }
}

.terminal-demo-section h2,
.desktop-demo-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.terminal-demo-section > p,
.desktop-demo-section > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-intro em {
    color: var(--accent);
    font-style: italic;
}

.demo-note {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 2rem;
    font-size: 0.95rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Waitlist Section */
.waitlist-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(10, 10, 15, 0.95) 100%);
    padding: 4rem 2rem;
}

.waitlist-intro {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-placeholder {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(26, 26, 36, 0.5);
    border-radius: 8px;
    border: 2px dashed var(--accent);
}

.waitlist-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.waitlist-input {
    flex: 1;
    min-width: 250px;
    padding: 0.875rem 1.25rem;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
}

.waitlist-input:focus {
    outline: none;
    border-color: var(--accent);
}

.waitlist-note {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Waitlist Links (GitHub + Ko-fi) */
.waitlist-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-coffee {
    background: rgba(217, 119, 6, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(217, 119, 6, 0.2);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-coffee:hover {
    background: rgba(217, 119, 6, 0.1);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* Status Phases */
.phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.phase {
    background:
        radial-gradient(circle at center, rgba(26, 26, 36, 1) 0%, rgba(26, 26, 36, 0.95) 60%, rgba(26, 26, 36, 0.85) 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(42, 42, 56, 0.5);
}

.phase.complete {
    border-color: #10b981;
}

.phase.complete h3 {
    color: #10b981;
}

.phase.current {
    border-color: var(--accent);
}

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

.phase.upcoming {
    border-color: var(--border);
}

.phase.upcoming h3 {
    color: var(--text-dim);
}

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

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.value {
    background:
        radial-gradient(circle at center, rgba(26, 26, 36, 1) 0%, rgba(26, 26, 36, 0.95) 60%, rgba(26, 26, 36, 0.85) 100%);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(42, 42, 56, 0.5);
    text-align: center;
    font-weight: 500;
    color: var(--accent);
}

/* CTA */
.cta {
    text-align: center;
    background: var(--surface);
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.cta h2 {
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

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

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

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.open-source {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-top: 1rem;
}

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

footer p {
    margin: 0.5rem 0;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .three-pillars {
        grid-template-columns: 1fr;
    }

    .phases {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    /* Hide complex mockups on mobile - they don't scale well */
    #desktop-mockup-container,
    #terminal-demo-container {
        display: none;
    }

    /* Show simplified mobile message */
    .desktop-demo-section .demo-note,
    .terminal-demo-section .demo-note {
        display: block;
        margin-top: 1rem;
        font-size: 0.95rem;
    }
}
