/* ==========================================================================
   Base Variables & Abyssal Neumorphism Theme
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Syne:wght@500;700;800&display=swap');

:root {
    /* Deep Ocean Palette */
    --bg-base: #060d1a;
    --bg-surface: #0a1526;
    --bg-elevated: #0f203b;

    /* Quantum Accents */
    --cyan-primary: #00e5ff;
    --cyan-dim: rgba(0, 229, 255, 0.15);
    --indigo-accent: #6366f1;
    --indigo-dim: rgba(99, 102, 241, 0.15);

    --gradient-quantum: linear-gradient(135deg, var(--cyan-primary) 0%, var(--indigo-accent) 100%);

    /* Typography */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Neumorphic Shadows (Dark Mode) */
    --shadow-out: 8px 8px 16px #03060c, -8px -8px 16px #091428;
    --shadow-in: inset 6px 6px 12px #03060c, inset -6px -6px 12px #091428;
    --shadow-glow: 0 0 20px rgba(0, 229, 255, 0.2);

    /* Responsive Spacing */
    --sp-xs: clamp(0.5rem, 1vw, 1rem);
    --sp-sm: clamp(1rem, 2vw, 2rem);
    --sp-md: clamp(2rem, 4vw, 4rem);
    --sp-lg: clamp(4rem, 8vw, 8rem);
    --sp-xl: clamp(6rem, 12vw, 12rem);

    /* Layout */
    --container-max: 1440px;
    --header-height: 90px;

    /* Transitions */
    --ease-neu: cubic-bezier(0.2, 0.8, 0.2, 1);
    --trans-fast: 0.3s var(--ease-neu);
    --trans-slow: 0.6s var(--ease-neu);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan-primary) var(--bg-base);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Ambient Deep Sea Glow */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, var(--indigo-dim) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vh;
    background: radial-gradient(circle, var(--cyan-dim) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -2;
    pointer-events: none;
}

::selection {
    background: var(--indigo-accent);
    color: var(--text-main);
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-cyan {
    color: var(--cyan-primary);
}

.text-gradient {
    background: var(--gradient-quantum);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-sm);
}

.section-pad {
    padding: var(--sp-xl) 0;
}

.section-head {
    margin-bottom: var(--sp-lg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    background: var(--bg-surface);
    box-shadow: var(--shadow-out);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyan-primary);
}

.section-head h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head p {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 650px;
}

/* Neumorphic Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--trans-fast);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-neu {
    background: var(--bg-surface);
    color: var(--text-main);
    box-shadow: var(--shadow-out);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.btn-neu:hover {
    box-shadow: var(--shadow-in);
    color: var(--cyan-primary);
}

.btn-glow {
    background: var(--gradient-quantum);
    color: #fff;
    box-shadow: 0 10px 30px var(--cyan-dim);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.4);
}

/* ==========================================================================
   Header & Footer (STRICTLY CONSISTENT SITE-WIDE)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--trans-fast);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(6, 13, 26, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 80px;
}

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

.logo-box img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.nav-desktop {
    display: flex;
    gap: 2.5rem;
    background: var(--bg-surface);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-out);
}

.nav-desktop a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--trans-fast);
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--cyan-primary);
    text-shadow: 0 0 10px var(--cyan-dim);
}

.mobile-trigger {
    display: none;
    background: var(--bg-surface);
    border: none;
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-out);
    cursor: pointer;
}

/* Neumorphic Full-Screen Menu */
.mobile-nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-base);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.4s var(--ease-neu);
}

.mobile-nav-wrapper.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.mobile-nav-wrapper a {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--text-main);
    text-decoration: none;
    margin: 1rem 0;
    transition: var(--trans-fast);
}

.mobile-nav-wrapper a:hover,
.mobile-nav-wrapper a.active {
    color: var(--cyan-primary);
}

/* STRICTLY CONSISTENT FOOTER */
.site-footer {
    background: var(--bg-surface);
    padding: var(--sp-xl) 0 var(--sp-md);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--sp-md);
    margin-bottom: var(--sp-lg);
}

.footer-col .logo-box img {
    height: 45px;
    margin-bottom: var(--sp-sm);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 85%;
}

.footer-col h4 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: var(--sp-sm);
}

/* SPECIFIC REQUIREMENT: Contact Heading = KHT Media */
.footer-col.contact-col h4 {
    color: var(--cyan-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--trans-fast);
}

.footer-links a:hover {
    color: var(--cyan-primary);
}

.contact-info li {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
}

.contact-info svg {
    color: var(--indigo-accent);
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: var(--sp-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--trans-fast);
}

.legal-links a:hover {
    color: var(--text-main);
}

/* ==========================================================================
   Section 1: Hero (Index)
   ========================================================================== */
.hero-sec {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--sp-md);
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 6.5vw, 6.5rem);
    margin-bottom: var(--sp-sm);
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: var(--sp-md);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Advanced 3D Neumorphic Particle Core */
.hero-visual {
    position: relative;
    height: clamp(300px, 40vw, 600px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.particle-core {
    width: clamp(200px, 30vw, 400px);
    height: clamp(200px, 30vw, 400px);
    background: var(--bg-surface);
    border-radius: 50%;
    box-shadow: var(--shadow-out), inset 0 0 40px rgba(0, 229, 255, 0.2);
    position: relative;
    animation: coreFloat 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.particle-core::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: var(--gradient-quantum);
    border-radius: 50%;
    filter: blur(30px);
    animation: corePulse 3s ease-in-out infinite alternate;
}

/* Orbiting Elements */
.orbit {
    position: absolute;
    width: 140%;
    height: 140%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: spinOrbit 15s linear infinite;
}

.orbit::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--cyan-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--cyan-primary);
}

/* ==========================================================================
   Section 2: Interactive Marquee
   ========================================================================== */
.marquee-sec {
    padding: 3rem 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    background: var(--bg-surface);
    box-shadow: var(--shadow-in);
}

.marquee-track {
    display: inline-block;
    animation: scrollMarquee 25s linear infinite;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--text-muted);
    margin: 0 3rem;
    text-transform: uppercase;
    transition: var(--trans-fast);
}

.marquee-item:hover {
    color: var(--text-main);
    text-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Section 3: Neumorphic Metrics
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-sm);
}

.stat-card {
    background: var(--bg-surface);
    border-radius: 20px;
    padding: var(--sp-md);
    text-align: center;
    box-shadow: var(--shadow-out);
    transition: var(--trans-slow);
}

.stat-card:hover {
    box-shadow: var(--shadow-in);
}

.stat-card h3 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 0.5rem;
    background: var(--gradient-quantum);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ==========================================================================
   Section 4: Extruded Service Grid
   ========================================================================== */
.srv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-md);
}

.srv-card {
    background: var(--bg-surface);
    border-radius: 30px;
    padding: var(--sp-md);
    box-shadow: var(--shadow-out);
    transition: var(--trans-slow);
}

.srv-card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 24px #03060c, -12px -12px 24px #091428;
}

.srv-icon {
    width: 65px;
    height: 65px;
    background: var(--bg-surface);
    border-radius: 16px;
    box-shadow: var(--shadow-out);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-primary);
    margin-bottom: var(--sp-sm);
    transition: var(--trans-fast);
}

.srv-card:hover .srv-icon {
    box-shadow: var(--shadow-in);
    color: var(--indigo-accent);
}

.srv-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.srv-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.srv-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--trans-fast);
}

.srv-link:hover {
    color: var(--cyan-primary);
    gap: 15px;
}

/* ==========================================================================
   Section 5: Interactive ROI Terminal
   ========================================================================== */
.calc-container {
    background: var(--bg-surface);
    border-radius: 40px;
    box-shadow: var(--shadow-out);
    padding: var(--sp-md);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--sp-lg);
}

.calc-controls {
    padding: var(--sp-sm);
}

.ctrl-block {
    margin-bottom: var(--sp-md);
}

.ctrl-block label {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.neu-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 12px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-in);
    border-radius: 10px;
    outline: none;
}

.neu-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    background: var(--cyan-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--cyan-dim);
    cursor: pointer;
    transition: var(--trans-fast);
}

.neu-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.neu-select {
    width: 100%;
    padding: 1.2rem;
    background: var(--bg-surface);
    box-shadow: var(--shadow-in);
    border: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 12px;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.calc-outputs {
    background: var(--bg-base);
    border-radius: 24px;
    padding: var(--sp-md);
    box-shadow: var(--shadow-in);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.out-block {
    margin-bottom: var(--sp-md);
}

.out-block h4 {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.out-block .val {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--cyan-primary);
    text-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Section 6: Live Dashboard UI
   ========================================================================== */
.dash-container {
    background: var(--bg-surface);
    border-radius: 40px;
    box-shadow: var(--shadow-out);
    padding: var(--sp-md);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-md);
    flex-wrap: wrap;
    gap: 1rem;
}

.dash-header h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.live-badge {
    background: var(--bg-surface);
    box-shadow: var(--shadow-in);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--cyan-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--cyan-primary);
    border-radius: 50%;
    animation: blink 1s infinite;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-md);
}

.metric-card {
    background: var(--bg-base);
    box-shadow: var(--shadow-in);
    padding: var(--sp-md);
    border-radius: 20px;
}

.metric-card p {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.metric-card h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.bar-bg {
    height: 8px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-in);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gradient-quantum);
    width: 0;
    transition: width 2s var(--ease-neu);
}

/* ==========================================================================
   Section 7: Industries Interactive Accordion
   ========================================================================== */
.ind-acc {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.acc-card {
    background: var(--bg-surface);
    border-radius: 20px;
    box-shadow: var(--shadow-out);
    overflow: hidden;
    transition: var(--trans-fast);
}

.acc-head {
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.acc-head h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-muted);
    transition: var(--trans-fast);
}

.acc-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-base);
    box-shadow: var(--shadow-in);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-primary);
    transition: var(--trans-fast);
}

.acc-card.active {
    box-shadow: var(--shadow-in);
}

.acc-card.active .acc-head h3 {
    color: var(--text-main);
}

.acc-card.active .acc-icon {
    transform: rotate(45deg);
    background: var(--cyan-primary);
    color: var(--bg-base);
}

.acc-body {
    max-height: 0;
    opacity: 0;
    transition: all 0.5s var(--ease-neu);
    padding: 0 3rem;
}

.acc-card.active .acc-body {
    max-height: 400px;
    opacity: 1;
    padding: 0 3rem 3rem 3rem;
}

.acc-body p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 800px;
}

/* ==========================================================================
   Section 8: Testimonials
   ========================================================================== */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-md);
}

.testi-card {
    background: var(--bg-surface);
    border-radius: 30px;
    padding: var(--sp-md);
    box-shadow: var(--shadow-out);
}

.testi-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

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

.author-img {
    width: 50px;
    height: 50px;
    background: var(--bg-base);
    box-shadow: var(--shadow-in);
    border-radius: 50%;
    border: 2px solid var(--indigo-accent);
}

.author-info h5 {
    font-size: 1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--cyan-primary);
    font-weight: 600;
}

/* ==========================================================================
   Section 9: CTA
   ========================================================================== */
.cta-sec {
    text-align: center;
    padding: var(--sp-xl) 0;
}

.cta-box {
    background: var(--bg-surface);
    border-radius: 40px;
    padding: var(--sp-xl) var(--sp-md);
    box-shadow: var(--shadow-out);
    max-width: 1000px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Live Chat System
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-btn {
    width: 65px;
    height: 65px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-primary);
    box-shadow: var(--shadow-out);
    cursor: pointer;
    transition: var(--trans-fast);
}

.chat-btn:hover {
    box-shadow: var(--shadow-in);
    color: var(--indigo-accent);
}

.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: calc(100vw - 60px);
    max-width: 360px;
    background: var(--bg-surface);
    border-radius: 20px;
    box-shadow: var(--shadow-out);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--trans-fast);
}

.chat-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    padding: 1.5rem;
    background: var(--bg-elevated);
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-body {
    height: 320px;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg-bot {
    background: var(--bg-base);
    box-shadow: var(--shadow-in);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 85%;
    border-left: 2px solid var(--cyan-primary);
}

.chat-input {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    background: var(--bg-surface);
    border-radius: 0 0 20px 20px;
}

.chat-input input {
    flex-grow: 1;
    background: var(--bg-base);
    box-shadow: var(--shadow-in);
    border: none;
    color: #fff;
    padding: 0.8rem;
    border-radius: 10px;
    outline: none;
}

.chat-input button {
    background: var(--bg-surface);
    box-shadow: var(--shadow-out);
    border: none;
    color: var(--cyan-primary);
    padding: 0 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.chat-input button:hover {
    box-shadow: var(--shadow-in);
}

/* ==========================================================================
   Internal Pages (Legal & Contact)
   ========================================================================== */
.page-hero {
    padding: var(--sp-xl) 0 var(--sp-md);
}

.page-hero h1 {
    font-size: clamp(3.5rem, 6vw, 6rem);
    margin-bottom: 1rem;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--sp-lg) 0;
}

.legal-content h2 {
    color: var(--cyan-primary);
    font-size: 2.2rem;
    margin: var(--sp-md) 0 var(--sp-sm);
}

.legal-content p,
.legal-content ul {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.legal-content ul {
    padding-left: 2rem;
}

/* Contact Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
    padding: var(--sp-lg) 0;
}

.form-box {
    background: var(--bg-surface);
    border-radius: 30px;
    padding: var(--sp-md);
    box-shadow: var(--shadow-out);
}

.form-grp {
    margin-bottom: var(--sp-sm);
}

.form-grp label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.neu-input {
    width: 100%;
    padding: 1.2rem;
    background: var(--bg-base);
    box-shadow: var(--shadow-in);
    border: none;
    border-radius: 12px;
    color: var(--text-pure);
    font-family: var(--font-body);
    outline: none;
    transition: var(--trans-fast);
}

.neu-input:focus {
    box-shadow: inset 2px 2px 5px #03060c, inset -2px -2px 5px #091428, 0 0 10px var(--cyan-dim);
}

textarea.neu-input {
    height: 160px;
    resize: none;
}

.contact-info h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: var(--sp-sm);
    color: var(--text-main);
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: var(--sp-md);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-out);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-primary);
    flex-shrink: 0;
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
@keyframes coreFloat {

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

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

@keyframes corePulse {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes spinOrbit {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-neu);
}

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

/* ==========================================================================
   Mobile Responsiveness (Flawless Scaling via Clamp & Grids)
   ========================================================================== */
@media (max-width: 1024px) {

    .hero-grid,
    .calc-container,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .srv-grid,
    .dash-grid,
    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .calc-controls {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hero-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {

    /* Mobile Menu Takeover */
    .nav-desktop {
        display: none;
    }

    .mobile-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }

    /* Grid Collapses */
    .stats-grid,
    .srv-grid,
    .dash-grid,
    .testi-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Hover/Interactions for Touch */
    .btn {
        width: 100%;
    }

    .acc-head {
        padding: 1.5rem;
    }

    .acc-card.active .acc-body {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    /* General Spacing */
    .hero-visual {
        height: 350px;
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .legal-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .calc-controls,
    .calc-outputs,
    .form-box,
    .dash-container,
    .cta-box {
        padding: var(--sp-sm);
    }
}