:root {
    --bg-color: #fdf5DE;
    --text-primary: #1a1a1a;
    --text-secondary: #52525b;
    --accent: #E91E63;
    --border: #e6dbbd;
}

html {
    scroll-behavior: smooth;
}

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

body.light-theme {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.35;
    pointer-events: none;
    z-index: 9999;
}

/* Nav */
/* FLOATING PILL NAVBAR */
.navbar {
    position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1000px;
    background: rgba(255,255,255,0.3); backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,0.1); border-radius: 50px;
    padding: 0.8rem 2rem; z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex; align-items: center; justify-content: space-between;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.15);
}
body.dark-theme .navbar {
    background: rgba(12,12,12,0.3);
    border-color: rgba(255,255,255,0.1);
}
body.dark-theme .navbar.scrolled {
    background: rgba(12,12,12,0.95);
    border-color: rgba(255,255,255,0.15);
}

.nav-logo a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.05em;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s;
}

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

.btn-primary {
    background-color: var(--accent);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 800;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s;
    display: inline-block;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.15), 0 6px 20px rgba(233, 30, 99, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* HIGH DENSITY DASHBOARD GRID */
.dashboard-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: min-content;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.config-3-col .bento-item { grid-column: span 4; }
.config-2-col .bento-item { grid-column: span 6; }
.config-2-col { align-items: stretch; }

.config-2-col .service-block {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.config-2-col .service-block p:last-of-type {
    flex-grow: 1;
}

.bento-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bento-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-color: #d1c7ad;
}

/* SECTION MARKERS */
.section-marker {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 3px solid var(--text-primary);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
.section-marker h2 { 
    font-size: 3rem; 
    font-weight: 900; 
    letter-spacing: -0.03em; 
    line-height: 1; 
}
.section-marker p { 
    font-size: 1.2rem; 
    color: var(--text-secondary); 
    font-family: 'JetBrains Mono', monospace; 
    font-weight: 700; 
    text-transform: uppercase; 
}

/* IDEA B: IMPACT BANNER */
.impact-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #000;
    color: #fff;
    border-radius: 12px;
    padding: 4rem 0;
    gap: 0;
    border: 1px solid #333;
}
.stat { text-align: center; border-right: 1px solid #333; padding: 0 2rem; display: flex; flex-direction: column; justify-content: center; }
.stat:last-child { border-right: none; }
.stat h2 { font-size: 5rem; font-family: 'JetBrains Mono', monospace; font-weight: 900; color: #E91E63; margin-bottom: 0.5rem; line-height: 1;}
.stat p { font-size: 1.3rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #a1a1aa;}

/* IDEA A: METHODOLOGY */
.step-block { overflow: hidden;
    padding: 4rem 3rem;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-primary);
    opacity: 0.2;
    margin-bottom: 1.5rem;
    line-height: 1;
}
.step-block h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.step-block p { color: var(--text-secondary); line-height: 1.6; font-size: 1.1rem; }

/* HERO */
.hero-block {
    grid-column: span 12;
    background: var(--bg-color);
    padding: 6rem 5rem;
    border: 2px solid var(--text-primary);
    text-align: left;
}

.hero-block h1 {
    font-size: clamp(3rem, 5vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    max-width: 1000px;
}

.hero-block p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin-bottom: 3rem;
    line-height: 1.5;
}

/* TRUST */
.trust-block {
    grid-column: span 12;
    padding: 3rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
}

.trust-block > span {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    font-size: 1.1rem;
}

.logos-inline {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.logos-inline img {
    height: 38px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.logos-inline img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.collide-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* SERVICES */
.service-block {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
}

.service-icon {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    display: inline-block;
}

.service-block h3 {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    font-family: 'Playfair Display', Georgia, serif;
}

.service-block p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    font-style: normal !important;
}

.service-block p strong {
    color: var(--text-primary);
    font-weight: 800;
    font-style: normal;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.01em;
}

/* WORK */
.work-block {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
}

.work-img-wrapper {
    height: 350px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.work-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.work-block:hover .work-img-wrapper img {
    transform: scale(1.02);
}

.work-content {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.work-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.work-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    flex: 1;
}

.work-content a {
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
}

/* TESTIMONIAL */
.testimonial-block {
    grid-column: span 12;
    padding: 5rem 6rem;
    background: var(--text-primary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6rem;
}

.testimonial-block blockquote {
    font-size: 2rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
    flex: 2;
    letter-spacing: -0.02em;
}

.author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.9;
    border: 2px solid rgba(255,255,255,0.2);
}

/* Footer matching */
footer {
    background-color: var(--text-primary);
    color: white;
    padding: 6rem 2rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 6rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-content h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
}

.footer-content p {
    color: #a1a1aa;
    margin-bottom: 4rem;
    font-size: 1.2rem;
}

.footer-bottom {
    margin-top: 3rem;
    color: #71717a;
}

/* Responsive */
@media (max-width: 1000px) {
    .config-3-col .bento-item, .config-2-col .bento-item { grid-column: span 12; }
    .impact-banner { grid-template-columns: 1fr; gap: 4rem; }
    .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 2rem; }
    .stat:last-child { border-bottom: none; padding-bottom: 0; }
    
    .testimonial-block { flex-direction: column; text-align: left; }
    .trust-block { flex-direction: column; gap: 2rem; align-items: flex-start;}
    .hero-block h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
    .section-marker { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .navbar { padding: 0.5rem 1rem; flex-direction: row; gap: 1rem; align-items: center; justify-content: space-between; top: 1rem; }
    .nav-logo a { font-size: 1.2rem; }
    .btn-primary { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
}

/* MARKDOWN CONTENT (Blog/Insights) */
.content-body {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
}
.content-body h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.content-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.content-body p, .content-body ul, .content-body ol {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}
.content-body ul, .content-body ol {
    padding-left: 2rem;
}
.content-body li {
    margin-bottom: 0.5rem;
}
.content-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: all 0.2s;
}
.content-body a:hover {
    background-color: var(--accent);
    color: white;
    text-decoration-color: transparent;
}
.content-body blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1.3rem;
    margin: 2rem 0;
}

/* OUT OF THE BOX CTA STYLES */
.top-announcement {
    background: var(--text-primary);
    color: #fff;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
}
.top-announcement a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); margin-left: 0.5rem; transition: all 0.2s;}
.top-announcement a:hover { color: #fff; border-bottom-color: #fff; }

.top-pulse-dot {
    width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot { 0% { opacity: 0.4; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0.4; transform: scale(0.8); } }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-content {
    background: #ffffff; border-radius: 24px; padding: 3rem;
    max-width: 450px; width: 90%; position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3); text-align: left;
    transform: translateY(20px) scale(0.95); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; font-size: 2.5rem; line-height: 1; cursor: pointer; color: #aaa; transition: color 0.2s; padding:0;}
.modal-close:hover { color: #E91E63; }
.quirky-emoji { font-size: 3rem; display: block; margin-bottom: 0.5rem; animation: float-emoji 3s ease-in-out infinite; }
@keyframes float-emoji { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.quirky-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.quirky-form input, .quirky-form textarea {
    width: 100%; padding: 1rem; border: 2px solid #eaeaea; border-radius: 12px;
    font-size: 1rem; color: #111; background: #fafafa; transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}
.quirky-form input:focus, .quirky-form textarea:focus { outline: none; border-color: #111; background: #fff; }

.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid #333;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 9999;
}
.floating-cta:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(233, 30, 99, 0.4); border-color: rgba(233, 30, 99, 0.5);}
.floating-cta b { color: var(--accent); }

/* HORIZONTAL SCROLL SNAP */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
    align-items: stretch;
}
.horizontal-scroll .bento-item {
    min-width: 350px;
    scroll-snap-align: start;
    flex-shrink: 0;
}
.horizontal-scroll::-webkit-scrollbar { display: none; }

/* WOW FEATURES CSS */
/* 1. Dark Mode */
body { transition: background-color 0.5s ease, color 0.5s ease; }
body.dark-theme {
    background-color: #0c0c0c;
    color: #ffffff;
    --bg-color: #0c0c0c;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --border: #333333;
    --accent: #E91E63;
}
body.dark-theme .bento-item { background: #121212; border-color: #222; }
body.dark-theme .bento-item:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.4); border-color: #444; }
body.dark-theme .step-block { overflow: hidden; background: #121212; border: 1px solid #222;}
body.dark-theme .hero-block, body.dark-theme .trust-block { background: #0c0c0c; }
body.dark-theme .section-marker { border-bottom-color: #333; }
body.dark-theme .logos-inline img { filter: invert(1) opacity(0.5); }
body.dark-theme .logos-inline img:hover { opacity: 1; }
body.dark-theme .testimonial-block { background: #1a1a1a; color: #fff;}

/* 2. Terminal Component */
.terminal-container {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    overflow: hidden;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    grid-column: span 12;
}
.terminal-header {
    background: #1a1a1a;
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}
.dot { width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title { margin: 0 auto; transform: translateX(-24px); color: #888; font-size: 0.85rem; font-family: 'Inter', sans-serif;}
.terminal-body { padding: 2.5rem; font-size: 1.05rem; line-height: 1.6; }
.cursor { animation: blink 1s step-end infinite; border-right: 2px solid white; margin-left: 2px; }
@keyframes blink { 50% { border-color: transparent; } }

/* 3. Architecture Diagram */
.architecture-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 4rem;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: 12px;
    grid-column: span 12;
    margin-bottom: 3rem;
}
@media(max-width: 1000px){
    .architecture-diagram { padding: 2rem; flex-direction: column; gap: 1rem; }
}
.node {
    padding: 1.5rem 2rem;
    background: var(--text-primary);
    color: var(--bg-color);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
    text-align: center;
}
.node:hover { transform: scale(1.05); }
.node.pulse {
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.2);
    animation: pulse 2s infinite;
}
.arrow { font-size: 2rem; color: var(--text-secondary); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(233, 30, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0); }
}

/* 4. Before/After Slider */
.ba-slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    user-select: none;
    border-bottom: 1px solid var(--border);
}
.ba-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.after-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; pointer-events: none; }
.before-image {
    background: #0f172a;
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
    padding: 0;
    width: 50%; /* JS will control this */
    overflow: hidden;
    border-right: 2px solid white;
    min-width: 0;
}
.messy-data { white-space: pre-wrap; font-size: 0.9rem; opacity: 0.8; padding: 3rem; width: 100vw; max-width: 800px; min-width: 0; }
.ba-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: 100%;
    transform: translateX(-50%);
    cursor: ew-resize;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.ba-slider-line { width: 2px; height: 100%; background: white; position: absolute; }
.ba-slider-button {
    width: 44px; height: 44px; background: var(--accent); color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: bold; z-index: 2; box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    font-family: 'Inter', sans-serif;
}

/* PREMIUM BUTTONS */
.btn-premium {
    background: #111; color: #fff; padding: 1rem 2.5rem; border-radius: 50px;
    font-weight: 600; font-size: 1.1rem; border: 1px solid #333; cursor: pointer;
    transition: all 0.2s; text-transform: uppercase; letter-spacing: 1px;
}
.btn-premium:hover { background: #fff; color: #111; border-color: #fff; }

.btn-nav-premium {
    background: transparent; color: var(--text-primary); padding: 0.5rem 1.5rem;
    border-radius: 50px; font-weight: 600; font-size: 0.85rem; border: 1px solid var(--text-primary);
    cursor: pointer; transition: all 0.2s; letter-spacing: 1px;
}
.btn-nav-premium:hover { background: var(--text-primary); color: var(--bg-color); }

/* SCROLLABLE FRAMES */
.scrollable-frame { position: relative; }
.scroll-hint-arrow {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    text-align: center; color: #fff; font-weight: 700; font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.3);
    padding: 0.8rem 1.5rem; border-radius: 50px; z-index: 10; animation: bounceHint 2s infinite; font-size: 0.95rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5); width: max-content;
    display: flex; gap: 8px; justify-content: center; align-items: center;
}
.scrollable-frame:hover .scroll-hint-arrow { opacity: 0; transition: 0.3s; }
@keyframes bounceHint { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }
.scrollable-frame::-webkit-scrollbar { display: none; }

/* HALLUCINATION FIREWALL O&G */
.fw-demo-block { background: #000 !important; border-color: #333 !important; }
.fw-left { background: #050505 !important; }
.fw-right { background: #0a0a0a !important; border-left: 1px solid #333 !important; }
.fw-bubble { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.5; color: #fff; font-family: 'JetBrains Mono', monospace; }
.fw-bubble.user { background: #111; max-width: 80%; border-bottom-right-radius: 0; margin-left: auto; border: 1px solid #333; }
.fw-bubble.bot { max-width: 90%; border-bottom-left-radius: 0; }
.fw-bubble.bot.error { background: rgba(233, 30, 99, 0.05); border: 1px solid #E91E63; color: #E91E63; }
.fw-bubble.bot.success { background: rgba(34, 197, 94, 0.05); border: 1px solid #22c55e; color: #22c55e; }
.fw-logs { color: #22c55e !important; }
.hallucination-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #E91E63; font-weight: bold; margin-top: -0.5rem; display:block; }
@media (max-width: 800px) { .fw-demo-block { flex-direction: column; } .fw-left { border-right: none !important; border-bottom: 1px solid #333; } .fw-right button { position:relative !important; right:auto !important; bottom:auto !important; margin-top:2rem; width:100%;} }

/* COST SAVINGS CALCULATOR */
.cost-calculator-block {
    padding: 4rem;
    background: linear-gradient(135deg, #111827, #000);
    border: 1px solid #333;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.calc-header { margin-bottom: 2.5rem; }
.calc-header h3 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: #fff;
}
.calc-header p {
    color: #94a3b8;
    font-size: 1.15rem;
    max-width: 600px;
}
.calc-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.calc-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.calc-field label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}
.calc-field select,
.calc-field input {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: all 0.2s;
    appearance: none;
}
.calc-field select:focus,
.calc-field input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}
.input-with-prefix {
    position: relative;
}
.input-with-prefix span {
    position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: #94a3b8; font-size: 1.1rem;
}
.input-with-prefix input { padding-left: 2.5rem; }
.calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.result-card { background: rgba(255,255,255,0.05); color: #fff; border-radius: 12px; padding: 2.5rem; border: 1px solid #333; display: flex; flex-direction: column; gap: 0.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.result-card.annual-card { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.4); box-shadow: 0 10px 40px rgba(34,197,94,0.15); }
.result-card.annual-card .result-value { color: #4ade80; }
.result-label { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; }
.result-value { font-size: 2.8rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; color: var(--accent); line-height: 1; margin-top: 0.5rem;}
.calc-source { padding: 1.5rem; background: rgba(255,255,255,0.03); border-radius: 8px; border-left: 3px solid var(--accent); }
.calc-source p { font-size: 0.95rem; color: #94a3b8; line-height: 1.6; }
.input-with-prefix {
    position: relative;
}
.input-with-prefix span {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 1.1rem;
}
.input-with-prefix input {
    padding-left: 2rem;
}
.calc-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.result-card {
    background: var(--text-primary);
    color: #fff;
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.result-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a1a1aa;
}
.result-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    line-height: 1;
}
.calc-source {
    padding: 1.5rem;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}
.calc-source p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* HOUSTON / MONTROSE SECTION */
.houston-block {
    padding: 6rem 5rem;
    background: linear-gradient(135deg, #fff, #f1f5f9);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}
.houston-block:hover { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(0,0,0,0.1); }
.houston-block::before {
    content: "TX";
    position: absolute;
    right: -30px;
    bottom: -60px;
    font-size: 22rem;
    font-weight: 900;
    opacity: 0.04;
    line-height: 1;
    letter-spacing: -0.05em;
    pointer-events: none;
    color: var(--accent);
}
.houston-content {
    max-width: 700px;
    position: relative; z-index: 2;
    margin: 0 auto;
    text-align: center;
}
.houston-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 2rem;
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--accent);
    border-radius: 50px;
    display: inline-block;
}
.houston-content h3 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.houston-content p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.houston-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(233,30,99,0.05);
    border-radius: 8px;
    cursor: pointer; transition: background 0.2s;
}
.houston-tagline:hover { background: rgba(233,30,99,0.1); }
.houston-pin { color: var(--accent); display: flex; align-items: center; }

/* Dark theme adjustments for new sections */
body.dark-theme .houston-block { background: linear-gradient(135deg, #111827, #000); border-color: #222; }
body.dark-theme .houston-block:hover { box-shadow: 0 25px 50px rgba(0,0,0,0.6); }
body.dark-theme .houston-tagline { color: #fff; background: rgba(233,30,99,0.1); }
body.dark-theme .houston-tagline:hover { background: rgba(233,30,99,0.2); }

/* Responsive for new sections */
@media (max-width: 1000px) {
    .calc-inputs { grid-template-columns: 1fr; }
    .calc-results { grid-template-columns: 1fr; }
    .houston-block { padding: 3rem 2rem; }
    .houston-content h3 { font-size: 2rem; }
}
@media (max-width: 768px) {
    .cost-calculator-block { padding: 2rem 1.5rem; }
    .result-value { font-size: 2rem; }
}

/* ====== 10 FIXES & 4 WOW FEATURES START ====== */
/* Houston Block Fix */
.houston-block { background: linear-gradient(135deg, #111827, #000) !important; color: #fff !important; transition: transform 0.3s ease, box-shadow 0.3s ease !important; border: 1px solid #333 !important; }
.houston-block:hover { transform: translateY(-8px) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.5) !important; }
.houston-block .houston-content p { color: #a1a1aa !important; }
.houston-block h3 { color: #fff; font-weight: 800; font-size: 2.5rem; }
.houston-badge { 
    display: inline-block; padding: 0.3rem 0.8rem; background: rgba(255,255,255,0.1); 
    border-radius: 50px; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; 
    font-weight: 700; color: #fff; margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.2);
}

/* Visual Bug Fixes */
#plinko-canvas-container { max-height: 250px; overflow: hidden; }
.messy-data { width: 100vw; max-width: 600px; white-space: pre-wrap; font-size: 0.9rem; opacity: 0.8; padding: 3rem; min-width: 0; }

/* Cost Savings Sliders */
#savings-value { font-size: 4rem !important; color: #22c55e !important; font-weight: 900 !important; line-height: 1 !important; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%; background: #22c55e; cursor: pointer; margin-top: -8px; box-shadow: 0 0 10px rgba(34, 197, 94, 0.5); }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; cursor: pointer; background: rgba(255,255,255,0.1); border-radius: 4px; border: 1px solid rgba(255,255,255,0.05); }
input[type=range]:focus { outline: none; }

/* 4 Wow Feature Interactions FIXES */
.redaction-demo p { width: 70%; transition: width 0.5s; }
.redaction-demo.in-view p, .redaction-demo:hover p { width: 50%; }
.redaction-demo.in-view .scanner-bar, .redaction-demo:hover .scanner-bar { animation: scannerSweep 3s ease-in-out infinite; opacity: 1; }
.redaction-demo.in-view .json-output, .redaction-demo:hover .json-output { right: 0; transition-delay: 1.0s; }
.scanner-bar { position:absolute; top:0; left:-20px; width:4px; height:100%; background:#22c55e; box-shadow:0 0 15px #22c55e, 0 0 30px #22c55e; opacity:0; transition:opacity 0.3s; z-index:5; }
@keyframes scannerSweep {
    0% { left: -20px; }
    40% { left: 100%; }
    100% { left: 100%; }
}
.json-output { position:absolute; top:0; right:-160px; height:100%; width:150px; background:#000; color:#22c55e; font-family:'JetBrains Mono', monospace; font-size:9px; padding:15px; box-sizing:border-box; transition:right 0.5s ease; border-left:2px solid #22c55e; display:flex; flex-direction:column; justify-content:center; }
.pii-text { position:relative; transition:all 0.2s; padding:0 4px; border-radius:2px; }

/* AWS auto-animation */
.aws-slider { position:absolute; z-index:100; }
@keyframes awsPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(233,30,99,0.5); }
    50% { box-shadow: 0 0 20px rgba(233,30,99,0.8), 0 0 40px rgba(233,30,99,0.3); }
}
.aws-block.in-view .server { animation: awsPulse 2s ease-in-out infinite; }
.aws-block.in-view .server.s1 { animation-delay: 0s; }
.aws-block.in-view .server.s2 { animation-delay: 0.2s; }
.aws-block.in-view .server.s3 { animation-delay: 0.4s; }
.aws-block.in-view .server.s4 { animation-delay: 0.6s; }
.aws-block.in-view .server.s5 { animation-delay: 0.8s; }

.aws-nodes circle { animation: float-nodes 3s infinite ease-in-out alternate; }
@keyframes float-nodes { 0% { transform: translate(0,0); } 100% { transform: translate(6px, 6px); } }
.k8s-nodes div div { box-shadow: 0 0 8px rgba(56,189,248,0.5); }

.protocol-demo .unified-path { pointer-events:none; }
.protocol-demo.active .tangle-path { opacity: 0; transform: scaleY(0); transition: 0.5s ease; }
.protocol-demo.active .unified-path { opacity: 1 !important; transition: 0.5s ease 0.3s; box-shadow: 0 0 10px #22c55e; }
.protocol-demo.active .init-protocol-btn { border-color: #22c55e !important; color: #22c55e !important; background: rgba(34, 197, 94, 0.1) !important; }

.sentiment-demo .sentiment-tags { position:absolute; top:15px; }
.waveform .bar { width: 4px; height: 10px; background: #64748b; border-radius: 2px; transition: height 0.2s; }
/* Auto-play waveform when in view */
.sentiment-block.in-view .waveform .bar:nth-child(1), .sentiment-block:hover .waveform .bar:nth-child(1) { animation: bounceBar 0.5s infinite alternate 0s; background: #22c55e; }
.sentiment-block.in-view .waveform .bar:nth-child(2), .sentiment-block:hover .waveform .bar:nth-child(2) { animation: bounceBar 0.5s infinite alternate 0.2s; background: #22c55e; }
.sentiment-block.in-view .waveform .bar:nth-child(3), .sentiment-block:hover .waveform .bar:nth-child(3) { animation: bounceBar 0.5s infinite alternate 0.4s; background: #22c55e; }
.sentiment-block.in-view .waveform .bar:nth-child(4), .sentiment-block:hover .waveform .bar:nth-child(4) { animation: bounceBar 0.5s infinite alternate 0.1s; background: #22c55e; }
.sentiment-block.in-view .waveform .bar:nth-child(5), .sentiment-block:hover .waveform .bar:nth-child(5) { animation: bounceBar 0.5s infinite alternate 0.3s; background: #22c55e; }
@keyframes bounceBar { 0% { height: 10px; } 100% { height: 35px; box-shadow: 0 0 10px #22c55e; } }
/* Auto-show sentiment tags when in view */
.sentiment-block.in-view .tag-intent, .sentiment-block:hover .tag-intent { opacity: 1 !important; transform: translateY(5px) !important; }
.sentiment-block.in-view .tag-action, .sentiment-block:hover .tag-action { opacity: 1 !important; transform: translateY(5px) !important; transition-delay: 0.5s !important; }
/* ====== 10 FIXES & 4 WOW FEATURES END ====== */


/* Global Typography Patches for Subpages */
body, .content, .single-col, p { font-family: 'Inter', sans-serif !important; }
h1, h2, h3 { font-family: 'Inter', sans-serif !important; }
.service-block h3 { font-family: 'Playfair Display', Georgia, serif !important; }
.nav-logo a, .nav-links a { font-family: 'JetBrains Mono', monospace !important; }
.step-num { font-family: 'JetBrains Mono', monospace !important; }

/* SECTION SEGUE CONNECTORS */
.section-segue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2.5rem 0;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.section-segue:hover { opacity: 1; }
.section-segue .segue-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}
.section-segue .segue-arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--text-secondary));
    position: relative;
}
.section-segue .segue-arrow::after {
    content: '↓';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--text-secondary);
    animation: segue-bounce 2s infinite;
}
@keyframes segue-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(5px); }
}

/* Houston block centered content */
.houston-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.houston-content p {
    text-align: center;
}
