:root {
    --bg-dark: #151921;
    --bg-darker: #0d1117;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --accent-blue: #3B82F6;
    --accent-orange: #F97316;
    --accent-purple: #8B5CF6;
    --accent-green: #10B981;
    --accent-red: #EF4444;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-light: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .logo {
    font-family: 'Space Grotesk', sans-serif;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Typography */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(21, 25, 33, 0.7);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    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: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.atom-icon {
    animation: rotateAtom 10s linear infinite;
}

@keyframes rotateAtom {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem 2rem;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

/* Glass Card Base & Blueprint */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.blueprint {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    max-width: 1200px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
    text-align: center;
}

#quantum-canvas {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Oscilloscope / Lab Readout Animation for Code Blocks */
.oscilloscope {
    position: relative;
    background: #090c10;
    border: 1px solid var(--accent-blue);
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.1);
    overflow: hidden;
}

.scanline {
    width: 100%;
    height: 10px;
    background: linear-gradient(0deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    position: absolute;
    top: -10px;
    left: 0;
    animation: scan 4s linear infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes scan {
    0% { top: -10%; }
    100% { top: 110%; }
}

.terminal-wrapper {
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
}

.prompt {
    color: var(--accent-purple);
}

.ascii-art {
    color: var(--accent-blue);
    margin: 1rem 0;
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Wave Divider */
.wave-divider-container {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: 4rem;
}

.wave-divider {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    transform: rotate(180deg);
}

.wave-divider .shape-fill {
    fill: rgba(139, 92, 246, 0.05);
}

/* Features */
.features {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.features h2, .properties h2, .comparison h2, .install h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

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

.feature-card {
    padding: 2rem;
}

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

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

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

/* Properties Showcase */
.properties {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
}

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

.properties-content > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.code-showcase {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    text-align: left;
}

.code-block {
    border-radius: 12px;
}

.code-header {
    background: rgba(0,0,0,0.3);
    padding: 0.75rem 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.code-block pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.terminal-block pre {
    color: var(--accent-green);
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
}

.verdict-table {
    line-height: 1.2;
}

/* Comparison Table */
.comparison {
    max-width: 1000px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.table-container {
    overflow-x: auto;
    padding: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

th {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-muted);
}

td:first-child {
    text-align: left;
    font-weight: 500;
}

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

td.highlight {
    background: rgba(139, 92, 246, 0.1);
}

/* Install Section */
.install {
    max-width: 1000px;
    margin: 8rem auto 6rem;
    padding: 0 2rem;
}

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

.install-card {
    padding: 1.5rem;
}

.install-card h3 {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.copy-block {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.4);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
}

.copy-block code {
    font-family: 'Fira Code', monospace;
    flex-grow: 1;
    font-size: 0.85rem;
    color: var(--accent-orange);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.copy-btn:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 2rem 2rem;
    background: var(--bg-darker);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.built-with {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

/* Animations & Utility */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--accent-purple);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .code-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .cta-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-ctas {
        flex-direction: column;
        padding: 0 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
