@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --bg-card-glass: rgba(24, 24, 27, 0.7);
    --border-color: rgba(63, 63, 70, 0.4);
    --border-glow: rgba(139, 92, 246, 0.4);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --success: #10b981;
    
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
}

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

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

/* Background Gradients */
.bg-gradients {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.gradient-blob-1 {
    position: absolute;
    top: -20%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    animation: pulse-blob-1 12s infinite alternate;
}

.gradient-blob-2 {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    animation: pulse-blob-2 15s infinite alternate;
}

@keyframes pulse-blob-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

@keyframes pulse-blob-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, -50px) scale(1.2); }
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
}

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

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background-color: rgba(63, 63, 70, 0.4);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(63, 63, 70, 0.8);
    transform: translateY(-2px);
}

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem 0;
    text-align: center;
    position: relative;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: pulse-tag 2s infinite alternate;
}

@keyframes pulse-tag {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.2); }
    100% { box-shadow: 0 0 12px 2px rgba(139, 92, 246, 0.4); }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 30%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Interactive Playground Section */
.playground-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(24, 24, 27, 0.3) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Simulator Container */
.simulator-container {
    background-color: #0d0e12;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.simulator-header {
    background-color: #16181f;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.simulator-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.simulator-workspace {
    display: flex;
    position: relative;
    min-height: 480px;
    background-color: #0f111a;
}

/* Mock IDE background */
.mock-ide {
    flex: 1;
    padding: 2rem;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: #a6accd;
    background-color: #0f111a;
    position: relative;
    user-select: none;
    overflow: hidden;
}

.mock-ide code {
    white-space: pre;
    line-height: 1.5;
}

.ide-keyword { color: #c792ea; }
.ide-type { color: #ffcb6b; }
.ide-string { color: #c3e88d; }
.ide-comment { color: #546e7a; font-style: italic; }
.ide-number { color: #f78c6c; }
.ide-function { color: #82aaff; }

/* Mock Floating Notepad */
.mock-notepad {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 380px;
    height: 380px;
    background: rgba(30, 30, 40, 1.0);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: opacity 0.15s ease-out, border-color var(--transition-normal), box-shadow var(--transition-normal);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mock-notepad.stealth-active {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), 0 20px 40px rgba(0,0,0,0.6);
}

.notepad-titlebar {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
}

.notepad-titlebar span {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.notepad-toolbar {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toolbar-slider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.toolbar-slider input {
    width: 60px;
    height: 4px;
    accent-color: var(--primary);
    cursor: pointer;
}

.toolbar-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 16px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4b5563;
    transition: .3s;
    border-radius: 16px;
}

.slider-switch:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider-switch {
    background-color: var(--primary);
}

input:checked + .slider-switch-stealth {
    background-color: var(--accent);
}

input:checked + .slider-switch:before {
    transform: translateX(12px);
}

/* Notepad Content Areas */
.notepad-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.notepad-editor {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    resize: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 1rem;
    display: block;
}

.notepad-preview {
    width: 100%;
    height: 100%;
    padding: 1rem;
    overflow-y: auto;
    font-size: 0.85rem;
    display: none;
    color: var(--text-primary);
}

.notepad-preview h1 { font-size: 1.3rem; margin-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.2rem; }
.notepad-preview h2 { font-size: 1.1rem; margin-top: 0.8rem; margin-bottom: 0.4rem; }
.notepad-preview p { color: var(--text-primary); margin-bottom: 0.6rem; }
.notepad-preview ul, .notepad-preview ol { margin-left: 1.25rem; margin-bottom: 0.6rem; }
.notepad-preview li { margin-bottom: 0.2rem; }
.notepad-preview code { font-family: var(--font-code); background: rgba(0, 0, 0, 0.3); padding: 0.1rem 0.3rem; border-radius: 4px; font-size: 0.75rem; color: #f78c6c; }
.notepad-preview pre { background: rgba(0, 0, 0, 0.4); padding: 0.5rem; border-radius: 6px; overflow-x: auto; margin-bottom: 0.6rem; border: 1px solid rgba(255,255,255,0.05); }
.notepad-preview pre code { color: #a6accd; background: transparent; padding: 0; }

.notepad-footer {
    padding: 0.4rem 1rem;
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: flex-end;
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Stealth Mode Simulation Visual Feedback Overlay */
.stealth-comparison-overlay {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    background: rgba(15, 17, 26, 0.95);
    border: 1px solid var(--border-glow);
    padding: 1rem;
    border-radius: 12px;
    max-width: 320px;
    z-index: 15;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: none;
    transform: translateY(10px);
    transition: transform var(--transition-normal);
}

.stealth-comparison-overlay.show {
    display: block;
    transform: translateY(0);
}

.comparison-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.comparison-views {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.view-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
}

.view-card-title {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.view-card-screen {
    width: 100%;
    height: 50px;
    background: #09090b;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-card-screen span {
    font-size: 0.5rem;
}

.view-card-screen .mock-screen-note {
    width: 25px;
    height: 25px;
    background: rgba(99, 102, 241, 0.5);
    border: 1px solid var(--primary);
    border-radius: 2px;
}

.view-card-screen .mock-screen-note-stealth {
    width: 25px;
    height: 25px;
    border: 1px dashed rgba(139, 92, 246, 0.5);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

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

.feature-card p {
    font-size: 0.95rem;
}


/* Architecture / Specs Section */
.specs-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.spec-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.spec-value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.spec-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.spec-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Footer styling */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    background: #050507;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-logo svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
}

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

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

/* Responsive queries */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .simulator-workspace {
        flex-direction: column;
        min-height: 640px;
    }
    
    .mock-notepad {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        height: 350px;
        margin-top: 1rem;
        box-shadow: none;
    }
    
    .stealth-comparison-overlay {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 1rem;
        max-width: 100%;
    }


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

/* Tablet / small screens */
@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav-links {
        gap: 1rem;
    }

    /* Keep the GitHub button; hide in-page anchors that would crowd the bar */
    .nav-links .nav-link {
        display: none;
    }

    .hero {
        padding: 5rem 0 4rem 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.9rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    html { scroll-behavior: auto; }
}
