/* =============================================
   LUNOSAT — Design System
   Aesthetic: Luxury silent. Solid. Editorial.
   ============================================= */

/* ── 1. DESIGN TOKENS ── */
:root {
  /* Color */
  --bg:           #0B0515;
  --surface:      #110a1f;
  --surface-2:    #18102d;
  --surface-3:    #1e1535;
  --border:       rgba(229, 228, 226, 0.07);
  --border-hover: rgba(229, 228, 226, 0.13);
  --primary:      #3F126B;
  --accent:       #5E1FA0;
  --accent-dim:   #4A1780;
  --gold:         #D4AF37;
  --gold-dim:     rgba(212, 175, 55, 0.15);
  --text:         #E5E4E2;
  --text-muted:   #8e8c8b;
  --text-faint:   #443f3f;

  /* Typography */
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --tracking-tight: -0.03em;
  --tracking-snug:  -0.02em;
  --tracking-label: 0.1em;

  /* Spacing */
  --section-gap: 140px;
  --section-gap-sm: 80px;
  --col-gap: 48px;

  /* Borders & Shadows */
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 1px 4px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
  --shadow-hover:0 4px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-hover);

  /* Transitions */
  --transition: 0.3s ease;
}

/* ── 2. RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

/* ── 3. LAYOUT ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--section-gap) 0;
}

.section--sm {
  padding: var(--section-gap-sm) 0;
}

section:not(#hero) {
  border-top: 1px solid var(--border);
}

/* ── 4. TYPOGRAPHY UTILITIES ── */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.label--gold {
  color: var(--gold);
}

.display {
  font-size: clamp(52px, 7vw, 86px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: var(--tracking-snug);
  color: var(--text);
}

.h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

.body {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
}

.body--sm {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── 5. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}

.btn--primary:hover {
  background-color: var(--accent-dim);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background-color: var(--surface-2);
  border-color: var(--border-hover);
  color: var(--text);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

/* ── 6. NAV ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background-color var(--transition), border-bottom-color var(--transition);
}

#nav.scrolled {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

#nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--text-muted);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.nav-logo-mark::before {
  content: '';
  position: absolute;
  top: 5px; left: 5px; right: 5px; bottom: 5px;
  border: 1px solid var(--text-faint);
  border-radius: 50%;
}

.nav-logo-mark::after {
  content: '';
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.nav-logo-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-link:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-muted);
  transition: transform var(--transition), opacity var(--transition);
}

/* ── 7. HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

/* Video background */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* Reduce brightness so video is purely atmospheric */
  filter: brightness(0.32) saturate(0.8);
  /* No transitions — currentTime scrubbing handles motion */
  will-change: contents;
}

/* Gradient overlay: darker at bottom for text contrast */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(11, 5, 21, 0.72) 40%, transparent 100%),
    linear-gradient(to top,    rgba(11, 5, 21, 0.90) 0%,  transparent 40%),
    linear-gradient(to bottom, rgba(11, 5, 21, 0.60) 0%,  transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero-eyebrow-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-title {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 300;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 52px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-faint), transparent);
  animation: scroll-line 2.5s ease infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%{ transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%{ transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100%{ transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── 8. ABOUT ── */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--col-gap);
  align-items: start;
}

.about-index {
  position: sticky;
  top: 100px;
}

.about-number {
  font-size: 96px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--surface-3);
  margin-bottom: 16px;
  user-select: none;
}

.about-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.about-body {
  padding-top: 8px;
}

.about-headline {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 32px;
}

.about-text {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-divider {
  width: 40px;
  height: 1px;
  background: var(--border-hover);
  margin: 36px 0;
}

.about-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-detail-item .detail-value {
  font-size: 32px;
  font-weight: 200;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
}

.about-detail-item .detail-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── 9. SERVICES ── */
#services {
  overflow: clip;
  padding: 0;
}

#services > .container {
  max-width: none;
  padding: 0;
}

.services-header {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--section-gap) 40px 56px;
}

.services-orbit-shell {
  position: relative;
  height: 340vh;
}

.services-orbit-stage {
  --orbit-rotation-outer: -18deg;
  --orbit-rotation-middle: -8deg;
  --orbit-rotation-inner: 10deg;
  --planet-shift-y: 0px;
  --planet-scale: 1;
  --orbit-glow: 0.18;
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 50%, rgba(138, 43, 226, var(--orbit-glow)) 0%, rgba(138, 43, 226, 0) 36%),
    linear-gradient(180deg, rgba(18, 10, 33, 0.96) 0%, rgba(11, 5, 21, 0.99) 100%);
  isolation: isolate;
}

.services-orbit-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 5, 21, 0.78) 0%, rgba(11, 5, 21, 0.52) 34%, rgba(11, 5, 21, 0.1) 58%, rgba(11, 5, 21, 0) 76%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.015), transparent 32%);
  pointer-events: none;
  z-index: 0;
}

.services-orbit-layout {
  position: relative;
  z-index: 1;
  min-height: inherit;
  padding: 36px 0 48px;
}

.services-copy-panel {
  position: relative;
  z-index: 3;
  max-width: 460px;
  padding: 0 40px;
  margin-top: 24px;
}

.services-sequence {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.services-sequence-line {
  width: 38px;
  height: 1px;
  background: rgba(212, 175, 55, 0.62);
}

.services-sequence-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(229, 228, 226, 0.78);
}

.services-support {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(229, 228, 226, 0.52);
}

.services-orbit-scene {
  position: absolute;
  inset: 0;
}

.services-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.services-visual-caption {
  position: absolute;
  left: 48%;
  top: 18%;
  display: grid;
  gap: 8px;
  max-width: 200px;
  z-index: 2;
}

.service-card {
  --card-x: 0px;
  --card-y: 0px;
  --card-scale: 1;
  --card-rotate: 0deg;
  --card-opacity: 1;
  --card-blur: 0px;
  --card-brightness: 1;
  --card-z: 2;
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(280px, 29vw, 360px);
  min-height: 308px;
  padding: 40px 38px;
  border-radius: 26px;
  border: 1px solid rgba(229, 228, 226, 0.08);
  background: linear-gradient(180deg, rgba(19, 12, 32, 0.96), rgba(13, 8, 23, 0.88));
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform:
    translate3d(var(--card-x), var(--card-y), 0)
    translate(-50%, -50%)
    rotate(var(--card-rotate))
    scale(var(--card-scale));
  opacity: var(--card-opacity);
  filter: blur(var(--card-blur)) brightness(var(--card-brightness));
  pointer-events: none;
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    background 0.5s ease;
  z-index: var(--card-z);
  will-change: transform, opacity, filter;
}

.service-card::before {
  content: attr(data-index);
  position: absolute;
  top: 36px;
  right: 36px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(229, 228, 226, 0.34);
  letter-spacing: 0.08em;
}

.services-card-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.services-orbit-shell.is-enhanced .service-card.is-active,
.services-orbit-shell.is-static .service-card:first-child {
  pointer-events: auto;
  border-color: rgba(229, 228, 226, 0.1);
  background: linear-gradient(180deg, rgba(27, 17, 45, 0.98), rgba(18, 10, 31, 0.94));
  box-shadow:
    0 34px 88px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.services-visual-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.services-visual-text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(229, 228, 226, 0.48);
}

.services-orbit-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#services-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.92;
}

.service-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 32px;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-icon-orbit {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(229, 228, 226, 0.22);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.45s ease;
}

.service-icon-orbit::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(229, 228, 226, 0.58);
  border-radius: 50%;
  top: 50%;
  right: -3px;
  transform: translateY(-50%);
  transition: background-color 0.55s ease, transform 0.55s ease;
}

.service-title {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 14px;
  transition: color 0.45s ease;
}

.service-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(229, 228, 226, 0.68);
  max-width: 28ch;
  transition: color 0.45s ease;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(229, 228, 226, 0.46);
  transition: color 0.45s ease;
}

.services-orbit-shell.is-enhanced .service-card.is-active .service-icon,
.services-orbit-shell.is-static .service-card:first-child .service-icon {
  transform: scale(1.04);
}

.services-orbit-shell.is-enhanced .service-card.is-active .service-icon-orbit,
.services-orbit-shell.is-static .service-card:first-child .service-icon-orbit {
  border-color: rgba(212, 175, 55, 0.34);
}

.services-orbit-shell.is-enhanced .service-card.is-active .service-icon-orbit::after,
.services-orbit-shell.is-static .service-card:first-child .service-icon-orbit::after {
  background: rgba(212, 175, 55, 0.9);
  transform: translateY(-50%) scale(1.08);
}

.services-orbit-shell.is-enhanced .service-card.is-active:hover,
.services-orbit-shell.is-static .service-card:first-child:hover {
  border-color: rgba(229, 228, 226, 0.14);
  box-shadow:
    0 40px 88px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ── 10. TECHNOLOGY ── */
#technology .tech-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 120px;
  align-items: start;
}

.tech-left {
  position: sticky;
  top: 100px;
}

.tech-headline {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.tech-description {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tech-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  cursor: default;
  transition: border-color var(--transition);
}

.tech-item:first-child {
  border-top: 1px solid var(--border);
}

.tech-item:hover {
  border-color: var(--border-hover);
}

.tech-item-name {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}

.tech-item-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
}

.tech-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 120px;
}

.tech-bar {
  width: 100px;
  height: 2px;
  background: var(--surface-3);
  border-radius: 2px;
  overflow: hidden;
}

.tech-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 1s ease;
}

.tech-bar-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

/* ── 11. NUMBERS ── */
#numbers {
  background: var(--surface);
}

#numbers .numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.number-item {
  background: var(--surface);
  padding: 60px 40px;
  text-align: center;
}

.number-value {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 200;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.number-value sup {
  font-size: 0.45em;
  vertical-align: super;
  color: var(--gold);
  font-weight: 400;
}

.number-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.number-context {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-faint);
  margin-top: 8px;
  line-height: 1.5;
}

/* ── 12. CLIENTS ── */
#clients .clients-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

.clients-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.client-logo {
  height: 36px;
  width: auto;
  /* inverte o fill escuro para branco e aplica opacidade discreta */
  filter: invert(1) brightness(1) opacity(0.45);
  transition: filter var(--transition);
}

.client-logo:hover {
  filter: invert(1) brightness(1) opacity(0.75);
}

.clients-note {
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-faint);
  margin-top: 40px;
  letter-spacing: 0.03em;
}

/* ── 13. CONTACT / CTA ── */
#contact {
  text-align: center;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-label {
  margin-bottom: 24px;
}

.contact-headline {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.contact-description {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.contact-field-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-input {
  width: 100%;
  padding: 14px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px; /* ≥16px prevents iOS auto-zoom on focus */
  font-weight: 300;
  outline: none;
  transition: border-color var(--transition);
  box-sizing: border-box;
}

.contact-input::placeholder { color: var(--text-faint); }

.contact-input:focus {
  border-color: var(--border-hover);
}

.contact-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.contact-select option {
  background: var(--bg);
  color: var(--text);
}

.contact-input.is-invalid {
  border-color: #d46f6f;
}

.contact-feedback {
  min-height: 22px;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-faint);
}

.contact-feedback.is-success {
  color: #8bcf9d;
}

.contact-feedback.is-error {
  color: #e09d9d;
}

.contact-channels {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-channels-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-channels-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
}

.contact-channel-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.contact-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ── 14. FOOTER ── */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-link {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-faint);
  transition: color var(--transition);
}

.footer-link:hover { color: var(--text-muted); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  color: var(--text-faint);
  transition: color var(--transition);
}

.footer-social-link:hover {
  color: var(--text-muted);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
  text-align: right;
}

/* ── 11b. PROCESS ── */
#process .process-header {
  max-width: 600px;
  margin-bottom: 64px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--col-gap);
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.process-step {
  padding-top: 32px;
}

.process-number {
  font-size: 48px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--surface-3);
  margin-bottom: 20px;
  user-select: none;
}

.process-step-title {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.process-step-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
}

.process-step-duration {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

/* ── 11c. CASES ── */
#cases .cases-header {
  max-width: 600px;
  margin-bottom: 64px;
}

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

.case-card {
  border: 1px solid var(--border);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition);
}

.case-card:hover {
  border-color: var(--gold);
}

.case-segment {
  margin-bottom: 0;
}

.case-result {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  font-family: var(--font-display);
}

.case-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  flex: 1;
}

.case-client {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── 11d. TEAM ── */
#team .team-header {
  max-width: 600px;
  margin-bottom: 64px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
}

.team-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.team-bio {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── 11e. FAQ ── */
#faq .faq-header {
  max-width: 600px;
  margin-bottom: 64px;
}

.faq-list {
  max-width: 760px;
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 300;
  color: var(--text);
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 200;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  padding-bottom: 28px;
  max-width: 640px;
}

/* ── 15. ANIMATIONS ── */

/* General scroll-reveal (non-hero sections) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Hero-specific: animate in immediately on page load */
#hero .reveal {
  animation: hero-in 0.9s ease forwards;
}

#hero .reveal.reveal-delay-1 { animation-delay: 0.15s; }
#hero .reveal.reveal-delay-2 { animation-delay: 0.3s; }
#hero .reveal.reveal-delay-3 { animation-delay: 0.45s; }

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 16. RESPONSIVE ── */
@media (max-width: 960px) {
  :root {
    --section-gap: 100px;
    --col-gap: 40px;
  }

  .container { padding: 0 24px; }

  .services-header {
    padding: 100px 24px 36px;
  }

  .services-orbit-shell {
    height: auto;
  }

  .services-orbit-stage {
    position: relative;
    top: auto;
    min-height: auto;
    height: auto;
    padding: 0 0 28px;
    border-radius: 24px;
  }

  .services-orbit-layout {
    min-height: auto;
    padding: 28px 20px 0;
  }

  .services-copy-panel {
    max-width: none;
    padding: 0;
    margin-bottom: 28px;
  }

  .services-support {
    max-width: none;
  }

  .services-orbit-scene {
    position: relative;
    inset: auto;
    min-height: auto;
  }

  .services-card-layer {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .services-visual {
    position: relative;
    inset: auto;
    min-height: 240px;
    margin-bottom: 20px;
  }

  .services-visual-caption {
    left: 12px;
    top: 12px;
    max-width: 180px;
  }

  .services-orbit-bg {
    position: relative;
    min-height: 240px;
    width: 100%;
  }

  #technology .tech-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .tech-left { position: static; }

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

  #about .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-index { position: static; }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .footer-copy { text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-social { justify-content: center; }

  .nav-links { display: none; }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--bg);
    padding: 40px 24px;
    gap: 24px;
    border-top: 1px solid var(--border);
    z-index: 99;
  }

  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }

  .service-card {
    position: relative;
    width: 100%;
    min-height: auto;
    padding: 34px 28px;
    inset: auto;
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: auto;
    z-index: auto;
  }

  .service-card::before {
    top: 28px;
    right: 28px;
  }

  .service-desc {
    max-width: none;
  }

  .services-orbit-shell.is-enhanced .service-card,
  .services-orbit-shell.is-static .service-card,
  .services-orbit-shell.is-static .service-card:first-child {
    border-color: rgba(229, 228, 226, 0.1);
    background: linear-gradient(180deg, rgba(21, 13, 36, 0.96), rgba(17, 10, 29, 0.88));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --section-gap: 80px;
  }

  .services-header {
    padding: 80px 16px 28px;
  }

  #numbers .numbers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-cta { flex-direction: column; align-items: flex-start; }

  .clients-row { gap: 40px; }

  .services-orbit-stage {
    border-radius: 22px;
  }

  .services-orbit-layout {
    padding: 22px 16px 0;
  }

  .services-visual {
    min-height: 208px;
  }

  .services-visual-text {
    font-size: 11px;
    line-height: 1.5;
  }

  .services-visual-caption {
    max-width: 152px;
  }

  .service-card {
    padding: 30px 24px;
    border-radius: 22px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-step {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .process-steps {
    border-top: none;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    padding: 36px 28px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-question {
    font-size: 15px;
  }
}

/* ── 17. WIDE SCREENS (1440px+) ── */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  :root {
    --section-gap: 160px;
    --col-gap: 64px;
  }

  .hero-content {
    max-width: 820px;
  }

  .hero-orbital svg {
    width: 800px;
    height: 800px;
  }

  #technology .tech-grid {
    gap: 140px;
  }

  .process-number {
    font-size: 64px;
  }

  .faq-list {
    max-width: 900px;
  }

  #process .process-header,
  #team .team-header,
  #faq .faq-header {
    max-width: 720px;
  }
}

/* ── 18. ULTRAWIDE / 21:9 (2200px+) ── */
@media (min-width: 2200px) {
  .container {
    max-width: 1800px;
    padding: 0 80px;
  }

  :root {
    --section-gap: 200px;
    --section-gap-sm: 120px;
    --col-gap: 96px;
  }

  /* Hero: align phase text with the container's left edge */
  .hero-phase {
    left: calc((100vw - 1800px) / 2);
    padding-left: 80px;
    max-width: 740px;
    padding-top: 72px;
  }

  .hero-title {
    font-size: 112px;
  }

  .hero-phase-title {
    font-size: 52px;
  }

  .hero-subtitle {
    font-size: 20px;
    max-width: 620px;
  }

  .hero-content {
    max-width: 960px;
  }

  .hero-orbital svg {
    width: 960px;
    height: 960px;
    right: -5%;
  }

  /* Typography scale-up */
  .h2 {
    font-size: 56px;
  }

  .about-headline {
    font-size: 52px;
  }

  .tech-headline {
    font-size: 50px;
  }

  .contact-headline {
    font-size: 68px;
  }

  .about-number {
    font-size: 120px;
  }

  /* Services */
  .service-card {
    padding: 60px 52px;
  }

  /* Numbers */
  .number-item {
    padding: 80px 48px;
  }

  .number-value {
    font-size: 64px;
  }

  /* Technology */
  #technology .tech-grid {
    gap: 180px;
  }

  /* Process */
  .process-number {
    font-size: 80px;
  }

  .process-step-title {
    font-size: 22px;
  }

  .process-step-desc {
    font-size: 17px;
  }

  #process .process-header {
    max-width: 820px;
    margin-bottom: 80px;
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  #team .team-header {
    max-width: 820px;
    margin-bottom: 80px;
  }

  .team-name {
    font-size: 20px;
  }

  .team-bio {
    font-size: 16px;
  }

  .team-avatar {
    width: 100px;
    height: 100px;
  }

  /* FAQ */
  .faq-list {
    max-width: 1000px;
  }

  .faq-question {
    font-size: 19px;
    padding: 28px 0;
  }

  .faq-answer {
    font-size: 17px;
    max-width: 800px;
  }

  #faq .faq-header {
    max-width: 820px;
    margin-bottom: 80px;
  }

  /* Nav & Footer */
  #nav {
    height: 72px;
  }

  footer {
    padding: 64px 0;
  }
}

/* ── 19. REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .hero-phase {
    transition: none;
  }

  .hero-scroll-line {
    animation: none;
  }

  #hero-phase-0 .hero-phase-label,
  #hero-phase-0 .hero-title,
  #hero-phase-0 .hero-subtitle,
  #hero-phase-0 .hero-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-phase.active {
    opacity: 1;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── 20. PILLAR MODALS ── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 2, 12, 0.82);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.modal-backdrop.is-active {
  opacity: 1;
  pointer-events: all;
}

.pillar-modal {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.97) translateY(12px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pillar-modal.is-open {
  opacity: 1;
  pointer-events: all;
  transform: scale(1) translateY(0);
}

.modal-inner {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  background: #120A22;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 72px 80px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

.modal-inner::-webkit-scrollbar { width: 4px; }
.modal-inner::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 4px;
}

.modal-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 200;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
  z-index: 1;
  line-height: 1;
  font-family: var(--font);
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.modal-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.modal-headline {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
  margin-bottom: 36px;
}

.modal-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 640px;
}

.modal-section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.modal-bullets {
  list-style: none;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-bullets li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.5;
}

.modal-bullets li::before {
  content: '—';
  color: var(--accent);
  font-size: 13px;
  flex-shrink: 0;
}

.modal-impact {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  border-left: 1px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 40px;
  max-width: 560px;
}

.modal-closing {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: var(--tracking-snug);
  color: var(--text);
  margin-bottom: 40px;
}

.modal-cta {
  display: inline-flex;
}

/* Saiba mais underline animation */
.service-link {
  position: relative;
}

.service-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: rgba(229, 228, 226, 0.75);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-orbit-shell.is-enhanced .service-card.is-active .service-link::after,
.services-orbit-shell.is-static .service-card:hover .service-link::after {
  width: calc(100% - 18px); /* stop before the arrow icon */
}

/* Staggered entrance animation for modal content */
.pillar-modal.is-open .modal-label         { animation: modal-item-in 0.5s 0.10s ease both; }
.pillar-modal.is-open .modal-headline      { animation: modal-item-in 0.5s 0.18s ease both; }
.pillar-modal.is-open .modal-body          { animation: modal-item-in 0.5s 0.25s ease both; }
.pillar-modal.is-open .modal-section-label { animation: modal-item-in 0.5s 0.31s ease both; }
.pillar-modal.is-open .modal-bullets       { animation: modal-item-in 0.5s 0.36s ease both; }
.pillar-modal.is-open .modal-impact        { animation: modal-item-in 0.5s 0.42s ease both; }
.pillar-modal.is-open .modal-closing       { animation: modal-item-in 0.5s 0.47s ease both; }
.pillar-modal.is-open .modal-cta           { animation: modal-item-in 0.5s 0.52s ease both; }

@keyframes modal-item-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.modal-open { overflow: hidden; }

@media (max-width: 768px) {
  .modal-inner {
    padding: 48px 28px;
    max-height: 88vh;
  }

  .modal-headline { font-size: 28px; }

  .modal-close {
    top: 16px;
    right: 16px;
  }
}
