:root {
    --bg-light: #ffffff;
    --bg-card: #f8fafc;
    --bg-card-hover: #f1f5f9;
    --border-light: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.2);
    --secondary: #7c3aed;
    
    --color-blue: #2563eb;
    --color-purple: #7c3aed;
    --color-orange: #ea580c;
    --color-red: #dc2626;
    --color-green: #16a34a;
}

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

body {
    font-family: "Times New Roman", serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: Georgia, serif;
    color: var(--text-primary);
}

h4, h5, h6 {
    color: var(--text-primary);
}

.code-mockup pre, code, .tech-stack-section, .code, .tech-stack {
    font-family: "Courier New", monospace;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: all 0.3s ease;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-icon {
    color: var(--primary);
}

.badge {
    font-size: 0.75rem;
    background: var(--bg-card);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 99px;
    border: 1px solid var(--border-light);
    vertical-align: middle;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 99px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: "Times New Roman", serif;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: #cbd5e1;
}

/* Typography Helpers */
.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-blue { color: var(--color-blue); }
.text-purple { color: var(--color-purple); }
.text-orange { color: var(--color-orange); }
.text-red { color: var(--color-red); }
.text-green { color: var(--color-green); }

/* Glass Panel -> Solid Card in Light Mode */
.glass-panel {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 5rem;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 99px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--color-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Code Mockup */
.code-mockup {
    padding: 1.5rem;
    background: #0f172a; /* Keep code terminal dark for contrast */
    color: #f8fafc;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

.mockup-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

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

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27c93f; }

.window-title {
    flex-grow: 1;
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

pre {
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
}

.keyword { color: #c4b5fd; }
.flag { color: #93c5fd; }
.string { color: #6ee7b7; }
.comment { color: #94a3b8; }
.property { color: #f9a8d4; }

/* Tech Stack Section */
.tech-stack-section {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-card);
}

.tech-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-weight: 600;
}

.tech-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 700;
}

/* Features Section */
.features-section {
    padding: 8rem 2rem;
}

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

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

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

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

.feature-card {
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Timeline */
.timeline-section {
    padding: 8rem 2rem;
    background: var(--bg-card);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: var(--border-light);
}

.timeline-item {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 3rem;
}

.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-family: Georgia, serif;
    font-weight: 700;
    color: var(--primary);
}

.timeline-content {
    padding: 2rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Comparison */
.comparison-section {
    padding: 8rem 2rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.compare-card {
    padding: 3rem;
    position: relative;
}

.compare-card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.compare-card ul {
    list-style: none;
}

.compare-card li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.compare-total {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    font-size: 1.25rem !important;
    font-weight: bold;
}

.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    font-family: Georgia, serif;
    font-size: 0.875rem;
}

.compare-card.automated {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

/* Economics */
.economics-section {
    padding: 4rem 2rem 8rem;
}

.economics-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem;
    background: var(--bg-card);
}

.economics-content {
    flex: 1;
    max-width: 600px;
}

.economics-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.economics-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

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

.cost-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.cost-list li i {
    color: var(--color-green);
}

.usd-sub {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-left: 0.4rem;
}

.economics-stat {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.stat-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.1);
}

.stat-value {
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* FAQ */
.faq-section {
    padding: 8rem 2rem;
    background: var(--bg-card);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    cursor: pointer;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.25rem;
    margin: 0;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.faq-answer p {
    color: var(--text-secondary);
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 8rem 2rem;
    border-top: 1px solid var(--border-light);
}

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

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

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

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-actions { justify-content: center; }
    
    .pill-badge { margin: 0 auto 1.5rem; }
    
    .economics-card {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding: 3rem 2rem;
    }
    
    .cost-list li, .economics-stat { justify-content: center; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; max-width: 100%; }
    .hero-actions { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
    .comparison-grid { grid-template-columns: 1fr; }
    .hidden-mobile { display: none; }
    .timeline::before { left: 16px; }
    .timeline-number { width: 36px; height: 36px; left: -2px; font-size: 1rem; }
    .timeline-item { padding-left: 3.5rem; }
}

/* Simulation Section */
.simulation-section {
    padding: 8rem 2rem;
}

.simulation-container {
    padding: 3rem;
}

.sim-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.sim-config {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sim-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.main-input {
    flex: 2;
    min-width: 250px;
}

.select-wrapper {
    flex: 1;
    min-width: 150px;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    color: #94a3b8;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 10;
}

.sim-input, .sim-select {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border-radius: 99px;
    border: 1px solid var(--border-light);
    background: #fff;
    font-size: 1rem;
    font-family: "Times New Roman", serif;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.sim-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.25em;
}

.sim-input:focus, .sim-select:focus {
    box-shadow: 0 0 0 4px var(--primary-glow);
    border-color: var(--primary);
}

#btnRunSim {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#btnRunSim:not(:disabled):hover {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

#btnRunSim::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: buttonGlow 3s infinite;
}

@keyframes buttonGlow {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}
.sim-terminal {
    height: 650px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.sim-output-box {
    padding-top: 0;
    flex: 1;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 1.1rem;
}

.log-line {
    margin-bottom: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.log-info { color: #93c5fd; }
.log-success { color: #86efac; }
.log-error { color: #fca5a5; }
.log-system { color: #c4b5fd; }

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

.sim-dashboard-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.sim-sidebar-left, .sim-sidebar-right {
    display: flex;
    flex-direction: column;
}

.sim-main {
    display: flex;
    flex-direction: column;
}

.sim-status-board {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.sim-status-board h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.sim-progress-container {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.sim-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary);
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    transition: width 0.5s ease;
}

.sim-progress-bar.processing {
    animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

.sim-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sim-checklist li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.sim-checklist li i {
    width: 24px;
    height: 24px;
}

.step-pending {
    color: var(--text-secondary);
    opacity: 0.5;
}

.step-active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
    opacity: 1;
}

.step-active i {
    animation: pulseIcon 1.5s infinite;
}

.step-done {
    color: var(--color-green);
    opacity: 1;
}

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.network-monitor {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-light);
}

.network-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.network-header i {
    width: 18px;
    height: 18px;
}

.network-logs {
    background-color: #0f172a;
    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;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 1rem;
    height: 120px;
    overflow-y: hidden;
    font-family: "Courier New", monospace;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.net-log {
    margin-bottom: 0.25rem;
    animation: fadeIn 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.net-method { font-weight: bold; margin-right: 0.5rem; }
.net-post { color: #f59e0b; }
.net-get { color: #3b82f6; }
.net-status-200 { color: #10b981; }
.net-status-404 { color: #ef4444; }
.net-url { color: #cbd5e1; }

.sim-visual-output {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    min-height: 50px;
}

.visual-block {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    animation: slideUp 0.5s ease;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visual-block:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1);
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.visual-content {
    flex: 1;
}

.fake-code {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: "Courier New", monospace;
    color: #475569;
    white-space: pre-wrap;
}

.visual-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.visual-images img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.fake-youtube {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fake-youtube img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.youtube-play {
    position: absolute;
    width: 60px;
    height: 40px;
    background: #ff0000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

@media (max-width: 1100px) {
    .sim-dashboard-layout { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .sim-input-area { flex-direction: column; }
    .sim-input { width: 100%; }
}

/* =========================================================
HERO — EDITORIAL ENGINEERING LUXURY
========================================================= */

.hero {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
align-items: center;
gap: clamp(3rem, 7vw, 7rem);
min-height: calc(100vh - 80px);
padding-top: clamp(6rem, 10vw, 9rem);
padding-bottom: clamp(5rem, 9vw, 8rem);
isolation: isolate;
overflow: hidden;
}

/* Background engineering grid */
.hero-grid {
position: absolute;
inset: 0;
z-index: -3;
pointer-events: none;
opacity: 0.22;
background-image:
linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
background-size: 64px 64px;
mask-image: linear-gradient(
to bottom,
transparent 0%,
black 18%,
black 72%,
transparent 100%
);
}

.ambient-glow {
position: absolute;
z-index: -2;
border-radius: 999px;
pointer-events: none;
filter: blur(110px);
opacity: 0.16;
}

.glow-1 {
width: 34rem;
height: 34rem;
top: 4%;
right: -10%;
background: rgba(110, 86, 255, 0.72);
}

.glow-2 {
width: 28rem;
height: 28rem;
bottom: 0;
left: -12%;
background: rgba(0, 194, 255, 0.38);
}

/* =========================================================
CONTENT
========================================================= */

.hero-content {
position: relative;
z-index: 2;
max-width: 780px;
}

.pill-badge {
display: inline-flex;
align-items: center;
gap: 0.65rem;
width: fit-content;
padding: 0.55rem 0.8rem;
margin-bottom: 1.6rem;

border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 999px;
background:
    linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.03),
        rgba(0, 0, 0, 0.01)
    );
box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 12px 40px rgba(0, 0, 0, 0.08);
color: rgba(0, 0, 0, 0.75);
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
backdrop-filter: blur(14px);

}

.pulse-dot {
width: 7px;
height: 7px;
flex: 0 0 auto;
border-radius: 50%;
background: #68f7b1;
box-shadow: 0 0 0 5px rgba(104, 247, 177, 0.08);
animation: heroPulse 2.2s ease-in-out infinite;
}

.badge-divider {
width: 1px;
height: 12px;
background: rgba(0, 0, 0, 0.14);
}

.hero-title {
max-width: 900px;
margin: 0;

font-size: clamp(2.4rem, 4.5vw, 4.5rem);
line-height: 1.15;
letter-spacing: -0.01em;
font-weight: 700;
color: #0b0b0e;
text-wrap: balance;

}

.hero-line-muted {
display: block;
margin-top: 0.08em;

background: linear-gradient(
    100deg,
    rgba(11, 11, 14, 0.98) 0%,
    rgba(45, 60, 200, 0.94) 42%,
    rgba(80, 50, 255, 0.95) 100%
);
-webkit-background-clip: text;
background-clip: text;
color: transparent;

}

.hero-subtitle {
max-width: 720px;
margin: 1.5rem 0 0;
font-size: 1.25rem;
color: rgba(0, 0, 0, 0.65);
line-height: 1.6;
}

.hero-subtitle strong {
color: rgba(0, 0, 0, 0.9);
font-weight: 600;
}

/* =========================================================
PROOF STRIP
========================================================= */

.hero-proof {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
max-width: 690px;

margin-top: 2.2rem;
padding: 1rem 0;
border-top: 1px solid rgba(0, 0, 0, 0.08);
border-bottom: 1px solid rgba(0, 0, 0, 0.08);

}

.proof-item {
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 0;
padding: 0 1rem;
border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.proof-item:first-child {
padding-left: 0;
}

.proof-item:last-child {
border-right: 0;
}

.proof-value {
color: rgba(90, 70, 220, 0.95);
font-family: "Courier New", monospace;
font-size: 0.95rem;
font-weight: bold;
}

.proof-label {
color: rgba(0, 0, 0, 0.66);
font-size: 1rem;
white-space: nowrap;
}

/* =========================================================
ACTIONS
========================================================= */

.hero-actions {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.85rem;
margin-top: 2rem;
}

.hero-actions .btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.7rem;

min-height: 52px;
padding: 0 1.2rem;
border-radius: 12px;
text-decoration: none;
font-size: 0.92rem;
font-weight: 600;
transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;

}

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

.hero-actions .btn-primary {
color: #ffffff;
background: #0b0b0e;
border: 1px solid rgba(0, 0, 0, 0.9);

box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

}

.hero-actions .btn-primary:hover {
background: #1a1a24;
box-shadow:
0 18px 50px rgba(0, 0, 0, 0.24),
0 0 32px rgba(129, 108, 255, 0.14);
}

.hero-actions .btn-secondary {
color: rgba(0, 0, 0, 0.84);
background: rgba(0, 0, 0, 0.035);
border: 1px solid rgba(0, 0, 0, 0.12);
backdrop-filter: blur(12px);
}

.hero-actions .btn-secondary:hover {
background: rgba(0, 0, 0, 0.065);
border-color: rgba(0, 0, 0, 0.22);
}

/* =========================================================
STACK
========================================================= */

.hero-stack {
margin-top: 2rem;
}

.stack-label {
display: block;
margin-bottom: 0.75rem;

color: rgba(0, 0, 0, 0.4);
font-size: 0.64rem;
font-weight: 700;
letter-spacing: 0.16em;

}

.stack-items {
display: flex;
flex-wrap: wrap;
gap: 0.55rem 1rem;
}

.stack-items span {
color: rgba(0, 0, 0, 0.55);
font-size: 0.9rem;
transition: color 180ms ease;
}

.stack-items span:hover {
color: rgba(0, 0, 0, 0.9);
}

/* =========================================================
TERMINAL VISUAL
========================================================= */

.hero-visual {
position: relative;
z-index: 2;
min-width: 0;
perspective: 1400px;
}

.terminal-orbit {
position: absolute;
inset: -12%;
z-index: -1;
border-radius: 50%;

background:
    radial-gradient(
        circle,
        rgba(119, 96, 255, 0.14) 0%,
        rgba(119, 96, 255, 0.04) 36%,
        transparent 70%
    );
filter: blur(28px);

}

.hero-terminal-glass {
position: relative;
overflow: hidden;

border: 1px solid rgba(255, 255, 255, 0.105);
border-radius: 18px;
background:
    linear-gradient(
        145deg,
        rgba(18, 18, 24, 0.93),
        rgba(8, 8, 13, 0.96)
    );
box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
backdrop-filter: blur(24px);
transform: rotateY(-2deg) rotateX(1deg);
transition: transform 350ms ease;

}

.hero-terminal-glass:hover {
transform: rotateY(0deg) rotateX(0deg) translateY(-4px);
}

.mockup-header {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;

min-height: 48px;
padding: 0 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
background: rgba(255, 255, 255, 0.018);

}

.window-controls {
display: flex;
align-items: center;
gap: 0.45rem;
}

.control {
width: 9px;
height: 9px;
border-radius: 50%;
}

.control.red {
background: #ff605c;
}

.control.yellow {
background: #ffbd44;
}

.control.green {
background: #00ca4e;
}

.window-title {
display: inline-flex;
align-items: center;
gap: 0.45rem;

color: rgba(255, 255, 255, 0.48);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 0.7rem;

}

.window-title svg {
width: 13px;
height: 13px;
}

.terminal-status {
justify-self: end;
display: inline-flex;
align-items: center;
gap: 0.4rem;

color: rgba(104, 247, 177, 0.72);
font-size: 0.62rem;
font-weight: 700;
letter-spacing: 0.1em;

}

.status-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: #68f7b1;
box-shadow: 0 0 12px rgba(104, 247, 177, 0.7);
}

.terminal-meta {
display: flex;
justify-content: space-between;
gap: 1rem;

padding: 0.75rem 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.055);
color: rgba(255, 255, 255, 0.3);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 0.62rem;

}

.terminal-output {
min-height: 330px;
margin: 0;
padding: 1.4rem;

overflow-x: auto;
color: rgba(224, 228, 255, 0.78);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: clamp(0.72rem, 1vw, 0.82rem);
line-height: 1.8;
tab-size: 2;

}

.execution-footer {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));

border-top: 1px solid rgba(255, 255, 255, 0.065);
background: rgba(255, 255, 255, 0.018);

}

.execution-stat {
display: flex;
flex-direction: column;
gap: 0.3rem;

padding: 0.9rem 1rem;
border-right: 1px solid rgba(255, 255, 255, 0.055);

}

.execution-stat:last-child {
border-right: 0;
}

.execution-stat .stat-label {
color: rgba(255, 255, 255, 0.28);
font-size: 0.56rem;
font-weight: 700;
letter-spacing: 0.12em;
}

.execution-stat .stat-value {
color: rgba(255, 255, 255, 0.8);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 0.72rem;
}

.execution-stat .stat-value.success {
color: #68f7b1;
}

/* =========================================================
FLOATING ARCHITECTURE CARDS
========================================================= */

.floating-card {
position: absolute;
z-index: 4;

display: flex;
align-items: center;
gap: 0.7rem;
padding: 0.75rem 0.9rem;
border: 1px solid rgba(0, 0, 0, 0.08);
border-radius: 12px;
background: rgba(255, 255, 255, 0.82);
box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
backdrop-filter: blur(18px);

}

.floating-card svg {
width: 18px;
height: 18px;
color: rgba(90, 70, 220, 0.9);
}

.floating-card > div {
display: flex;
flex-direction: column;
gap: 0.15rem;
}

.floating-label {
color: rgba(0, 0, 0, 0.45);
font-size: 0.54rem;
font-weight: 700;
letter-spacing: 0.12em;
}

.floating-card strong {
color: rgba(0, 0, 0, 0.85);
font-size: 0.7rem;
font-weight: 600;
}

.card-idempotency {
top: -28px;
right: -24px;
animation: floatCard 5s ease-in-out infinite;
}

.card-database {
bottom: 54px;
left: -42px;
animation: floatCard 5.8s ease-in-out infinite reverse;
}

/* =========================================================
MOTION
========================================================= */

@keyframes heroPulse {
0%, 100% {
opacity: 0.65;
transform: scale(1);
}

50% {
    opacity: 1;
    transform: scale(1.12);
}

}

@keyframes floatCard {
0%, 100% {
transform: translateY(0);
}

50% {
    transform: translateY(-8px);
}

}

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

@media (max-width: 1100px) {
.hero {
grid-template-columns: 1fr;
gap: 4rem;
}

.hero-content {
    max-width: 860px;
}
.hero-visual {
    width: min(100%, 820px);
}
.hero-title {
    font-size: clamp(3.3rem, 9vw, 6.5rem);
}

}

@media (max-width: 720px) {
.hero {
min-height: auto;
padding-top: 6rem;
padding-bottom: 4rem;
gap: 3rem;
}

.hero-title {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
    letter-spacing: -0.055em;
}
.hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.68;
}
.hero-proof {
    grid-template-columns: 1fr;
}
.proof-item {
    padding: 0.8rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.proof-item:last-child {
    border-bottom: 0;
}
.hero-actions {
    align-items: stretch;
}
.hero-actions .btn {
    width: 100%;
}
.mockup-header {
    grid-template-columns: auto 1fr;
}
.window-title {
    justify-self: end;
}
.terminal-status {
    display: none;
}
.terminal-meta {
    flex-direction: column;
    gap: 0.35rem;
}
.terminal-output {
    min-height: 280px;
    padding: 1rem;
    font-size: 0.7rem;
}
.execution-footer {
    grid-template-columns: 1fr;
}
.execution-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.execution-stat:last-child {
    border-bottom: 0;
}
.floating-card {
    display: none;
}
.hero-terminal-glass {
    transform: none;
}

}

@media (prefers-reduced-motion: reduce) {
.pulse-dot,
.floating-card {
animation: none;
}

.hero-terminal-glass,
.hero-actions .btn {
    transition: none;
}

}

.terminal-cursor {
    color: #68f7b1;
    animation: terminalBlink 1s steps(1) infinite;
}
@keyframes terminalBlink {
    50% {
        opacity: 0;
    }
}
