/* ============================================
   WYNTER CODE - Landing Page Styles
   Wynter Code Dark Theme
   ============================================ */

/* CSS Variables */
:root {
    /* Wynter Code App Colors */
    --bg-primary: #141420;
    --bg-secondary: #0f0f18;
    --bg-tertiary: #0a0a10;
    --bg-hover: #252535;
    --bg-surface: #1a1a28;

    --text-primary: #cdd6f4;
    --text-secondary: #a6adc8;
    --text-muted: #6c7086;

    --border: #2a2a3a;
    --border-light: #222232;

    /* Accent Colors */
    --accent-purple: #cba6f7;
    --accent-blue: #89b4fa;
    --accent-green: #a6e3a1;
    --accent-cyan: #94e2d5;
    --accent-pink: #f5c2e7;
    --accent-orange: #fab387;
    --accent-red: #f38ba8;
    --accent-yellow: #f9e2af;

    /* Gradients */
    --gradient-purple: linear-gradient(135deg, #cba6f7 0%, #89b4fa 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(203, 166, 247, 0.15) 0%, transparent 70%);

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

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 120px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(20, 20, 32, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-purple);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 18px;
    color: var(--bg-tertiary);
}

.logo-icon-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.nav-github {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.nav-github:hover {
    background: var(--bg-hover);
    border-color: var(--border);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: #0a0a10;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

/* Space Background */
.space-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.stars {
    position: absolute;
    inset: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration, 4s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.nebula {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background:
        radial-gradient(ellipse 35% 25% at 15% 75%, rgba(180, 140, 200, 0.3) 0%, transparent 70%),
        radial-gradient(ellipse 45% 35% at 85% 25%, rgba(120, 160, 220, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(203, 166, 247, 0.1) 0%, transparent 50%);
    animation: nebula-drift 90s ease-in-out infinite;
}

.shooting-star {
    position: absolute;
    top: 10%;
    left: 20%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.8) 80%, white 100%);
    transform: rotate(35deg);
    transform-origin: left center;
    opacity: 0;
    filter: blur(0.3px);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    animation: shoot 12s ease-in infinite;
    animation-delay: 2s;
}

.shooting-star.delay {
    top: 30%;
    left: 65%;
    width: 80px;
    transform: rotate(40deg);
    animation-delay: 8s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes nebula-drift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    25% { transform: translate(15px, -8px) scale(1.03); opacity: 0.18; }
    50% { transform: translate(-8px, 12px) scale(0.98); opacity: 0.12; }
    75% { transform: translate(10px, 5px) scale(1.02); opacity: 0.16; }
}

@keyframes shoot {
    0%, 85% {
        opacity: 0;
        transform: rotate(35deg) translateX(0);
    }
    88% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(35deg) translateX(350px);
    }
}

/* Vignette over space */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 20%, rgba(10, 10, 16, 0.6) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* Hero Image */
.hero-image {
    margin-top: 64px;
    width: 100%;
    max-width: 900px;
    z-index: 1;
}

/* Screenshot Placeholder */
.screenshot-placeholder {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 50px -10px rgba(0, 0, 0, 0.5),
        0 0 100px -20px rgba(203, 166, 247, 0.2);
}

.screenshot-placeholder.small {
    border-radius: var(--radius-md);
}

.screenshot-inner {
    padding: 0;
}

.screenshot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-light);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.window-dots span:first-child {
    background: var(--accent-red);
}

.window-dots span:nth-child(2) {
    background: var(--accent-yellow);
}

.window-dots span:last-child {
    background: var(--accent-green);
}

.screenshot-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.screenshot-body {
    display: flex;
    min-height: 400px;
    background: var(--bg-primary);
}

.mock-sidebar {
    width: 60px;
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border-light);
}

.mock-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mock-tabs {
    height: 40px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.mock-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-line {
    height: 16px;
    background: var(--bg-surface);
    border-radius: 4px;
    width: 100%;
}

.mock-line.short {
    width: 60%;
}

.mock-line.medium {
    width: 80%;
}

.mock-panel {
    width: 280px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-light);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -8px rgba(203, 166, 247, 0.5);
}

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

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

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

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-download {
    background: var(--accent-purple);
    color: var(--bg-tertiary);
    width: 100%;
}

.btn-download:hover {
    background: var(--accent-blue);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(137, 180, 250, 0.1);
    border: 1px solid rgba(137, 180, 250, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ============================================
   FEATURES
   ============================================ */

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

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse > * {
    direction: ltr;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.feature-icon.purple {
    background: rgba(203, 166, 247, 0.1);
    color: var(--accent-purple);
}

.feature-icon.blue {
    background: rgba(137, 180, 250, 0.1);
    color: var(--accent-blue);
}

.feature-icon.green {
    background: rgba(166, 227, 161, 0.1);
    color: var(--accent-green);
}

.feature-icon.cyan {
    background: rgba(148, 226, 213, 0.1);
    color: var(--accent-cyan);
}

.feature-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 15px;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-purple);
}

/* Feature Visual Mocks */
.feature-visual .screenshot-placeholder {
    padding: 20px;
}

.mock-tabs-demo {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.mock-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: transparent;
    border-radius: 4px;
}

.mock-tab.active {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.mock-tab-add {
    padding: 8px 12px;
    color: var(--text-muted);
}

.mock-file-tree {
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 16px;
}

.mock-folder, .mock-file {
    padding: 6px 8px;
    color: var(--text-secondary);
    border-radius: 4px;
}

.mock-folder {
    color: var(--accent-blue);
}

.folder-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    margin-right: 6px;
}

.mock-folder.open .folder-icon {
    transform: rotate(90deg);
}

.mock-file.indent {
    padding-left: 24px;
}

.mock-file.indent-2 {
    padding-left: 40px;
}

.mock-git {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.git-branch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-purple);
}

.branch-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.git-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.green {
    background: var(--accent-green);
}

.git-commit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.commit-hash {
    font-family: var(--font-mono);
    color: var(--accent-orange);
}

.commit-msg {
    color: var(--text-secondary);
}

.mock-shortcuts {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shortcut {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.shortcut kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
}

.shortcut span {
    color: var(--text-muted);
    margin-left: 8px;
}

/* ============================================
   BONUS FEATURES - MARQUEE
   ============================================ */

.bonus-features {
    background: var(--bg-secondary);
    padding: 80px 0;
    overflow: hidden;
}

.bonus-features .section-header {
    margin-bottom: 48px;
}

.bonus-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.bonus-track {
    display: flex;
    gap: 24px;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.bonus-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--transition-base);
}

.bonus-item:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.bonus-item.highlight {
    background: rgba(203, 166, 247, 0.1);
    border-color: rgba(203, 166, 247, 0.3);
    color: var(--accent-purple);
}

.bonus-emoji {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--accent-purple);
}

.bonus-note {
    text-align: center;
    margin-top: 40px;
    font-size: 15px;
    color: var(--text-muted);
    font-style: italic;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   OPEN SOURCE
   ============================================ */

.open-source {
    background: var(--bg-primary);
}

.os-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.os-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--bg-surface);
    border-radius: 50%;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.os-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.os-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.os-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* ============================================
   DOWNLOAD
   ============================================ */

.download {
    background: var(--bg-secondary);
}

.download-content {
    text-align: center;
}

.download-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
}

.download-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.download-single {
    display: flex;
    justify-content: center;
}

.download-single .download-card {
    max-width: 360px;
    width: 100%;
}

.download-card {
    padding: 48px 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.download-card:hover {
    border-color: var(--accent-purple);
}

.download-os {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.download-os span {
    font-size: 20px;
    font-weight: 600;
}

.download-note {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   FOOTER - SIMPLIFIED
   ============================================ */

.footer {
    background: var(--bg-tertiary);
    padding: 32px 0;
    border-top: 1px solid var(--border-light);
}

.footer-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-copy {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-link {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.footer-divider {
    width: 1px;
    height: 16px;
    background: var(--border);
}

.footer-credit {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-credit a {
    color: var(--accent-purple);
    transition: opacity var(--transition-fast);
}

.footer-credit a:hover {
    opacity: 0.8;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for feature blocks */
.feature-block.reveal .feature-content {
    transition-delay: 0.1s;
}

.feature-block.reveal .feature-visual {
    transition-delay: 0.2s;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-block.reverse {
        direction: ltr;
    }

    .feature-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links a:not(.nav-github) {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 48px;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .screenshot-body {
        min-height: 250px;
    }

    .mock-panel {
        display: none;
    }

    .footer-simple {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 8px;
    }

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

    .bonus-track {
        animation-duration: 15s;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .feature-title {
        font-size: 24px;
    }

    .bonus-item {
        padding: 12px 20px;
        font-size: 13px;
    }
}
