/* ==========================================================================
   HarVar Innovations — Luxury AI Lab & 3D Engineering Design System
   Palette:
     Primary: Deep Charcoal #101B24 | Deepest Ink: #091118
     Accent: Electric Lime #B7F34A | Secondary: Warm Copper #E6A36B
     Background: Soft Ivory #F3F1EA | Warm Alabaster: #FAF8F3
     Text: Charcoal #101B24 / Warm White #F7F5EE
   ========================================================================== */

:root {
  --charcoal: #101B24;
  --charcoal-deep: #091118;
  --charcoal-card: #162430;
  --charcoal-border: rgba(247, 245, 238, 0.12);
  --lime: #B7F34A;
  --lime-hover: #A3E635;
  --lime-soft: rgba(183, 243, 74, 0.14);
  --copper: #E6A36B;
  --copper-soft: rgba(230, 163, 107, 0.16);
  --ivory: #F3F1EA;
  --alabaster: #FAF8F3;
  --white: #FFFFFF;
  --ivory-border: rgba(16, 27, 36, 0.12);
  --text-dark: #101B24;
  --text-dark-muted: #4B5B67;
  --text-light: #F7F5EE;
  --text-light-muted: #AEBAC2;
  --danger: #C81E1E;
  --success: #15803D;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-ivory: 0 12px 34px -14px rgba(16, 27, 36, 0.12);
  --shadow-ivory-hover: 0 22px 48px -16px rgba(16, 27, 36, 0.2);
  --shadow-dark: 0 26px 64px -18px rgba(0, 0, 0, 0.6);
  --font-display: 'Syne', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-body);
  background-color: var(--ivory);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn 0.3s ease-out;
}

@keyframes pageFadeIn {
  from { opacity: 0.72; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--lime);
  color: var(--charcoal);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 3000;
  text-decoration: none;
}

.skip-link:focus { top: 14px; }

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.text-lime { color: var(--lime); }
.text-copper { color: var(--copper); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Buttons (Charcoal / Electric Lime / Warm Copper)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-editorial);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-lime {
  background: var(--lime);
  color: var(--charcoal);
  box-shadow: 0 8px 24px rgba(183, 243, 74, 0.24);
}

.btn-lime:hover {
  background: var(--lime-hover);
  box-shadow: 0 12px 28px rgba(183, 243, 74, 0.34);
}

.btn-charcoal {
  background: var(--charcoal);
  color: var(--text-light);
  box-shadow: 0 8px 20px rgba(16, 27, 36, 0.18);
}

.btn-charcoal:hover {
  background: #182936;
}

.btn-copper {
  background: var(--copper);
  color: var(--charcoal);
}

.btn-copper:hover { filter: brightness(1.06); }

.btn-dark-outline {
  background: rgba(247, 245, 238, 0.05);
  color: var(--text-light);
  border-color: rgba(247, 245, 238, 0.24);
}

.btn-dark-outline:hover {
  background: rgba(247, 245, 238, 0.12);
  border-color: var(--lime);
  color: var(--lime);
}

.btn-ivory-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(16, 27, 36, 0.24);
}

.btn-ivory-outline:hover {
  background: var(--charcoal);
  color: var(--text-light);
}

.btn-lg { padding: 14px 28px; font-size: 0.94rem; }

/* ==========================================================================
   Sticky Header & Mobile Drawer
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(16, 27, 36, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--charcoal-border);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28); }

.nav-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-light);
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(183, 243, 74, 0.45);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.08rem; font-weight: 800; color: var(--text-light); }
.brand-name span { color: var(--lime); }
.brand-sub { font-size: 0.63rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--copper); }

.nav-links { display: flex; align-items: center; list-style: none; gap: 24px; }

.nav-links a {
  text-decoration: none;
  color: var(--text-light-muted);
  font-family: var(--font-editorial);
  font-size: 0.87rem;
  font-weight: 600;
  padding: 6px 2px;
  position: relative;
  transition: color 0.18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-light); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--charcoal-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  background: var(--charcoal-deep);
  border-bottom: 1px solid var(--charcoal-border);
  padding: 16px 24px 24px;
}

.mobile-drawer.open { display: block; }
.mobile-nav-list { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.mobile-nav-list a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--text-light); text-decoration: none; font-weight: 600; }
.mobile-nav-list a.active { background: rgba(183, 243, 74, 0.14); color: var(--lime); }
.mobile-nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ==========================================================================
   Interactive 3D Welcome Intro Overlay (1–2s non-blocking, skip anytime)
   ========================================================================== */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: radial-gradient(circle at 50% 42%, #172734 0%, #091118 75%);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.welcome-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-canvas-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.welcome-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.welcome-panel {
  position: relative;
  z-index: 2;
  max-width: 580px;
  text-align: center;
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  background: rgba(16, 27, 36, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(183, 243, 74, 0.26);
  box-shadow: var(--shadow-dark);
}

.welcome-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 16px;
  border: 1px solid var(--lime);
  animation: popReveal 0.6s ease-out;
}

@keyframes popReveal {
  from { opacity: 0; transform: scale(0.84); }
  to { opacity: 1; transform: scale(1); }
}

.welcome-panel h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 10px; color: var(--text-light); }
.welcome-tagline { font-size: 1.05rem; color: var(--copper); font-weight: 600; margin-bottom: 24px; }
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ==========================================================================
   Section Surfaces & Typography
   ========================================================================== */
.section { padding: 92px 0; }
.section-charcoal { background-color: var(--charcoal); color: var(--text-light); }
.section-deep { background-color: var(--charcoal-deep); color: var(--text-light); }
.section-ivory { background-color: var(--ivory); color: var(--text-dark); }
.section-alabaster { background-color: var(--alabaster); color: var(--text-dark); }

.section-header { max-width: 700px; margin: 0 auto 52px; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-editorial);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--charcoal);
  background: var(--lime);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.eyebrow-copper {
  background: var(--copper-soft);
  color: var(--copper);
  border: 1px solid rgba(230, 163, 107, 0.35);
}

.section-charcoal .eyebrow,
.section-deep .eyebrow {
  color: var(--charcoal);
  background: var(--lime);
}

.section-header h2 { font-size: clamp(1.95rem, 3.4vw, 2.75rem); font-weight: 800; margin-bottom: 14px; }
.section-header p { font-size: 1.03rem; color: var(--text-dark-muted); }
.section-charcoal .section-header p,
.section-deep .section-header p { color: var(--text-light-muted); }

/* ==========================================================================
   Cinematic 3D Home Hero
   ========================================================================== */
.hero-3d-section {
  position: relative;
  background:
    radial-gradient(circle at 75% 35%, rgba(183, 243, 74, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 20% 80%, rgba(230, 163, 107, 0.08) 0%, transparent 45%),
    var(--charcoal-deep);
  color: var(--text-light);
  padding: 72px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--charcoal-border);
}

.hero-3d-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(230, 163, 107, 0.35);
  background: rgba(230, 163, 107, 0.1);
  color: var(--copper);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(183, 243, 74, 0.55); }
  65% { box-shadow: 0 0 0 8px rgba(183, 243, 74, 0); }
}

.hero-3d-section h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.7rem);
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-light-muted);
  max-width: 540px;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.hero-stage {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 50%, #162634 0%, #0B141C 100%);
  border: 1px solid var(--charcoal-border);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}

.hero-stage canvas {
  width: 100%;
  height: 100%;
  min-height: 440px;
  display: block;
}

.hero-stage-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(9, 17, 24, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--charcoal-border);
  font-size: 0.82rem;
}

.hero-metrics-bar {
  margin-top: 34px;
  background: rgba(22, 36, 48, 0.72);
  border: 1px solid var(--charcoal-border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.hero-metric-item {
  border-right: 1px solid rgba(247, 245, 238, 0.1);
  padding-right: 12px;
}

.hero-metric-item:last-child { border-right: none; }
.hero-metric-val { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--lime); }
.hero-metric-label { font-size: 0.82rem; color: var(--text-light-muted); }

/* ==========================================================================
   Asymmetric Editorial & Philosophy Layouts (Home / About)
   ========================================================================== */
.split-asymmetric {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

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

.ivory-card {
  background: var(--alabaster);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-ivory);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ivory-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-ivory-hover);
  border-color: rgba(16, 27, 36, 0.26);
}

.charcoal-card {
  background: var(--charcoal-card);
  border: 1px solid var(--charcoal-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--text-light);
}

.card-index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--copper);
  margin-bottom: 12px;
}

.ivory-card .card-index { color: var(--charcoal); background: var(--lime); display: inline-block; padding: 3px 10px; border-radius: 999px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-editorial);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-underline-offset: 4px;
}

.section-charcoal .link-arrow,
.section-deep .link-arrow {
  color: var(--lime);
  text-decoration-color: var(--lime);
}

/* ==========================================================================
   Services Page — Distinct Alternating Creative Bands (Not Identical Cards!)
   ========================================================================== */
.svc-band {
  padding: 64px 0;
  border-bottom: 1px solid var(--ivory-border);
}

.section-charcoal.svc-band { border-bottom-color: var(--charcoal-border); }

.svc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.svc-split.is-reversed .svc-visual { order: -1; }

.svc-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--ivory-border);
  box-shadow: var(--shadow-ivory);
  background: var(--alabaster);
  transition: transform 0.35s ease;
}

.section-charcoal .svc-visual { border-color: var(--charcoal-border); box-shadow: var(--shadow-dark); }
.svc-visual:hover { transform: perspective(900px) rotateY(-2deg) scale(1.01); }
.svc-visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.svc-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.svc-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--ivory-border);
  background: var(--alabaster);
  display: flex;
  flex-direction: column;
}

.svc-panel.dark {
  background: var(--charcoal-card);
  border-color: var(--charcoal-border);
  color: var(--text-light);
}

.svc-panel-img { aspect-ratio: 16 / 9; overflow: hidden; }
.svc-panel-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-panel-body { padding: 28px; flex-grow: 1; display: flex; flex-direction: column; }

.svc-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 18px;
  font-size: 0.91rem;
}

.svc-detail-list li::before {
  content: "→ ";
  color: var(--copper);
  font-weight: 800;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 18px; }
.tech-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(16, 27, 36, 0.08);
  color: var(--charcoal);
}

.section-charcoal .tech-tag,
.section-deep .tech-tag,
.svc-panel.dark .tech-tag {
  background: rgba(247, 245, 238, 0.1);
  color: var(--text-light);
}

.benefit-strip {
  padding: 12px 14px;
  border-left: 3px solid var(--copper);
  background: rgba(230, 163, 107, 0.12);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

/* ==========================================================================
   Products Immersive Showcase (3D Waveforms + Floating Dashboard)
   ========================================================================== */
.product-immersive {
  background: var(--charcoal);
  border: 1px solid var(--charcoal-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  color: var(--text-light);
  box-shadow: var(--shadow-dark);
}

.product-stage-3d {
  position: relative;
  border-radius: var(--radius-lg);
  background: #091118;
  border: 1px solid var(--charcoal-border);
  overflow: hidden;
  padding: 16px;
}

.waveform-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
  margin: 14px 0;
}

.waveform-bars span {
  flex: 1;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--lime), var(--copper));
  animation: waveBar 1.2s ease-in-out infinite;
}

.waveform-bars span:nth-child(odd) { animation-delay: 0.2s; }
.waveform-bars span:nth-child(3n) { animation-delay: 0.45s; }

@keyframes waveBar {
  0%, 100% { height: 22%; opacity: 0.65; }
  50% { height: 95%; opacity: 1; }
}

.tilt-3d-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--charcoal-border);
  transition: transform 0.35s ease;
  transform-style: preserve-3d;
}

.tilt-3d-frame:hover {
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg) scale(1.02);
}

/* ==========================================================================
   Portfolio 3D Gallery
   ========================================================================== */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.portfolio-showcase-card {
  background: var(--alabaster);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-ivory);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portfolio-showcase-card:hover {
  transform: perspective(1100px) rotateX(1.5deg) translateY(-5px);
  box-shadow: var(--shadow-ivory-hover);
}

.portfolio-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--charcoal); }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-showcase-card:hover .portfolio-thumb img { transform: scale(1.05); }
.portfolio-body { padding: 28px; }

/* ==========================================================================
   Cost Calculator, Blog, Legal, FAQ, Contact, Footer
   ========================================================================== */
.calc-wrapper {
  background: var(--alabaster);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 32px;
}

.calc-group { margin-bottom: 20px; }
.calc-label { display: block; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.calc-chip {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ivory-border);
  background: var(--white);
  color: var(--charcoal);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.calc-chip.active { background: var(--charcoal); color: var(--lime); border-color: var(--charcoal); }

.integration-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-chip { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--ivory-border); background: var(--white); font-size: 0.85rem; cursor: pointer; }
.check-chip input { accent-color: var(--charcoal); }

.calc-summary {
  background: var(--charcoal);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.calc-price { font-family: var(--font-display); font-size: clamp(1.8rem, 2.8vw, 2.3rem); font-weight: 800; color: var(--lime); margin: 6px 0; }
.calc-timeline { font-size: 0.9rem; font-weight: 600; color: var(--copper); margin-bottom: 16px; }
.calc-summary-list { list-style: none; border-top: 1px solid var(--charcoal-border); border-bottom: 1px solid var(--charcoal-border); padding: 14px 0; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; }
.calc-summary-list li { display: flex; justify-content: space-between; gap: 10px; color: var(--text-light-muted); }
.calc-summary-list li strong { color: var(--text-light); text-align: right; }

.subpage-hero {
  background: radial-gradient(circle at 80% 25%, rgba(183, 243, 74, 0.08) 0%, transparent 45%), var(--charcoal-deep);
  color: var(--text-light);
  padding: 68px 0 60px;
  border-bottom: 1px solid var(--charcoal-border);
}

.subpage-hero.ivory-hero {
  background: var(--alabaster);
  color: var(--text-dark);
  border-bottom: 1px solid var(--ivory-border);
}

.subpage-hero h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 800; margin-bottom: 14px; }
.subpage-hero p { font-size: 1.04rem; color: var(--text-light-muted); max-width: 700px; }
.subpage-hero.ivory-hero p { color: var(--text-dark-muted); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--copper); margin-bottom: 16px; font-weight: 600; }
.subpage-hero.ivory-hero .breadcrumb { color: var(--text-dark-muted); }
.breadcrumb a { text-decoration: none; }

.blog-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-bottom: 30px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--ivory-border); background: var(--white); color: var(--text-dark-muted); font-size: 0.84rem; font-weight: 700; cursor: pointer; }
.filter-pill.active { background: var(--charcoal); color: var(--lime); border-color: var(--charcoal); }

.search-box { position: relative; min-width: 260px; flex: 0 1 320px; }
.search-box input { width: 100%; padding: 10px 14px 10px 38px; border-radius: 999px; border: 1px solid var(--ivory-border); background: var(--white); font-size: 0.89rem; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-dark-muted); }

.featured-article { background: var(--charcoal); color: var(--text-light); border-radius: var(--radius-xl); padding: 34px; margin-bottom: 32px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--alabaster); border: 1px solid var(--ivory-border); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; transition: transform 0.22s ease, box-shadow 0.22s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-ivory-hover); }
.blog-thumb { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 14px; background: var(--charcoal); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.blog-card p { font-size: 0.9rem; color: var(--text-dark-muted); margin-bottom: 16px; flex-grow: 1; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-dark-muted); padding-top: 12px; border-top: 1px solid var(--ivory-border); }

.article-layout, .legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.toc-card { background: var(--alabaster); border: 1px solid var(--ivory-border); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: calc(var(--header-height) + 20px); }
.toc-card h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dark-muted); margin-bottom: 12px; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc-list a { text-decoration: none; font-size: 0.88rem; color: var(--text-dark); }
.toc-list a:hover { color: var(--copper); }

.doc-card { background: var(--white); border: 1px solid var(--ivory-border); border-radius: var(--radius-xl); padding: 42px; box-shadow: var(--shadow-ivory); }
.doc-card h2 { font-size: 1.4rem; color: var(--charcoal); margin: 28px 0 12px; }
.doc-card h2:first-child { margin-top: 0; }
.doc-card p, .doc-card li { color: var(--text-dark-muted); font-size: 0.97rem; line-height: 1.75; margin-bottom: 12px; }
.doc-card ul { margin-left: 20px; margin-bottom: 16px; }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ivory-border); }

.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--ivory-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-trigger { width: 100%; background: transparent; border: none; padding: 20px 24px; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-editorial); font-size: 1rem; font-weight: 700; color: var(--charcoal); cursor: pointer; }
.faq-trigger svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-panel { padding: 0 24px 20px; font-size: 0.94rem; color: var(--text-dark-muted); }
.faq-panel[hidden] { display: none; }

.contact-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 42px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--alabaster); border: 1px solid var(--ivory-border); border-radius: var(--radius-md); }
.contact-item a { text-decoration: none; font-weight: 700; color: var(--charcoal); }
.contact-form-card { background: var(--white); border: 1px solid var(--ivory-border); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-ivory); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-group { margin-bottom: 14px; }
.field-label { display: block; font-size: 0.84rem; font-weight: 700; margin-bottom: 6px; }
.form-control { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(16, 27, 36, 0.2); background: var(--alabaster); color: var(--charcoal); font-family: var(--font-body); font-size: 0.94rem; }
.form-control:focus { outline: none; border-color: var(--charcoal); background: var(--white); }
.form-control.is-invalid { border-color: var(--danger); }
.field-error { display: none; font-size: 0.8rem; color: var(--danger); margin-top: 4px; }
.field-error.visible { display: block; }
.form-alert { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.form-alert.success { display: block; background: #ECFDF5; border: 1px solid #86EFAC; color: #166534; }
.form-alert.error { display: block; background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

.cta-banner { background: var(--charcoal); color: var(--text-light); padding: 80px 0; text-align: center; border-top: 1px solid var(--charcoal-border); }
.cta-banner h2 { font-size: clamp(1.95rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.cta-banner p { color: var(--text-light-muted); max-width: 580px; margin: 0 auto 28px; }

.site-footer { background: var(--charcoal-deep); color: var(--text-light-muted); padding: 64px 0 32px; border-top: 1px solid var(--charcoal-border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 36px; margin-bottom: 40px; }
.footer-col h4 { color: var(--text-light); font-size: 0.92rem; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.87rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--lime); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--charcoal-border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 0.84rem; }

.floating-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--charcoal);
  border: 2px solid var(--lime);
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.floating-wa:hover { transform: translateY(-3px); }
.floating-wa svg { width: 22px; height: 22px; }
.floating-wa span { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .pulse-dot, .waveform-bars span, .welcome-logo { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1080px) {
  .hero-3d-grid, .split-asymmetric, .svc-split, .product-immersive, .calc-wrapper { grid-template-columns: 1fr; }
  .svc-split.is-reversed .svc-visual { order: 0; }
  .calc-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-metrics-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-metric-item { border-right: none; }
  .bento-3, .svc-duo-grid, .portfolio-gallery, .blog-grid, .contact-grid, .featured-article, .article-layout, .legal-layout { grid-template-columns: 1fr; }
  .toc-card { position: static; }
}

@media (max-width: 640px) {
  .section { padding: 62px 0; }
  .container { padding: 0 18px; }
  .hero-metrics-bar, .integration-grid, .form-grid-2, .footer-grid, .mobile-nav-actions { grid-template-columns: 1fr; }
  .hero-stage, .hero-stage canvas { min-height: 300px; }
  .doc-card, .calc-wrapper, .contact-form-card, .product-immersive, .featured-article { padding: 22px; }
}
