/* ==========================================================================
   CSS Variables - "Deep Oceanic & Luminous Coral" Theme
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Outfit:wght@300;400;700;800;900&display=swap');

:root {
    /* Colors */
    --bg-abyss: #040D12;
    /* Deepest Blue/Black */
    --bg-teal-dark: #091A24;
    /* Dark Teal Surface */
    --bg-teal-light: #122836;
    /* Lighter Teal Surface */
    --bg-glass: rgba(13, 31, 45, 0.6);

    /* Accents */
    --coral-main: #FF6464;
    /* Luminous Coral */
    --coral-hover: #FF4A4A;
    --coral-light: #FFA1A1;
    --orange-warm: #FF8D4D;

    --grad-coral: linear-gradient(135deg, var(--coral-main) 0%, var(--orange-warm) 100%);
    --grad-teal: linear-gradient(180deg, var(--bg-teal-light) 0%, var(--bg-abyss) 100%);

    /* Text */
    --text-main: #F0F4F8;
    --text-muted: #94A3B8;
    --text-dark: #040D12;

    /* Borders & Shadows */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
    --border-coral: 1px solid rgba(255, 100, 100, 0.4);

    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --shadow-coral: 0 8px 25px rgba(255, 100, 100, 0.3);
    --shadow-glow: 0 0 40px rgba(255, 100, 100, 0.15);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Manrope', sans-serif;

    /* Transitions */
    --ease-fluid: cubic-bezier(0.25, 1, 0.5, 1);
    --trans-fast: 0.3s var(--ease-fluid);
    --trans-slow: 0.8s var(--ease-fluid);
}

/* ==========================================================================
   Reset & Base Settings
   ========================================================================== */
*,
*::before,
*::after {
    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-abyss);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--coral-main);
    color: #fff;
}

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: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Typography & UI Components
   ========================================================================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.title-xl {
    font-size: clamp(3rem, 6vw, 5.5rem);
}

.title-lg {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.title-md {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.coral-text {
    background: var(--grad-coral);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-head {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 100, 100, 0.1);
    color: var(--coral-light);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: var(--border-coral);
}

.pill-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--coral-main);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--coral-main);
    animation: pulse 2s infinite;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--trans-fast);
    border: none;
}

.btn-coral {
    background: var(--grad-coral);
    color: #fff;
    box-shadow: var(--shadow-coral);
}

.btn-coral:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 100, 100, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--coral-main);
    transform: translateY(-3px);
}

/* ==========================================================================
   Header (Strict Consistency)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: var(--bg-abyss);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: all var(--trans-fast);
}

.site-header.scrolled {
    padding: 1rem 0;
    background: rgba(4, 13, 18, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    filter: invert(1);
}


.nav-list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--trans-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--coral-main);
    transition: width var(--trans-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    background: transparent;
    color: var(--coral-main) !important;
    border: 1px solid var(--coral-main);
    padding: 0.6rem 1.5rem;
}

.btn-nav:hover {
    background: var(--coral-main);
    color: #fff !important;
    box-shadow: var(--shadow-coral);
}

.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-main);
    transition: var(--trans-fast);
}

/* ==========================================================================
   Hero Section (Deep Oceanic Background & Floating Data)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 0 80px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, var(--bg-teal-dark) 0%, var(--bg-abyss) 70%);
}

/* Ambient glow */
.hero-ambient {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 100, 100, 0.08) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}

.hero-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeUp 1s var(--ease-fluid) forwards;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* 3D Visual Cards */
.hero-visual {
    position: relative;
    height: 550px;
    perspective: 1200px;
}

.float-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
}

.data-card {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: var(--border-subtle);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-glass);
}

.card-1 {
    top: 5%;
    right: 5%;
    width: 320px;
    transform: translateZ(60px);
    animation: floatUp 7s ease-in-out infinite;
}

.card-2 {
    bottom: 15%;
    left: 0;
    width: 280px;
    border-color: rgba(255, 100, 100, 0.3);
    background: rgba(255, 100, 100, 0.05);
    transform: translateZ(100px);
    animation: floatUp 6s ease-in-out infinite reverse;
    box-shadow: var(--shadow-coral);
}

.d-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.d-metric {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.card-2 .d-metric {
    color: var(--coral-main);
}

.d-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Brand Marquee
   ========================================================================== */
.brand-strip {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
    overflow: hidden;
}

.brand-track {
    display: flex;
    white-space: nowrap;
    animation: scrollMarquee 35s linear infinite;
    opacity: 0.5;
}

.brand-item {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   Metrics Grid
   ========================================================================== */
.metrics {
    padding: 8rem 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.metric-box {
    background: var(--bg-teal-dark);
    border: var(--border-subtle);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all var(--trans-fast);
    position: relative;
    overflow: hidden;
}

.metric-box:hover {
    transform: translateY(-10px);
    background: var(--bg-teal-light);
    border-color: var(--coral-main);
    box-shadow: var(--shadow-glow);
}

.m-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.m-num span {
    color: var(--coral-main);
}

.m-lbl {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Core Services
   ========================================================================== */
.services {
    padding: 8rem 0;
    background: var(--bg-teal-dark);
    position: relative;
    border-top: var(--border-subtle);
}

.srv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.srv-panel {
    background: var(--bg-abyss);
    border: var(--border-subtle);
    border-radius: 24px;
    padding: 3rem;
    transition: all var(--trans-fast);
}

.srv-panel:hover {
    border-color: var(--coral-main);
    box-shadow: var(--shadow-coral);
    transform: translateY(-5px);
}

.srv-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 100, 100, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--coral-main);
    margin-bottom: 2rem;
    transition: transform var(--trans-fast);
}

.srv-panel:hover .srv-icon {
    transform: scale(1.1) rotate(10deg);
    background: var(--coral-main);
    color: #fff;
}

.srv-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.srv-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

.srv-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.srv-link::after {
    content: '→';
    color: var(--coral-main);
    transition: transform var(--trans-fast);
}

.srv-panel:hover .srv-link::after {
    transform: translateX(5px);
}

/* ==========================================================================
   Process (Sonar Sweep Concept)
   ========================================================================== */
.process {
    padding: 8rem 0;
}

.proc-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
}

.proc-wrap::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    width: calc(100% - 100px);
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step-card {
    position: relative;
    z-index: 1;
}

.step-num {
    width: 80px;
    height: 80px;
    background: var(--bg-abyss);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2rem;
    transition: all var(--trans-fast);
    position: relative;
}

.step-card:hover .step-num {
    border-color: var(--coral-main);
    color: var(--coral-main);
    box-shadow: 0 0 20px rgba(255, 100, 100, 0.4);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--text-muted);
}

/* ==========================================================================
   ROI Calculator
   ========================================================================== */
.calc-section {
    padding: 8rem 0;
    background: var(--bg-teal-dark);
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
}

.calc-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: var(--bg-abyss);
    border-radius: 24px;
    border: var(--border-subtle);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.calc-in {
    padding: 4rem;
    border-right: var(--border-subtle);
}

.calc-out {
    padding: 4rem;
    background: rgba(255, 100, 100, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.range-grp {
    margin-bottom: 3rem;
}

.range-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.range-val {
    color: var(--coral-main);
    font-weight: 800;
    font-size: 1.1rem;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--coral-main);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 100, 100, 0.8);
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.res-row {
    margin-bottom: 2.5rem;
}

.res-row:last-child {
    margin-bottom: 0;
}

.res-lbl {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.res-val {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.res-val.coral {
    color: var(--coral-main);
    text-shadow: 0 0 20px rgba(255, 100, 100, 0.3);
}

/* ==========================================================================
   Industry Tabs (Pill Navigation)
   ========================================================================== */
.industries {
    padding: 8rem 0;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-teal-dark);
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.tab-btn.active,
.tab-btn:hover {
    background: rgba(255, 100, 100, 0.1);
    border-color: var(--coral-main);
    color: var(--coral-light);
    box-shadow: var(--shadow-coral);
}

.tab-pane {
    display: none;
    animation: fadeUp 0.5s ease;
}

.tab-pane.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tab-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.tab-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.tab-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.05rem;
}

.tab-list li::before {
    content: '✓';
    color: var(--coral-main);
    font-weight: 800;
}

.tab-visual {
    height: 350px;
    background: var(--bg-teal-dark);
    border: var(--border-subtle);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-visual::after {
    content: 'INDUSTRY \A DATA \A MAPPING';
    white-space: pre-wrap;
    text-align: center;
    color: rgba(255, 255, 255, 0.1);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* ==========================================================================
   Case Studies (CSS Chart)
   ========================================================================== */
.reports {
    padding: 8rem 0;
    background: var(--bg-teal-dark);
    border-top: var(--border-subtle);
}

.chart-wrapper {
    background: var(--bg-abyss);
    border: var(--border-subtle);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: var(--shadow-glass);
}

.chart-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    border-bottom: var(--border-subtle);
    padding-bottom: 2rem;
}

.chart-area {
    height: 350px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    position: relative;
}

.c-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-subtle);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: height 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    height: 0;
}

.c-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-coral);
    opacity: 0.7;
    transition: opacity 0.3s;
    border-radius: 8px 8px 0 0;
}

.c-bar:hover .c-fill {
    opacity: 1;
    box-shadow: var(--shadow-coral);
}

.c-bar::after {
    content: attr(data-lbl);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.c-val {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}

.c-bar:hover .c-val {
    opacity: 1;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    padding: 8rem 0;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.test-card {
    padding: 3rem;
    background: var(--bg-teal-dark);
    border: var(--border-subtle);
    border-radius: 24px;
    position: relative;
    transition: transform var(--trans-fast);
}

.test-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.test-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 5rem;
    font-family: serif;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.t-quote {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.t-client {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: var(--border-subtle);
    padding-top: 1.5rem;
}

.t-av {
    width: 50px;
    height: 50px;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid var(--coral-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral-main);
    font-family: var(--font-heading);
    font-weight: 800;
}

.t-info h4 {
    margin: 0;
    font-size: 1.05rem;
}

.t-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-sec {
    padding: 10rem 0;
    background: var(--grad-coral);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-sec::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjgiPgo8cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+') repeat;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-sec h2 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.cta-sec p {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Live Chat Widget
   ========================================================================== */
.chat-wrap {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-btn {
    width: 65px;
    height: 65px;
    background: var(--coral-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-coral);
    transition: transform var(--trans-fast);
}

.chat-btn:hover {
    transform: scale(1.1);
}

.chat-panel {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    height: 460px;
    background: var(--bg-teal-dark);
    border: var(--border-coral);
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--trans-fast);
}

.chat-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-head {
    background: rgba(255, 100, 100, 0.1);
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-subtle);
}

.chat-head span {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--coral-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--bg-abyss);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg {
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    max-width: 85%;
}

.msg-bot {
    background: var(--bg-teal-dark);
    border: var(--border-subtle);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg-usr {
    background: var(--coral-main);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-foot {
    padding: 1rem;
    background: var(--bg-teal-dark);
    border-top: var(--border-subtle);
    display: flex;
    gap: 10px;
}

.chat-foot input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
}

.chat-foot button {
    background: none;
    border: none;
    color: var(--coral-main);
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

/* ==========================================================================
   Footer (Strict Consistency - Deep Abyssal Blue)
   ========================================================================== */
.site-footer {
    background: var(--bg-abyss);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.ft-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.ft-logo {
    height: 50px;
    filter: invert(1);
}

.ft-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 320px;
}

.socials {
    display: flex;
    gap: 1rem;
}

.soc-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-muted);
    transition: all var(--trans-fast);
}

.soc-icon:hover {
    background: var(--coral-main);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-coral);
}

.ft-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.ft-links li {
    margin-bottom: 0.8rem;
}

.ft-links a {
    color: var(--text-muted);
    transition: color var(--trans-fast);
    font-size: 0.95rem;
}

.ft-links a:hover {
    color: var(--coral-main);
}

.ft-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.ft-contact span {
    color: var(--coral-main);
    font-size: 1.2rem;
}

.ft-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Legal Pages Specific
   ========================================================================== */
.page-hero {
    padding: 180px 0 80px;
    text-align: center;
    border-bottom: var(--border-subtle);
    background: var(--bg-teal-dark);
}

.page-content {
    padding: 6rem 0;
}

.doc-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-teal-dark);
    padding: 4rem;
    border-radius: 24px;
    border: var(--border-subtle);
    box-shadow: var(--shadow-glass);
}

.doc-box h2 {
    color: var(--coral-light);
    margin: 3rem 0 1.5rem;
    font-size: 1.6rem;
}

.doc-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.doc-box ul {
    list-style: disc;
    margin-left: 2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 100, 100, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 100, 100, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 100, 100, 0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateZ(60px) translateY(0);
    }

    50% {
        transform: translateZ(60px) translateY(-20px);
    }
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-fluid);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {

    .hero-wrap,
    .calc-box,
    .tab-pane.active {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proc-wrap {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .proc-wrap::before {
        display: none;
    }

    .calc-in {
        border-right: none;
        border-bottom: var(--border-subtle);
    }

    .ft-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-abyss);
        flex-direction: column;
        padding: 2rem 0;
        border-bottom: var(--border-coral);
        display: none;
    }

    .nav-list.open {
        display: flex;
    }

    .ft-grid {
        grid-template-columns: 1fr;
    }

    .doc-box {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .title-xl {
        font-size: 2.8rem;
    }

    .chat-panel {
        width: calc(100vw - 40px);
        right: -10px;
    }

    .calc-in,
    .calc-out,
    .chart-wrapper {
        padding: 2rem;
    }
}