/* ==========================================================================
   CSS Variables & "Corporate Emerald Glass" Theme
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-main: #F3F4F6;
    /* Light Gray Background */
    --bg-white: #FFFFFF;
    /* Pure White for Cards */
    --bg-header-footer: #0F172A;

    --primary-emerald: #10B981;
    /* Growth Emerald */
    --primary-emerald-hover: #059669;
    --primary-emerald-light: #D1FAE5;

    --accent-indigo: #6366F1;
    /* Corporate Indigo */
    --accent-indigo-light: #E0E7FF;

    --text-dark: #1E293B;
    /* Slate 800 */
    --text-muted: #64748B;
    /* Slate 500 */
    --text-light: #F8FAFC;
    /* Slate 50 */

    /* Borders & Shadows */
    --border-glass: rgba(255, 255, 255, 0.4);
    --border-subtle: #E2E8F0;

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-float: 0 20px 40px -10px rgba(16, 185, 129, 0.15);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --trans-fast: 0.25s var(--ease-out-expo);
    --trans-slow: 0.6s var(--ease-out-expo);
}

/* ==========================================================================
   Base Reset
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--trans-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Typography & Buttons
   ========================================================================== */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.heading-xl {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.heading-lg {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-head {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.badge {
    display: inline-block;
    background: var(--primary-emerald-light);
    color: var(--primary-emerald-hover);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--trans-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-emerald);
    color: var(--bg-white);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-primary:hover {
    background: var(--primary-emerald-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.23);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    border-color: var(--accent-indigo);
    color: var(--accent-indigo);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header (Strictly Consistent - Dark Background for White Logo)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: transparent;
    transition: all var(--trans-fast);
}

.site-header.scrolled {
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.95);
    /* Dark Slate */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Adding an initial dark gradient to make it visible before scroll if hero is light, 
   but we'll make the hero have a dark top mesh to blend perfectly. */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    filter: invert(1);
}

.nav-list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-emerald);
    transition: width var(--trans-fast);
}

.nav-link:hover {
    color: var(--primary-emerald);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--primary-emerald);
    color: var(--text-light) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background: var(--primary-emerald-hover);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: all var(--trans-fast);
}

/* ==========================================================================
   Hero Section (Gradient Mesh + 3D Cards)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 100px;
    overflow: hidden;
    background: var(--bg-header-footer);
    /* Dark base to blend with header */
}

/* Animated Gradient Mesh Overlay */
.hero-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.15), transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.15), transparent 50%);
    z-index: 1;
    animation: meshShift 15s ease-in-out infinite alternate;
}

/* White Bottom Curve to blend into next section */
.hero-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: var(--bg-main);
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
    z-index: 2;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary-emerald);
}

.hero-content p {
    color: #94A3B8;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* 3D Isometric Cards */
.hero-visual {
    perspective: 1000px;
    position: relative;
    height: 500px;
}

.iso-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(-15deg);
    transition: transform 0.1s ease-out;
    /* Mouse move tracking */
}

.iso-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.iso-1 {
    top: 10%;
    right: 10%;
    width: 280px;
    transform: translateZ(50px);
    animation: floatCard 6s ease-in-out infinite;
}

.iso-2 {
    bottom: 20%;
    left: 0;
    width: 250px;
    transform: translateZ(80px);
    animation: floatCard 8s ease-in-out infinite reverse;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.iso-title {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.iso-metric {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-emerald);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.iso-sub {
    color: #94A3B8;
    font-size: 0.875rem;
}

/* ==========================================================================
   Logos Marquee (Light Mode)
   ========================================================================== */
.client-section {
    padding: 2rem 0;
    background: var(--bg-main);
    overflow: hidden;
}

.client-track {
    display: flex;
    white-space: nowrap;
    animation: scrollLogos 30s linear infinite;
    opacity: 0.5;
}

.client-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   Stats / About Overlay
   ========================================================================== */
.stats-section {
    padding: 4rem 0 8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform var(--trans-fast);
    border: 1px solid var(--border-subtle);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-float);
    border-color: var(--primary-emerald-light);
}

.s-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.s-val span {
    color: var(--primary-emerald);
}

.s-lbl {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* ==========================================================================
   Services Grid (Glass & Emerald)
   ========================================================================== */
.services-section {
    padding: 8rem 0;
    background: var(--bg-white);
}

.srv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.srv-box {
    padding: 3rem 2rem;
    background: var(--bg-main);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all var(--trans-fast);
    border: 1px solid transparent;
}

.srv-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--primary-emerald-light);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    transition: opacity var(--trans-fast);
    z-index: 0;
}

.srv-box:hover {
    background: var(--bg-white);
    border-color: var(--primary-emerald-light);
    box-shadow: var(--shadow-float);
    transform: translateY(-5px);
}

.srv-box:hover::before {
    opacity: 0.5;
}

.srv-content {
    position: relative;
    z-index: 1;
}

.srv-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-emerald);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}

.srv-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.srv-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.srv-link {
    color: var(--accent-indigo);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.srv-link:hover {
    color: var(--primary-emerald);
    gap: 10px;
}

/* ==========================================================================
   ROI Calculator
   ========================================================================== */
.calc-section {
    padding: 8rem 0;
    background: var(--bg-main);
}

.calc-wrapper {
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.calc-controls {
    padding: 4rem;
}

.calc-results {
    background: var(--bg-header-footer);
    padding: 4rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.range-wrap {
    margin-bottom: 2.5rem;
}

.range-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
}

.range-val {
    color: var(--primary-emerald);
    font-weight: 800;
    font-size: 1.2rem;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-main);
    border-radius: 4px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-emerald);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.res-box {
    margin-bottom: 2.5rem;
}

.res-box:last-child {
    margin-bottom: 0;
}

.res-lbl {
    color: #94A3B8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.res-num {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.res-highlight {
    color: var(--primary-emerald);
}

/* ==========================================================================
   Interactive Case Studies (Area Chart CSS)
   ========================================================================== */
.reports-section {
    padding: 8rem 0;
    background: var(--bg-white);
}

.report-card {
    background: var(--bg-main);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-subtle);
}

.report-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.chart-area {
    height: 300px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding-top: 2rem;
    position: relative;
}

/* Creating an area chart look with pure CSS columns */
.chart-col {
    flex: 1;
    background: linear-gradient(to top, var(--primary-emerald-light), rgba(16, 185, 129, 0.6));
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: height 1.5s var(--ease-out-expo);
    height: 0;
    /* JS fills */
}

.chart-col:hover {
    background: var(--primary-emerald);
}

.chart-col::after {
    content: attr(data-month);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.chart-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.chart-col:hover .chart-tooltip {
    opacity: 1;
}

/* ==========================================================================
   Industry Vertical Tabs
   ========================================================================== */
.industry-section {
    padding: 8rem 0;
    background: var(--bg-main);
}

.tab-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.tab-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-btn {
    padding: 1.5rem;
    text-align: left;
    background: var(--bg-main);
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--trans-fast);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--bg-white);
    color: var(--primary-emerald);
    border-color: var(--primary-emerald-light);
    box-shadow: var(--shadow-soft);
}

.tab-panel {
    display: none;
    animation: slideIn 0.5s ease;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.tab-panel p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.tab-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tab-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-main);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.tab-features li::before {
    content: '✓';
    color: var(--primary-emerald);
    font-weight: 800;
}

/* ==========================================================================
   Testimonials (Masonry style)
   ========================================================================== */
.testimonials {
    padding: 8rem 0;
    background: var(--bg-white);
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.test-card {
    background: var(--bg-main);
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
}

.test-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 6rem;
    font-family: serif;
    color: var(--border-subtle);
    line-height: 1;
}

.test-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.test-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-av {
    width: 50px;
    height: 50px;
    background: var(--accent-indigo-light);
    color: var(--accent-indigo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.user-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--primary-emerald) 0%, #047857 100%);
    color: var(--text-light);
    text-align: center;
}

.cta-section h2 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   Floating Chat Widget
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-bubble {
    width: 65px;
    height: 65px;
    background: var(--primary-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-float);
    transition: transform var(--trans-fast);
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--trans-fast);
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--bg-header-footer);
    color: var(--text-light);
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.chat-close {
    cursor: pointer;
    color: #94A3B8;
}

.chat-messages {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
}

.msg-bot {
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.msg-user {
    background: var(--primary-emerald);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-input-area {
    padding: 1rem;
    background: var(--bg-white);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-dark);
}

.chat-input-area button {
    background: none;
    border: none;
    color: var(--primary-emerald);
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================================================
   Footer (Strictly Consistent - Dark Background for White Logo)
   ========================================================================== */
.site-footer {
    background: var(--bg-header-footer);
    /* Slate 900 */
    color: #94A3B8;
    /* Slate 400 */
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 45px;
    filter: invert(1);
}

.footer-desc {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all var(--trans-fast);
}

.social-icon:hover {
    background: var(--primary-emerald);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    transition: color var(--trans-fast);
}

.footer-links a:hover {
    color: var(--primary-emerald);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-contact span {
    color: var(--primary-emerald);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ==========================================================================
   Legal & Contact Pages Specifics
   ========================================================================== */
.page-hero {
    padding: 160px 0 80px;
    background: var(--bg-header-footer);
    color: var(--text-light);
    text-align: center;
}

.page-hero h1 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.page-content {
    padding: 6rem 0;
    background: var(--bg-main);
}

.doc-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 4rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
}

.doc-box h2 {
    color: var(--accent-indigo);
    margin: 2.5rem 0 1rem;
    font-size: 1.6rem;
}

.doc-box p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.doc-box ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Form Styles */
.form-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-control {
    padding: 1rem;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--trans-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-emerald);
    box-shadow: 0 0 0 3px var(--primary-emerald-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Animations & Media Queries
   ========================================================================== */
@keyframes meshShift {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(2%, 2%);
    }

    100% {
        transform: scale(1) translate(-2%, -2%);
    }
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateZ(50px) translateY(0);
    }

    50% {
        transform: translateZ(50px) translateY(-20px);
    }
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    /* Hide complex 3D on tablet/mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .tab-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-header-footer);
        flex-direction: column;
        padding: 2rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s;
    }

    .nav-list.open {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .doc-box {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .calc-controls,
    .calc-results {
        padding: 2rem;
    }

    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
    }

    .heading-xl {
        font-size: 2.5rem;
    }
}