/* ==================== CSS VARIABLES & THEME ==================== */
:root {
  --bg-dark: #050505;
  --bg-surface: #111111;
  --bg-surface-light: #1a1a1a;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;

  --accent-primary: #06b6d4; /* Cyber Cyan */
  --accent-secondary: #4f46e5; /* Deep Indigo */
  --accent-glow: rgba(6, 182, 212, 0.4);

  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

  --container-width: 1300px;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Dynamically added by JS for custom cursor */
body.custom-cursor-active {
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* ==================== TYPOGRAPHY ==================== */
h1,
h2,
h3,
h4,
.font-head {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 700;
}

.massive-text {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.highlight-gradient {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.mono-subtitle {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--accent-primary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px var(--border-hover);
}

/* ==================== UTILITIES ==================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5%;
}

.padding-y {
  padding-top: 8rem;
  padding-bottom: 8rem;
}
.pt-xl {
  padding-top: 12rem;
}
.text-center {
  text-align: center;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==================== CUSTOM CURSOR & EFFECTS ==================== */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0; /* Hidden by default till JS activates */
}
.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-primary);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s,
    background 0.2s;
  opacity: 0;
}
.cursor-hover {
  width: 60px;
  height: 60px;
  background: rgba(6, 182, 212, 0.1);
  border-color: transparent;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 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.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.03;
  z-index: 9000;
  pointer-events: none;
}

/* ==================== PRELOADER ==================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
}
.loader-content {
  text-align: center;
  width: 300px;
}
.loader-logo img {
  width: 60px;
  margin: 0 auto 2rem;
  filter: brightness(0) invert(1);
}
.loader-text {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.loader-progress {
  width: 100%;
  height: 2px;
  background: var(--border-color);
  overflow: hidden;
}
.loader-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-primary);
  transition: width 0.1s;
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo img {
  height: 80px;
  filter: brightness(0) invert(1);
  transition: var(--transition-fast);
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}
.hover-underline {
  position: relative;
}
.hover-underline::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background: var(--accent-primary);
  transition: width var(--transition-fast);
}
.hover-underline:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}
.menu-toggle span {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  left: 0;
  transition: var(--transition-fast);
}
.menu-toggle span:nth-child(1) {
  top: 0;
}
.menu-toggle span:nth-child(2) {
  top: 9px;
}
.menu-toggle span:nth-child(3) {
  top: 18px;
}

/* ==================== BUTTONS ==================== */
.btn-primary,
.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-fast);
}
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-dark);
}
.btn-primary .btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn-primary:hover {
  color: var(--text-primary);
}
.btn-primary:hover .btn-glow {
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  border-color: var(--text-primary);
}
.btn-large {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}
.full-width {
  width: 100%;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 50px;
  overflow: hidden;
}
.bg-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 10s infinite alternate ease-in-out;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-secondary);
  top: -10%;
  right: -5%;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-primary);
  bottom: 10%;
  left: -5%;
  animation-delay: -5s;
}

.hero-content {
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}
.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  max-width: 600px;
}
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* 3D Cube */
.hero-3d-element {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 250px;
  height: 250px;
  perspective: 1000px;
  z-index: 1;
  display: none;
}
@media (min-width: 1024px) {
  .hero-3d-element {
    display: block;
  }
}
.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
}
.face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  backdrop-filter: blur(10px);
}
.front {
  transform: translateZ(100px);
}
.back {
  transform: rotateY(180deg) translateZ(100px);
}
.right {
  transform: rotateY(90deg) translateZ(100px);
}
.left {
  transform: rotateY(-90deg) translateZ(100px);
}
.top {
  transform: rotateX(90deg) translateZ(100px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.7;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--text-primary);
  border-radius: 12px;
  position: relative;
}
.mouse::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--text-primary);
  border-radius: 50%;
  animation: scrollWheel 2s infinite;
}

/* ==================== MARQUEE ==================== */
.marquee-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-surface);
}
.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}
.marquee-content span {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 1rem;
}
.marquee-content .dot {
  color: var(--accent-primary);
}

/* ==================== BENTO GRID SERVICES ==================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto); /* Fixed the content overflow issue */
  gap: 1.5rem;
  margin-top: 4rem;
}
.bento-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.bento-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
}
.bento-item.large {
  grid-column: span 2;
  grid-row: span 2;
}
.bento-item.medium {
  grid-column: span 1;
  grid-row: span 1;
}
.bento-item.wide {
  grid-column: span 3;
  grid-row: span 1;
}

.icon-wrap {
  width: 50px;
  height: 50px;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}
.bento-item h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  z-index: 2;
  position: relative;
}
.bento-item p {
  z-index: 2;
  position: relative;
}
.card-bg-effect {
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition-smooth);
}
.bento-item:hover .card-bg-effect {
  transform: scale(1.2);
}

/* ==================== 3D INDUSTRY CARDS ==================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  perspective: 1000px;
}
.3d-wrap {
  transform-style: preserve-3d;
}
.industry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  height: 380px;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s ease;
}
.card-inner {
  padding: 3rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}
.industry-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  transform: translateZ(30px);
}
.industry-card p {
  transform: translateZ(20px);
}
.hover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: -1;
}
.industry-card:hover .hover-image {
  opacity: 0.4;
}

/* ==================== CALCULATOR UI ==================== */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4rem;
  align-items: center;
}
.input-group {
  margin-bottom: 2rem;
}
.input-group label {
  display: block;
  font-family: var(--font-head);
  margin-bottom: 1rem;
  color: var(--text-primary);
}
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  background: transparent;
  margin-bottom: 0.5rem;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  margin-top: -9px;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}
.value-display {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: block;
  margin-top: 0.5rem;
}
.calc-results {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.result-box h4 {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.result-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==================== DASHBOARD SIM ==================== */
.dashboard-ui {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.dash-header {
  padding: 1rem 1.5rem;
  background: var(--bg-surface-light);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}
.dash-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  background: #333;
}
.dash-dots span:nth-child(1) {
  background: #ff5f56;
}
.dash-dots span:nth-child(2) {
  background: #ffbd2e;
}
.dash-dots span:nth-child(3) {
  background: #27c93f;
}
.dash-title {
  margin-left: auto;
  margin-right: auto;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.dash-body {
  display: flex;
  height: 400px;
}
.dash-sidebar {
  width: 200px;
  border-right: 1px solid var(--border-color);
  padding: 2rem 0;
}
.dash-sidebar li {
  padding: 0.8rem 2rem;
  color: var(--text-muted);
  cursor: pointer;
  border-left: 2px solid transparent;
}
.dash-sidebar li.active {
  color: var(--text-primary);
  border-left-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.02);
}
.dash-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.metric-card {
  background: var(--bg-surface-light);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
}
.metric-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.metric-card h3 {
  font-size: 1.8rem;
  margin: 0.5rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.positive {
  font-size: 1rem;
  color: #27c93f;
}
.chart-sim {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 1rem;
}
.chart-sim .bar {
  flex: 1;
  background: linear-gradient(
    to top,
    var(--accent-secondary),
    var(--accent-primary)
  );
  border-radius: 4px 4px 0 0;
  opacity: 0;
  animation: barGrow 1s forwards ease-out;
}
.chart-sim .bar:nth-child(1) {
  animation-delay: 0.1s;
}
.chart-sim .bar:nth-child(2) {
  animation-delay: 0.2s;
}
.chart-sim .bar:nth-child(3) {
  animation-delay: 0.3s;
}
.chart-sim .bar:nth-child(4) {
  animation-delay: 0.4s;
}
.chart-sim .bar:nth-child(5) {
  animation-delay: 0.5s;
}
.chart-sim .bar:nth-child(6) {
  animation-delay: 0.6s;
}
.chart-sim .bar:nth-child(7) {
  animation-delay: 0.7s;
}
.chart-sim .bar:nth-child(8) {
  animation-delay: 0.8s;
}

/* ==================== PROCESS TIMELINE ==================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto 0;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--border-color);
}
.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--bg-dark);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-primary);
  z-index: 2;
}
.timeline-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
}

/* ==================== TESTIMONIALS ==================== */
.testimonial-slider {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scrollbar-width: none;
}
.testimonial-slider::-webkit-scrollbar {
  display: none;
}
.test-card {
  min-width: 400px;
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
}
.quote-icon {
  font-family: serif;
  font-size: 6rem;
  position: absolute;
  top: -10px;
  right: 20px;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}
.test-text {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-style: italic;
}
.author-info h4 {
  margin-bottom: 0.2rem;
}
.author-info span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==================== CONTACT FORM ==================== */
.flex-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}
.cyber-form {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.form-row {
  display: flex;
  gap: 1.5rem;
}
.cyber-form .input-group {
  position: relative;
  margin-bottom: 2rem;
}
.cyber-form input,
.cyber-form textarea,
.cyber-form select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
}
.cyber-form textarea {
  resize: vertical;
  min-height: 100px;
}
.cyber-form input:focus,
.cyber-form textarea:focus,
.cyber-form select:focus {
  outline: none;
}
.cyber-form label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-fast);
}
.cyber-form input:focus ~ label,
.cyber-form input:not(:placeholder-shown) ~ label,
.cyber-form textarea:focus ~ label,
.cyber-form textarea:not(:placeholder-shown) ~ label {
  top: -1rem;
  font-size: 0.8rem;
  color: var(--accent-primary);
}
.focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-fast);
}
.cyber-form input:focus ~ .focus-border,
.cyber-form textarea:focus ~ .focus-border,
.cyber-form select:focus ~ .focus-border {
  width: 100%;
}

.info-card {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.info-desc {
  margin-bottom: 2.5rem;
}
.contact-list.large li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.icon-box {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}
.contact-list.large .label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.contact-list.large .value {
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* ==================== LEGAL PAGES ==================== */
.page-hero.slim {
  min-height: 40vh;
  align-items: flex-end;
  padding-bottom: 4rem;
}
.legal-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.legal-box h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
  color: var(--accent-primary);
}
.legal-box p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.legal-box ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.legal-box li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  list-style-type: disc;
}
.legal-box strong {
  color: var(--text-primary);
}

/* ==================== FOOTER ==================== */
.footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-dark);
}
.footer-top {
  padding: 5rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-logo img {
  height: 80px;
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
}
.about-col p {
  margin-bottom: 2rem;
  max-width: 300px;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}
.social-links a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.links-col h3,
.contact-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.links-col li {
  margin-bottom: 0.8rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.contact-list svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.legal-links .dot {
  margin: 0 0.5rem;
}

/* Live Chat Widget */
.live-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--bg-dark);
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
  transition: transform var(--transition-fast);
}
.live-chat-widget:hover {
  transform: scale(1.1);
}

/* ==================== ANIMATIONS & REVEALS ==================== */
@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, -30px);
  }
}
@keyframes rotateCube {
  0% {
    transform: rotateX(0) rotateY(0);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}
@keyframes scrollWheel {
  0% {
    top: 6px;
    opacity: 1;
  }
  100% {
    top: 18px;
    opacity: 0;
  }
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes barGrow {
  to {
    opacity: 1;
  }
}

/* Glitch Effect */
.glitch {
  position: relative;
  color: var(--text-primary);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
}
.glitch::before {
  left: 2px;
  text-shadow: -1px 0 var(--accent-secondary);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch::after {
  left: -2px;
  text-shadow: -1px 0 var(--accent-primary);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
  0% {
    clip: rect(10px, 9999px, 31px, 0);
  }
  20% {
    clip: rect(62px, 9999px, 12px, 0);
  }
  40% {
    clip: rect(14px, 9999px, 83px, 0);
  }
  60% {
    clip: rect(98px, 9999px, 45px, 0);
  }
  80% {
    clip: rect(3px, 9999px, 67px, 0);
  }
  100% {
    clip: rect(55px, 9999px, 21px, 0);
  }
}

/* Base state for scroll reveals */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.reveal-fade {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.reveal-text {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Active state triggered by JS */
.active.reveal-up {
  opacity: 1;
  transform: translateY(0);
}
.active.reveal-scale {
  opacity: 1;
  transform: scale(1);
}
.active.reveal-fade {
  opacity: 1;
}
.active.reveal-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.delay-1 {
  transition-delay: 0.15s;
}
.delay-2 {
  transition-delay: 0.3s;
}
.delay-3 {
  transition-delay: 0.45s;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-item.large {
    grid-column: span 2;
  }
  .bento-item.medium {
    grid-column: span 1;
  }
  .bento-item.wide {
    grid-column: span 2;
  }
}

@media (max-width: 992px) {
  .calc-wrapper,
  .flex-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-section {
    padding-top: 150px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-smooth);
    z-index: 1000;
  }
  .nav-links.nav-active {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    font-size: 1.5rem;
  }
  .menu-toggle {
    display: block;
  }
  .menu-toggle.toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
  }
  .menu-toggle.toggle span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item.large,
  .bento-item.medium,
  .bento-item.wide {
    grid-column: span 1;
    grid-row: auto;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .dash-body {
    flex-direction: column;
    height: auto;
  }
  .dash-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    overflow-x: auto;
    padding: 1rem;
  }
  .dash-sidebar li {
    white-space: nowrap;
  }

  .timeline {
    padding-left: 0;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-dot {
    left: 20px;
  }
  .timeline-content {
    margin-left: 60px;
    padding: 1.5rem;
  }

  .test-card {
    min-width: 300px;
    padding: 2rem;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .flex-between {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  .padding-y {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .legal-box {
    padding: 1.5rem;
  }
}
