:root {
    --primary: #3b82f6; /* Electric Blue */
    --accent: #f97316;  /* Tech Orange */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent-glow: rgba(249, 115, 22, 0.4);
    --bg-dark: #020617;
    --card-bg: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(59, 130, 246, 0.2);
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Texture & Glow Overlay */
.bg-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(249, 115, 22, 0.05) 0%, transparent 45%);
}

/* Nav */
nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

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

.logo-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px var(--primary-glow); }
    50% { transform: scale(1.2); box-shadow: 0 0 25px var(--primary-glow), 0 0 10px var(--accent-glow); }
    100% { transform: scale(1); box-shadow: 0 0 10px var(--primary-glow); }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.waitlist-btn {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    padding: 0.75rem 1.6rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.waitlist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--primary-glow);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 8% 80px;
}

.badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 7px 18px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 950;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -3.5px;
    max-width: 1100px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 850px;
    margin-bottom: 4rem;
    font-weight: 300;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    padding: 1.2rem 2.8rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.primary-btn:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 20px 40px var(--primary-glow);
    border-color: rgba(255, 255, 255, 0.3);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 1.2rem 2.8rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

/* Sections */
section {
    padding: 140px 8%;
    max-width: 1440px;
    margin: 0 auto;
}

h2 {
    font-size: 3.5rem;
    font-weight: 950;
    text-align: center;
    margin-bottom: 5rem;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.card {
    background: linear-gradient(145deg, #0f172a, #020617);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3.5rem 3rem;
    border-radius: 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.1);
    transition: 0.3s;
}

.card:hover .card-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 25px var(--primary-glow);
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: white;
}

.card p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Code UI */
.tabs-container {
    background: #0a0f1e;
    border-radius: 40px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.tab-nav {
    display: flex;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.6rem;
    border-radius: 24px;
    margin-bottom: 3rem;
    max-width: fit-content;
    margin: 0 auto 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 14px 28px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.tabs-container {
    background: #0b0f1a;
    border-radius: 32px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
}

.code-window {
    background: #010409;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.window-header {
    background: #161b22;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }

.code-block {
    padding: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #e6edf3;
    overflow-x: auto;
    background: #010409;
    min-height: 100px; /* Reduced min-height for general use */
    line-height: 1.7;
    white-space: pre-wrap; /* Changed from pre to pre-wrap to handle wrapping and keep it flexible */
    text-align: left; /* Explicitly align left */
}

/* Height for large reference section only */
.ref-pane .code-block {
    min-height: 380px;
}

/* Compact padding for installation cards */
.card .code-block {
    padding: 1.2rem 1.5rem;
    min-height: auto;
}

/* GitHub-inspired Dark Syntax Highlighting */
.code-block .keyword { color: #ff7b72; font-weight: 600; }
.code-block .func { color: #d2a8ff; }
.code-block .string { color: #a5d6ff; }
.code-block .comment { color: #8b949e; font-style: italic; }
.code-block .number { color: #79c0ff; }
.code-block .class { color: #ffa657; }
.code-block .decorator { color: #d2a8ff; }
.code-block .operator { color: #ff7b72; }
.code-block .prop { color: #79c0ff; }
.comment { color: #64748b; font-style: italic; }

/* Table */
.table-wrapper {
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.roadmap-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.roadmap-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.8rem;
    text-align: left;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.roadmap-table td {
    padding: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-weight: 500;
}

.status-shipped {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Footer */
footer {
    padding: 160px 8% 80px;
    background: radial-gradient(circle at top, #0f172a, #000);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h2 {
    font-size: 4.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer .primary-btn {
    background: var(--primary);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.footer-links {
    margin-top: 6rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

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

@media (max-width: 1024px) {
    .hero h1 { font-size: 4rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .nav-links { display: none; }
    .grid { grid-template-columns: 1fr; }
}

/* Architecture Section */
:root {
    --accent-blue: #38bdf8;
    --accent-emerald: #10b981;
    --accent-purple: #818cf8;
    --accent-amber: #f59e0b;
    --arch-glass-bg: rgba(255, 255, 255, 0.03);
    --arch-glass-border: rgba(255, 255, 255, 0.08);
}

#architecture {
    padding: 140px 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#architecture .arch-header {
    text-align: center;
    margin-bottom: 4rem;
}

#architecture .arch-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

.diagram-outer {
    width: 100%;
    max-width: 1200px;
    background: var(--arch-glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--arch-glass-border);
    border-radius: 40px;
    padding: 80px 40px;
    position: relative;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
}

.diagram-outer svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Node Styling */
.node-rect {
    fill: rgba(15, 23, 42, 0.8);
    stroke: var(--arch-glass-border);
    stroke-width: 1;
    rx: 16;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.node-group {
    cursor: pointer;
}

.node-group:hover .node-rect {
    stroke: var(--accent-blue);
    fill: rgba(30, 41, 59, 0.95);
    transform: translateY(-5px);
    filter: drop-shadow(0 15px 30px rgba(56, 189, 248, 0.2));
}

.node-label {
    fill: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    pointer-events: none;
}

.node-subtext {
    fill: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* Layer Labels */
.layer-label {
    fill: rgba(255, 255, 255, 0.15);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800;
}

/* Path Styling */
.flow-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1.5;
    transition: all 0.4s ease;
}

.flow-path.active {
    stroke: var(--accent-blue);
    opacity: 0.4;
    stroke-width: 2;
}

/* Data Packet */
.packet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    pointer-events: none;
    z-index: 50;
}

.packet-glow {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: translate(-6px, -6px);
    filter: blur(8px);
    opacity: 0.6;
}

/* Tooltip */
#arch-tooltip {
    position: fixed;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--arch-glass-border);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.2s, opacity 0.2s;
    z-index: 1000;
    backdrop-filter: blur(12px);
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-top: 2px solid var(--accent-blue);
}

/* Controls */
.arch-controls {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-arch {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--arch-glass-border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-arch:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.btn-arch svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

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