/* Full-screen black canvas */
html, body {
  height: 100%;
  margin: 0;
  background: #000;
  /* allow native browser scrolling but keep overscroll behavior contained to the app container */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Professional system font stack with better metrics */
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-feature-settings: "liga" 1, "kern" 1;
  -webkit-font-kerning: normal;
  font-kerning: normal;
  letter-spacing: 0.01em;
}

/* Vertical ruler navigator (compact, centered on right) */
.section-ruler {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: min(52vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  pointer-events: auto;
}

/* thicker, rounded rail with modern minimal surface
   -> made visually invisible so the ticks themselves and the thumb read as the primary track */
.ruler-track {
  position: relative;
  width: 14px; /* slightly thicker for clarity */
  height: 100%;
  border-radius: 12px;
  /* make the rail invisible while keeping layout & hit area */
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0; /* increased padding to give ticks room */
  touch-action: none;
}

/* lines container */
.ruler-lines {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 8px);
  height: calc(100% - 16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

/* each horizontal tick */
.ruler-lines .ruler-tick {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  transform-origin: center;
  transition: background 180ms ease, transform 200ms ease, opacity 160ms ease;
  opacity: 0.9;
}

/* thumb/handle */
.ruler-thumb {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #00f5a0, #00d9ff);
  box-shadow: 0 8px 22px rgba(0,0,0,0.6), 0 0 0 4px rgba(0,245,160,0.06);
  border: 2px solid rgba(255,255,255,0.06);
  cursor: grab;
  transition: transform 160ms cubic-bezier(.2,.9,.2,1), box-shadow 160ms ease;
  z-index: 2;
  touch-action: none;
}

/* When thumb is snapped to a section, use a compact transparent "dot" appearance
   matching the visual style of the section navigation dots (compact, semi-transparent, bordered). */
.ruler-thumb.selected {
  /* adopt the same rounded-rectangle silhouette as the section containers */
  width: 14px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06); /* subtle glass surface */
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%) scale(1);
  transition:
    width 180ms ease,
    height 180ms ease,
    transform 180ms cubic-bezier(.2,.9,.2,1),
    box-shadow 160ms ease,
    background 160ms ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow: visible;
  position: absolute;
}

.ruler-thumb:active,
.ruler-thumb.dragging {
  cursor: grabbing;
  /* enlarge to emphasize selection while dragging/clicked */
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 18px 46px rgba(0,0,0,0.65), 0 0 0 8px rgba(0,245,160,0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* subtle inner frosted layer so the thumb reads as glass over content */
.ruler-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 160ms ease, transform 160ms ease;
  opacity: 1;
}

/* refined tick look: rectangular blocks (cards) with spacing and subtle depth */
.ruler-lines .ruler-tick {
  width: 14px;                  /* narrow rectangle matching rail thickness */
  height: 28px;                 /* represent each section as a vertical rectangle */
  border-radius: 6px;           /* rounded rectangle */
  background: rgba(255,255,255,0.06);
  margin: 4px 0;
  transform-origin: center;
  transition: background 180ms ease, transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 180ms ease, opacity 160ms ease;
  box-shadow: none;
  opacity: 0.75;
}

/* center the ticks on the track and stack them with uniform spacing */
.ruler-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px; /* uniform spacing between rectangles */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: calc(100% - 16px);
  pointer-events: none;
}

/* highlight tick when active with gentle glow and scale */
.ruler-tick.active {
  background: linear-gradient(180deg, rgba(0,245,160,0.95), rgba(0,217,255,0.95));
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(0,217,255,0.08), 0 2px 6px rgba(0,0,0,0.5);
  opacity: 1;
}

/* responsive: hide on very small widths to avoid occlusion */
@media (max-width: 640px) {
  .section-ruler {
    right: 10px;
    width: 56px;
    height: min(44vh, 340px);
  }
  .ruler-thumb { width: 16px; height: 16px; }
  .ruler-lines .ruler-tick { width: 12px; height: 22px; border-radius: 5px; gap: 8px; }
}

/* Site scroll container: the single, controlled scroll area for the page */
#site-scroll {
  height: 100vh;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  /* contain overscroll and pointer events inside this element for a predictable mobile UX */
  overscroll-behavior: contain;
  -ms-overflow-style: none; /* IE/Edge: hide default scrollbar */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(255,255,255,0.08) rgba(0,0,0,0.0);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.01), transparent 4%),
    radial-gradient(circle at 75% 10%, rgba(0,245,160,0.02), transparent 12%);
}

/* Custom scrollbar for WebKit browsers — subtle, minimal and touch-friendly */
/* Slim, aligned scrollbars: thinner horizontal thumb and subtle track */
#site-scroll::-webkit-scrollbar {
  width: 8px;
  height: 6px; /* make horizontal scrollbar thinner */
}
#site-scroll::-webkit-scrollbar-track {
  background: transparent;
}
#site-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.05));
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 6px 14px rgba(0,0,0,0.55);
  min-height: 28px;
  min-width: 28px;
}
#site-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.08));
  box-shadow: 0 10px 26px rgba(0,0,0,0.65);
}
#site-scroll::-webkit-scrollbar-corner {
  background: transparent;
}

/* make scrollbars less obtrusive on small screens */
@media (max-width: 640px) {
  #site-scroll::-webkit-scrollbar { width: 8px; }
  #site-scroll::-webkit-scrollbar-thumb { min-height: 28px; }
}

/* Ensure any future content sits centered (optional) */
#app {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Top header: thin white border, transparent look, and blurred backdrop */
#top-header {
  position: fixed;
  top: 12px;
  left: 7px;
  right: 7px;
  height: 64px; /* increased height for better vertical centering of the logo */
  display: flex;
  align-items: center;
  padding: 0 14px; /* a touch more horizontal breathing room */
  box-sizing: border-box;
  border: 0.2px solid rgba(255,255,255,0.38); /* ultra-thin subtle white border */
  background: linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.01)); /* subtle depth */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  pointer-events: auto;
  /* tuned for a smooth Dynamic-Island-like morph: slower ease-in/out and explicit will-change for performant transforms */
  transition:
    height 420ms cubic-bezier(.16,.84,.24,1),
    padding 360ms cubic-bezier(.16,.84,.24,1),
    left 420ms cubic-bezier(.16,.84,.24,1),
    right 420ms cubic-bezier(.16,.84,.24,1),
    border-radius 420ms cubic-bezier(.16,.84,.24,1),
    box-shadow 340ms cubic-bezier(.12,.9,.28,1),
    transform 340ms cubic-bezier(.12,.9,.28,1);
  will-change: transform, left, right, height, padding;
  z-index: 20; /* garante que o header fique sempre na frente */
}

/* Scrolled / compact state for header (Dynamic-Island like) */
#top-header.scrolled {
  top: 10px;
  height: 48px; /* reduced vertical size */
  /* shrink horizontal footprint to 50% and keep centered */
  left: 25%;
  right: 25%;
  padding: 0 10px; /* narrower internal padding */
  border-radius: 20px; /* more rounded for island effect */
  /* subtle vertical lift + tiny scale to emulate Dynamic Island "hover" */
  transform: translateY(-4px) scale(0.995);
  box-shadow: 0 18px 48px rgba(0,0,0,0.6);
  transition:
    left 420ms cubic-bezier(.16,.84,.24,1),
    right 420ms cubic-bezier(.16,.84,.24,1),
    height 420ms cubic-bezier(.16,.84,.24,1),
    padding 360ms cubic-bezier(.16,.84,.24,1),
    border-radius 420ms cubic-bezier(.16,.84,.24,1),
    box-shadow 340ms cubic-bezier(.12,.9,.28,1),
    transform 340ms cubic-bezier(.12,.9,.28,1);
  will-change: transform, left, right, height, padding, border-radius, box-shadow;
}

/* Slightly reduce and reposition inner brand contents when header is compact */
#top-header.scrolled .header-inner {
  gap: 8px;
}

/* shrink the brand-logo smoothly when scrolled */
#top-header.scrolled .brand-logo {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  transition: width 220ms cubic-bezier(.2,.9,.2,1), height 220ms cubic-bezier(.2,.9,.2,1), border-radius 220ms ease, transform 220ms ease;
  transform: translateY(-1px) scale(0.92);
}

/* keep the reveal text subtle when compact */
#top-header.scrolled .brand-reveal {
  opacity: 0;
  transform: translateX(-6px) scale(.98);
}

/* ensure icon buttons reduce slightly to match compact header */
#top-header.scrolled .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

/* ensure accessibility preference still respected */
@media (prefers-reduced-motion: reduce) {
  #top-header, #top-header.scrolled, #top-header .brand-logo {
    transition: none !important;
  }
}

/* Inner header area stays flexible for content */
#top-header .header-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 15px;
}

/* Sidebar toggle icon button (right side) */
.icon-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: background 160ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* group header controls so language button sits left of sidebar toggle */
.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto; /* push both controls to right */
}

/* language button specifics */
.lang-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Disabled look for language button while feature is pending */
.lang-btn.lang-disabled {
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.46);
  cursor: default;
  filter: grayscale(20%) saturate(0.5);
  border-radius: 8px;
  pointer-events: auto; /* allow hover to show explanatory tooltip handled by JS */
}

/* transient tooltip injected by JS (now appears below the control) */
.transient-tip {
  position: fixed;
  /* align horizontally centered to the trigger, but render below it */
  transform: translate(-50%, 0) translateY(8px);
  background: rgba(20,20,20,0.94);
  color: #ffffff;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  z-index: 9999;
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
  max-width: 240px;
  text-align: center;
  line-height: 1.2;
}

/* small floating language menu */
.lang-menu {
  position: absolute;
  right: 74px; /* positions left of the sidebar toggle (44px + 8 gap + 22 offset) */
  top: 60px;
  min-width: 200px;
  background: linear-gradient(180deg, rgba(12,12,12,0.98), rgba(8,8,8,0.96));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.8);
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 200;
  transform-origin: top right;
  transition: opacity 160ms ease, transform 160ms cubic-bezier(.2,.9,.2,1);
}

/* visible state */
.lang-menu.is-open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* menu items */
.lang-item {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.94);
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background 140ms ease, transform 120ms ease;
}

.lang-item:hover,
.lang-item:focus {
  background: rgba(255,255,255,0.03);
  transform: translateX(4px);
  outline: none;
}

/* mark selected language */
.lang-item[aria-current="true"] {
  background: linear-gradient(90deg, rgba(0,245,160,0.12), rgba(0,217,255,0.12));
  color: #eafff6;
  font-weight: 700;
}

/* responsive adjustments: anchor menu more tightly near header on small screens */
@media (max-width: 880px) {
  .lang-menu {
    right: 84px;
    top: 56px;
    min-width: 180px;
  }
}

.icon-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

.icon-btn:hover {
  background: rgba(255,255,255,0.02);
  transform: translateY(-1px);
}

/* Material icon sizing */
.icon-btn .material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 20px; /* icon size */
  line-height: 1;
  user-select: none;
  pointer-events: none;
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 180ms ease, filter 180ms ease;
  will-change: transform, opacity, filter;
  display: inline-block; /* ensure transform & opacity animate smoothly */
  transform-origin: center center;
  opacity: 1;
}

/* fade state used by JS when swapping the icon glyph */
.icon-btn .material-icons.fade {
  opacity: 0;
  transform: translateY(-6px) scale(0.92) rotate(-10deg);
  filter: blur(0.6px) saturate(0.9);
}

/* subtle press/active animation for icon while open/close toggles */
.icon-btn.open .material-icons {
  transform: rotate(0deg) scale(1);
}

/* when animating provide a brief rotate for tactile feel */
.icon-btn.animating .material-icons {
  transition-timing-function: cubic-bezier(.18,.9,.32,1);
  transform: rotate(18deg) scale(0.98);
}

/* Toggle state */
.icon-btn.open .material-icons {
  transform: rotate(0deg);
}

/* when open we slightly change color to indicate active */
.icon-btn.open {
  color: #fff;
  background: rgba(255,255,255,0.03);
}

/* Brand label on the left */
.brand {
  color: rgba(255,255,255,0.94);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  padding: 6px 8px;        /* slightly more padding to balance larger logo */
  border-radius: 8px;
  cursor: default;
  user-select: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;               /* slightly larger gap between logo and text */
  position: relative;
  min-width: 48px;         /* increased min-width to accommodate larger logo */
  --logo-width: 26px;      /* updated to match larger logo width */
}

/* typography polish */
.brand-main {
  display: inline-block;
  transform-origin: left center;
  transition: transform 320ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
  will-change: transform, opacity;
  /* default uses CSS variable for dynamic offset (computed in JS) */
  transform: translateX(0) scale(1);
}

/* Reveal "Investech" sliding from left */
.brand-reveal {
  display: inline-block;
  position: absolute;
  /* offset reveal to account for logo width (logo + gap) */
  left: calc(var(--logo-width, 0px) + 8px);
  transform: translateX(-10px) scaleX(.99);
  opacity: 0;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-size: 13px;
  padding-left: 2px;
  transition: transform 320ms cubic-bezier(.2,.9,.2,1), opacity 200ms ease;
  pointer-events: none;
  letter-spacing: 0.02em;
  mix-blend-mode: screen;
}

/* Hover/focus state triggers reveal */
.brand.hover-active .brand-main {
  /* shift exactly by the measured reveal width plus gap */
  transform: translateX(var(--reveal-offset,20px)) scale(.98);
  opacity: 0.96;
}

.brand.hover-active .brand-reveal {
  transform: translateX(0px) scale(1);
  opacity: 1;
}

/* Logo styling: slightly larger, contained, aligned with text */
.brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  transform-origin: center center;
  will-change: transform;
  /* paused by default; site will enable animation when active */
  animation: brand-spin 2s cubic-bezier(.2,.9,.2,1) infinite;
  animation-play-state: paused;
  /* ensure CSS variable roughly matches actual logo width used for reveal offset */
  /* if you change width here, adjust --logo-width in .brand above if needed */
}

/* When the site is active (tab visible / operante) enable logo spin */
.site-active .brand-logo {
  animation-play-state: running;
}

/* Keyframes for a smooth rotation that accelerates, finishes the spin early, then eases into the next cycle */
@keyframes brand-spin {
  0%   { transform: rotate(0deg); }
  70%  { transform: rotate(360deg); } /* completes the spin before the cycle ends for a gentle decel/hold */
  100% { transform: rotate(360deg); } /* small hold so the next cycle restarts smoothly */
}

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .brand-main, .brand-reveal, #top-header {
    transition: none !important;
  }
  .brand-reveal { transform: translateX(-10px); opacity: 1; }
  .brand-logo {
    animation: none !important;
    transform: none !important;
  }
}

/* Slight hover focus affordance — keep interaction subtle but avoid revealing a rounded background */
.brand:hover,
.brand:focus {
  color: #fff;
  cursor: pointer;
  transform: translateY(-1px);
}

/* Accessibility: reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .brand-main, .brand-reveal, #top-header {
    transition: none !important;
  }
  .brand-reveal { transform: translateX(-10px); opacity: 1; }
}

/* Centered hero section que ocupa a primeira tela */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 92px 20px 32px; /* espaço para o header + respiro inferior */
  box-sizing: border-box;
  pointer-events: auto;
  overflow: hidden;
  text-align: center;
  z-index: 1;
}

/* Subtle advanced background for hero */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at top left, rgba(0, 255, 170, 0.10), transparent 60%),
              radial-gradient(circle at bottom right, rgba(0, 153, 255, 0.10), transparent 65%);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero::after {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 65%);
  opacity: 0.6;
}





/* Thin divider to separar título / ações e dar mais organização visual */
.hero-divider {
  width: 100%;
  max-width: 460px;
  height: 1px;
  margin: 18px auto 16px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.3),
    rgba(0,245,160,0.45),
    rgba(0,217,255,0.35),
    transparent
  );
  opacity: 0.7;
}

/* Small pill/badge above title */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.78);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00f5a0, #00d9ff);
  box-shadow: 0 0 0 3px rgba(0,245,160,0.18);
}

.hero-pill-text {
  white-space: nowrap;
}

/* Main headline */
.hero-title {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 2px auto 12px;
  -webkit-font-smoothing: antialiased;
}

.hero-title-accent {
  display: block;
  font-weight: 700;
  background: linear-gradient(120deg, #ffffff, #a7ffe2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Subtitle */
.hero-subtitle {
  margin: 10px auto 0;
  color: rgba(255,255,255,0.88);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  max-width: 640px;
}

/* Hero actions: CTAs */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  min-width: 140px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  outline: none;
  transition: transform 140ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(120deg, #00f5a0, #00d9ff);
  color: #000;
  box-shadow: 0 10px 30px rgba(0, 220, 180, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(0, 220, 180, 0.70);
}

.btn-secondary {
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 26px rgba(0,0,0,0.65);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.04);
}

/* Small footnote line under actions */
.hero-footnote {
  margin: 14px auto 0;
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  max-width: 520px;
}

/* Slight responsive scale-up on larger viewports for the main title */
@media (min-width: 520px) {
  .hero-title {
    font-size: 38px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
}

/* Keep hero always central, only adjust breathing room on wider screens */
@media (min-width: 780px) {
  .hero {
    padding: 92px 32px 40px;
  }
}

/* Ensure text remains legible on very small screens */
@media (max-height: 520px) {
  .hero {
    padding-top: 76px;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-subtitle {
    font-size: 12px;
  }
}

/* Segunda seção de detalhes */
.section-details {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: 32px 20px 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top, rgba(255,255,255,0.02), transparent 55%),
              linear-gradient(180deg, #020202, #020202);
  color: #fff;
}

.section-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.section-header {
  text-align: left;
  max-width: 640px;
  margin-bottom: 24px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 6px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
}

.details-carousel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.details-grid {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 4px 2px 6px;
  margin: 0 -4px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
}

.details-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0;
}

.carousel-arrow {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: pointer;
  transition: transform 120ms ease, color 140ms ease, opacity 140ms ease;
}

.carousel-arrow:hover {
  transform: translateY(-1px);
  color: #ffffff;
}

.carousel-arrow:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.details-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 140ms ease, transform 120ms ease, border-color 140ms ease, opacity 140ms ease;
  opacity: 0.55;
}

.carousel-dot:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.18);
}

.carousel-dot.is-active {
  width: 9px;
  height: 9px;
  background: linear-gradient(120deg, #00f5a0, #00d9ff);
  border-color: transparent;
  opacity: 1;
}

.detail-card {
  scroll-snap-align: start;
  flex: 0 0 82%;
  max-width: 360px;
  min-width: 260px;
  padding: 14px 14px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at top left, rgba(0,245,160,0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0,217,255,0.22), transparent 60%),
    linear-gradient(145deg, rgba(10,10,10,0.98), rgba(4,4,4,1));
  box-shadow:
    0 14px 32px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.02);
  position: relative;
  overflow: hidden;
  opacity: 0.45;
  transform: translateY(2px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.detail-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: rgba(0,245,160,0.7);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.85),
    0 0 0 1px rgba(0,245,160,0.35);
  background:
    radial-gradient(circle at top left, rgba(0,245,160,0.32), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0,217,255,0.30), transparent 60%),
    linear-gradient(145deg, rgba(12,12,12,1), rgba(4,4,4,1));
}

.detail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.08),
    transparent 40%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.detail-card:hover::after {
  opacity: 1;
}

/* fine-tune inner text spacing inside cards after visual upgrade */
.detail-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.detail-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
}

.detail-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.detail-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}

@media (min-width: 640px) {
  .section-details {
    padding: 40px 32px 56px;
  }
  .section-title {
    font-size: 26px;
  }
  .details-grid {
    gap: 14px;
    scroll-padding-inline: 24px;
  }
  .detail-card {
    flex: 0 0 280px;
    max-width: 320px;
  }
}

/* Terceira seção: setores atendidos */
.section-sectors {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: 36px 20px 46px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top, rgba(0,245,160,0.10), transparent 55%),
    radial-gradient(circle at bottom, rgba(0,217,255,0.10), transparent 55%),
    linear-gradient(180deg, #020202, #020202);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.sectors-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.sectors-header {
  max-width: 720px;
  margin-bottom: 22px;
}

.sectors-header .section-title {
  margin-bottom: 10px;
}

.sectors-header .section-subtitle {
  max-width: 640px;
}

/* Grid de setores */
.sectors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.sector-card {
  position: relative;
  padding: 12px 13px 11px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at top left, rgba(0,245,160,0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0,217,255,0.2), transparent 60%),
    linear-gradient(150deg, rgba(9,9,9,1), rgba(3,3,3,1));
  box-shadow:
    0 14px 30px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,255,255,0.02);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 150ms ease, background 160ms ease;
}

.sector-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent 60%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.sector-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,245,160,0.7);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.9),
    0 0 0 1px rgba(0,245,160,0.35);
  background:
    radial-gradient(circle at top left, rgba(0,245,160,0.27), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0,217,255,0.26), transparent 60%),
    linear-gradient(150deg, rgba(11,11,11,1), rgba(4,4,4,1));
}

.sector-card:hover::before {
  opacity: 1;
}

.sector-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
}

.sector-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
}

@media (min-width: 640px) {
  .section-sectors {
    padding: 40px 32px 60px;
  }

  .sectors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sector-card {
    padding: 14px 15px 13px;
  }

  .sector-title {
    font-size: 14px;
  }

  .sector-text {
    font-size: 12px;
  }
}

@media (min-width: 960px) {
  .sectors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Quarta seção: nossa trajetória e parcerias */
.section-journey {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: 34px 20px 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.05), transparent 55%),
    linear-gradient(180deg, #020202, #030303);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.journey-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.journey-header {
  max-width: 720px;
  margin-bottom: 22px;
}

.journey-header .section-title {
  margin-bottom: 10px;
}

.journey-header .section-subtitle {
  max-width: 680px;
}

/* Grid / layout para a jornada */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.journey-card {
  position: relative;
  padding: 13px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at top left, rgba(0,245,160,0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0,217,255,0.24), transparent 60%),
    linear-gradient(150deg, rgba(9,9,9,1), rgba(3,3,3,1));
  box-shadow:
    0 14px 30px rgba(0,0,0,0.78),
    0 0 0 1px rgba(255,255,255,0.02);
  overflow: hidden;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 150ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.journey-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 60%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.journey-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,245,160,0.75);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.92),
    0 0 0 1px rgba(0,245,160,0.38);
  background:
    radial-gradient(circle at top left, rgba(0,245,160,0.28), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0,217,255,0.3), transparent 60%),
    linear-gradient(150deg, rgba(11,11,11,1), rgba(4,4,4,1));
}

.journey-card:hover::before {
  opacity: 1;
}

.journey-title {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 600;
}

.journey-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
}

.journey-text strong {
  font-weight: 600;
  color: #ffffff;
}

@media (min-width: 640px) {
  .section-journey {
    padding: 40px 32px 64px;
  }

  .journey-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .journey-card {
    padding: 14px 15px 13px;
  }

  .journey-title {
    font-size: 14px;
  }
}

/* Quinta seção: tecnologias e padrão bigtech aplicado ao negócio */
.section-tech {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: 34px 20px 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top, rgba(0,245,160,0.18), transparent 55%),
    radial-gradient(circle at bottom, rgba(0,217,255,0.16), transparent 55%),
    linear-gradient(180deg, #020202, #020202);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.tech-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.tech-header {
  max-width: 760px;
  margin-bottom: 22px;
}

.tech-header .section-title {
  margin-bottom: 10px;
}

.tech-header .section-subtitle {
  max-width: 700px;
}

/* Grid da seção de tecnologia */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tech-card {
  position: relative;
  padding: 13px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at top left, rgba(0,245,160,0.26), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0,217,255,0.30), transparent 60%),
    linear-gradient(150deg, rgba(9,9,9,1), rgba(3,3,3,1));
  box-shadow:
    0 16px 38px rgba(0,0,0,0.86),
    0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 150ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.28), transparent 70%),
    radial-gradient(circle at 80% 90%, rgba(0,245,160,0.32), transparent 70%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.tech-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,245,160,0.78);
  box-shadow:
    0 20px 46px rgba(0,0,0,0.95),
    0 0 0 1px rgba(0,245,160,0.42);
  background:
    radial-gradient(circle at top left, rgba(0,245,160,0.34), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0,217,255,0.34), transparent 60%),
    linear-gradient(150deg, rgba(11,11,11,1), rgba(4,4,4,1));
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-title {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 600;
}

.tech-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.84);
}

@media (min-width: 640px) {
  .section-tech {
    padding: 40px 32px 64px;
  }

  .tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .tech-card {
    padding: 14px 15px 13px;
  }

  .tech-title {
    font-size: 14px;
  }
}

/* Sexta seção: mapa de tempo e simulação (minimal overflow + edge masks) */
.section-timeline {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: 34px 20px 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.03), transparent 55%),
    linear-gradient(180deg, #020202, #020202);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.timeline-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.timeline-header .section-title {
  margin-bottom: 10px;
}

.timeline-header .section-subtitle {
  max-width: 760px;
}

.timeline-marketing-highlight {
  font-weight: 600;
  white-space: nowrap;
}

/* Contêiner do mapa mental com soft edge masks to indicate overflow */
.timeline-shell {
  margin-top: 20px;
  position: relative;
  /* ensure masks sit above track but below dialogs */
  z-index: 3;
}

/* refined edge masks for timeline shell — subtle fades (removed bright blurred glow) */
.timeline-shell::before,
.timeline-shell::after {
  content: "";
  position: absolute;
  /* limit vertical extent so masks align tightly with the track */
  top: 8px;
  bottom: 8px;
  width: 44px; /* reduced reach to avoid heavy edge emphasis */
  pointer-events: none;
  z-index: 4;
  opacity: 0.88;
  /* no additional blur to keep edges crisp and visually subtle */
}

/* left fade: gentle dark-to-clear transition */
.timeline-shell::before {
  left: 0;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.36) 28%,
    rgba(0,0,0,0.08) 64%,
    rgba(0,0,0,0) 100%);
}

/* right fade: mirrored */
.timeline-shell::after {
  right: 0;
  background: linear-gradient(270deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.36) 28%,
    rgba(0,0,0,0.08) 64%,
    rgba(0,0,0,0) 100%);
}

/* Timeline scroll: hide native scrollbar, keep smooth touch behavior */
.timeline-scroll {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 14px 0 10px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scroll-behavior: smooth;
}

/* hide webkit scrollbar for a cleaner, minimal look */
/* Make timeline horizontal scrollbar slimmer and visually aligned with the site scrollbar */
.timeline-scroll::-webkit-scrollbar {
  height: 6px;
}
.timeline-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.055);
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.45);
}
.timeline-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* pointer while dragging */
.timeline-scroll:active {
  cursor: grabbing;
}

/* track uses inline-flex but ensures minimal padding so edges align under masks */
.timeline-track {
  display: inline-flex;
  align-items: stretch;
  gap: 14px;
  padding: 0 6px 6px;
  box-sizing: border-box;
  min-width: 100%;
}

/* Simplified card chrome: lighter border, subtler shadows, flatter gradients */
.timeline-node {
  flex: 0 0 240px;
  max-width: 260px;
  min-width: 220px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  opacity: 0.28;
  transform: translateY(6px) scale(0.985);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

/* visible state slightly more prominent without heavy glow */
.timeline-node.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 10px 28px rgba(0,0,0,0.7);
}

/* gentle hover lift */
.timeline-node:hover {
  transform: translateY(-4px) scale(1.01);
}

/* typography remains same but slightly tighter */
.timeline-hour {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
  margin-bottom: 6px;
}

.timeline-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.timeline-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
}

.timeline-hint {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.56);
}

/* Simulador: floating centered popup with enhanced CTA */
.timeline-sim {
  margin-top: 26px;
  display: flex;
  justify-content: center; /* center the CTA horizontally */
  align-items: center;
}

/* upgraded simulation CTA: larger, clearer, touch-friendly and elevated */
.sim-toggle-btn {
  margin-bottom: 8px;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, rgba(0,245,160,1), rgba(0,217,255,1));
  color: rgba(0,0,0,0.9);
  box-shadow: 0 18px 48px rgba(0,220,180,0.18), 0 2px 8px rgba(0,0,0,0.6);
  border: none;
  transition: transform 160ms cubic-bezier(.2,.9,.2,1), box-shadow 160ms ease, opacity 140ms ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sim-toggle-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 58px rgba(0,220,180,0.22), 0 4px 12px rgba(0,0,0,0.6);
}

.sim-toggle-btn:active {
  transform: translateY(-1px) scale(0.995);
}

.sim-toggle-btn.is-open {
  box-shadow: 0 12px 36px rgba(0,220,180,0.20), inset 0 1px 0 rgba(255,255,255,0.02);
}

/* backdrop */
.sim-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 45;
}
.sim-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* floating panel */
.sim-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(920px, 94%);
  max-width: 920px;
  max-height: 84vh;
  overflow: auto;
  border-radius: 14px;
  /* darker, higher-contrast surface */
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(6,6,6,0.96), rgba(10,10,10,0.92));
  /* subtle glass effect that blurs content behind the panel for stronger focus */
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  box-shadow: 0 32px 88px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.02);
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(.18,.9,.32,1);
  z-index: 50;
}

/* tighten and emphasize content inside the panel for readability */
.sim-panel .sim-grid {
  gap: 14px;
}

.sim-panel .sim-field {
  background: rgba(255,255,255,0.01);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.03);
}

/* slightly stronger labels and inputs contrast */
.sim-panel .sim-label {
  color: rgba(255,255,255,0.78);
  font-weight: 600;
  font-size: 12px;
}

.sim-panel .sim-input,
.sim-panel .sim-textarea {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
}

/* more prominent estimate area */
.sim-estimate {
  font-size: 13px;
  color: #e9fff7;
  margin-top: 8px;
}

/* close button contrast */
.sim-close {
  background: rgba(255,255,255,0.04);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

/* ensure open state still animates smoothly */
.sim-panel.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* visible/open state */
.sim-panel.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* close button inside panel */
.sim-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: rgba(0,0,0,0.36);
  color: rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
}

/* ensure content grid adapts inside floating panel */
.sim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 6px;
}

.sim-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-label {
  font-size: 11px;
  color: rgba(255,255,255,0.72);
}

.sim-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: #fff;
  font-size: 12px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.sim-input:focus {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.03);
}

.sim-input::placeholder {
  color: rgba(255,255,255,0.36);
}

.sim-input-inline {
  margin-top: 4px;
  display: none;
}

.sim-input-inline.is-visible {
  display: block;
}

.sim-textarea {
  resize: vertical;
  min-height: 80px;
  background: rgba(255,255,255,0.02);
}

.sim-help {
  margin: 0;
  font-size: 11px;
  color: rgba(255,255,255,0.56);
}

.sim-char-counter {
  margin-top: 2px;
  font-size: 10px;
  color: rgba(255,255,255,0.44);
  text-align: right;
}

.sim-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-calc-btn {
  align-self: flex-start;
}

.sim-estimate {
  font-size: 12px;
  color: rgba(255,255,255,0.82);
}

.sim-estimate-main {
  margin: 0;
}

.sim-estimate-sub {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.76);
}

.sim-followup {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.08);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(4px);
  transition:
    opacity 200ms ease,
    max-height 240ms ease,
    transform 200ms ease;
}

.sim-followup.is-visible {
  opacity: 1;
  max-height: 220px;
  transform: translateY(0);
}

.sim-followup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,0.62);
}

/* Modal remains unchanged but visually slightly simplified; raised above sim-panel */
.email-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.66);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 60; /* ensure email modal sits above sim-panel (which is z-index:50) */
}

.email-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.email-modal {
  position: relative;
  width: 92%;
  max-width: 360px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.36));
  box-shadow: 0 18px 44px rgba(0,0,0,0.9);
}

.email-modal-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.email-modal-text {
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.82);
}

.email-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.email-modal-btn {
  flex: 1 1 auto;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  text-align: center;
}

.email-modal-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.36);
  color: rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.email-modal-close .material-icons {
  font-size: 18px;
}

@media (min-width: 640px) {
  .section-timeline {
    padding: 40px 32px 64px;
  }

  .timeline-node {
    flex-basis: 260px;
  }

  .sim-panel.is-open {
    max-height: 540px;
  }

  .sim-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  }

  .sim-field:last-of-type {
    grid-column: 1 / -1;
  }
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(180deg, #00f5a0, #00d9ff);
  color: rgba(0,0,0,0.9);
  box-shadow: 0 12px 34px rgba(0,0,0,0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition: opacity 200ms ease, transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top .material-icons {
  font-size: 20px;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 8px 20px rgba(0,0,0,0.55);
}

/* Slightly smaller on narrow screens to avoid occlusion */
@media (max-width: 640px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    right: 12px;
    bottom: 12px;
  }
}

/* Sidebar visuals: right-side panel + backdrop with desktop blur, mobile dark overlay */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 145;
}

/* On wider viewports we prefer a stronger blur effect behind the sidebar */
@media (min-width: 880px) {
  .sidebar-backdrop {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(8px) saturate(1.02);
    -webkit-backdrop-filter: blur(8px) saturate(1.02);
  }
}

.sidebar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar panel slides from right and uses a frosted/glass surface */
.sidebar-panel {
  position: fixed;
  right: 12px;
  top: 8vh;
  bottom: 8vh;
  width: min(420px, 92%);
  max-width: 420px;
  border-radius: 14px;
  transform: translateX(18px) scale(0.992);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms cubic-bezier(.18,.9,.32,1), opacity 220ms ease;
  z-index: 150;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(8,8,8,0.98), rgba(12,12,12,0.94));
  box-shadow: 0 36px 88px rgba(0,0,0,0.85);
  backdrop-filter: blur(8px) saturate(1.02);
  -webkit-backdrop-filter: blur(8px) saturate(1.02);
  /* make sure content that exceeds height becomes scrollable inside the panel */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* open state */
.sidebar-panel.is-open {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* When sidebar opens, softly dim/blur the site container if not mobile */
#site-scroll.sidebar-open {
  /* removed blur so the page remains visually sharp when sidebar opens;
     keep pointer-events disabled to avoid accidental interactions behind the panel */
  pointer-events: none; /* avoid accidental interactions */
}

/* Sidebar inner layout */
.sidebar-inner {
  position: relative;
  height: 100%;
  padding: 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
  min-height: 0; /* allow children to overflow correctly inside a flex column */
}

/* header inside sidebar with brand and short intro */
.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  margin-bottom: 6px;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
}
.sidebar-brand-text strong {
  display: block;
  font-size: 15px;
  line-height: 1;
}
.sidebar-brand-text small {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  margin-top: 2px;
}
.sidebar-intro {
  font-size: 12px;
  color: rgba(255,255,255,0.66);
  margin: 0;
}

/* scrollable content region so nav and contact remain inside panel */
.sidebar-scroll {
  overflow-y: auto;
  padding-right: 6px; /* give space for scrollbar */
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0; /* important for proper flexbox overflow */
}

/* compact grouping for nav to increase scanability */
.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.sidebar-nav .sidebar-link {
  padding: 12px 10px;
  border-radius: 10px;
  display: block;
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  transition: background 160ms ease, transform 120ms ease, box-shadow 140ms ease;
}
.sidebar-nav .sidebar-link:hover,
.sidebar-nav .sidebar-link:focus {
  background: rgba(255,255,255,0.03);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.6);
}

/* make contact block more compact and consistent */
.sidebar-contact {
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
  border: 1px solid rgba(255,255,255,0.02);
}

/* nice small scrollbar for the sidebar area */
.sidebar-scroll::-webkit-scrollbar {
  width: 8px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.01);
}
.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* close button inside sidebar */
.sidebar-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 160;
}

/* nav links */
.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 6px 2px 0 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-nav a.sidebar-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.94);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  transition: background 160ms ease, transform 140ms ease;
}
.sidebar-nav a.sidebar-link:hover,
.sidebar-nav a.sidebar-link:focus {
  background: rgba(255,255,255,0.03);
  transform: translateY(-1px);
}

/* divider */
.sidebar-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  margin: 6px 0;
  opacity: 0.8;
}

/* contact block */
.sidebar-contact {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
}
.sidebar-contact h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}
.sidebar-contact a {
  color: #aefbe8;
  text-decoration: none;
}
.sidebar-contact a:hover {
  text-decoration: underline;
}
.sidebar-contact .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  color: rgba(255,255,255,0.92);
}

/* Mobile adjustments: backdrop becomes a darker overlay and sidebar occupies full right edge */
@media (max-width: 880px) {
  .sidebar-backdrop {
    background: rgba(0,0,0,0.64);
    backdrop-filter: none;
  }
  .sidebar-panel {
    right: 0;
    top: 0;
    bottom: 0;
    width: 86%;
    max-width: none;
    border-radius: 0;
    transform: translateX(6px);
  }
  #site-scroll.sidebar-open {
    filter: none;
    pointer-events: auto;
  }

  /* make sidebar-scroll comfortable on mobile by adding extra padding to avoid gesture conflicts */
  .sidebar-inner {
    padding: 16px;
  }
  .sidebar-scroll {
    padding-right: 12px;
  }
}

/* --- 3D hero background container styling --- */
/* container that receives the Three.js canvas; positioned behind hero content and centered */
#hero-3d {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) scale(1) translateZ(0);
  pointer-events: none; /* allow interactions through to hero content */
  z-index: 0; /* behind textual hero content which uses z-index:1 */
  width: 420px;
  height: 420px;
  display: block;
  will-change: transform, opacity;
  opacity: 0.92;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.6));
  transition: transform 420ms cubic-bezier(.2,.9,.2,1), opacity 320ms ease;
}

/* ensure canvas inside the container fills it */
#hero-3d canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  mix-blend-mode: normal; /* render behind text without blending that may lift canvas over text */
  opacity: 0.98;
  filter: brightness(0.90); /* darken the rendered Earth by ~10% for subtler background presence */
}

/* Parallax fade/translate for hero foreground children as scroll progresses */
.hero > * {
  transition: transform 420ms cubic-bezier(.2,.9,.2,1), opacity 320ms ease;
  transform: translateY(0) translateZ(0);
  opacity: 1;
  will-change: transform, opacity;
}

/* utility class applied when hero content should be faded for parallax */
.hero-parallax-faded .hero-title,
.hero-parallax-faded .hero-pill,
.hero-parallax-faded .hero-subtitle,
.hero-parallax-faded .hero-divider,
.hero-parallax-faded .hero-actions,
.hero-parallax-faded .hero-footnote {
  opacity: 0;
  transform: translateY(-18px) scale(0.99);
  pointer-events: none;
}

/* place hero content above the 3D canvas */
.hero {
  position: relative;
  z-index: 2; /* ensure textual hero sits above the 3D canvas */
}
/* force all direct hero children (title, subtitle, pill, divider, CTAs, footnote) to sit above the 3D canvas */
.hero > * {
  position: relative;
  z-index: 3;
}

/* reduce visual intensity on very small screens */
@media (max-width: 820px) {
  #hero-3d {
    width: min(320px, 72vw);
    height: min(320px, 72vw);
    top: 50%;
  }
}

/* respect reduced motion: hide or stop heavy animation by lowering opacity & freezing transforms */
@media (prefers-reduced-motion: reduce) {
  #hero-3d {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
    filter: none;
  }
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}
.footer-company {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.footer-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.footer-columns {
  display: grid;
  /* more balanced and modular three-column layout for a neater footer */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 6px;
}

.footer-col h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}

/* Contact buttons: compact, touch-friendly icon buttons with label */
.footer-contact-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 6px;
  flex-wrap: wrap;
}

.footer-contact-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  color: rgba(255,255,255,0.94);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: transform 140ms ease, box-shadow 160ms ease, background 140ms ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 40px;
}

.footer-contact-button .material-icons {
  font-size: 18px;
  color: #aefbe8;
}

.footer-contact-button:hover,
.footer-contact-button:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  background: rgba(255,255,255,0.03);
  outline: none;
}

/* optional short label shown alongside icon — hidden on very small viewports */
.footer-contact-text {
  display: inline-block;
}

.footer-contact-compact {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.86);
  display: none;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  line-height: 1.55;
}
.footer-col p {
  margin: 4px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.86);
}

/* On very small widths, simplify to stacked compact contact lines */
@media (max-width: 420px) {
  .footer-contact-buttons { gap: 6px; }
  .footer-contact-text { display: none; } /* show only icons to save space */
  .footer-contact-compact { display: block; margin-top: 8px; }
}
.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.footer-note {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.66);
}

.footer-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed rgba(255,255,255,0.04);
  padding-top: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.64);
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-links a {
  color: rgba(174,251,232,0.96);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* small devices: stack columns */
@media (max-width: 880px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .footer-cta {
    align-items: stretch;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}