:root {
  /* Brand palette — Manual de Marca SBTECH 2026 */
  --navy: #16224F;
  --blue: #1E5A9E;
  --teal: #2FB6B0;
  --ink: #10182B;
  --cream: #F5F1E8;
  --white: #FFFFFF;

  --color-text: #1c2436;
  --color-text-soft: #5a6478;

  --gradient-signature: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--teal) 100%);

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 24px 60px -24px rgba(16, 24, 43, 0.35);
  --shadow-card: 0 12px 32px -16px rgba(16, 24, 43, 0.22);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Eyebrow label */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 auto 14px;
  width: fit-content;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--gradient-signature);
}

.eyebrow--light {
  color: var(--teal);
}

/* Header */
.header {
  background: rgba(245, 241, 232, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(22, 34, 79, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(22, 34, 79, 0.08), 0 12px 24px -16px rgba(22, 34, 79, 0.14);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

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

.brand__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.brand__tagline {
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 20;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  transform-origin: center;
}

.hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger--open span:nth-child(2) { opacity: 0; }
.hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav menu */
.nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(22, 34, 79, 0.08);
  box-shadow: 0 16px 32px -16px rgba(22, 34, 79, 0.2);
  padding: 8px 0;
  z-index: 10;
}

.nav--open {
  display: flex;
}

.nav__link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 24px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible {
  background: var(--cream);
  color: var(--teal);
}

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 150px 0 130px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__watermark {
  position: absolute;
  right: -6%;
  bottom: -12%;
  width: min(52vw, 620px);
  opacity: 0.16;
  z-index: -2;
  pointer-events: none;
}

.hero__code {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px 0;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 46% 42% at 50% 46%, transparent 35%, black 85%);
  -webkit-mask-image: radial-gradient(ellipse 46% 42% at 50% 46%, transparent 35%, black 85%);
  pointer-events: none;
}

.hero__code-row {
  white-space: nowrap;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  opacity: 0.2;
  will-change: transform;
}

.hero__code-row:nth-child(odd) {
  color: var(--blue);
  animation: drift-left 90s linear infinite;
}

.hero__code-row:nth-child(even) {
  color: var(--teal);
  animation: drift-right 100s linear infinite;
}

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

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

.hero__inner {
  position: relative;
}

.hero__inner h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero__inner h1 .gradient-text {
  background-image: var(--gradient-signature);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.cursor {
  display: inline-block;
  width: 0.5ch;
  margin-left: 2px;
  background: var(--teal);
  color: transparent;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero__inner p {
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.72);
}

/* Buttons */
.button {
  display: inline-block;
  background-image: var(--gradient-signature);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-position 0.4s var(--ease);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 14px 30px -8px rgba(30, 90, 158, 0.55);
}

/* Sections */
.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--white);
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 24px;
  text-align: center;
}

.section > .container > p:not(.eyebrow):not(.ia-subtitulo) {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 1.08rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.card {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 34px 28px 32px;
  border: 1px solid rgba(22, 34, 79, 0.08);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-image: var(--gradient-signature);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--color-text-soft);
}

/* Case */
.case {
  position: relative;
  max-width: 720px;
  margin: 48px auto 0;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(22, 34, 79, 0.08);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.case::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background-image: var(--gradient-signature);
}

.case h3 {
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.case__tech {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

/* Contato */
.contato {
  text-align: center;
}

.contato p {
  margin-bottom: 28px;
}

/* Fundadores */
.founders {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.founder {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  border: 1px solid rgba(22, 34, 79, 0.08);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.25s var(--ease);
}

.founder:hover {
  transform: translateY(-4px);
}

.founder__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: var(--gradient-signature) padding-box, var(--gradient-signature) border-box;
  margin-bottom: 16px;
}

.founder h3 {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 10px;
}

.founder__role {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.founder a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.founder a:hover {
  text-decoration: underline;
}

/* IA com responsabilidade */
.section--ia {
  background: var(--ink);
  color: #fff;
}

.section--ia h2 {
  color: #fff;
}

.ia-subtitulo {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 56px;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ia-pilares {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.ia-pilar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.ia-pilar:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.ia-icone {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(47, 182, 176, 0.12);
  border: 1px solid rgba(47, 182, 176, 0.32);
}

.ia-icone__glyph {
  font-size: 1.4rem;
}

.ia-pilar h3 {
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
}

.ia-pilar p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.5);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
}

.footer__logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__code-row {
    animation: none;
  }

  .cursor {
    animation: none;
    opacity: 1;
  }
}
