/* Voxtype Website Styles */

/* ==================== Variables ==================== */
:root {
    /* Colors */
    --color-bg: #0d1117;
    --color-bg-secondary: #161b22;
    --color-bg-tertiary: #21262d;
    --color-border: #30363d;
    --color-text: #e6edf3;
    --color-text-secondary: #8b949e;
    --color-text-muted: #6e7681;
    --color-primary: #58a6ff;
    --color-primary-hover: #79b8ff;
    --color-secondary: #238636;
    --color-secondary-hover: #2ea043;
    --color-accent: #f78166;
    --color-success: #3fb950;
    --color-warning: #d29922;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Monaco, 'Courier New', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;

    /* Container */
    --container-max: 1200px;
}

/* ==================== Reset ==================== */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

code, pre {
    font-family: var(--font-mono);
}

/* ==================== Utilities ==================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--space-2xl);
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

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

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

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

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.125rem;
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

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

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

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

.nav-github {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-github svg {
    width: 18px;
    height: 18px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-fast);
}

/* ==================== Hero ==================== */
.hero {
    padding: 8rem var(--space-lg) var(--space-3xl);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.badge {
    padding: var(--space-xs) var(--space-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

/* Terminal */
.hero-terminal {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    margin-left: auto;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.terminal-body {
    padding: var(--space-md);
    overflow-x: auto;
}

.terminal-body pre {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.terminal-body .prompt { color: var(--color-success); }
.terminal-body .info { color: var(--color-primary); }
.terminal-body .success { color: var(--color-success); }
.terminal-body .comment { color: var(--color-text-muted); }
.terminal-body .output { color: var(--color-accent); }

/* ==================== Features ==================== */
.features {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--color-bg-secondary);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.features .section-subtitle {
    text-align: center;
}

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

.feature-card {
    padding: var(--space-xl);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

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

/* ==================== Demo ==================== */
.demo {
    padding: var(--space-3xl) var(--space-lg);
}

.demo h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.demo .section-subtitle {
    text-align: center;
}

.demo-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.demo-step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-bg);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
}

.step-content h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.step-content p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.step-visual {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Key animation */
.key-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.key {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    animation: keyPulse 2s ease-in-out infinite;
}

.key-state {
    font-size: 0.75rem;
    color: var(--color-success);
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes keyPulse {
    0%, 100% { border-color: var(--color-border); }
    50% { border-color: var(--color-primary); box-shadow: 0 0 10px rgba(88, 166, 255, 0.3); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Waveform animation */
.waveform {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
}

.wave-bar {
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.2s; }
.wave-bar:nth-child(6) { animation-delay: 0.1s; }
.wave-bar:nth-child(7) { animation-delay: 0s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* Processing animation */
.processing-animation {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Typing animation */
.typing-animation {
    font-family: var(--font-mono);
    font-size: 1rem;
}

.typed-text::after {
    content: 'Hello world';
    animation: typing 3s steps(11) infinite;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    max-width: 0;
}

@keyframes typing {
    0%, 10% { max-width: 0; }
    50%, 100% { max-width: 11ch; }
}

.cursor {
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==================== Models ==================== */
.models {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--color-bg-secondary);
}

.models h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.models .section-subtitle {
    text-align: center;
}

.model-table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--space-lg);
}

.model-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.model-table th,
.model-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.model-table th {
    background: var(--color-bg-tertiary);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.model-table tr:last-child td {
    border-bottom: none;
}

.model-table tr.recommended {
    background: rgba(88, 166, 255, 0.1);
}

.model-table code {
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.rec-badge {
    display: inline-block;
    margin-left: var(--space-sm);
    padding: 2px var(--space-sm);
    background: var(--color-primary);
    color: var(--color-bg);
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
}

.speed-bar,
.accuracy-bar {
    width: 100px;
    height: 8px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.speed-fill {
    height: 100%;
    background: var(--color-success);
    border-radius: var(--radius-xl);
}

.accuracy-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-xl);
}

.model-note {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

/* ==================== Install ==================== */
.install {
    padding: var(--space-3xl) var(--space-lg);
}

.install h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.install .section-subtitle {
    text-align: center;
}

.install-pitch {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    font-style: italic;
}

.install-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.tab-btn {
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.tab-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg);
}

.tab-content {
    display: none;
}

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

.install-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    text-align: center;
}

/* Setup tabs (Standard vs Hyprland/Sway) */
.setup-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.setup-tab-btn {
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.setup-tab-btn:hover {
    border-color: var(--color-text-secondary);
    color: var(--color-text);
}

.setup-tab-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg);
}

.setup-content {
    display: none;
}

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

.setup-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    text-align: center;
}

.setup-note code {
    background: var(--color-bg-tertiary);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.code-block {
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.copy-btn {
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.code-block pre {
    padding: var(--space-md);
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-block .comment {
    color: var(--color-text-muted);
}

.post-install {
    max-width: 700px;
    margin: var(--space-2xl) auto 0;
}

.post-install h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

/* ==================== Compositors ==================== */
.compositors {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--color-bg-secondary);
}

.compositors h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.compositors .section-subtitle {
    text-align: center;
}

.compositor-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.compositor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    min-width: 140px;
    transition: border-color var(--transition-fast);
}

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

.compositor-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.compositor-card span {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

/* ==================== Feedback ==================== */
.feedback {
    padding: var(--space-3xl) var(--space-lg);
}

.feedback h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.feedback .section-subtitle {
    text-align: center;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.feedback-card {
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: border-color var(--transition-fast);
}

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

.feedback-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    color: var(--color-primary);
}

.feedback-icon svg {
    width: 100%;
    height: 100%;
}

.feedback-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feedback-card p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
}

/* ==================== CTA ==================== */
.cta {
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(88, 166, 255, 0.05));
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.cta p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ==================== Footer ==================== */
.footer {
    padding: var(--space-3xl) var(--space-lg) var(--space-xl);
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

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

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: var(--space-3xl);
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.footer-column a {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

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

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: var(--space-lg);
        background: var(--color-bg-secondary);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .demo-steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 6rem;
    }

    .hero-badges {
        gap: var(--space-sm);
    }

    .badge {
        font-size: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .install-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}
