:root {
    --bg-deep: #02040a;
    --bg-surface: #0a0c16;
    --bg-card: rgba(13, 17, 33, 0.7);
    --primary: #06b6d4;
    --primary-glow: rgba(6, 182, 212, 0.4);
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --border: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.15);
    --grad: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
}

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

html {
    overflow-x: hidden;
    touch-action: pan-y;
}

/* Hide Scrollbar */
::-webkit-scrollbar { width: 0; display: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    z-index: -2;
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02; pointer-events: none; z-index: -1;
}

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

/* Navigation */
nav {
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(2, 4, 10, 0.7);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.nav-brand:hover {
    transform: scale(1.02);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-btn-glow {
    background: var(--grad);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 20px -5px var(--primary-glow);
    transition: all 0.3s;
}

.nav-btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px -5px var(--primary-glow);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Nav Styles */
@media (max-width: 992px) {
    .nav-links { gap: 1.5rem; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        right: 1.5rem;
        width: 220px !important; /* Slimmer profile to reduce center overlap */
        height: auto;
        background: rgba(10, 12, 20, 0.98) !important; /* More opaque to hide background text */
        backdrop-filter: blur(40px) !important; /* Stronger blur for premium glass effect */
        flex-direction: column;
        padding: 3rem 1.5rem !important; /* Increased padding */
        gap: 2.5rem !important; /* Increased breathing room */
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8) !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: 0.3s ease;
    }
    
    .nav-links.active { 
        opacity: 1; 
        visibility: visible; 
        transform: translateY(0); 
    }
    
    .mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-title { 
        font-size: 2.5rem !important; 
        line-height: 1.1 !important;
        margin-bottom: 1.5rem !important;
    }
    .nav-brand { padding-left: 0.5rem; z-index: 1001; }
    .mobile-toggle { margin-right: 0.5rem; z-index: 1001; }
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-bright);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title span {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-deep);
    margin-left: -12px;
}

.avatars img:first-child { margin-left: 0; }

.social-proof span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Generator Wrapper */
.generator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.glass-terminal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(40px);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 8px; }
.terminal-dots span { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-amber { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-tabs {
    display: flex;
    margin-left: 2rem;
    gap: 0.5rem;
}

.tab {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

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

.status-indicator {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(39, 201, 63, 0.4);
}

.terminal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
}

.input-area, .output-area { padding: 1.5rem; }
.input-area { border-right: 1px solid var(--border); }

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

textarea {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    resize: none;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
    line-height: 1.6;
}

textarea:focus { border-color: var(--primary); outline: none; }

.generate-btn {
    position: relative;
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #06B6D4, #8B5CF6);
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px -10px rgba(6, 182, 214, 0.5),
                inset 0 1px 1px rgba(255, 255, 255, 0.3),
                0 0 20px rgba(6, 182, 214, 0.2);
    white-space: nowrap;
    z-index: 1;
}

@keyframes btnGlow {
    from { box-shadow: 0 10px 30px -10px rgba(6, 182, 214, 0.5), 0 0 10px rgba(6, 182, 214, 0.2); }
    to { box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.6), 0 0 35px rgba(139, 92, 246, 0.5); }
}

.generate-btn.shining {
    /* Shine effect handled by before/after pseudo-elements */
}

@keyframes pulse-scale {
    from { transform: scale(1); }
    to { transform: scale(1.02); }
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.5s;
    animation: shine-anim 2s infinite;
}

@keyframes shine-anim {
    0% { left: -100%; }
    100% { left: 100%; }
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
    z-index: -1;
}

.generate-btn:hover::before {
    left: 100%;
}

.generate-btn:hover {
    filter: brightness(1.1);
}

.generate-btn:active {
    opacity: 0.9;
}

.generate-btn:disabled {
    background: linear-gradient(135deg, #334155, #1e293b);
    cursor: not-allowed;
    opacity: 0.8;
    transform: none;
    box-shadow: none;
}

.generate-btn:disabled span {
    animation: pulse-text 1.5s infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.generate-btn svg {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.generate-btn:hover svg {
    transform: rotate(15deg) scale(1.2);
}

.generate-btn:disabled svg {
    opacity: 0.5;
    animation: spin 2s linear infinite;
}

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

.live-indicator {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    justify-content: center;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(6, 182, 214, 0.5);
}

.result-summary {
    background: rgba(6, 182, 214, 0.05);
    border: 1px solid rgba(6, 182, 214, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    animation: resultReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    backdrop-filter: blur(10px);
}

.result-summary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--grad);
}

@keyframes resultReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-summary h5 {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    text-align: left;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(6, 182, 214, 0.3);
}

.result-summary ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.result-summary li {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    transition: transform 0.3s;
}

.result-summary li:hover {
    transform: translateX(5px);
}

.result-summary li svg {
    filter: drop-shadow(0 0 5px var(--primary));
    flex-shrink: 0;
}

.result-summary li span {
    color: #38BDF8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.performance-tag {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}

.code-view-container {
    position: relative;
    width: 100%;
}

.copy-fab {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    z-index: 10;
}

.copy-fab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.copy-fab:active {
    transform: translateY(0);
}

.code-view {
    background: #010409;
    border: 1px solid var(--border);
    border-radius: 12px;
    height: 400px;
    padding: 1.5rem;
    overflow: auto;
}

.code-view:has(.brain-question) {
    overflow: hidden;
}

.code-view pre {
    margin: 0;
    padding: 0;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Brain Question UI */
.brain-question {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

.rolling-icon {
    animation: roll-pause 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.4));
    transform-origin: center center;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes roll-pause {
    0% { transform: rotate(0deg); }
    30% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}

.brain-question h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.brain-question p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 400px;
    line-height: 1.4;
    font-size: 0.9rem;
}

.choices-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.choice-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: none;
    outline: none;
    box-sizing: border-box;
}

.brain-icon-large {
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
}

.choice-btn:hover {
    background: var(--grad);
    border: none;
    padding: calc(0.5rem + 1px) calc(1rem + 1px);
}

.demo-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.demo-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: none;
}

.demo-btn:hover {
    background: var(--grad);
    border-color: transparent;
    color: white;
}

.status-tags {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.tag {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tag-complete {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tag-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.ask-again-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ask-again-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

code { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: #d1d5db; }

.copy-trigger {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.7rem;
    cursor: pointer;
}

.terminal-status-bar {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border);
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.status-left, .status-right {
    display: flex;
    gap: 1.5rem;
}

/* Subpages */
.subpage-hero {
    padding: 8rem 0 6rem;
    text-align: center;
}

.subpage-hero .hero-title {
    font-size: 4rem;
}

.nav-link.active {
    color: var(--primary);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.subpage main {
    padding-bottom: 10rem;
}

/* Features */
.features { padding: 10rem 0; text-align: center; }
.section-tag { color: var(--primary); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 1rem; }
.section-title { font-size: 3.5rem; margin-bottom: 5rem; }

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3.5rem 2.5rem;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.feature-card:hover { transform: translateY(-10px); border-color: var(--border-bright); }

.card-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.1), transparent 70%);
    pointer-events: none;
}

.card-icon { 
    font-size: 2.5rem; 
    margin-bottom: 2rem; 
    color: var(--primary);
}

.card-icon svg {
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.feature-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Resources Section */
.resources { padding: 10rem 0; background: rgba(255, 255, 255, 0.01); }

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

.resource-item {
    display: flex;
    gap: 1.5rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    text-align: left;
    transition: all 0.3s;
}

.resource-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.res-icon {
    font-size: 2rem;
    color: var(--primary);
}

.res-icon svg {
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.res-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.res-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.res-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Pricing */
.pricing { padding-bottom: 10rem; text-align: center; }

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

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3.5rem 2.5rem;
    border-radius: 32px;
    text-align: left;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.price-card:hover {
    transform: translateY(-12px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.02);
}

.price-card.featured {
    border: 2px solid var(--primary);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.1);
}

.price-card.featured:hover {
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.6),
                0 0 50px rgba(6, 182, 212, 0.2);
    background: rgba(6, 182, 212, 0.08);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg-deep);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
}

.price-header h4 { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 1rem; }
.amount { font-size: 3rem; font-weight: 800; margin-bottom: 2rem; }
.amount span { font-size: 1rem; color: var(--text-secondary); font-weight: 500; }

.price-features { list-style: none; margin-bottom: 3rem; }
.price-features li { margin-bottom: 1rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.price-features li::before { content: "✓"; color: var(--primary); font-weight: 800; }

.btn-price {
    display: block;
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    transition: all 0.3s;
}

.btn-price.primary { background: var(--grad); border: none; }
.btn-price:hover { background: rgba(255, 255, 255, 0.05); }
.btn-price.primary:hover { transform: scale(1.02); background: var(--grad); filter: brightness(1.1); }

.btn-outline {
    display: block;
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}
.footer-grid { display: flex; justify-content: space-between; margin-bottom: 4rem; }
.footer-info { max-width: 300px; }
.footer-info p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 1.5rem; }

.footer-links { display: flex; gap: 6rem; }
.link-group h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-primary); margin-bottom: 1.5rem; }
.link-group a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; margin-bottom: 0.75rem; transition: color 0.3s; }
.link-group a:hover { color: var(--primary); }

.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; text-align: center; font-size: 0.85rem; color: var(--text-secondary); }
.footer-bottom a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* Modal System */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-surface);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border: 1px solid var(--border-bright);
    border-radius: 24px;
    overflow: hidden;
    animation: modalIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

/* Hide Modal Scrollbar */
.modal-content::-webkit-scrollbar { display: none; }
.modal-content { -ms-overflow-style: none; scrollbar-width: none; }

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex: 1;
    min-height: 0;
    max-height: 500px;
    overflow: hidden;
}

.docs-nav {
    width: 200px;
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.docs-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px; /* Forced uniform width */
    min-width: 160px;
    text-align: center;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.03); /* Subtle ghost background */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Faint border */
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 100px; /* Perfect pill shape */
    margin-bottom: 0.5rem;
    line-height: 1;
    flex: none;
    transition: all 0.3s ease;
}

.docs-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.docs-nav-item.active {
    background: var(--grad);
    color: white;
}

.docs-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
    min-width: 0;
}

.docs-content h4 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.docs-content p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.docs-content ol { padding-left: 1.5rem; color: var(--text-secondary); }
.docs-content li { margin-bottom: 1rem; }
.docs-content code { background: rgba(0, 0, 0, 0.3); padding: 0.2rem 0.4rem; border-radius: 4px; color: var(--primary); }

.doc-note {
    background: rgba(6, 182, 212, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.api-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.api-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.api-card strong {
    color: var(--primary);
    margin-right: 0.5rem;
}

.template-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.template-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
}

.temp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.temp-header strong {
    color: var(--primary);
}

.use-template-btn {
    background: linear-gradient(135deg, #06B6D4, #8B5CF6);
    border: none;
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(6, 182, 214, 0.2);
}

.use-template-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.code-preview-small {
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border-left: 2px solid var(--primary);
}

.code-preview-small code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* How It Works */
.how-it-works { padding: 8rem 0; text-align: center; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 5rem;
    position: relative;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 32px;
    position: relative;
    transition: all 0.3s;
}

.step-card:hover { border-color: var(--primary); transform: translateY(-10px); }

.step-num {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(6, 182, 214, 0.3);
}

.step-icon {
    margin-top: 2rem;
    color: var(--primary);
    opacity: 0.5;
}

/* Examples Section */
.examples { padding: 8rem 0; background: rgba(255, 255, 255, 0.01); }
.example-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.example-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s;
}

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

.example-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.ex-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(6, 182, 214, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.ex-io {
    padding: 1.5rem;
}

.ex-input, .ex-output {
    margin-bottom: 1.5rem;
}

.ex-input h5, .ex-output h5 {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ex-input p {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-style: italic;
}

.ex-output pre {
    background: #010409;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

/* FAQ Section */
.faq { padding: 8rem 0; }
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}



/* Contact CTA */
.contact { padding: 10rem 0; }
.contact-card {
    background: var(--grad);
    padding: 6rem 4rem;
    border-radius: 48px;
    text-align: center;
    color: white;
    box-shadow: 0 40px 100px -20px rgba(6, 182, 214, 0.4);
}

.contact-card h2 { font-size: 3.5rem; margin-bottom: 1.5rem; letter-spacing: -0.04em; }
.contact-card p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 3rem; }

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary {
    background: white;
    color: var(--bg-deep);
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.btn-primary:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

/* Mobile Adjustments for new sections */
@media (max-width: 768px) {
    .steps-grid, .example-grid, .faq-grid, .feature-grid, .resource-grid, .pricing-grid { grid-template-columns: 1fr !important; }
    .contact-card { padding: 4rem 2rem; }
    .contact-card h2 { font-size: 2rem; }
    .contact-buttons { flex-direction: column; }
    .section-title { font-size: 2.5rem !important; }

    /* Terminal Fixes */
    .terminal-body { grid-template-columns: 1fr !important; }
    .input-area { border-right: none !important; border-bottom: 1px solid var(--border); padding: 1.5rem !important; }
    .output-area { padding: 1.5rem !important; }
    textarea { height: 250px !important; font-size: 1rem !important; }
    .code-view { height: 350px !important; }
    .terminal-tabs { display: none; }
    .status-indicator { display: none; }
    .terminal-header { justify-content: center; padding: 1rem !important; }
    .demo-buttons { display: flex; flex-direction: column; gap: 0.5rem; }
    .demo-btn { width: 100%; font-size: 0.7rem; }

    /* Pricing Stack */
    .price-card { margin-bottom: 1.5rem !important; transform: scale(1) !important; }

    /* Modal Mobile Fixes */
    .modal-body { flex-direction: column !important; overflow-y: auto !important; max-height: 80vh !important; }
    .docs-nav { 
        width: 100% !important; 
        border-right: none !important; 
        border-bottom: 1px solid var(--border) !important; 
        display: flex !important; 
        gap: 0.5rem !important; 
        overflow-x: auto !important; 
        padding: 1rem !important;
        /* Stealth Scroll */
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    .docs-nav::-webkit-scrollbar { display: none !important; }
    .docs-nav-item { 
        white-space: nowrap !important; 
        margin-bottom: 0 !important; 
        font-size: 0.75rem !important; 
        padding: 0.8rem 1.4rem !important;
        width: 150px !important; /* FORCED fixed width for all tabs */
        min-width: 150px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        flex: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 100px !important;
    }
    .docs-content { padding: 1.5rem !important; }
    .temp-header { flex-direction: column !important; align-items: flex-start !important; gap: 1rem !important; }
    .use-template-btn { width: 100% !important; }
}

.ayanlogix-link {
    color: var(--primary) !important;
    text-decoration: none;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
    transition: all 0.3s ease;
}

.ayanlogix-link:hover {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.9);
    filter: brightness(1.2);
}

