/* ==========================================================================
   Tier Tech — Design System
   prototype.css
   ==========================================================================

   Tested contrast combinations (WCAG 2.1 AA):
     - Navy #0A1F35 on White #FFFFFF         ~ 17:1   PASS (AAA)
     - White #FFFFFF on Navy #0A1F35         ~ 17:1   PASS (AAA)
     - Cyan-dark #0F8FAB on Off-white #F4F7FA ~ 4.6:1  PASS (AA normal text)
     - Cyan #1FB6D6 on Navy #0A1F35          ~ 6.1:1  PASS (AA normal text)
     - Cyan-light #5FCFE8 on Navy #0A1F35    ~ 8.8:1  PASS (AAA)
     - Gray-700 #334155 on Off-white #F4F7FA ~ 10.7:1 PASS (AAA)
     - Gray-300 #94A3B8 on Navy #0A1F35      ~ 5.1:1  PASS (AA normal text)

   Rule: raw --tt-cyan is reserved for dark backgrounds. For text on
   off-white surfaces, always use --tt-accent-on-light (= --tt-cyan-dark).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --tt-navy:       #0A1F35;
  --tt-navy-dark:  #061425;
  --tt-cyan:       #1FB6D6;
  --tt-cyan-light: #5FCFE8;
  --tt-cyan-dark:  #0F8FAB;
  --tt-off-white:  #F4F7FA;
  --tt-gray-300:   #94A3B8;
  --tt-gray-700:   #334155;
  --tt-white:      #FFFFFF;

  /* Semantic */
  --tt-bg:              var(--tt-navy);
  --tt-bg-alt:          var(--tt-off-white);
  --tt-text:            var(--tt-white);
  --tt-text-on-light:   var(--tt-navy);
  --tt-text-muted:      var(--tt-gray-300);
  --tt-accent:          var(--tt-cyan);
  --tt-accent-hover:    var(--tt-cyan-light);
  --tt-accent-on-light: var(--tt-cyan-dark);
  --tt-border:          rgba(255, 255, 255, 0.08);
  --tt-border-on-light: rgba(10, 31, 53, 0.10);

  /* Type */
  --tt-font-heading: 'Sora', system-ui, -apple-system, Segoe UI, sans-serif;
  --tt-font-body:    'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --tt-fs-h1:        clamp(2.25rem, 2.25rem + 2vw, 3.5rem);
  --tt-fs-h2:        clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
  --tt-fs-h3:        clamp(1.25rem, 1.125rem + 0.75vw, 1.5rem);
  --tt-fs-body:      1rem;
  --tt-fs-body-lg:   1.125rem;
  --tt-fs-caption:   0.8125rem;
  --tt-lh-heading:   1.15;
  --tt-lh-body:      1.6;

  /* Space */
  --tt-space-1: 0.25rem;
  --tt-space-2: 0.5rem;
  --tt-space-3: 0.75rem;
  --tt-space-4: 1rem;
  --tt-space-5: 1.5rem;
  --tt-space-6: 2rem;
  --tt-space-7: 3rem;
  --tt-space-8: 4rem;
  --tt-space-9: 6rem;

  /* Radius & shadow */
  --tt-radius-sm:   6px;
  --tt-radius-md:   10px;
  --tt-radius-lg:   16px;
  --tt-radius-pill: 999px;
  --tt-shadow-sm:   0 1px 2px rgba(6, 20, 37, 0.12);
  --tt-shadow-md:   0 8px 24px rgba(6, 20, 37, 0.18);
  --tt-shadow-lg:   0 20px 40px rgba(6, 20, 37, 0.28);
  --tt-shadow-glow: 0 0 0 1px rgba(31, 182, 214, 0.35), 0 8px 24px rgba(31, 182, 214, 0.20);

  /* Motion */
  --tt-ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --tt-dur-fast: 150ms;
  --tt-dur-base: 250ms;
  --tt-dur-slow: 400ms;

  /* Container */
  --tt-container-max: 1200px;
  --tt-container-px:  clamp(1rem, 4vw, 2rem);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --tt-dur-fast: 0ms;
    --tt-dur-base: 0ms;
    --tt-dur-slow: 0ms;
  }
}

/* --------------------------------------------------------------------------
   Reset enxuto + base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--tt-font-body);
  font-size: var(--tt-fs-body-lg);
  line-height: var(--tt-lh-body);
  color: var(--tt-text);
  background: var(--tt-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--tt-font-heading);
  line-height: var(--tt-lh-heading);
  font-weight: 700;
  margin: 0 0 var(--tt-space-4);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--tt-fs-h1); }
h2 { font-size: var(--tt-fs-h2); }
h3 { font-size: var(--tt-fs-h3); font-weight: 600; }

p {
  margin: 0 0 var(--tt-space-4);
  color: var(--tt-text-muted);
}

a {
  color: var(--tt-accent);
  text-decoration: none;
}

a:hover { color: var(--tt-accent-hover); }

img, svg {
  display: block;
  max-width: 100%;
}

/* Focus visível (acessibilidade) */
:focus-visible {
  outline: 2px solid var(--tt-cyan-light);
  outline-offset: 3px;
  border-radius: var(--tt-radius-sm);
}

/* --------------------------------------------------------------------------
   Container & Section base
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--tt-container-max);
  margin-inline: auto;
  padding-inline: var(--tt-container-px);
}

.section {
  padding-block: clamp(var(--tt-space-7), 8vw, var(--tt-space-9));
  position: relative;
}

.section--on-light {
  background: var(--tt-off-white);
  color: var(--tt-text-on-light);
}

.section--on-light p { color: var(--tt-gray-700); }

/* --------------------------------------------------------------------------
   Skip-link (visually hidden until focused)
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  left: var(--tt-space-4);
  top: -100%;
  z-index: 9999;
  background: var(--tt-cyan);
  color: var(--tt-navy);
  padding: 0.5rem 1rem;
  border-radius: var(--tt-radius-sm);
  font-family: var(--tt-font-body);
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: top var(--tt-dur-fast) var(--tt-ease), opacity var(--tt-dur-fast) var(--tt-ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: var(--tt-space-3);
  opacity: 1;
  pointer-events: auto;
  color: var(--tt-navy);
}

/* --------------------------------------------------------------------------
   No-JS fallback: reveal elements should be visible when JS is disabled
   -------------------------------------------------------------------------- */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--tt-space-2);
  padding: 0.9rem 1.5rem;
  border-radius: var(--tt-radius-md);
  font-family: var(--tt-font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background var(--tt-dur-base) var(--tt-ease),
    color var(--tt-dur-base) var(--tt-ease),
    border-color var(--tt-dur-base) var(--tt-ease),
    transform var(--tt-dur-fast) var(--tt-ease),
    box-shadow var(--tt-dur-base) var(--tt-ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--tt-cyan);
  color: var(--tt-navy);
}

.btn--primary:hover {
  background: var(--tt-cyan-light);
  color: var(--tt-navy);
  box-shadow: var(--tt-shadow-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--tt-white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--secondary:hover {
  border-color: var(--tt-cyan);
  color: var(--tt-cyan);
}

.btn--on-light.btn--secondary {
  color: var(--tt-navy);
  border-color: rgba(10, 31, 53, 0.25);
}

.btn--on-light.btn--secondary:hover {
  border-color: var(--tt-cyan-dark);
  color: var(--tt-cyan-dark);
}

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

.btn .chevron {
  width: 16px;
  height: 16px;
  transition: transform var(--tt-dur-base) var(--tt-ease);
}

.btn:hover .chevron { transform: translateX(2px); }

/* --------------------------------------------------------------------------
   Badges & Chips
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--tt-space-2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--tt-radius-pill);
  background: rgba(31, 182, 214, 0.10);
  color: var(--tt-cyan-light);
  font-size: var(--tt-fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(31, 182, 214, 0.25);
}

.badge--on-light {
  background: rgba(10, 31, 53, 0.06);
  color: var(--tt-cyan-dark);
  border-color: rgba(10, 31, 53, 0.12);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: var(--tt-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tt-border);
  color: var(--tt-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.section--on-light .chip {
  background: rgba(10, 31, 53, 0.04);
  border-color: var(--tt-border-on-light);
  color: var(--tt-gray-700);
}

/* --------------------------------------------------------------------------
   Icon Circle
   -------------------------------------------------------------------------- */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}

.icon-circle--on-dark {
  background: rgba(31, 182, 214, 0.12);
  color: var(--tt-cyan);
  border: 1px solid rgba(31, 182, 214, 0.35);
}

.icon-circle--on-light {
  background: var(--tt-white);
  color: var(--tt-cyan-dark);
  border: 1px solid var(--tt-border-on-light);
  box-shadow: var(--tt-shadow-sm);
}

.icon-circle--filled-navy {
  background: var(--tt-navy);
  color: var(--tt-white);
  border: none;
}

.icon-circle--lg { width: 72px; height: 72px; }
.icon-circle--sm { width: 40px; height: 40px; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius-lg);
  padding: var(--tt-space-6);
  transition:
    transform var(--tt-dur-base) var(--tt-ease),
    border-color var(--tt-dur-base) var(--tt-ease),
    box-shadow var(--tt-dur-base) var(--tt-ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 182, 214, 0.35);
  box-shadow: var(--tt-shadow-lg);
}

.section--on-light .card {
  background: var(--tt-white);
  border-color: var(--tt-border-on-light);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 500ms var(--tt-ease),
    transform 500ms var(--tt-ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Chevrons (motivo gráfico)
   -------------------------------------------------------------------------- */
.section-divider {
  display: flex;
  justify-content: center;
  padding-block: var(--tt-space-5);
  color: rgba(31, 182, 214, 0.35);
}

.section-divider svg {
  width: 32px;
  height: 32px;
}

.chevron-pulse {
  display: inline-block;
  animation: ttChevronPulse 1.8s ease-in-out infinite;
}

@keyframes ttChevronPulse {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50%      { transform: translateX(4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .chevron-pulse { animation: none; }
}

/* --------------------------------------------------------------------------
   Section header helper (centered eyebrow + H2 + intro paragraph)
   Used across Problem→Solution, Pillars, Process, Stack, Why, CTA
   -------------------------------------------------------------------------- */
.section-header {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--tt-space-6);
  text-align: center;
}

.section-header .badge {
  margin-bottom: var(--tt-space-4);
}

.section-header h2 {
  line-height: 1.15;
  margin-bottom: var(--tt-space-3);
}

.section-header p {
  color: var(--tt-text-muted);
  margin-bottom: 0;
}

.section--on-light .section-header p {
  color: var(--tt-gray-700);
}

/* --------------------------------------------------------------------------
   Accent utility (used in hero title spans)
   -------------------------------------------------------------------------- */
.accent { color: var(--tt-cyan); }

/* ==========================================================================
   Icon Library — inline SVG convention
   --------------------------------------------------------------------------
   All icons are embedded as inline <svg> in the HTML to allow currentColor
   styling and single-file delivery. The naming scheme below is the canonical
   set used across the design; add new icons to the same family with the same
   rules.

   Icon set (canonical names):
     - chevron-right          chevron-down          chevron-double-right
     - cloud-aws              cloud-azure           cloud-gcp
     - devops                 shield (security)
     - chart-finops           monitor-noc
     - diagnosis (lupa)       planning (blueprint)
     - execution (deploy)     sustain (radar)
     - medalha                target                ajuste
     - check-circle           alert-circle          flash
     - phone                  mail
     - linkedin               instagram             whatsapp

   SVG authoring rules:
     - viewBox="0 0 24 24"
     - stroke="currentColor"  fill="none"
     - stroke-width="1.5"
     - stroke-linecap="round"
     - stroke-linejoin="round"
     - aria-hidden="true" when decorative
     - role="img" + <title> when semantically meaningful

   Size via the .ic utility class below; color follows currentColor so
   icons inherit from their parent (e.g. inside .icon-circle--on-light
   the icon will render in --tt-cyan-dark).
   ========================================================================== */
.ic {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
}

.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 32px; height: 32px; }

/* ==========================================================================
   Site Header & Navigation
   ==========================================================================
   Fixed header that sits transparent over the hero and becomes a blurred
   navy slab with a subtle border once the page has scrolled past 40px.
   Mobile nav is an off-canvas panel triggered by the hamburger button.
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition:
    background var(--tt-dur-base) var(--tt-ease),
    box-shadow var(--tt-dur-base) var(--tt-ease),
    border-color var(--tt-dur-base) var(--tt-ease);
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tt-space-5);
  min-height: 72px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--tt-space-2);
  color: var(--tt-white);
  text-decoration: none;
}

.site-header__brand img {
  height: 40px;
  width: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Desktop nav ---------------------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--tt-space-5);
}

.site-nav__link {
  color: var(--tt-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--tt-dur-base) var(--tt-ease);
}

.site-nav__link:hover {
  color: var(--tt-cyan);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.1rem;
  height: 1px;
  background: var(--tt-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tt-dur-base) var(--tt-ease);
}

.site-nav__link:hover::after {
  transform: scaleX(1);
}

/* --- Hamburger toggle (hidden on desktop) --------------------------------- */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius-sm);
  padding: 0;
  cursor: pointer;
  color: var(--tt-white);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform var(--tt-dur-base) var(--tt-ease),
    opacity var(--tt-dur-base) var(--tt-ease);
}

/* --- Scrolled state (after 40px scroll) ----------------------------------- */
.site-header.is-scrolled {
  background: rgba(6, 20, 37, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--tt-border);
  box-shadow: var(--tt-shadow-md);
}

/* --- Mobile breakpoint ---------------------------------------------------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--tt-navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: calc(72px + var(--tt-space-5)) var(--tt-space-5) var(--tt-space-6);
    gap: var(--tt-space-2);
    border-left: 1px solid var(--tt-border);
    box-shadow: var(--tt-shadow-lg);
    transform: translateX(100%);
    transition: transform var(--tt-dur-base) var(--tt-ease);
    z-index: 90;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__link {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--tt-border);
    font-size: 1rem;
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav .btn {
    justify-content: center;
    margin-top: var(--tt-space-3);
  }
}

/* --- Hamburger → X animation when menu is open ---------------------------- */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Body scroll lock while nav is open ----------------------------------- */
body.is-nav-open {
  overflow: hidden;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.section--hero {
  min-height: min(86vh, 820px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--tt-space-9) + 64px);
  padding-bottom: var(--tt-space-9);
  overflow: hidden;
  position: relative;
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; }
.hero__title {
  font-size: var(--tt-fs-h1);
  margin-top: var(--tt-space-4);
  margin-bottom: var(--tt-space-5);
}
.hero__subtitle {
  font-size: var(--tt-fs-body-lg);
  max-width: 62ch;
  color: var(--tt-text-muted);
  margin-bottom: var(--tt-space-6);
}
.hero__subtitle strong { color: var(--tt-white); font-weight: 700; }
.hero__cta { display: flex; gap: var(--tt-space-4); flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--tt-space-5);
  transform: translateX(-50%);
  color: var(--tt-cyan-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(31,182,214,0.2);
}
/* Animated dot grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(31,182,214,0.18) 1px, transparent 1.6px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 60%, transparent 100%);
  animation: ttGridPulse 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/* Hero 3D wireframe logo */
.hero-logo3d {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: clamp(280px, 40vw, 520px);
  height: clamp(280px, 40vw, 520px);
  z-index: 0;
  pointer-events: none;
  perspective: 800px;
}
.hero-logo3d__svg {
  width: 100%;
  height: 100%;
  color: var(--tt-cyan);
  opacity: 0.12;
  animation: ttLogo3dFloat 12s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes ttLogo3dFloat {
  0%, 100% {
    transform: rotateX(8deg) rotateY(-6deg) translateY(0);
    opacity: 0.12;
  }
  25% {
    transform: rotateX(4deg) rotateY(4deg) translateY(-8px);
    opacity: 0.15;
  }
  50% {
    transform: rotateX(-4deg) rotateY(8deg) translateY(-4px);
    opacity: 0.12;
  }
  75% {
    transform: rotateX(2deg) rotateY(-4deg) translateY(-10px);
    opacity: 0.14;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo3d__svg { animation: none; opacity: 0.1; transform: rotateX(6deg) rotateY(-4deg); }
}
@media (max-width: 900px) {
  .hero-logo3d { right: -10%; width: 260px; height: 260px; opacity: 0.7; }
}
@media (max-width: 640px) {
  .hero-logo3d { display: none; }
}
@keyframes ttGridPulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-grid { animation: none; opacity: 0.75; }
}
/* Pulse override for chevron-pulse used vertically on hero scroll indicator */
.hero__scroll.chevron-pulse { animation-name: ttChevronPulseY; }
@keyframes ttChevronPulseY {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%      { transform: translate(-50%, 4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll.chevron-pulse { animation: none; }
}

@media (max-width: 640px) {
  .section--hero { min-height: auto; padding-top: calc(var(--tt-space-8) + 72px); padding-bottom: var(--tt-space-8); }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__scroll { display: none; }
}

/* ==========================================================================
   Stats Strip
   ========================================================================== */
.section--stats { padding-block: var(--tt-space-7); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--tt-space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.stat { text-align: center; padding: var(--tt-space-5); }
.stat__value {
  display: block;
  font-family: var(--tt-font-heading);
  font-size: clamp(2.25rem, 2rem + 1.5vw, 3rem);
  font-weight: 700;
  color: var(--tt-cyan-dark);
  line-height: 1;
  margin-bottom: var(--tt-space-2);
  letter-spacing: -0.02em;
}
.stat__label { font-size: var(--tt-fs-body); color: var(--tt-gray-700); }

/* Divider chevrons between stats on wide layouts (pure cosmetic) */
@media (min-width: 900px) {
  .stat { position: relative; }
  .stat + .stat::before {
    content: '';
    position: absolute;
    left: calc(var(--tt-space-5) * -1);
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 48px;
    background: rgba(10,31,53,0.1);
  }
}

/* ==========================================================================
   Problem → Solution
   ========================================================================== */
.ps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tt-space-6); }
.ps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: var(--tt-space-4);
}
.ps-side { display: flex; gap: var(--tt-space-4); align-items: flex-start; }
.ps-side__body { flex: 1; }
.ps-side__body h3 { margin-bottom: var(--tt-space-2); }
.ps-side__body p { margin-bottom: 0; }
.ps-side--solution { border-color: rgba(31,182,214,0.28); }
.ps-side--solution .ps-side__body h3 { color: var(--tt-cyan-light); }
.ps-chevron {
  width: 32px;
  height: 32px;
  color: var(--tt-cyan);
  align-self: center;
  opacity: 0.75;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .ps-row { grid-template-columns: 1fr; }
  .ps-chevron { transform: rotate(90deg); justify-self: center; width: 24px; height: 24px; }
}

/* ==========================================================================
   Pillars (O que fazemos)
   ========================================================================== */
.pillars-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--tt-space-5);
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--tt-space-3);
}
.pillar h3 { margin-top: var(--tt-space-2); margin-bottom: var(--tt-space-2); color: var(--tt-navy); }
.pillar > p { color: var(--tt-gray-700); margin-bottom: var(--tt-space-3); }
.pillar__capabilities {
  list-style: none;
  padding: 0;
  margin: var(--tt-space-3) 0;
  display: grid;
  gap: var(--tt-space-2);
}
.pillar__capabilities li {
  display: flex;
  gap: var(--tt-space-2);
  align-items: flex-start;
  color: var(--tt-gray-700);
  font-size: 0.95rem;
  line-height: 1.45;
}
.pillar__capabilities li::before {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 6px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 6l6 6-6 6' stroke='%231FB6D6' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.pillar__stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tt-space-2);
  margin-top: auto;
}
@media (min-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Process (4 fases)
   ========================================================================== */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: var(--tt-space-4);
  counter-reset: phase;
}
.process-phase {
  display: flex;
  flex-direction: column;
  gap: var(--tt-space-3);
  padding: var(--tt-space-5);
}
.process-phase__num {
  font-family: var(--tt-font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tt-cyan);
  line-height: 1;
  letter-spacing: -0.02em;
}
.process-phase h3 { margin-bottom: var(--tt-space-1); }
.process-phase p { margin-bottom: 0; }
.process-link {
  width: 28px;
  height: 28px;
  color: rgba(31, 182, 214, 0.55);
  align-self: center;
}
@media (max-width: 900px) {
  .process-list {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .process-link {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* ==========================================================================
   Stack Técnico
   ========================================================================== */
.stack-groups {
  display: grid;
  gap: var(--tt-space-7);
}
.stack-group__title {
  color: var(--tt-navy);
  margin-bottom: var(--tt-space-4);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.stack-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--tt-space-4);
  align-items: center;
}
.stack-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--tt-space-4);
  background: var(--tt-white);
  border: 1px solid var(--tt-border-on-light);
  border-radius: var(--tt-radius-md);
  min-height: 88px;
  transition:
    border-color var(--tt-dur-base) var(--tt-ease),
    transform var(--tt-dur-base) var(--tt-ease),
    box-shadow var(--tt-dur-base) var(--tt-ease);
}
.stack-logos li:hover {
  border-color: var(--tt-cyan);
  transform: translateY(-3px);
  box-shadow: var(--tt-shadow-sm);
}
.stack-logos img {
  max-height: 36px;
  width: auto;
  transition: transform var(--tt-dur-base) var(--tt-ease);
}
.stack-logos li:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   Why (Diferenciais)
   ========================================================================== */
.why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--tt-space-5);
}
.why-card { display: flex; flex-direction: column; gap: var(--tt-space-3); }
.why-card h3 { margin-top: var(--tt-space-2); margin-bottom: var(--tt-space-2); }
.why-card > p { color: var(--tt-text-muted); margin-bottom: 0; }
.why-card strong { color: var(--tt-cyan-light); font-weight: 700; }
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.section--cta {
  background:
    radial-gradient(circle at 50% 0%, rgba(31,182,214,0.18), transparent 55%),
    var(--tt-navy-dark);
  text-align: center;
  overflow: hidden;
}
.cta__inner {
  max-width: 720px;
  margin-inline: auto;
}
.cta__inner .badge { margin-bottom: var(--tt-space-4); }
.cta__inner h2 { margin-bottom: var(--tt-space-3); }
.cta__inner p { margin-bottom: var(--tt-space-6); }
.cta__inner .hero__cta { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--tt-navy-dark);
  padding-block: var(--tt-space-8) var(--tt-space-5);
  color: var(--tt-text);
  border-top: 1px solid var(--tt-border);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1fr;
  gap: var(--tt-space-7);
  margin-bottom: var(--tt-space-7);
}
.site-footer__brand p { color: var(--tt-text-muted); margin-top: var(--tt-space-3); font-size: 0.95rem; }
.site-footer__brand img { height: 56px; width: auto; }
.site-footer h4 {
  font-size: var(--tt-fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tt-gray-300);
  font-family: var(--tt-font-body);
  font-weight: 700;
  margin-bottom: var(--tt-space-3);
}
.site-footer__col a,
.site-footer__col li {
  display: flex;
  align-items: center;
  gap: var(--tt-space-2);
  color: var(--tt-white);
  padding-block: 0.3rem;
  font-size: 0.95rem;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col a { text-decoration: none; }
.site-footer__col a:hover { color: var(--tt-cyan); }
.site-footer__col li .ic { color: var(--tt-gray-300); }
.site-footer__col li a { padding-block: 0; }
.site-footer__social {
  display: inline-flex;
  gap: var(--tt-space-3);
  margin-top: var(--tt-space-2);
}
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--tt-border);
  color: var(--tt-white);
  padding: 0;
  transition:
    border-color var(--tt-dur-base) var(--tt-ease),
    color var(--tt-dur-base) var(--tt-ease),
    background var(--tt-dur-base) var(--tt-ease);
}
.site-footer__social a:hover { border-color: var(--tt-cyan); color: var(--tt-cyan); }
.site-footer__legal {
  border-top: 1px solid var(--tt-border);
  padding-top: var(--tt-space-5);
  color: var(--tt-gray-300);
  text-align: center;
}
.site-footer__legal small { font-size: var(--tt-fs-caption); }

@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: var(--tt-space-5); }
}

/* ==========================================================================
   Overflow safety net (Task 15)
   ========================================================================== */
html, body { overflow-x: hidden; max-width: 100%; }
main { overflow-x: hidden; }

/* Mobile hero tightening */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--tt-space-3); }
  .stat { padding: var(--tt-space-3); }
  .stat__value { font-size: 2rem; }
  .process-phase { padding: var(--tt-space-4); }
  .ps-side { flex-direction: column; align-items: flex-start; }
}

/* Wider breakpoint tuning */
@media (min-width: 1440px) {
  .container { padding-inline: clamp(1rem, 3vw, 2.5rem); }
}
