/* ==========================================================================
   CSS VARIABLES & CORE THEME (Aurora Tech Aesthetic)
   ========================================================================== */
:root {
    --bg-base: #030712;
    --bg-surface: #0f172a;
    --bg-glass: rgba(15, 23, 42, 0.6);
    --bg-glass-light: rgba(255, 255, 255, 0.03);
    --color-primary: #00f2fe;
    --color-secondary: #4facfe;
    --color-accent: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.3);
    --gradient-aurora: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    --font-heading: 'Clash Display', 'Space Grotesk', sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    --ease-snappy: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --nav-h: 100px;
}

/* ==========================================================================
   RESET & TYPOGRAPHY
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(79, 172, 254, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 7vw, 6rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   GLOBAL UTILITIES & COMPONENTS
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 4%;
}

.py-20 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--border-glow);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

/* High-End Magnetic Button */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.4s var(--ease-smooth);
    z-index: 1;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-base);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-aurora);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-smooth);
}

.btn-primary:hover {
    color: var(--text-main);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.3);
    transform: translateY(-5px);
}

.btn-primary:hover::after {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(0, 242, 254, 0.05);
    transform: translateY(-5px);
}

/* ==========================================================================
   HEADER (STRICTLY IDENTICAL)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    transition: all 0.5s var(--ease-smooth);
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
}

.site-header.scrolled {
    height: 80px;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo {
    height: 55px;
    transition: transform 0.3s;
    filter: invert(1);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    transition: color 0.3s;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0;
    transition: all 0.3s var(--ease-snappy);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1.5);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    left: 0;
    transition: 0.3s;
}

.menu-toggle span:nth-child(1) {
    top: 12px;
}

.menu-toggle span:nth-child(2) {
    top: 20px;
}

.menu-toggle span:nth-child(3) {
    top: 28px;
}

.menu-toggle.active span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

/* ==========================================================================
   HERO & ISOMETRIC 3D DATA VIZ
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-h);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Pure CSS Isometric 3D Bar Chart */
.iso-chart-wrapper {
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.iso-chart {
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(-45deg);
    position: relative;
    animation: isoFloat 6s ease-in-out infinite;
}

.iso-base {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border-subtle);
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.1);
}

.iso-bar {
    position: absolute;
    bottom: 10%;
    width: 20%;
    transform-style: preserve-3d;
    transition: height 1s var(--ease-snappy);
}

.iso-bar-1 {
    left: 10%;
    height: 150px;
}

.iso-bar-2 {
    left: 40%;
    height: 250px;
}

.iso-bar-3 {
    left: 70%;
    height: 100px;
}

.iso-face {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.iso-face-top {
    height: 100%;
    width: 100%;
    background: var(--color-primary);
    transform: translateZ(100%);
}

.iso-face-front {
    height: 100%;
    background: var(--color-secondary);
    transform: rotateX(-90deg);
    transform-origin: bottom;
}

.iso-face-right {
    width: 100%;
    background: var(--color-accent);
    transform: rotateY(90deg);
    transform-origin: right;
}

@keyframes isoFloat {

    0%,
    100% {
        transform: rotateX(60deg) rotateZ(-45deg) translateZ(0);
    }

    50% {
        transform: rotateX(60deg) rotateZ(-45deg) translateZ(30px);
    }
}

/* ==========================================================================
   MARQUEE 
   ========================================================================== */
.marquee-section {
    border-y: 1px solid var(--border-subtle);
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.marquee-track {
    display: inline-flex;
    animation: scrollMarquee 30s linear infinite;
    gap: 6rem;
    padding-right: 6rem;
    align-items: center;
}

.marquee-item {
    font-size: 2rem;
    font-weight: 700;
    color: var(--border-subtle);
    text-transform: uppercase;
    -webkit-text-stroke: 1px var(--text-muted);
    color: transparent;
    transition: 0.3s;
}

.marquee-item:hover {
    color: var(--text-main);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 20px var(--color-primary);
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   BENTO BOX SERVICES (Modern Grid Layout)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
    margin-top: 4rem;
}

.bento-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.bento-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.bento-item:hover::before {
    opacity: 1;
}

/* Grid spanning */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-icon {
    font-size: 3rem;
    margin-bottom: auto;
    color: var(--color-primary);
}

.bento-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.bento-content p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

.bento-large .bento-content h3 {
    font-size: 2.5rem;
}

.bento-large .bento-content p {
    font-size: 1.2rem;
}

/* ==========================================================================
   ROI CALCULATOR (Interactive & Sleek)
   ========================================================================== */
.calc-container {
    background: linear-gradient(145deg, var(--bg-surface), #000);
    border: 1px solid var(--border-subtle);
    border-radius: 32px;
    padding: 5rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.slider-group {
    margin-bottom: 3rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.slider-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.slider-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

/* Custom Sleek Slider */
.cyber-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    position: relative;
}

.cyber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 20px var(--color-primary);
    border: 4px solid var(--color-primary);
    transition: 0.2s;
}

.cyber-slider::-webkit-slider-thumb:hover {
    transform: scale(1.5);
}

/* Service toggles */
.toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cyber-toggle {
    display: block;
    position: relative;
    cursor: pointer;
}

.cyber-toggle input {
    display: none;
}

.toggle-box {
    padding: 1.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: 0.3s;
    color: var(--text-muted);
}

.cyber-toggle input:checked+.toggle-box {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.05);
}

/* Output display */
.calc-output {
    text-align: center;
    position: relative;
}

.output-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 1px dashed var(--border-subtle);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.output-circle::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--color-primary);
    border-bottom-color: var(--color-accent);
    animation: spin 8s linear infinite;
}

.output-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.output-num {
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 30px rgba(0, 242, 254, 0.5);
    font-family: var(--font-heading);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   REPORTING TAB SIMULATOR
   ========================================================================== */
.report-section {
    position: relative;
    z-index: 2;
}

.report-nav {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 3rem;
}

.report-tab {
    padding: 1.5rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: 0.3s;
}

.report-tab.active {
    color: var(--text-main);
    border-bottom-color: var(--color-primary);
}

.report-panel {
    display: none;
    animation: fadeUp 0.5s ease;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 4rem;
}

.report-panel.active {
    display: block;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.stat-card {
    padding-left: 2rem;
    border-left: 2px solid var(--color-primary);
}

.stat-card h4 {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.stat-card .num {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #fff;
}

.chart-line-wrapper {
    height: 250px;
    border-bottom: 1px solid var(--border-subtle);
    border-left: 1px solid var(--border-subtle);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 2rem;
}

/* Simulated SVG Path purely via CSS borders/transformations for complexity */
.css-chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 242, 254, 0.2), transparent);
    clip-path: polygon(0 100%, 0 80%, 20% 60%, 40% 70%, 60% 40%, 80% 50%, 100% 20%, 100% 100%);
    animation: drawChart 2s ease-out forwards;
    transform-origin: bottom;
    opacity: 0;
}

.chart-dot {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    position: absolute;
    bottom: 50%;
    box-shadow: 0 0 15px var(--color-primary);
    z-index: 2;
}

@keyframes drawChart {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* ==========================================================================
   TESTIMONIALS & TRUST
   ========================================================================== */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testi-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    transition: 0.4s;
}

.testi-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    background: var(--bg-surface);
}

.quote-mark {
    font-size: 6rem;
    position: absolute;
    top: 1rem;
    right: 2rem;
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
    color: var(--color-primary);
}

.testi-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-aurora);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CONTACT CTA (Data-driven look)
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 32px;
    padding: 5rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-ctrl {
    width: 100%;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    padding: 1.25rem;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: 0.3s;
}

.form-ctrl:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.1);
}

textarea.form-ctrl {
    height: 150px;
    resize: none;
}

/* ==========================================================================
   FOOTER (STRICTLY IDENTICAL SITE-WIDE)
   ========================================================================== */
.site-footer {
    background: #010308;
    border-top: 1px solid var(--border-subtle);
    padding: 8rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-logo {
    max-width: 160px;
    margin-bottom: 2rem;
    filter: invert(1);
}

.footer-text {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 350px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-5px);
    color: #000;
}

.footer-title {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 2rem;
}

.footer-nav li {
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--text-muted);
    transition: 0.3s;
    font-size: 1rem;
}

.footer-nav a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

/* Contact info explicitly tailored */
.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   LEGAL PAGES & INTERNAL LAYOUT
   ========================================================================== */
.page-hero {
    padding: 12rem 0 6rem;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(0, 242, 254, 0.1), transparent 50%);
    border-bottom: 1px solid var(--border-subtle);
}

.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 0;
}

.legal-wrapper h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

.legal-wrapper p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.legal-wrapper ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.legal-wrapper li {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    list-style-type: square;
}

/* ==========================================================================
   LIVE CHAT (Floating Module)
   ========================================================================== */
.chat-wrapper {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
}

.chat-trigger {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--gradient-aurora);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.4);
    border: none;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-trigger:hover {
    transform: scale(1.1) rotate(10deg);
}

.chat-box {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 380px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

.chat-box.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-top {
    background: var(--gradient-aurora);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.chat-top h4 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1.5rem;
    height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-base);
}

.msg {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    max-width: 85%;
    line-height: 1.4;
}

.msg.bot {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.msg.user {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--color-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-row {
    display: flex;
    border-top: 1px solid var(--border-subtle);
    padding: 1rem;
    background: var(--bg-surface);
}

.chat-input {
    flex: 1;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    padding: 0.8rem;
    border-radius: 8px;
    color: #fff;
    outline: none;
}

.chat-input:focus {
    border-color: var(--color-primary);
}

.chat-send {
    background: var(--color-primary);
    color: #000;
    border: none;
    padding: 0 1.5rem;
    border-radius: 8px;
    margin-left: 0.5rem;
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================================================
   SCROLL ANIMATIONS & RESPONSIVE
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .iso-chart-wrapper {
        display: none;
        /* Hide complex 3D on smaller screens for layout integrity */
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    .calc-grid,
    .contact-layout,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .testi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-layout {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-h));
        background: var(--bg-surface);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
    }

    .nav-menu.open {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .bento-large,
    .bento-wide {
        grid-column: span 1;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .testi-grid,
    .input-row,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .report-nav {
        flex-direction: column;
    }

    .calc-container {
        padding: 2rem;
    }

    .output-circle {
        width: 250px;
        height: 250px;
    }

    .output-num {
        font-size: 3rem;
    }
}