/* ==================================================
   Nexus — Versão D
   Design system: Rootly structure + Leonardo energy
   ================================================== */

/* --------------------------------------------------
   1. Variables & Reset
   -------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-elevated: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --card-bg: rgba(255, 255, 255, 0.86);
  --card-border: rgba(203, 213, 225, 0.7);
  --footer-bg: #0f172a;
  --footer-text: #f8fafc;
  --nav-bg: rgba(255, 255, 255, 0.72);

  --white: #ffffff;
  --black: #0f172a;
  --p100: #eff6ff;
  --p200: #dbeafe;
  --p300: #bfdbfe;
  --p500: #3b82f6;
  --p700: #2563eb;
  --p900: #1e3a8a;
  --s500: #22d3ee;
  --s900: #0891b2;
  --off-yellow: #fbf1e2;
  --n100: #f8fafc;
  --n200: #e2e8f0;
  --n500: #94a3b8;
  --n700: #475569;
  --text-grey: #475569;
  --hint: #64748b;
  --glass-light: rgba(219, 234, 254, 0.5);
  --glass-dark: rgba(15, 23, 42, 0.7);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(30, 58, 138, 0.1);
  --shadow-lg: 0 24px 64px rgba(30, 58, 138, 0.14);
  --glow-purple: 0 0 40px rgba(37, 99, 235, 0.18);

  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-pill: 100vw;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-dark {
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --surface: #1e293b;
  --surface-2: #334155;
  --surface-3: #475569;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #334155;
  --border-strong: #475569;
  --card-bg: rgba(30, 41, 59, 0.88);
  --card-border: rgba(255, 255, 255, 0.10);
  --footer-bg: #0f172a;
  --footer-text: #f8fafc;
  --nav-bg: rgba(15, 23, 42, 0.82);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --glow-purple: 0 0 50px rgba(59, 130, 246, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 1280px) { html { font-size: 15px; } }
@media (max-width: 960px) { html { font-size: 14px; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.is-loading {
  overflow: hidden;
}

/* Language switching */
html[lang="pt-PT"] .en,
html[lang="pt"] .en,
html[lang="en"] .pt {
  display: none !important;
}

/* Theme switching helpers */
.theme-toggle,
.lang-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease-spring), background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover,
.lang-toggle:hover {
  transform: translateY(-2px);
  background: var(--surface-3);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-light,
html.theme-dark .theme-toggle .icon-dark {
  display: none;
}

html.theme-dark .theme-toggle .icon-light {
  display: block;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--p700), var(--s900));
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    opacity: 1;
  }
}

/* Ambient vertical lines */
.ambient-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-evenly;
  opacity: 0.5;
}

.ambient-lines span {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, var(--border-strong) 20%, var(--border-strong) 80%, transparent 100%);
  transform: scaleY(0);
  transform-origin: top;
  animation: line-grow 1.6s var(--ease-out-expo) forwards;
}

.ambient-lines span:nth-child(1) { animation-delay: 0.1s; }
.ambient-lines span:nth-child(2) { animation-delay: 0.25s; }
.ambient-lines span:nth-child(3) { animation-delay: 0.4s; }
.ambient-lines span:nth-child(4) { animation-delay: 0.55s; }
.ambient-lines span:nth-child(5) { animation-delay: 0.7s; }

@keyframes line-grow {
  to { transform: scaleY(1); }
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--p700);
  outline-offset: 3px;
}

/* --------------------------------------------------
   2. Typography & Utilities
   -------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-inline: 3rem;
  }
}

.gradient-text {
  background: linear-gradient(112deg, #1e3a8a 0%, #2563eb 40%, #06b6d4 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--p700);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 42ch;
  line-height: 1.6;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-lead {
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease-spring), background-color 0.25s ease, color 0.2s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--p700);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease-out-expo);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--p300);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: var(--surface);
  color: var(--p900);
}

.btn-white:hover {
  background: var(--surface-2);
}

.btn-text {
  color: var(--text);
  background: transparent;
  padding-inline: 0.75rem;
}

.btn-text:hover {
  color: var(--p700);
  transform: none;
}

.btn-lg {
  padding: 1.125rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* --------------------------------------------------
   3. Header / Nav
   -------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: padding 0.3s ease;
}

.nav-glass {
  position: absolute;
  inset: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out-quart);
  border-bottom: 1px solid var(--border-strong);
}

.site-header.is-scrolled .nav-glass {
  opacity: 1;
  transform: translateY(0);
}

.site-header.is-scrolled {
  padding: 0.75rem 0;
}

.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo svg {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.4rem;
  backdrop-filter: blur(8px);
}

.main-nav a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--surface-3);
}

.main-nav .has-dropdown {
  position: relative;
}

.nav-top-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.has-dropdown:hover .nav-chevron,
.has-dropdown.is-open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out-expo), visibility 0.2s ease;
  z-index: 1001;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex !important;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem !important;
  border-radius: var(--radius-md) !important;
  text-align: left;
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
  min-width: 520px;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.375rem;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  background: var(--s500);
  color: var(--black);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-dropdown-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--p700);
}

.nav-dropdown-icon svg {
  width: 18px;
  height: 18px;
}

.nav-dropdown-title {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.125rem;
}

.nav-dropdown-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 1.5rem;
  right: 1.5rem;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  transform-origin: top center;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu .mobile-nav-list > li > a,
.mobile-menu .mobile-nav-list > li > .btn {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text-muted);
}

.mobile-menu .mobile-nav-list > li > a:hover,
.mobile-menu .mobile-nav-list > li > .btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.mobile-has-group {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.mobile-group-title {
  display: block;
  padding: 0.75rem 1rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.mobile-has-group ul {
  padding-left: 0.5rem;
}

.mobile-has-group ul a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.mobile-has-group ul a:hover {
  background: var(--surface-2);
  color: var(--text);
}

@media (max-width: 900px) {
  .main-nav,
  .nav-actions .btn-text {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* --------------------------------------------------
   4. Hero
   -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 6rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, var(--surface-2) 0%, var(--bg) 55%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 80vw;
  height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--p900);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--s900);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin-top: 4rem;
  min-height: 420px;
  perspective: 1200px;
}

.dashboard-card {
  background: var(--card-bg);
  backdrop-filter: blur(18px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.card-main {
  position: relative;
  margin-inline: auto;
  max-width: 580px;
  padding: 1.75rem;
  transform-style: preserve-3d;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-dots {
  display: flex;
  gap: 0.4rem;
}

.card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.card-dots span:nth-child(1) { background: #ff5f57; }
.card-dots span:nth-child(2) { background: #febc2e; }
.card-dots span:nth-child(3) { background: #28c840; }

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.chart-area {
  position: relative;
  height: 180px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.chart-line {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--p500) 50%, transparent);
  opacity: 0.4;
}

.chart-line-2 {
  top: 35%;
  background: linear-gradient(90deg, transparent, var(--s900) 50%, transparent);
}

.chart-bars {
  position: absolute;
  inset: 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.chart-bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--p500) 0%, var(--p700) 100%);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
  transition: height 0.6s var(--ease-out-expo);
}

.chart-bars span:nth-child(3n) {
  background: linear-gradient(180deg, var(--s500) 0%, var(--s900) 100%);
}

.card-footer {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.metric {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.card-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
}

.card-top {
  top: -1.5rem;
  right: 5%;
}

.card-right {
  top: 35%;
  right: -1rem;
}

.card-left {
  bottom: 10%;
  left: -1rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--p700);
}

.card-icon.icon-orange {
  background: var(--off-yellow);
  color: var(--s900);
}

.card-icon.icon-green {
  background: #e8f5ec;
  color: #25742d;
}

.card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}

.card-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .hero-visual {
    min-height: 340px;
    padding-inline: 1rem;
  }

  .card-float {
    position: relative;
    inset: auto;
    margin-top: 1rem;
    width: fit-content;
  }

  .card-top,
  .card-right,
  .card-left {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* --------------------------------------------------
   4b. Dashboard-diagram hero visual
   -------------------------------------------------- */
.hero-visual.dd-stage {
  position: relative;
  max-width: 1100px;
  width: 100%;
  min-height: 520px;
  margin-top: 4rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-visual.dd-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, var(--p100) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.dd-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.dd-hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.dd-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform: translate(-50%, -50%);
}

.dd-card:hover {
  transform: translate(-50%, -50%) translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dd-card svg {
  width: 20px;
  height: 20px;
  color: var(--p700);
  flex-shrink: 0;
}

.dd-card .dd-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.dd-card .dd-value {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.dd-core {
  width: 280px;
  height: 180px;
  top: 48%;
  left: 50%;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 1rem;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-color: var(--border-strong);
}

.dd-core:hover {
  transform: translate(-50%, -50%) translateY(-2px);
}

.dd-core-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dd-core-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.dd-core-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--p200);
  color: var(--p900);
}

.dd-core-chart {
  flex: 1;
  min-height: 80px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.dd-core-chart canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dd-core-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dd-core-foot strong {
  color: var(--p700);
  font-weight: 700;
}

.dd-source[data-source="flights"] { top: 10%; left: 12%; }
.dd-source[data-source="hotels"] { top: 10%; left: 36%; }
.dd-source[data-source="bookings"] { top: 10%; left: 64%; }
.dd-source[data-source="whatsapp"] { top: 10%; left: 88%; }

.dd-output[data-output="routes"] { bottom: 8%; left: 20%; top: auto; transform: translate(-50%, 50%); }
.dd-output[data-output="chat"] { bottom: 8%; left: 50%; top: auto; transform: translate(-50%, 50%); }
.dd-output[data-output="forecast"] { bottom: 8%; left: 80%; top: auto; transform: translate(-50%, 50%); }

.dd-output:hover {
  transform: translate(-50%, 50%) translateY(-2px);
}

.dd-stats {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}

.dd-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.dd-stat strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--p700);
}

.dd-stat span {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero-visual.dd-stage { min-height: 440px; }
  .dd-core { width: 220px; height: 150px; }
  .dd-card { padding: 0.625rem 0.75rem; }
  .dd-card svg { width: 16px; height: 16px; }
  .dd-card .dd-label { font-size: 0.75rem; }
  .dd-card .dd-value { font-size: 0.625rem; }
  .dd-source[data-source="flights"] { top: 8%; left: 10%; }
  .dd-source[data-source="hotels"] { top: 8%; left: 37%; }
  .dd-source[data-source="bookings"] { top: 8%; left: 63%; }
  .dd-source[data-source="whatsapp"] { top: 8%; left: 90%; }
  .dd-output[data-output="routes"] { bottom: 8%; left: 16%; }
  .dd-output[data-output="chat"] { bottom: 8%; left: 50%; }
  .dd-output[data-output="forecast"] { bottom: 8%; left: 84%; }
  .dd-stats { gap: 0.75rem; padding: 0.625rem; }
  .dd-stat { min-width: 80px; }
  .dd-stat strong { font-size: 1.1rem; }
}

/* --------------------------------------------------
   5. Logos / Marquee
   -------------------------------------------------- */
.logos {
  padding: 4rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.logos-eyebrow {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.marquee {
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.logo-pill svg {
  width: 18px;
  height: 18px;
  color: var(--p700);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------
   6. Features / Bento
   -------------------------------------------------- */
.features {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, background-color 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--card-border), var(--border-strong));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.bento-card.card-large {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.bento-card.card-wide {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.bento-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--p700);
  margin-bottom: 1.25rem;
}

.bento-icon svg {
  width: 24px;
  height: 24px;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.625rem;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bento-visual {
  margin-top: 2rem;
}

.normalization-hub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
}

.normalization-hub::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, var(--p100) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.source-nodes,
.output-nodes {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 110px;
}

.source-node,
.output-node {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
}

.source-node svg,
.output-node svg {
  width: 16px;
  height: 16px;
  color: var(--p700);
  flex-shrink: 0;
}

.hub-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 88px;
  height: 88px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  box-shadow: var(--shadow-md), var(--glow-purple);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--p700);
}

.hub-core svg {
  width: 32px;
  height: 32px;
}

.hub-lines {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 42px;
}

.hub-line {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--p300), var(--p700));
  position: relative;
  overflow: hidden;
}

.hub-lines.out .hub-line {
  background: linear-gradient(90deg, var(--p700), var(--s500));
}

.hub-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: flowPulse 2.4s ease-in-out infinite;
}

.hub-line.line-1::after { animation-delay: 0s; }
.hub-line.line-2::after { animation-delay: 0.3s; }
.hub-line.line-3::after { animation-delay: 0.6s; }
.hub-line.line-4::after { animation-delay: 0.9s; }
.hub-line.line-5::after { animation-delay: 1.1s; }
.hub-line.line-6::after { animation-delay: 1.4s; }
.hub-line.line-7::after { animation-delay: 1.7s; }

@keyframes flowPulse {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 70px;
  margin-top: 1.5rem;
}

.mini-chart span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--p500), var(--p700));
  border-radius: 3px 3px 0 0;
  opacity: 0.8;
}

.status-list {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.green {
  background: #3b8552;
  box-shadow: 0 0 0 3px rgba(59, 133, 82, 0.15);
}

.status-value {
  margin-left: auto;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card.card-large,
  .bento-card.card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.card-large,
  .bento-card.card-wide {
    grid-column: span 1;
    grid-row: span 1;
    flex-direction: column;
    align-items: flex-start;
  }

  .normalization-hub {
    flex-direction: column;
    gap: 1rem;
    min-height: auto;
  }

  .source-nodes,
  .output-nodes {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    min-width: auto;
  }

  .hub-lines {
    width: 2px;
    height: 42px;
    flex-direction: column;
  }

  .hub-line {
    height: 2px;
  }
}

/* --------------------------------------------------
   7. Showcase
   -------------------------------------------------- */
.showcase {
  padding: 8rem 0;
  background: var(--surface);
}

.showcase-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.feature-list {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.feature-list svg {
  width: 22px;
  height: 22px;
  color: var(--p700);
  flex-shrink: 0;
}

.showcase-visual {
  position: relative;
}

.dashboard-panel {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-strong);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.panel-dots {
  display: flex;
  gap: 0.4rem;
}

.panel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.panel-dots span:nth-child(1) { background: #ff5f57; }
.panel-dots span:nth-child(2) { background: #febc2e; }
.panel-dots span:nth-child(3) { background: #28c840; }

.panel-body {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hub-center {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--p300);
  animation: spin 60s linear infinite;
}

.hub-core {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p700), var(--s900));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-purple);
}

.hub-core svg {
  width: 32px;
  height: 32px;
}

.hub-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  animation: float 6s ease-in-out infinite;
}

.hub-node svg {
  width: 20px;
  height: 20px;
  color: var(--p700);
}

.hub-node:nth-child(2) { top: 10%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.hub-node:nth-child(3) { top: 28%; right: 8%; animation-delay: 0.8s; }
.hub-node:nth-child(4) { bottom: 28%; right: 8%; animation-delay: 1.6s; }
.hub-node:nth-child(5) { bottom: 10%; left: 50%; transform: translateX(-50%); animation-delay: 2.4s; }
.hub-node:nth-child(6) { bottom: 28%; left: 8%; animation-delay: 3.2s; }
.hub-node:nth-child(7) { top: 28%; left: 8%; animation-delay: 4s; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1024px) {
  .showcase-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .showcase-text {
    text-align: center;
  }

  .feature-list {
    align-items: center;
  }
}

/* --------------------------------------------------
   7.5 Demo / Animated dashboard
   -------------------------------------------------- */
.demo-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.demo-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.demo-stage {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.demo-dots {
  display: flex;
  gap: 0.4rem;
}

.demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.demo-dots span:nth-child(1) { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #febc2e; }
.demo-dots span:nth-child(3) { background: #28c840; }

.demo-tabs {
  display: flex;
  gap: 0.25rem;
}

.demo-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.demo-tabs button:hover {
  color: var(--text);
  background: var(--surface-2);
}

.demo-tabs button.active {
  background: var(--surface-2);
  color: var(--text);
}

.demo-tabs svg {
  width: 14px;
  height: 14px;
}

.demo-canvas-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

#demo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.demo-overlay {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  min-width: 120px;
}

.demo-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.demo-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

.demo-caption {
  text-align: center;
  padding: 0.875rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .demo-canvas-wrap {
    aspect-ratio: 4 / 3;
  }

  .demo-overlay {
    gap: 0.5rem;
  }

  .demo-stat {
    min-width: auto;
    padding: 0.5rem 0.625rem;
  }

  .demo-value {
    font-size: 1.05rem;
  }
}

/* --------------------------------------------------
   8. Stats
   -------------------------------------------------- */
.stats {
  padding: 6rem 0;
  background: var(--p900);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(112deg, #fff, #dbeafe 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
   9. Testimonials
   -------------------------------------------------- */
.testimonials {
  padding: 8rem 0;
  background: var(--surface-2);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.quote-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--p700);
  margin-bottom: 1.25rem;
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p700), var(--s900));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
}

.role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
   10. Budget / Quote
   -------------------------------------------------- */
.budget {
  padding: 8rem 0;
  background: var(--bg);
}

.budget-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.budget-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, border-color 0.3s ease;
}

.budget-step:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.budget-step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  color: var(--p700);
  margin-bottom: 1.25rem;
}

.budget-step-icon svg {
  width: 28px;
  height: 28px;
}

.budget-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.budget-step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.budget-cta {
  text-align: center;
}

.budget-cta p {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .budget-steps {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* --------------------------------------------------
   11. CTA
   -------------------------------------------------- */
.cta-section {
  padding: 6rem 0 8rem;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
}

.cta-card {
  position: relative;
  text-align: center;
  padding: 5rem 2rem;
  background: var(--p900);
  border-radius: var(--radius-xl);
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.cta-lead {
  position: relative;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cta-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-actions .btn-primary {
  background: var(--surface);
  color: var(--p900);
}

.cta-actions .btn-primary:hover {
  background: var(--surface-2);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------
   11. Footer
   -------------------------------------------------- */
.site-footer {
  padding: 5rem 0 2.5rem;
  background: var(--p900);
  color: var(--white);
  border-radius: 3rem 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-brand address {
  font-style: normal;
}

.footer-brand a {
  color: var(--border-strong);
  font-weight: 500;
}

.footer-brand a:hover {
  color: var(--white);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-links a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

/* --------------------------------------------------
   12. Scroll animations defaults
   -------------------------------------------------- */
/* Base state is visible. IntersectionObserver / GSAP toggles .is-visible. */
[data-animate] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

[data-animate="fade-up"]:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}

[data-animate="scale-in"] {
  opacity: 1;
  transform: scale(1);
}

[data-animate="scale-in"]:not(.is-visible) {
  opacity: 0;
  transform: scale(0.96);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* No-JS fallback: keep content fully visible */
.no-js [data-animate],
.no-js [data-animate="scale-in"] {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate],
  [data-animate="fade-up"]:not(.is-visible),
  [data-animate="scale-in"]:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
  }
}
