/* ==========================================================================
   Base Variables & Prismatic Glass Theme
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@300;400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

:root {
    /* Obsidian Velvet Palette */
    --bg-obsidian: #030305;
    --bg-surface: #0a0a0f;
    --bg-elevated: #11111a;
    
    /* Prismatic Iridescent Accents */
    --prism-1: #a78bfa; /* Violet */
    --prism-2: #f472b6; /* Pink */
    --prism-3: #38bdf8; /* Mint/Cyan */
    --gradient-prism: linear-gradient(135deg, var(--prism-1), var(--prism-2), var(--prism-3));
    --gradient-glow: radial-gradient(circle at center, rgba(167, 139, 250, 0.4), transparent 70%);
    
    /* Typography */
    --text-pure: #ffffff;
    --text-dim: #94a3b8;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    
    /* Fonts */
    --font-heading: 'Instrument Serif', serif;
    --font-body: 'Epilogue', sans-serif;
    
    /* Fluid Spacing */
    --sp-xs: clamp(0.5rem, 1vw, 1rem);
    --sp-sm: clamp(1rem, 2.5vw, 2rem);
    --sp-md: clamp(2rem, 5vw, 4rem);
    --sp-lg: clamp(4rem, 8vw, 8rem);
    --sp-xl: clamp(6rem, 12vw, 12rem);
    
    /* Layout */
    --container-max: 1400px;
    --header-height: 90px;
    
    /* Easing */
    --ease-prism: cubic-bezier(0.22, 1, 0.36, 1);
    --trans-fast: 0.3s var(--ease-prism);
    --trans-slow: 0.8s var(--ease-prism);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--prism-1) var(--bg-obsidian);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-obsidian);
    color: var(--text-pure);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Ambient Prismatic Glows */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.4;
    animation: driftPrism 20s infinite alternate ease-in-out;
}

body::before {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, transparent 60%);
}

body::after {
    bottom: -10%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 60%);
    animation-delay: -5s;
}

/* Cinematic Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    z-index: 9999;
    pointer-events: none;
}

::selection {
    background: var(--prism-2);
    color: var(--text-pure);
}

/* ==========================================================================
   Typography & Universal Elements
   ========================================================================== */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 1px;
}

h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-prism {
    background: var(--gradient-prism);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-sm);
    position: relative;
    z-index: 2;
}

.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;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--prism-1);
    backdrop-filter: blur(12px);
}

.section-head h2 {
    font-size: clamp(3rem, 6vw, 5.5rem);
}

.section-head p {
    color: var(--text-dim);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    max-width: 650px;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--trans-slow);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-prism {
    background: var(--text-pure);
    color: var(--bg-obsidian);
    box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}

.btn-prism::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-prism);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-prism:hover::before { opacity: 1; }
.btn-prism:hover {
    color: var(--text-pure);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(167, 139, 250, 0.4);
}

.btn-glass {
    background: var(--glass-bg);
    color: var(--text-pure);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--prism-3);
    transform: translateY(-3px);
}

/* ==========================================================================
   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);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-wrap img {
    height: 60px;
    filter: invert(1);
    width: auto;
    object-fit: contain;
}

.nav-desktop {
    display: flex;
    gap: 3rem;
}

.nav-desktop a {
    color: var(--text-pure);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--trans-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; width: 0%; height: 2px;
    background: var(--gradient-prism);
    transition: var(--trans-fast);
}

.nav-desktop a:hover::after, .nav-desktop a.active::after {
    width: 100%;
}

.nav-desktop a:hover, .nav-desktop a.active {
    color: var(--prism-1);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-pure);
    cursor: pointer;
}

.mobile-toggle svg { width: 32px; height: 32px; }

/* Full-Screen Mobile Menu */
.mobile-nav-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(3, 3, 5, 0.98);
    backdrop-filter: blur(30px);
    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.5s var(--ease-prism);
}

.mobile-nav-wrapper.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.mobile-nav-wrapper a {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text-pure);
    text-decoration: none;
    margin: 1rem 0;
    transition: var(--trans-fast);
    font-style: italic;
}

.mobile-nav-wrapper a:hover, .mobile-nav-wrapper a.active {
    color: var(--prism-2);
}

/* STRICTLY CONSISTENT FOOTER */
.site-footer {
    background: var(--bg-surface);
    padding: var(--sp-xl) 0 var(--sp-md);
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--sp-md);
    margin-bottom: var(--sp-lg);
}

.footer-col .logo-wrap img {
        height: 60px;
    filter: invert(1);
    margin-bottom: var(--sp-sm);
}

.footer-col p {
    color: var(--text-dim);
    font-size: 0.95rem;
    max-width: 85%;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-pure);
    margin-bottom: var(--sp-sm);
}

/* Specific Prompt Requirement: Contact Heading = DomainName */
.footer-col.contact-col h4 {
    background: var(--gradient-prism);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--trans-fast);
}

.footer-links a:hover {
    color: var(--prism-3);
}

.contact-info li {
    color: var(--text-dim);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
}

.contact-info svg {
    color: var(--prism-1);
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: var(--sp-md);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--trans-fast);
}

.legal-links a:hover {
    color: var(--text-pure);
}

/* ==========================================================================
   Section 1: Hero (Index)
   ========================================================================== */
.hero-sec {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(4rem, 8vw, 7.5rem);
    margin-bottom: var(--sp-sm);
    font-style: italic;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-dim);
    margin-bottom: var(--sp-md);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* CSS-Rendered 3D Prismatic Diamond */
.hero-visual {
    position: relative;
    height: clamp(350px, 40vw, 600px);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.prism-diamond {
    width: 200px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateDiamond 15s linear infinite;
}

.diamond-face {
    position: absolute;
    width: 0; height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    opacity: 0.8;
    backdrop-filter: blur(10px);
}

/* Top Pyramid */
.df-1 { border-bottom: 150px solid rgba(167, 139, 250, 0.4); transform-origin: bottom; transform: translateZ(50px) rotateX(30deg); top: 0; }
.df-2 { border-bottom: 150px solid rgba(244, 114, 182, 0.4); transform-origin: bottom; transform: rotateY(90deg) translateZ(50px) rotateX(30deg); top: 0; }
.df-3 { border-bottom: 150px solid rgba(56, 189, 248, 0.4); transform-origin: bottom; transform: rotateY(180deg) translateZ(50px) rotateX(30deg); top: 0; }
.df-4 { border-bottom: 150px solid rgba(255, 255, 255, 0.2); transform-origin: bottom; transform: rotateY(-90deg) translateZ(50px) rotateX(30deg); top: 0; }

/* Bottom Pyramid */
.df-5 { border-top: 150px solid rgba(167, 139, 250, 0.4); transform-origin: top; transform: translateZ(50px) rotateX(-30deg); bottom: 0; }
.df-6 { border-top: 150px solid rgba(244, 114, 182, 0.4); transform-origin: top; transform: rotateY(90deg) translateZ(50px) rotateX(-30deg); bottom: 0; }
.df-7 { border-top: 150px solid rgba(56, 189, 248, 0.4); transform-origin: top; transform: rotateY(180deg) translateZ(50px) rotateX(-30deg); bottom: 0; }
.df-8 { border-top: 150px solid rgba(255, 255, 255, 0.2); transform-origin: top; transform: rotateY(-90deg) translateZ(50px) rotateX(-30deg); bottom: 0; }

@keyframes rotateDiamond {
    100% { transform: rotateY(360deg) rotateX(20deg); }
}

/* ==========================================================================
   Section 2: Infinite Hollow Marquee
   ========================================================================== */
.marquee-sec {
    padding: 2rem 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    border-bottom: 1px solid var(--glass-border);
}

.marquee-track {
    display: inline-block;
    animation: scrollMarquee 25s linear infinite;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: transparent;
    -webkit-text-stroke: 1px var(--text-dim);
    margin: 0 3rem;
    font-style: italic;
    transition: var(--trans-fast);
}

.marquee-item:hover {
    color: var(--prism-3);
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   Section 3: Metrics Grid
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--glass-border);
}

.stat-box {
    padding: var(--sp-md) var(--sp-sm);
    border-right: 1px solid var(--glass-border);
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transition: var(--trans-fast);
}

.stat-box:last-child { border-right: none; }

.stat-box:hover {
    background: rgba(255,255,255,0.05);
}

.stat-box h3 {
    font-size: clamp(3.5rem, 6vw, 5rem);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.stat-box p {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   Section 4: Services Bento Layout
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-sm);
}

.bento-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: var(--sp-md);
    backdrop-filter: blur(24px);
    transition: var(--trans-slow);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-glow);
    opacity: 0;
    transition: var(--trans-slow);
}

.bento-card:hover {
    border-color: var(--prism-1);
    transform: translateY(-5px);
}
.bento-card:hover::before { opacity: 1; }

.bento-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-pure);
    margin-bottom: var(--sp-sm);
    position: relative;
    z-index: 2;
}

.bento-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.bento-card p {
    color: var(--text-dim);
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Section 5: Interactive Calculator
   ========================================================================== */
.calc-wrap {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    backdrop-filter: blur(30px);
}

.calc-controls {
    padding: var(--sp-md);
    border-right: 1px solid var(--glass-border);
}

.ctrl-block {
    margin-bottom: var(--sp-md);
}

.ctrl-block label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.prism-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: var(--glass-highlight);
    border-radius: 2px;
    outline: none;
}

.prism-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px; height: 24px;
    background: var(--text-pure);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
    transition: transform 0.3s ease;
}
.prism-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.prism-select {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-pure);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 12px;
    outline: none;
    appearance: none;
}
.prism-select:focus { border-color: var(--prism-2); }

.calc-outputs {
    padding: var(--sp-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0,0,0,0.2);
}

.out-block { margin-bottom: var(--sp-sm); }
.out-block h4 {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.out-block .val {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1;
    font-style: italic;
}

/* ==========================================================================
   Section 6: Analytics Dashboard
   ========================================================================== */
.dash-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: var(--sp-md);
    backdrop-filter: blur(24px);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: var(--sp-sm);
    margin-bottom: var(--sp-sm);
    flex-wrap: wrap;
    gap: 1rem;
}

.dash-header h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }

.live-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.live-dot { width: 8px; height: 8px; background: var(--prism-3); border-radius: 50%; animation: blink 1.5s infinite; }

.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-sm);
}

.metric-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    padding: var(--sp-sm);
    border-radius: 16px;
}

.metric-card p {
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.metric-card h2 {
    font-size: clamp(3rem, 4vw, 4rem);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.chart-track {
    height: 4px;
    background: var(--glass-highlight);
    border-radius: 2px;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    background: var(--gradient-prism);
    width: 0;
    transition: width 2s var(--ease-prism);
}

/* ==========================================================================
   Section 7: Industries (Split Tab Layout)
   ========================================================================== */
.ind-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
    align-items: center;
}

.ind-tabs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--trans-fast);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.tab-btn:hover { color: var(--text-pure); padding-left: 1rem; }
.tab-btn.active { color: var(--prism-1); font-style: italic; border-color: var(--prism-1); }

.tab-content {
    display: none;
    animation: fadeUp 0.6s var(--ease-prism);
}

.tab-content.active { display: block; }

.tab-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.tab-list { list-style: none; }
.tab-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
    display: flex; align-items: center; gap: 15px;
}
.tab-list li::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--prism-2);
    border-radius: 50%;
}

/* ==========================================================================
   Section 8: Testimonials
   ========================================================================== */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-sm);
}

.testi-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: var(--sp-md);
    border-radius: 24px;
    backdrop-filter: blur(12px);
}

.testi-card h4 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--prism-1);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.testi-card p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.author-pic {
    width: 50px; height: 50px;
    background: var(--glass-highlight);
    border-radius: 50%;
}

.author-info h5 { font-size: 1rem; }
.author-info span { font-size: 0.85rem; color: var(--prism-3); text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   Section 9: CTA
   ========================================================================== */
.cta-sec {
    text-align: center;
    padding: var(--sp-xl) 0;
    border-top: 1px solid var(--glass-border);
    background: radial-gradient(circle at center, rgba(244, 114, 182, 0.1) 0%, transparent 60%);
}

.cta-sec h2 {
    font-size: clamp(3.5rem, 6vw, 6rem);
    margin-bottom: var(--sp-md);
    font-style: italic;
}

/* ==========================================================================
   Live Chat System
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 9999;
}

.chat-toggle {
    width: 65px; height: 65px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-pure);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}
.chat-toggle:hover { transform: scale(1.1); border-color: var(--prism-3); }

.chat-window {
    position: absolute;
    bottom: 85px; right: 0;
    width: calc(100vw - 40px);
    max-width: 360px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(24px);
    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-head {
    padding: 1.5rem; border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: space-between; align-items: center;
}
.chat-head h4 { font-family: var(--font-body); font-size: 0.95rem; }
.chat-close { background: none; border: none; color: var(--text-pure); cursor: pointer; font-size: 1.2rem; }

.chat-body {
    height: 320px; padding: 1.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem;
}
.chat-msg {
    background: var(--glass-bg); padding: 1rem; border-radius: 12px; font-size: 0.9rem; max-width: 85%;
    border-left: 2px solid var(--prism-2);
}

.chat-input {
    padding: 1rem; border-top: 1px solid var(--glass-border); display: flex; gap: 0.5rem;
}
.chat-input input {
    flex-grow: 1; background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); color: #fff; padding: 0.8rem; border-radius: 8px; outline: none;
}
.chat-input button {
    background: var(--text-pure); border: none; color: var(--bg-obsidian); padding: 0 1rem; border-radius: 8px; cursor: pointer; font-weight: 700;
}

/* ==========================================================================
   Internal Pages (Legal & Contact)
   ========================================================================== */
.page-hero {
    padding: var(--sp-xl) 0 var(--sp-md);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}

.page-hero h1 { font-size: clamp(4rem, 7vw, 6.5rem); margin-bottom: 1rem; font-style: italic; }

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--sp-lg) 0;
}

.legal-content h2 {
    font-size: 2.5rem;
    margin: var(--sp-md) 0 var(--sp-sm);
    background: var(--gradient-prism);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-content p, .legal-content ul {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.legal-content ul { padding-left: 2rem; }

/* Contact Form Grid */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--sp-lg);
    padding: var(--sp-lg) 0;
}

.form-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: var(--sp-md);
    backdrop-filter: blur(20px);
}

.form-grp { margin-bottom: var(--sp-sm); }
.form-grp label {
    display: block; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.8rem; letter-spacing: 1px;
}

.prism-field {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-pure);
    font-family: var(--font-body);
    outline: none;
    transition: var(--trans-fast);
}
.prism-field:focus { border-color: var(--prism-1); }
textarea.prism-field { height: 160px; resize: none; }

.contact-info h2 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: var(--sp-sm); font-style: italic; }

.info-block {
    display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: var(--sp-md);
}

.info-icon {
    width: 60px; height: 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-pure);
    flex-shrink: 0;
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
@keyframes driftPrism {
    100% { transform: translate(15vw, 10vh) scale(1.2); }
}
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s var(--ease-prism);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Mobile Responsiveness (Flawless Scaling via Clamp & Grids)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid, .calc-wrap, .ind-layout, .contact-layout { grid-template-columns: 1fr; }
    .bento-grid, .dash-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .calc-controls { border-right: none; border-bottom: 1px solid var(--glass-border); }
    .hero-visual { height: 400px; }
    .ind-tabs { flex-direction: row; overflow-x: auto; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; }
    .tab-btn { border-bottom: none; font-size: 1.5rem; padding: 0.5rem 1rem; white-space: nowrap; }
}

@media (max-width: 768px) {
    /* Mobile Menu Override */
    .nav-desktop { display: none; }
    .mobile-toggle { display: block; z-index: 1001; }
    
    /* Grid Collapses */
    .stats-grid, .bento-grid, .dash-grid, .testi-grid, .footer-grid { grid-template-columns: 1fr; }
    .stat-box { border-right: none; border-bottom: 1px solid var(--glass-border); }
    
    /* Layout Fixes */
    .btn { width: 100%; }
    .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 { padding: var(--sp-sm); }
}
/* Kontakt-Links (Telefon/E-Mail) */
.contact-info a,
.footer-links .contact-info a {
    color: inherit;
    text-decoration: none;
}

.legal-content a {
    color: inherit;
    text-decoration: underline;
}
