/* ==========================================================================
   MASTER STYLESHEET - SYSTEM CONFIGURATION (2000+ Lines equivalent density)
   ========================================================================== */

/* 1. Global Variables & Design Tokens */
:root {
  --bg-primary: #08080c;
  --bg-secondary: #0e0e14;
  --bg-tertiary: #14141d;
  --accent-primary: #f59e0b; /* Byggeplass-amber */
  --accent-secondary: #fb923c; /* Varm oransje */
  --accent-gradient: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(245, 158, 11, 0.3);

  --font-display: "Syne", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-mono: "Space Grotesk", sans-serif;

  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-quick: all 0.2s ease-out;
  --glow: 0 0 30px rgba(245, 158, 11, 0.2);
  --glow-secondary: 0 0 30px rgba(251, 146, 60, 0.15);
}

/* 2. Resets & Architectural Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Background Interactivity Utilities */
.canvas-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.02;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3联%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");
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, #ffffff 1px, transparent 1px),
    linear-gradient(to bottom, #ffffff 1px, transparent 1px);
}

/* Custom Cursor System */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition:
    width 0.3s,
    height 0.3s,
    background-color 0.3s;
  mix-blend-mode: difference;
}

.custom-cursor.hovered {
  width: 24px;
  height: 24px;
  background-color: var(--accent-primary);
}

@media (max-width: 1024px) {
  .custom-cursor {
    display: none !important;
  }
}

/* Typography Base */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p {
  color: var(--text-secondary);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-quick);
}

/* 3. Global Navigation (Header) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 0.75rem 0;
  background-color: rgba(8, 8, 12, 0.95);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav__menu {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-quick);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Mobile Toggle Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav__toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-quick);
}

@media (max-width: 991px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 999;
  }

  .nav__menu.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 2.5rem;
  }

  .nav__link {
    font-size: 1.5rem;
  }

  .nav__toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle.active .bar:nth-child(2) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Buttons Design Language */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-primary);
  padding: 0.8rem 1.8rem;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
  padding: 0.8rem 1.8rem;
}

.btn-secondary:hover {
  border-color: var(--accent-secondary);
  background: rgba(251, 146, 60, 0.05);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* 4. Hero Section */
.hero-section {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 4rem;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  padding: 0.4rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.badge-pill span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, var(--text-primary) 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero__cta-group {
  display: flex;
  gap: 1.5rem;
}

/* 3D Visual Module container */
.hero__visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.interactive-card-3d {
  width: 100%;
  max-width: 420px;
  height: 380px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.card-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: var(--accent-gradient);
  filter: blur(60px);
  opacity: 0.3;
  z-index: 1;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.card-header-sim {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.card-header-sim .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.card-header-sim .dot.red {
  background-color: #ef4444;
}
.card-header-sim .dot.yellow {
  background-color: #f59e0b;
}
.card-header-sim .dot.green {
  background-color: #10b981;
}

.system-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.terminal-body {
  flex-grow: 1;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.terminal-line {
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
}

.term-prompt {
  color: var(--accent-secondary);
}

.terminal-line.success {
  color: var(--accent-secondary);
}

.terminal-line.label-cyan {
  color: var(--accent-secondary);
  font-size: 1.1rem;
  font-weight: 700;
}

.mini-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
  height: 80px;
  margin: 1.5rem 0;
}

.bar-fill {
  width: calc(100% / 5);
  height: var(--h);
  background: var(--accent-gradient);
  border-radius: 4px 4px 0 0;
  transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 5. Trust Matrix Marquee */
.trust-matrix {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.trust-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.logo-marquee {
  display: flex;
  width: 100%;
}

.logo-track {
  display: flex;
  gap: 6rem;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}

.partner-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: var(--transition-quick);
}

.partner-logo:hover {
  color: var(--text-primary);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 6. Services Grid */
.services-section {
  padding: 120px 0;
  background-color: var(--bg-primary);
}

.section-meta {
  margin-bottom: 4rem;
  position: relative;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

.card-corner-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.service-icon {
  color: var(--accent-secondary);
  margin-bottom: 2rem;
  display: inline-block;
}

.service-card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card-text {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.service-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-bullet-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-bullet-list li::before {
  content: "";
  width: 6px;
  height: 1px;
  background-color: var(--accent-secondary);
}

/* 7. Interactive ROI Calculator */
.calculator-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.calc-badge {
  font-family: var(--font-mono);
  color: var(--accent-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.calc-title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.calc-desc {
  margin-bottom: 2rem;
}

.calc-tips {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.tip-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
}

.calc-box {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
}

.input-group {
  margin-bottom: 2rem;
}

.input-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.input-labels label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.highlight-numeric {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-secondary);
}

.premium-range {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border-color);
  outline: none;
}

.premium-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gradient);
  cursor: pointer;
  box-shadow: var(--glow);
  transition: transform 0.1s;
}

.premium-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.roi-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 2.5rem 0;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.result-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 8px;
}

.result-card.secondary {
  border-color: rgba(251, 146, 60, 0.2);
}

.result-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 2rem;
  font-family: var(--font-display);
  color: var(--text-primary);
}

/* 8. Live Metrics Analytics Visualizer Module */
.live-metrics-section {
  padding: 120px 0;
}

.dashboard-sim {
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.dash-sidebar {
  border-right: 1px solid var(--border-color);
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.1);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.user-avatar {
  width: 38px;
  height: 38px;
  background: var(--accent-gradient);
  border-radius: 50%;
}

.user-meta h4 {
  font-size: 0.9rem;
}

.user-meta span {
  font-size: 0.75rem;
  color: var(--accent-secondary);
}

.dash-tabs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-tab {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  transition: var(--transition-quick);
}

.dash-tab:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.dash-tab.active {
  background-color: rgba(245, 158, 11, 0.08);
}

.tab-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
}

.dash-tab.active .tab-indicator {
  background-color: var(--accent-primary);
}

.tab-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dash-tab.active .tab-label {
  color: var(--text-primary);
}

.dash-main {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-header h3 {
  font-size: 1.5rem;
}

.pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  color: #10b981;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
}

.dash-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.dash-stat {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 8px;
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-num {
  font-size: 1.75rem;
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.stat-trend {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.stat-trend.positive {
  color: #10b981;
}
.stat-trend.neutral {
  color: var(--text-muted);
}

.dash-chart-container {
  height: 150px;
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-tertiary);
  overflow: hidden;
}

.chart-mock-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.chart-y-grid {
  height: 1px;
  background-color: var(--border-color);
}

.chart-svg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sparkline {
  width: 100%;
  height: 100%;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawChart 3s forwards;
}

@keyframes drawChart {
  to {
    stroke-dashoffset: 0;
  }
}

/* 9. Process Execution Timeline */
.process-section {
  padding: 120px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 4rem auto 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 40px;
  width: 1px;
  height: 100%;
  background-color: var(--border-color);
}

.timeline-step {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-marker {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-secondary);
  z-index: 2;
  flex-shrink: 0;
}

.step-content {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem;
  flex-grow: 1;
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.step-desc {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.step-duration {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-primary);
  background-color: rgba(245, 158, 11, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

/* 10. Industry Focus accordion styling */
.industry-section {
  padding: 120px 0;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.text-center {
  text-align: center;
}

.industry-accordion {
  max-width: 800px;
  margin: 4rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.industry-item {
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
}

.industry-header {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-quick);
}

.industry-header h3 {
  font-size: 1.25rem;
}

.accordion-icon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-secondary);
  transition: transform 0.3s;
}

.industry-item.active .accordion-icon {
  transform: rotate(45deg);
}

.industry-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: rgba(0, 0, 0, 0.1);
}

.industry-item.active .industry-body {
  max-height: 200px;
}

.industry-body p {
  padding: 0 2rem 2rem;
  font-size: 0.95rem;
}

/* 11. Testimonials Grid */
.testimonials-section {
  padding: 120px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3rem;
}

.t-rating {
  color: #fbbf24;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.t-quote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2.5rem;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.t-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
}

.t-meta h4 {
  font-size: 0.95rem;
}

.t-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 12. Call to Action Complex Card */
.cta-banner-section {
  padding: 120px 0;
}

.cta-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.cta-inner-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.cta-text-content {
  padding: 4.5rem;
}

.cta-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.cta-text-content h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.5rem;
}

.cta-text-content p {
  margin-bottom: 2.5rem;
}

.cta-bullets {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bullet-point {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.bullet-point svg {
  color: var(--accent-secondary);
}

.cta-form-content {
  background-color: rgba(255, 255, 255, 0.01);
  border-left: 1px solid var(--border-color);
  padding: 4.5rem;
  display: flex;
  align-items: center;
}

.mini-lead-form {
  width: 100%;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-field input {
  width: 100%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* 13. Simulated Support Bot */
.chat-sim-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.chat-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  cursor: pointer;
  box-shadow: var(--glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  position: relative;
}

.chat-indicator-online {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background-color: #10b981;
  border: 2px solid var(--bg-primary);
  border-radius: 50%;
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-window.open {
  display: flex;
}

.chat-header {
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chat-header-user h4 {
  font-size: 0.85rem;
}

.chat-header-user span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
}

.chat-messages {
  height: 200px;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msg {
  max-width: 80%;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
}

.msg.bot {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  align-self: flex-start;
}

.msg.user {
  background: var(--accent-gradient);
  color: var(--text-primary);
  align-self: flex-end;
}

.chat-options {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-opt-btn {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-quick);
}

.chat-opt-btn:hover {
  border-color: var(--accent-secondary);
  background-color: rgba(251, 146, 60, 0.05);
}

/* 14. Global Success Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 8, 12, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.popup-overlay.open {
  display: flex;
}

.popup-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--glow);
}

.popup-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.popup-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
}

.popup-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.popup-content p {
  font-size: 0.95rem;
}

/* 15. Standard Legal Layout Base */
.page-header {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.page-header__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  background: linear-gradient(180deg, var(--text-primary) 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.legal-page {
  background-color: var(--bg-primary);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content p {
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.legal-content h2 {
  font-size: 1.75rem;
  margin: 3rem 0 1.2rem;
  color: var(--text-primary);
}

.legal-bullets {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.legal-bullets li {
  font-size: 1.05rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.legal-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
}

/* 16. Structural Contact Page Grid */
.contact-page__wrapper {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 4rem;
  align-items: start;
}

.contact-info__title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-info__desc {
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-detail-item h3 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.contact-detail-item p,
.contact-detail-item a {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.contact-detail-item a:hover {
  color: var(--accent-secondary);
}

.contact-form-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
}

.contact-form .form-group {
  margin-bottom: 1.8rem;
}

.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.select-wrapper {
  position: relative;
}

/* 17. Master Global Footer Area */
.footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.9fr);
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__logo .logo-img {
  height: 38px;
}

.footer__tagline {
  font-size: 0.95rem;
  max-width: 320px;
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__contact-info li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-block;
  width: 60px;
}

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 18. Scroll Reveal Engine Support classes */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 19. Core Responsiveness Queries */
@media (max-width: 991px) {
  .hero__container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero__cta-group {
    justify-content: center;
  }

  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .dashboard-sim {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .contact-page__wrapper {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .cta-inner-grid {
    grid-template-columns: 1fr;
  }

  .cta-form-content {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .dash-metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }
}
