/* ==========================================================================
   CSS VARIABLES & CORE THEME (Obsidian & Gold - High-Ticket Agency)
   ========================================================================== */
:root {
   --bg-black: #000000;
   --bg-obsidian: #0a0a0c;
   --bg-charcoal: #141417;
   --bg-glass: rgba(20, 20, 23, 0.7);

   --gold-light: #fde08b;
   --gold-main: #d4af37;
   --gold-dark: #aa7c11;
   --gold-gradient: linear-gradient(135deg, var(--gold-light), var(--gold-main), var(--gold-dark));

   --text-white: #ffffff;
   --text-offwhite: #f3f4f6;
   --text-muted: #9ca3af;
   --text-dark: #1f2937;

   --border-subtle: rgba(212, 175, 55, 0.15);
   --border-gold: rgba(212, 175, 55, 0.5);

   --font-display: 'Outfit', system-ui, sans-serif;
   --font-body: 'Outfit', system-ui, sans-serif;

   --nav-height: 90px;
   --ease-golden: cubic-bezier(0.25, 1, 0.3, 1);
   --transition-slow: 0.6s var(--ease-golden);
   --transition-fast: 0.3s ease;
}

/* ==========================================================================
   RESET & GLOBAL TYPOGRAPHY
   ========================================================================== */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
   font-size: 16px;
   background-color: var(--bg-black);
}

body {
   font-family: var(--font-body);
   background-color: var(--bg-obsidian);
   color: var(--text-offwhite);
   line-height: 1.6;
   overflow-x: hidden;
   -webkit-font-smoothing: antialiased;
   /* Subtle noise texture for premium matte feel */
   background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.03"/%3E%3C/svg%3E');
}

a {
   text-decoration: none;
   color: inherit;
   transition: var(--transition-fast);
}

ul {
   list-style: none;
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}

button,
input,
textarea,
select {
   font-family: inherit;
   border: none;
   outline: none;
   background: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: var(--font-display);
   font-weight: 300;
   line-height: 1.1;
   margin-bottom: 1.2rem;
   letter-spacing: -0.02em;
}

h1 {
   font-size: clamp(3rem, 6vw, 6rem);
   font-weight: 200;
}

h2 {
   font-size: clamp(2rem, 4vw, 4rem);
   font-weight: 300;
}

h3 {
   font-size: clamp(1.5rem, 2.5vw, 2.5rem);
   font-weight: 400;
}

p {
   font-size: 1.125rem;
   color: var(--text-muted);
   margin-bottom: 1.5rem;
   font-weight: 300;
}

.container {
   max-width: 1440px;
   margin: 0 auto;
   padding: 0 5%;
}

.section-pad {
   padding: 10rem 0;
}

.text-center {
   text-align: center;
}

.gold-text {
   background: var(--gold-gradient);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   font-weight: 500;
}

.eyebrow {
   display: block;
   font-size: 0.85rem;
   text-transform: uppercase;
   letter-spacing: 4px;
   color: var(--gold-main);
   margin-bottom: 1rem;
   font-weight: 400;
}

/* Premium Buttons */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 1.2rem 3rem;
   font-size: 0.9rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   font-weight: 500;
   cursor: pointer;
   position: relative;
   overflow: hidden;
   transition: var(--transition-slow);
   border-radius: 2px;
}

.btn-gold {
   background: var(--gold-main);
   color: var(--bg-black);
   box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.btn-gold::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
   transition: 0.5s;
}

.btn-gold:hover {
   background: var(--gold-light);
   box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
   transform: translateY(-2px);
}

.btn-gold:hover::before {
   left: 100%;
}

.btn-outline {
   border: 1px solid var(--gold-main);
   color: var(--gold-main);
}

.btn-outline:hover {
   background: var(--gold-main);
   color: var(--bg-black);
}

/* ==========================================================================
   HEADER & NAVIGATION (Strictly Identical Site-wide, Pitch Black)
   ========================================================================== */
.site-header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: var(--nav-height);
   background: transparent;
   z-index: 1000;
   transition: var(--transition-slow);
   display: flex;
   align-items: center;
   border-bottom: 1px solid transparent;
}

.site-header.scrolled {
   height: 80px;
   background: rgba(0, 0, 0, 0.9);
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: 100%;
}

.site-logo {
   max-height: 50px;
   filter: brightness(0) invert(1);
   transition: var(--transition-fast);
}

.main-nav {
   display: flex;
   gap: 3rem;
   align-items: center;
}

.nav-link {
   font-size: 0.85rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   color: var(--text-offwhite);
   position: relative;
   padding: 0.5rem 0;
}

.nav-link::before {
   content: '';
   position: absolute;
   bottom: 0;
   left: 50%;
   transform: translateX(-50%);
   width: 0;
   height: 1px;
   background: var(--gold-main);
   transition: var(--transition-slow);
}

.nav-link:hover {
   color: var(--gold-main);
}

.nav-link:hover::before {
   width: 100%;
}

.mobile-menu-btn {
   display: none;
   width: 30px;
   height: 20px;
   position: relative;
   cursor: pointer;
   z-index: 1001;
}

.mobile-menu-btn span {
   display: block;
   position: absolute;
   height: 1px;
   width: 100%;
   background: var(--gold-main);
   transition: 0.3s ease-in-out;
}

.mobile-menu-btn span:nth-child(1) {
   top: 0;
}

.mobile-menu-btn span:nth-child(2) {
   top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
   top: 18px;
}

.mobile-menu-btn.active span:nth-child(1) {
   top: 9px;
   transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
   opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
   top: 9px;
   transform: rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION (3D Golden Geometry & Typography)
   ========================================================================== */
.hero {
   min-height: 100vh;
   display: flex;
   align-items: center;
   position: relative;
   overflow: hidden;
   padding-top: var(--nav-height);
}

.hero::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: radial-gradient(circle at 70% 50%, rgba(212, 175, 55, 0.05), transparent 50%);
   pointer-events: none;
}

.hero-layout {
   display: grid;
   grid-template-columns: 1.2fr 0.8fr;
   gap: 4rem;
   align-items: center;
   position: relative;
   z-index: 1;
}

.hero-actions {
   display: flex;
   gap: 1.5rem;
   margin-top: 3rem;
}

/* 3D Pure CSS Golden Construct */
.hero-3d-wrapper {
   perspective: 1200px;
   display: flex;
   justify-content: center;
   align-items: center;
   height: 500px;
}

.golden-construct {
   width: 300px;
   height: 300px;
   position: relative;
   transform-style: preserve-3d;
   animation: rotateConstruct 20s linear infinite;
}

.construct-ring {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   border: 1px solid var(--gold-main);
   border-radius: 50%;
   box-shadow: 0 0 20px rgba(212, 175, 55, 0.2), inset 0 0 20px rgba(212, 175, 55, 0.2);
}

.construct-ring:nth-child(1) {
   transform: rotateY(0deg);
}

.construct-ring:nth-child(2) {
   transform: rotateY(60deg);
}

.construct-ring:nth-child(3) {
   transform: rotateY(120deg);
}

.construct-ring:nth-child(4) {
   transform: rotateX(90deg);
}

.construct-core {
   position: absolute;
   top: 35%;
   left: 35%;
   width: 30%;
   height: 30%;
   background: var(--gold-gradient);
   border-radius: 50%;
   box-shadow: 0 0 50px var(--gold-main);
   animation: pulseCore 4s ease-in-out infinite alternate;
}

@keyframes rotateConstruct {
   0% {
      transform: rotateX(0) rotateY(0) rotateZ(0);
   }

   100% {
      transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
   }
}

@keyframes pulseCore {
   0% {
      transform: scale(0.8);
      opacity: 0.8;
   }

   100% {
      transform: scale(1.2);
      opacity: 1;
   }
}

/* ==========================================================================
   METRICS SECTION (Minimalist High-Ticket Style)
   ========================================================================== */
.metrics-section {
   border-top: 1px solid var(--border-subtle);
   border-bottom: 1px solid var(--border-subtle);
   background: var(--bg-black);
   padding: 4rem 0;
}

.metrics-grid {
   display: flex;
   justify-content: space-around;
   flex-wrap: wrap;
   gap: 2rem;
}

.metric-box {
   text-align: center;
   position: relative;
}

.metric-box::after {
   content: '';
   position: absolute;
   right: -50%;
   top: 20%;
   height: 60%;
   width: 1px;
   background: var(--border-subtle);
}

.metric-box:last-child::after {
   display: none;
}

.metric-num {
   font-size: 3.5rem;
   font-weight: 200;
   color: var(--gold-light);
   font-family: var(--font-display);
   line-height: 1;
   margin-bottom: 0.5rem;
}

.metric-label {
   font-size: 0.8rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   color: var(--text-muted);
}

/* ==========================================================================
   SERVICES (Border-Tracing Cards)
   ========================================================================== */
.services-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2px;
   background: var(--border-subtle);
   border: 1px solid var(--border-subtle);
   margin-top: 5rem;
}

.service-card {
   background: var(--bg-obsidian);
   padding: 4rem 3rem;
   position: relative;
   overflow: hidden;
   transition: var(--transition-slow);
   z-index: 1;
}

/* Border Tracing Effect */
.service-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   border: 1px solid var(--gold-main);
   transform: scale(0.9);
   opacity: 0;
   transition: var(--transition-slow);
   z-index: -1;
}

.service-card:hover {
   background: var(--bg-charcoal);
}

.service-card:hover::before {
   transform: scale(1);
   opacity: 1;
}

.svc-icon {
   font-size: 2.5rem;
   color: var(--gold-main);
   margin-bottom: 2rem;
   font-weight: 300;
   display: inline-block;
   transition: var(--transition-slow);
}

.service-card:hover .svc-icon {
   transform: translateY(-10px);
   text-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

.service-card h3 {
   font-size: 1.5rem;
   margin-bottom: 1rem;
   color: var(--text-offwhite);
}

/* ==========================================================================
   ROI CALCULATOR (High-End Dark UI)
   ========================================================================== */
.calc-section {
   background: var(--bg-black);
   position: relative;
}

.calc-wrapper {
   border: 1px solid var(--border-subtle);
   display: grid;
   grid-template-columns: 1.2fr 0.8fr;
}

.calc-inputs {
   padding: 6rem;
   background: var(--bg-obsidian);
}

.calc-outputs {
   padding: 6rem;
   background: var(--bg-charcoal);
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   text-align: center;
   border-left: 1px solid var(--border-subtle);
   position: relative;
   overflow: hidden;
}

.calc-outputs::before {
   content: '';
   position: absolute;
   inset: 0;
   background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
}

.calc-row {
   margin-bottom: 3rem;
}

.calc-label-flex {
   display: flex;
   justify-content: space-between;
   margin-bottom: 1rem;
}

.calc-label {
   font-size: 0.9rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   color: var(--text-muted);
}

.calc-val {
   color: var(--gold-main);
   font-size: 1.5rem;
   font-family: var(--font-display);
   font-weight: 400;
}

/* Premium Gold Slider */
.gold-slider {
   -webkit-appearance: none;
   width: 100%;
   height: 2px;
   background: var(--border-subtle);
   outline: none;
}

.gold-slider::-webkit-slider-thumb {
   -webkit-appearance: none;
   width: 16px;
   height: 16px;
   background: var(--gold-main);
   cursor: pointer;
   box-shadow: 0 0 15px var(--gold-main);
   border-radius: 0;
   transform: rotate(45deg);
   transition: 0.3s;
}

.gold-slider::-webkit-slider-thumb:hover {
   transform: rotate(45deg) scale(1.5);
}

/* Gold Checkboxes */
.checkbox-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1rem;
}

.chk-label {
   display: block;
   position: relative;
   cursor: pointer;
}

.chk-label input {
   display: none;
}

.chk-btn {
   border: 1px solid var(--border-subtle);
   padding: 1rem;
   text-align: center;
   color: var(--text-muted);
   transition: var(--transition-fast);
   font-size: 0.9rem;
   text-transform: uppercase;
   letter-spacing: 1px;
}

.chk-label input:checked+.chk-btn {
   border-color: var(--gold-main);
   color: var(--gold-main);
   background: rgba(212, 175, 55, 0.05);
}

.output-title {
   font-size: 0.85rem;
   text-transform: uppercase;
   letter-spacing: 4px;
   color: var(--gold-main);
   margin-bottom: 1rem;
   position: relative;
   z-index: 1;
}

.output-num {
   font-size: 5rem;
   font-family: var(--font-display);
   font-weight: 200;
   color: var(--text-white);
   line-height: 1;
   margin-bottom: 1rem;
   position: relative;
   z-index: 1;
}

.output-desc {
   color: var(--text-muted);
   font-weight: 300;
   position: relative;
   z-index: 1;
   max-width: 80%;
   margin: 0 auto;
}

/* ==========================================================================
   REPORTING / DASHBOARD (CSS Chart Drawings)
   ========================================================================== */
.reports-wrapper {
   border: 1px solid var(--border-subtle);
   padding: 4rem;
   background: var(--bg-charcoal);
   position: relative;
   overflow: hidden;
}

.dash-tabs {
   display: flex;
   gap: 2rem;
   border-bottom: 1px solid var(--border-subtle);
   padding-bottom: 1rem;
   margin-bottom: 3rem;
}

.dash-tab {
   color: var(--text-muted);
   font-size: 1rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   cursor: pointer;
   transition: var(--transition-fast);
   position: relative;
}

.dash-tab.active {
   color: var(--gold-main);
}

.dash-tab.active::after {
   content: '';
   position: absolute;
   bottom: -1rem;
   left: 0;
   width: 100%;
   height: 1px;
   background: var(--gold-main);
}

.dash-panel {
   display: none;
   animation: slideUpFade 0.6s var(--ease-golden);
}

.dash-panel.active {
   display: block;
}

@keyframes slideUpFade {
   from {
      opacity: 0;
      transform: translateY(20px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* Complex CSS Line Chart Simulation */
.css-chart-container {
   height: 300px;
   position: relative;
   border-bottom: 1px solid var(--border-subtle);
   border-left: 1px solid var(--border-subtle);
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   padding: 0 5%;
   margin-bottom: 3rem;
}

.css-chart-grid-line {
   position: absolute;
   width: 100%;
   height: 1px;
   background: rgba(255, 255, 255, 0.03);
   left: 0;
}

.css-line-path {
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: linear-gradient(to top, rgba(212, 175, 55, 0.2), transparent);
   clip-path: polygon(0 100%, 0 70%, 20% 60%, 40% 80%, 60% 40%, 80% 50%, 100% 20%, 100% 100%);
   border-top: 2px solid var(--gold-main);
   transform-origin: bottom;
   animation: revealChart 1.5s var(--ease-golden) forwards;
}

@keyframes revealChart {
   0% {
      transform: scaleY(0);
   }

   100% {
      transform: scaleY(1);
   }
}

.chart-point {
   width: 8px;
   height: 8px;
   background: var(--bg-black);
   border: 2px solid var(--gold-main);
   border-radius: 50%;
   position: absolute;
   z-index: 2;
   box-shadow: 0 0 10px var(--gold-main);
}

.dash-stats-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
}

.dash-stat {
   padding-left: 2rem;
   border-left: 1px solid var(--gold-main);
}

.dash-stat h4 {
   font-size: 2.5rem;
   color: var(--text-white);
   margin: 0;
   font-weight: 300;
}

.dash-stat p {
   font-size: 0.8rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   color: var(--text-muted);
   margin: 0;
}

/* ==========================================================================
   INDUSTRY FOCUS
   ========================================================================== */
.industry-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
}

.ind-card {
   position: relative;
   height: 400px;
   overflow: hidden;
   background: var(--bg-charcoal);
   border: 1px solid var(--border-subtle);
   display: flex;
   align-items: flex-end;
   padding: 3rem;
   cursor: pointer;
   transition: var(--transition-slow);
}

.ind-card::before {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(to top, var(--bg-black), transparent);
   z-index: 1;
}

.ind-img {
   position: absolute;
   inset: 0;
   background: #1a1a1a;
   filter: grayscale(100%);
   transition: var(--transition-slow);
}

.ind-card:hover {
   border-color: var(--gold-main);
   transform: translateY(-10px);
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.ind-card:hover .ind-img {
   filter: grayscale(0%);
   transform: scale(1.05);
}

.ind-content {
   position: relative;
   z-index: 2;
}

.ind-content h3 {
   font-size: 1.8rem;
   margin-bottom: 0.5rem;
   transition: var(--transition-fast);
}

.ind-card:hover .ind-content h3 {
   color: var(--gold-main);
}

.ind-content p {
   font-size: 0.95rem;
   margin: 0;
   opacity: 0;
   transform: translateY(20px);
   transition: var(--transition-slow);
}

.ind-card:hover .ind-content p {
   opacity: 1;
   transform: translateY(0);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testi-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 3rem;
}

.testi-card {
   border: 1px solid var(--border-subtle);
   padding: 4rem;
   position: relative;
   background: var(--bg-obsidian);
}

.testi-quote-mark {
   position: absolute;
   top: 2rem;
   right: 3rem;
   font-family: serif;
   font-size: 6rem;
   color: rgba(212, 175, 55, 0.1);
   line-height: 1;
}

.testi-text {
   font-size: 1.25rem;
   font-weight: 300;
   line-height: 1.8;
   margin-bottom: 3rem;
   position: relative;
   z-index: 1;
   font-style: italic;
}

.testi-author {
   display: flex;
   align-items: center;
   gap: 1.5rem;
}

.author-line {
   width: 40px;
   height: 1px;
   background: var(--gold-main);
}

.author-info h4 {
   font-size: 1.1rem;
   margin: 0;
   font-weight: 400;
   text-transform: uppercase;
   letter-spacing: 1px;
}

.author-info span {
   font-size: 0.85rem;
   color: var(--text-muted);
}

/* ==========================================================================
   CONTACT SECTION (Premium Dark Form)
   ========================================================================== */
.contact-section {
   background: var(--bg-black);
}

.contact-layout {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 5rem;
   border: 1px solid var(--border-subtle);
   padding: 5rem;
   background: var(--bg-obsidian);
}

.contact-info-list {
   margin-top: 3rem;
}

.contact-info-list li {
   display: flex;
   align-items: center;
   gap: 1.5rem;
   margin-bottom: 2rem;
   font-size: 1.1rem;
   color: var(--text-offwhite);
   font-weight: 300;
}

.contact-info-list i {
   color: var(--gold-main);
   font-size: 1.5rem;
   font-style: normal;
}

.dark-form {
   display: grid;
   gap: 2rem;
}

.form-group {
   position: relative;
}

.form-input {
   width: 100%;
   background: transparent;
   border: none;
   border-bottom: 1px solid var(--border-subtle);
   padding: 1rem 0;
   color: var(--text-offwhite);
   font-size: 1rem;
   transition: var(--transition-fast);
   font-family: var(--font-body);
   font-weight: 300;
}

.form-input:focus {
   border-color: var(--gold-main);
}

.form-input::placeholder {
   color: rgba(255, 255, 255, 0.3);
}

textarea.form-input {
   height: 100px;
   resize: none;
}

/* ==========================================================================
   FOOTER (Strictly Identical, Pitch Black)
   ========================================================================== */
.site-footer {
   background: var(--bg-black);
   padding: 8rem 0 3rem;
   border-top: 1px solid var(--border-subtle);
}

.footer-layout {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1.5fr;
   gap: 4rem;
   margin-bottom: 5rem;
}

.footer-logo {
   max-height: 50px;
   filter: brightness(0) invert(1);
   margin-bottom: 2rem;
}

.footer-about {
   color: var(--text-muted);
   font-size: 0.95rem;
   line-height: 1.8;
   max-width: 350px;
   font-weight: 300;
}

.footer-social {
   display: flex;
   gap: 1.5rem;
   margin-top: 2rem;
}

.footer-social a {
   color: var(--text-offwhite);
   font-size: 0.85rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   transition: var(--transition-fast);
}

.footer-social a:hover {
   color: var(--gold-main);
}

.footer-heading {
   color: var(--text-white);
   font-size: 1rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   margin-bottom: 2rem;
   font-weight: 400;
}

.footer-links li {
   margin-bottom: 1.2rem;
}

.footer-links a {
   color: var(--text-muted);
   font-size: 0.95rem;
   font-weight: 300;
   transition: var(--transition-fast);
}

.footer-links a:hover {
   color: var(--gold-main);
}

.footer-contact p {
   color: var(--text-muted);
   font-size: 0.95rem;
   font-weight: 300;
   margin-bottom: 1rem;
   display: flex;
   align-items: center;
   gap: 1rem;
}

.footer-contact i {
   color: var(--gold-main);
   font-style: normal;
}

.footer-bottom {
   text-align: center;
   border-top: 1px solid var(--border-subtle);
   padding-top: 3rem;
   color: var(--text-muted);
   font-size: 0.85rem;
   font-weight: 300;
   text-transform: uppercase;
   letter-spacing: 2px;
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-hero {
   padding: 15rem 0 8rem;
   text-align: center;
   border-bottom: 1px solid var(--border-subtle);
   background: var(--bg-black);
}

.legal-content {
   max-width: 800px;
   margin: 0 auto;
   padding: 8rem 0;
}

.legal-content h2 {
   font-size: 1.8rem;
   color: var(--gold-main);
   margin: 3rem 0 1.5rem;
   text-transform: uppercase;
   letter-spacing: 2px;
}

.legal-content p {
   color: var(--text-offwhite);
   font-size: 1.1rem;
   line-height: 1.8;
   margin-bottom: 1.5rem;
   font-weight: 300;
}

.legal-content ul {
   padding-left: 1.5rem;
   margin-bottom: 2rem;
}

.legal-content li {
   color: var(--text-offwhite);
   font-weight: 300;
   margin-bottom: 0.8rem;
   list-style: square;
}

/* ==========================================================================
   LIVE CHAT (Gold Minimalist)
   ========================================================================== */
.chat-widget {
   position: fixed;
   bottom: 40px;
   right: 40px;
   z-index: 2000;
}

.chat-toggle {
   width: 60px;
   height: 60px;
   background: var(--gold-main);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.5rem;
   color: var(--bg-black);
   cursor: pointer;
   box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
   transition: var(--transition-slow);
}

.chat-toggle:hover {
   transform: scale(1.05);
}

.chat-window {
   position: absolute;
   bottom: 80px;
   right: 0;
   width: 350px;
   background: var(--bg-obsidian);
   border: 1px solid var(--gold-main);
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
   opacity: 0;
   visibility: hidden;
   transform: translateY(20px);
   transition: var(--transition-slow);
}

.chat-window.open {
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
}

.chat-header {
   background: var(--bg-charcoal);
   border-bottom: 1px solid var(--border-subtle);
   padding: 1.5rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.chat-header h4 {
   margin: 0;
   font-size: 0.9rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   color: var(--gold-main);
}

.chat-close {
   background: none;
   color: var(--text-white);
   font-size: 1.5rem;
   cursor: pointer;
}

.chat-body {
   padding: 1.5rem;
   height: 300px;
   overflow-y: auto;
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.chat-msg {
   padding: 1rem;
   font-size: 0.9rem;
   font-weight: 300;
   max-width: 85%;
   line-height: 1.5;
}

.chat-msg.bot {
   background: var(--bg-charcoal);
   border: 1px solid var(--border-subtle);
   align-self: flex-start;
}

.chat-msg.user {
   background: rgba(212, 175, 55, 0.1);
   border: 1px solid var(--gold-main);
   color: var(--gold-main);
   align-self: flex-end;
}

.chat-input-area {
   padding: 1rem;
   border-top: 1px solid var(--border-subtle);
   display: flex;
   background: var(--bg-charcoal);
}

.chat-input-fld {
   flex: 1;
   background: transparent;
   border: none;
   color: var(--text-white);
   font-size: 0.9rem;
   font-family: var(--font-body);
   font-weight: 300;
}

.chat-submit {
   color: var(--gold-main);
   cursor: pointer;
   font-weight: 500;
   text-transform: uppercase;
   font-size: 0.8rem;
   letter-spacing: 1px;
}

/* ==========================================================================
   SCROLL REVEALS & RESPONSIVE
   ========================================================================== */
.reveal {
   opacity: 0;
   transform: translateY(40px);
   transition: 1s var(--ease-golden);
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

@media (max-width: 1024px) {
   h1 {
      font-size: 4rem;
   }

   .hero-layout,
   .calc-wrapper,
   .contact-layout,
   .footer-layout {
      grid-template-columns: 1fr;
   }

   .hero-3d-wrapper {
      height: 300px;
   }

   .services-grid,
   .industry-grid,
   .testi-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .calc-inputs,
   .calc-outputs,
   .contact-layout {
      padding: 3rem;
   }

   .css-chart-container {
      display: none;
      /* Simplify on smaller screens */
   }
}

@media (max-width: 768px) {
   .main-nav {
      position: fixed;
      top: var(--nav-height);
      left: -100%;
      width: 100%;
      height: calc(100vh - var(--nav-height));
      background: var(--bg-black);
      flex-direction: column;
      justify-content: center;
      transition: 0.4s ease;
   }

   .main-nav.active {
      left: 0;
   }

   .mobile-menu-btn {
      display: block;
   }

   .services-grid,
   .industry-grid,
   .testi-grid {
      grid-template-columns: 1fr;
   }

   .dash-stats-grid {
      grid-template-columns: 1fr;
   }

   .checkbox-grid {
      grid-template-columns: 1fr;
   }

   .metrics-grid {
      flex-direction: column;
   }

   .metric-box::after {
      display: none;
   }

   .dash-tabs {
      flex-wrap: wrap;
   }
}