/* Fonts */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --color-bg: #030014;
    --color-surface: #0f172a;
    --color-surface-light: #1e293b;
    --color-border: rgba(255, 255, 255, 0.1);

    --color-primary: #8b5cf6;
    --color-secondary: #3b82f6;
    --color-accent: #f43f5e;

    --gradient-main: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(139, 92, 246, 0.5) 0%, transparent 70%);

    --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: #fff;
    font-family: var(--font-heading);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Ambient Light Background */
.ambient-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.light {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.light-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #4c1d95;
    animation-delay: 0s;
}

.light-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: #1e3a8a;
    animation-delay: -5s;
}

.light-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: #be185d;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

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

/* Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.nav-container {
    padding: 0.8rem 2rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-box {
    width: 32px;
    height: 32px;
    background: var(--gradient-main);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.version-badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #a78bfa;
}

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

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-cta {
    background: #fff;
    color: #0f172a;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

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

/* Hero */
.hero {
    min-height: 100vh;
    padding-top: 150px;
    display: flex;
    align-items: center;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, #a78bfa, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--color-border);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-benefits {
    display: flex;
    gap: 1.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-green {
    color: #4ade80;
}

/* Chat Window (Antigravity Style) */
.chat-window {
    background: #0f172a;
    border-radius: 16px;
    border: 1px solid #334155;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: var(--font-heading);
    /* Chat uses main font, not mono */
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.1s;
    height: 400px;
    /* Taller for chat */
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #1e293b;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #334155;
}

.window-controls {
    position: absolute;
    left: 1rem;
    display: flex;
    gap: 6px;
}

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

.red {
    background: #ef4444;
}

.yellow {
    background: #f59e0b;
}

.green {
    background: #10b981;
}

.window-title {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.chat-mode-badge {
    position: absolute;
    right: 1rem;
    font-size: 0.7rem;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.chat-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    font-size: 0.95rem;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-msg {
    display: flex;
    gap: 1rem;
}

.user-msg {
    flex-direction: row-reverse;
}

.ai-msg {
    flex-direction: row;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.user-av {
    background: #3b82f6;
    color: #fff;
}

.ai-av {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: #fff;
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    line-height: 1.5;
    font-size: 0.9rem;
}

.user-msg .msg-bubble {
    background: #3b82f6;
    color: #fff;
    border-top-right-radius: 2px;
}

.ai-msg .msg-bubble {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-top-left-radius: 2px;
}

.input-bubble {
    background: transparent !important;
    border: 1px solid #334155;
    color: #fff !important;
    min-width: 200px;
    border-radius: 20px !important;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-visual {
    position: relative;
}

.floating-badge {
    position: absolute;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    animation: float-badge 3s infinite alternate ease-in-out;
}

.badge-1 {
    top: 20%;
    right: -20px;
    color: #f472b6;
}

.badge-2 {
    bottom: 10%;
    left: -20px;
    color: #4ade80;
    animation-delay: 1s;
}

@keyframes float-badge {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

/* Sections */
.section {
    padding: 6rem 0;
}

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

.section-header.center {
    text-align: center;
}

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

.section-desc {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Steps Timeline */
.steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--color-surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.step-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.step-visual {
    background: #000;
    border-radius: 8px;
    padding: 1rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Visuals for steps */
.chat-bubble {
    padding: 4px 8px;
    font-size: 0.6rem;
    border-radius: 4px;
    margin-bottom: 4px;
    width: fit-content;
}

.user {
    background: #3b82f6;
    align-self: flex-end;
    margin-left: auto;
}

.ai {
    background: #334155;
    color: #94a3b8;
}

.step-visual {
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
}

.mockup-mini {
    width: 100%;
    height: 100%;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.mockup-header {
    height: 10px;
    background: #222;
    border-bottom: 1px solid #333;
}

.mockup-body {
    padding: 5px;
}

.skeleton-hero {
    height: 30px;
    background: #333;
    margin-bottom: 5px;
    border-radius: 2px;
}

.skeleton-grid {
    display: flex;
    gap: 3px;
}

.skeleton-grid div {
    height: 40px;
    flex: 1;
    background: #222;
    border-radius: 2px;
}

.code-lines .line {
    height: 4px;
    background: #333;
    margin-bottom: 4px;
    border-radius: 2px;
}

.w-80 {
    width: 80%;
    background: #c084fc;
}

.w-60 {
    width: 60%;
}

.w-90 {
    width: 90%;
    background: #4ade80;
}

.w-40 {
    width: 40%;
}

.btn-mini {
    background: #2563eb;
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    cursor: pointer;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 1.5rem;
}

.bento-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.bento-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.2);
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.gradient-1 {
    background: linear-gradient(135deg, #f0abfc, #a855f7);
}

.gradient-2 {
    background: linear-gradient(135deg, #5eead4, #0f766e);
}

.gradient-3 {
    background: linear-gradient(135deg, #fca5a5, #dc2626);
}

.gradient-4 {
    background: linear-gradient(135deg, #93c5fd, #2563eb);
}

.bento-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.bento-card p {
    color: #94a3b8;
}

.card-content-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.visual-side {
    width: 50%;
    display: flex;
    justify-content: center;
}

.progress-bar-visual {
    width: 100%;
    height: 20px;
    background: #334155;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    width: 0%;
    height: 100%;
    background: #4ade80;
    transition: width 2s ease-in-out;
}

.bar-check {
    position: absolute;
    right: 5px;
    top: 0;
    color: #fff;
    transform: scale(0);
    transition: transform 0.3s 2s;
}

.bento-card:hover .bar-fill {
    width: 100%;
}

.bento-card:hover .bar-check {
    transform: scale(0.8);
}

/* Personas */
.persona-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    justify-content: center;
}

.persona-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2rem;
    width: 250px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.3s;
}

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

.persona-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.p1 {
    background: #fca5a5;
    color: #7f1d1d;
}

.p2 {
    background: #86efac;
    color: #14532d;
}

.p3 {
    background: #f9a8d4;
    color: #831843;
}

.p4 {
    background: #93c5fd;
    color: #1e3a8a;
}

.trigger code {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Commands */
.cmd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.cmd-item {
    background: var(--color-surface-light);
    border: 1px solid var(--color-border);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
    transition: 0.2s;
}

.cmd-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

.cmd-item code {
    color: #a78bfa;
    font-weight: 700;
}

.cmd-item span {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    margin-top: 5rem;
}

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

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-right a {
    color: #64748b;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-benefits {
        justify-content: center;
    }

    .hero-visual {
        display: none;
        /* Hide complex visual on mobile */
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .span-2,
    .span-3 {
        grid-column: auto;
    }

    .steps-timeline {
        grid-template-columns: 1fr;
    }

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

    .persona-scroll {
        justify-content: flex-start;
    }
}

/* Case Study Timeline */
.case-study-timeline {
    border-left: 2px solid var(--color-border);
    margin-left: 20px;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.cs-step {
    position: relative;
}

.cs-number {
    position: absolute;
    left: -61px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.cs-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.terminal-block {
    background: #000;
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    margin: 1rem 0;
    border: 1px solid #333;
}

.chat-interface {
    background: var(--color-surface-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid var(--color-border);
}

.msg {
    margin-bottom: 1rem;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.msg.ai {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid #8b5cf6;
}

.msg.user {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
}

.progress-demo {
    background: var(--color-surface);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #94a3b8;
}

.progress-item.completed {
    color: #4ade80;
}

.progress-item.active {
    color: #facc15;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #facc15;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

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

/* App Fluke (Result Demo) */
.app-fluke {
    background: #fff;
    color: #000;
    padding: 1rem;
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.fluke-header {
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
    text-align: center;
}

.fluke-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    margin-bottom: 10px;
}

.fluke-item {
    border: 1px solid #eee;
    padding: 5px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.8rem;
}

.f-img {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.fluke-btn {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
}

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

.recipe-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    transition: 0.2s;
}

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

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

.code-snippet {
    background: #000;
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    margin: 1rem 0;
    color: #a78bfa;
    height: 180px;
    overflow-y: auto;
}

.code-snippet.small {
    height: auto;
    max-height: 100px;
    margin: 0;
    font-size: 0.85rem;
}

.comment {
    color: #64748b;
}

.btn-copy {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
}

.btn-copy:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

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

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header h2 {
    font-size: 1.8rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section p {
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Smart Flowchart */
.flowchart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    padding: 2rem 0;
}

.flow-node {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    min-width: 180px;
    position: relative;
    z-index: 2;
    transition: 0.2s;
}

.start-node {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.flow-branches {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.flow-line {
    width: 2px;
    height: 30px;
    background: var(--color-border);
}

.flow-arrow {
    font-size: 1.2rem;
    color: #64748b;
}

.condition {
    border-color: #64748b;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.result {
    cursor: pointer;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result:hover {
    transform: translateY(-5px);
}

.result code {
    font-family: monospace;
    font-size: 1.1rem;
}

.result span {
    font-size: 0.8rem;
    font-weight: normal;
    opacity: 0.8;
}

.purple {
    background: #7c3aed;
    border-color: #8b5cf6;
}

.blue {
    background: #2563eb;
    border-color: #3b82f6;
}

.pink {
    background: #db2777;
    border-color: #ec4899;
}

.green {
    background: #059669;
    border-color: #10b981;
}

.orange {
    background: #d97706;
    border-color: #f59e0b;
}

.gray {
    background: #475569;
    border-color: #64748b;
}

.flow-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.flow-connect {
    color: #64748b;
}

/* Comparison Visual (Before/After) */
.comparison-visual {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    justify-content: center;
}

.comp-card {
    flex: 1;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    max-width: 500px;
    position: relative;
}

.old-way {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.new-way {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
}

.comp-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #10b981;
    color: #fff;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
}

.comp-header h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.comp-body {
    flex: 1;
}

.c-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.c-icon {
    font-size: 1.5rem;
}

.c-row p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.comp-footer {
    margin-top: 2rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comp-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #64748b;
    font-style: italic;
}

/* Chat Interface Simple (For Case Study) */
.chat-interface.simple {
    background: transparent;
    border: none;
    padding: 0;
}

.chat-interface.simple .msg {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Code Progress Visual */
.code-progress-visual {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #334155;
    font-family: monospace;
}

.cp-file {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #e2e8f0;
}

.badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge.done {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.badge.active {
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
    animation: pulse 1s infinite;
}

.cp-log {
    margin-top: 1rem;
    color: #94a3b8;
    font-size: 0.85rem;
    border-top: 1px solid #334155;
    padding-top: 1rem;
}

/* Premium Fluke App */
.app-fluke.premium {
    width: 320px;
    background: #fffcfbe0;
    backdrop-filter: blur(10px);
}

.fluke-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 1rem;
    color: #444;
    font-weight: bold;
}

.user-badge {
    background: #eee;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.fluke-card {
    border: 1px solid #e5e5e5;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
    color: #333;
}

.fluke-card:hover {
    border-color: #a78bfa;
    background: #f5f3ff;
}

.fluke-card.active {
    border-color: #8b5cf6;
    background: #ede9fe;
}

.f-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto;
}

.brown {
    background: #78350f;
}

.dark {
    background: #3f3f46;
}

.green {
    background: #059669;
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fluke-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
}

.fluke-footer button {
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .flow-branches {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .comparison-visual {
        flex-direction: column;
    }

    .comp-vs {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

/* Comparison Table (1.0 vs 2.0) */
.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--color-surface);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    padding: 1rem;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comp-table th,
.comp-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comp-table th {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 500;
}

.comp-table .ver-1 {
    color: #ef4444;
}

.comp-table .ver-2 {
    color: #10b981;
}

.comp-table td {
    font-size: 1rem;
    color: #e2e8f0;
    vertical-align: top;
}

.comp-table .bad {
    color: #94a3b8;
    opacity: 0.8;
}

.comp-table .good {
    color: #fff;
    font-weight: 600;
}

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

/* Skill Trap Warning Box */
.warning-box {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.warning-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.warn-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.warn-header i {
    width: 48px;
    height: 48px;
    color: #f59e0b;
}

.warn-header h2 {
    font-size: 1.8rem;
    color: #f59e0b;
}

.warn-intro {
    text-align: center;
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.warn-intro strong {
    color: #ef4444;
}

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

.trap-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.trap-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.trap-item h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.trap-item p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .trap-grid {
        grid-template-columns: 1fr;
    }

    .comp-table {
        min-width: 100%;
    }

    .comp-table th,
    .comp-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* --- WOW Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

    100% {
        transform: translateY(0px);
    }
}

/* Install Box (The Black Card) */
.install-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
}

.install-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(20px);
}

.install-cmd-wrapper {
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.cmd-text {
    font-family: 'JetBrains Mono', monospace;
    color: #4ade80;
    font-size: 1.1rem;
    overflow-x: auto;
    white-space: nowrap;
}

.cmd-copy-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    flex-shrink: 0;
}

.cmd-copy-btn:hover {
    background: #4ade80;
    color: #000;
}

/* Enhanced Gradient Text */
.gradient-text-gold {
    background: linear-gradient(to right, #facc15, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text-wow {
    background: linear-gradient(to right, #22d3ee, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* Fix Card Hover Wow */
.tilt-card:hover {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
}

@media (max-width: 768px) {
    .install-box {
        padding: 1.5rem;
    }

    .cmd-text {
        font-size: 0.9rem;
    }

    .install-cmd-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
}
/* --- Modern Vibe Coding UI Updates (AWF 4.0) --- */

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(69, 237, 247, 0.3);
    box-shadow: 0 0 20px rgba(69, 237, 247, 0.1);
}

.recipe-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.recipe-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.code-block {
    background: #0f172a;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cmd-line {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cmd-line:last-child { margin-bottom: 0; }

.prompt { color: #f43f5e; font-weight: bold; }
.text { color: #94a3b8; font-style: italic; }

.btn-copy-small {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-copy-small:hover {
    background: #fff;
    color: #000;
}

.feature-name {
    font-weight: 600;
    color: #fff;
    padding-left: 1rem;
}

.text-muted { color: #64748b !important; }

.text-glow {
    color: #4ade80 !important;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.footer-motto {
    font-family: 'JetBrains Mono', monospace;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #475569;
    font-size: 0.8rem;
}

/* --- Global Polish (Scrollbar & Selection) --- */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
}

/* Modal Polish */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    background: #0f172a;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 1.5rem;
}

.modal-header h2 {
    font-size: 2rem;
    margin: 0;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.modal-section p {
    line-height: 1.6;
}

/* --- VIBE CODING ULTRA POLISH --- */

/* 1. Noise Texture for that 'Premium' feel */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0.03;
    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");
}

/* 2. Better Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* 3. Ultra Gradient Text */
.gradient-text-wow {
    background: linear-gradient(to right, #c084fc, #6366f1, #3b82f6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    font-weight: 800;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* 4. Chat Window - MacOS Style */
.chat-window {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

.chat-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.msg-bubble {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-msg .msg-bubble {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 5. Floating Badge Animation */
@keyframes float-anim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.float-anim {
    animation: float-anim 3s ease-in-out infinite;
}

/* 6. Button Wow */
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #c026d3);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before {
    opacity: 1;
}


/* --- RADICAL REDESIGN (NEO-BRUTALISM + NEON) --- */

/* 1. New Typography */
body {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

h1, h2, h3, .logo-text {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p, .cmd-text, .msg-bubble {
    font-family: 'Inter', sans-serif;
    letter-spacing: normal;
}

/* 2. Hero Overhaul (Center Stage) */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    min-height: 90vh;
}

.hero-layout {
    display: flex; /* Changed from Grid to Flex Column */
    flex-direction: column;
    width: 100%;
    max-width: 900px;
}

.hero-content {
    margin-bottom: 4rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem); /* Responsive Giant Text */
    line-height: 1;
    margin-bottom: 2rem;
}

.hero-visual {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    perspective: 1000px;
}

/* 3. Neo-Brutalism Cards */
.recipe-card, .glass-panel, .install-box, .warning-box {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px; /* Sharper corners */
    background: #000; /* Deep black */
    box-shadow: 8px 8px 0px rgba(139, 92, 246, 0.6); /* Hard shadow */
    transition: transform 0.2s, box-shadow 0.2s;
}

.recipe-card:hover, .glass-panel:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px rgba(139, 92, 246, 0.8);
    border-color: #fff;
}

/* 4. Neon Accents */
.text-glow, .section-title {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.nav-container {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 0 rgba(255, 255, 255, 0.1);
}

/* 5. Terminal Vibe */
kbd {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #4ade80; /* Matrix Green */
}


/* --- PHONE MOCKUP WOW --- */
.phone-frame {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    padding: 10px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

.phone-screen {
    background: #fff;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #333;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

/* --- PAIN POINT SECTION (THE STRUGGLE) --- */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pain-card {
    background: rgba(239, 68, 68, 0.05); /* Red tint */
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s;
}

.pain-card:hover {
    transform: translateY(-5px);
    background: rgba(239, 68, 68, 0.08);
}

.pain-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.pain-title {
    color: #f87171;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.pain-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}


/* --- DARK AURORA THEME REBOOT --- */
:root {
    --bg-deep: #050505;
    --accent-primary: #7c3aed; /* Violet */
    --accent-secondary: #06b6d4; /* Cyan */
    --accent-tertiary: #f43f5e; /* Rose */
    
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background: var(--bg-deep);
    color: #e2e8f0;
}

/* Aurora Background Animation */
.aurora-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.15), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(244, 63, 94, 0.1), transparent 40%);
    animation: aurora-spin 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

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

/* Bento Grid System for Features */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
    margin-top: 4rem;
}

.bento-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.bento-large {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-desc {
    color: #94a3b8;
    line-height: 1.6;
}

.bento-visual {
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0.5;
    pointer-events: none;
}

/* Feature Specific Visuals */
.brain-visual {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-primary), transparent);
    filter: blur(40px);
    animation: pulse-brain 4s infinite ease-in-out;
}

@keyframes pulse-brain {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}


/* --- FIXED AURORA Z-INDEX --- */
.aurora-bg {
    z-index: -10 !important;
}

body {
    background: transparent !important; /* Let Aurora show through */
    background-color: var(--bg-deep) !important; /* Fallback */
}

.noise-overlay {
    z-index: -5 !important;
}

/* --- GLOW UP INSTALL BOX --- */
.install-box {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 222, 128, 0.3); /* Green tint */
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.1);
}


/* --- THAO COFFEE APP: MODERN REDESIGN --- */
.app-header-modern {
    background: url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=600&q=80') center/cover;
    height: 180px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.app-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
}

.app-title-box {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.app-title-text h2 {
    font-size: 1.5rem;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.app-title-text span {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 300;
}

.app-body-modern {
    background: #f8fafc;
    height: calc(100% - 180px);
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
}

.category-pill {
    display: inline-block;
    padding: 6px 16px;
    background: #475569;
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.category-pill.active {
    background: #d97706; /* Amber-600 */
}

.drink-card-modern {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    border: 1px solid transparent;
}

.drink-card-modern:hover {
    transform: translateY(-2px);
}

.drink-card-modern.active {
    border-color: #d97706;
    background: #fffbeb;
}

.drink-thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.drink-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.drink-name {
    color: #334155;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.drink-price {
    color: #d97706;
    font-weight: 600;
    font-size: 0.9rem;
}

.add-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    cursor: pointer;
    transition: all 0.2s;
}

.drink-card-modern.active .add-btn {
    background: #d97706;
    color: #fff;
}

/* Floating Checkout Bar */
.checkout-bar {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #1e293b;
    border-radius: 16px;
    padding: 16px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(30, 41, 59, 0.3);
}

.checkout-total {
    display: flex;
    flex-direction: column;
}

.checkout-btn {
    background: #d97706;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}


/* --- MOCKUP SIZE FIX (COMPACT MODE) --- */
.app-header-modern {
    height: 140px; /* Reduced from 180 */
    padding: 1rem;
}

.app-title-text h2 {
    font-size: 1.2rem;
}

.category-pill {
    padding: 4px 12px;
    font-size: 0.7rem;
    margin-bottom: 1rem;
}

.drink-card-modern {
    padding: 8px; /* Compact padding */
    gap: 10px;
    margin-bottom: 0.8rem;
}

.drink-thumb {
    width: 50px; /* Reduced from 70 */
    height: 50px;
}

.drink-name {
    font-size: 0.85rem;
}

.drink-price {
    font-size: 0.8rem;
}

.checkout-bar {
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 10px 15px;
}

.checkout-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* --- WORKFLOW MAP PRO (METRO STYLE) --- */
.metro-map {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 0;
    position: relative;
}

/* Vertical Line connecting phases */
.metro-map::before {
    content: '';
    position: absolute;
    top: 50px;
    bottom: 50px;
    left: 20px;
    width: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.phase-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-left: 3rem; /* Space for timeline */
    position: relative;
}

/* Phase Marker on Timeline */
.phase-row::before {
    content: '';
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
    border: 4px solid var(--accent-primary);
    z-index: 2;
}

.phase-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    color: #94a3b8;
    position: absolute;
    left: -20px;
    top: 0;
    height: 100%;
    text-align: center;
}

.nodes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    flex: 1;
}

.wf-node {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    text-align: center;
}

.wf-node:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

.wf-cmd {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.2rem;
}

.wf-desc {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Pulse Animation */
.pulse-node {
    animation: pulse-glow 2s infinite;
    border-color: var(--accent-primary);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}


/* --- THEME UPDATE: MIDNIGHT BLUE (HIGH CONTRAST) --- */
:root {
    --bg-deep: #0f172a; /* Slate 900 - Easier on eyes than pure black */
    --text-main: #f1f5f9; /* Slate 100 - High contrast text */
    --text-muted: #cbd5e1; /* Slate 300 */
}

body {
    background-color: var(--bg-deep) !important;
    color: var(--text-main);
}

.noise-overlay {
    opacity: 0.03 !important; /* Reduce noise for clarity */
}

/* Adjust text colors for readability */
p, .hero-subtitle, .bento-desc, .pain-desc {
    color: var(--text-muted) !important;
}

h1, h2, h3, h4, .bento-title, .pain-title {
    color: #fff !important;
}

/* Brighter Aurora */
.aurora-bg {
    opacity: 0.6; /* Make background slightly pop more */
}


/* --- NEXT LEVEL UX: MAGIC CURSOR --- */
body {
    cursor: none; /* Hide default cursor */
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-secondary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover effect */
body:has(a:hover) .cursor-outline,
body:has(button:hover) .cursor-outline,
body:has(.wf-node:hover) .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-secondary);
}

/* --- TEXTURE UPGRADE: GRID OVERLAY --- */
.grid-overlay {
    position: fixed;
    inset: 0;
    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: 50px 50px;
    z-index: -2;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}


/* --- EMERGENCY FIX: SHOW CURSOR --- */
body {
    cursor: auto !important; /* Force show default cursor */
}
.cursor-dot, .cursor-outline {
    display: none !important; /* Hide magic cursor temporarily */
}

/* --- FIX OVERLAY Z-INDEX (CONTENT DISAPPEARANCE FIX) --- */
.grid-overlay {
    z-index: -9 !important; /* Above aurora (-10), below content (0) */
}

/* --- RESTORE MAGIC CURSOR --- */
body {
    cursor: none !important; /* Hide default again */
}
.cursor-dot, .cursor-outline {
    display: block !important; /* Show magic cursor */
}

/* Ensure ALL sections have higher z-index than backgrounds */
.section, .hero, .navbar, footer {
    position: relative;
    z-index: 10;
}

/* --- ULTIMATE BACKGROUND UPGRADE: CYBERSPACE --- */
.aurora-bg {
    background: 
        radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.25), transparent 25%), 
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.25), transparent 25%);
    filter: blur(80px); /* Soften the glowing orbs */
    z-index: -10;
    animation: bg-pulse 10s ease-in-out infinite alternate;
}

@keyframes bg-pulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.1); }
}

/* Moving Tech Partciles */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(#ffffff 1px, transparent 1px), 
        radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.05;
    z-index: -5;
    animation: particle-move 60s linear infinite;
}

@keyframes particle-move {
    0% { background-position: 0 0, 25px 25px; }
    100% { background-position: 100px 100px, 125px 125px; }
}

/* Deep Space Gradient Base */
body {
    background: linear-gradient(to bottom, #0f172a, #1e1b4b, #0f172a) !important;
}

/* === FAQ SECTION (v4.0.2) === */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.faq-item.open p {
    display: block !important;
}

.faq-item.open i[data-lucide="chevron-down"] {
    transform: rotate(180deg);
}

/* === QUICKSTART SECTION (v4.0.2) === */
.quickstart-step {
    transition: all 0.3s ease;
}

.quickstart-step:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive for Quick Start */
@media (max-width: 1024px) {
    .quickstart-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .quickstart-grid {
        grid-template-columns: 1fr !important;
    }

    .faq-item h4 {
        font-size: 0.95rem !important;
    }
}

/* Pro Tips Section */
.tip-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive for Pro Tips */
@media (max-width: 1024px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .tips-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   WOW EFFECTS - Premium Animations & Polish
   ═══════════════════════════════════════════════════════════════════════ */

/* 1. Animated Gradient Text (Hero Title) */
.gradient-text-animated {
    background: linear-gradient(
        90deg,
        #a78bfa,
        #06b6d4,
        #4ade80,
        #fbbf24,
        #f472b6,
        #a78bfa
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 2. Glow Pulse for CTA (Install Box) */
.glow-pulse {
    position: relative;
}

.glow-pulse::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4, #4ade80);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
    filter: blur(15px);
    animation: glow-breathe 3s ease-in-out infinite;
}

@keyframes glow-breathe {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

/* 3. Stagger Animation for Cards */
.stagger-container > * {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-container.animated > *:nth-child(1) { animation: stagger-in 0.6s 0.1s forwards; }
.stagger-container.animated > *:nth-child(2) { animation: stagger-in 0.6s 0.2s forwards; }
.stagger-container.animated > *:nth-child(3) { animation: stagger-in 0.6s 0.3s forwards; }
.stagger-container.animated > *:nth-child(4) { animation: stagger-in 0.6s 0.4s forwards; }
.stagger-container.animated > *:nth-child(5) { animation: stagger-in 0.6s 0.5s forwards; }
.stagger-container.animated > *:nth-child(6) { animation: stagger-in 0.6s 0.6s forwards; }
.stagger-container.animated > *:nth-child(7) { animation: stagger-in 0.6s 0.7s forwards; }

@keyframes stagger-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4. Shimmer Effect (for loading states or highlights) */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer-slide 3s infinite;
}

@keyframes shimmer-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 5. Bounce Arrow (for scroll indicators) */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.bounce-arrow {
    animation: bounce 2s infinite;
    display: inline-block;
}

/* 6. Magnetic Hover Effect */
.magnetic-hover {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 7. Glassmorphism Pro (Enhanced) */
.glass-pro {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 8. Neon Border on Hover */
.neon-border-hover {
    position: relative;
    transition: all 0.3s ease;
}

.neon-border-hover::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neon-border-hover:hover::before {
    opacity: 1;
}

.neon-border-hover:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

/* 9. Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: text-reveal-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes text-reveal-up {
    to { transform: translateY(0); }
}

/* 10. Feature Number Counter Style */
.feature-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4ade80, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(74, 222, 128, 0.3);
}

/* 11. Install Box Enhanced */
.install-box-wow {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.install-box-wow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #4ade80, #06b6d4, #8b5cf6);
    border-radius: inherit;
    z-index: -1;
    animation: border-rotate 4s linear infinite;
}

@keyframes border-rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* 12. Floating Particles Background Enhancement */
.particles-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 13. Hero Badge Glow */
.hero-badge-glow {
    position: relative;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(99, 102, 241, 0.2);
    }
}

/* 14. Command Code Highlight */
code {
    transition: all 0.2s ease;
}

code:hover {
    background: rgba(167, 139, 250, 0.3) !important;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.2);
}

/* 15. Section Divider Gradient Line */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    margin: 4rem 0;
}

/* 16. Stats Counter Row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 17. Testimonials Screenshots */
.testimonials-screenshots {
    max-width: 800px;
    margin: 0 auto;
}

.feedback-screenshot {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.feedback-screenshot:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feedback-screenshot img {
    transition: transform 0.3s ease;
}

.feedback-screenshot:hover img {
    transform: scale(1.02);
}
