/* ===== Design tokens ===== */
:root {
  --g-950: #0b0d0f;
  --g-900: #121519;
  --g-850: #171b20;
  --g-800: #1e232a;
  --g-700: #2a313a;
  --g-600: #3d4750;
  --g-500: #5e6970;
  --g-400: #8a939b;
  --g-300: #b3bac0;
  --g-200: #d6dadd;
  --g-100: #eef0f1;

  --paper: #f7f5f1;
  --paper-dim: #efebe4;
  --paper-line: #e1dcd3;

  --accent-200: #f1dff6;
  --accent-300: #daa5e9;
  --accent-400: #9d28bd;
  --accent-500: #7f1d9a;
  --accent-600: #641579;
  --accent-700: #480f57;

  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", Arial, sans-serif;

  --radius-sm: 0.4rem;
  --radius-md: 0.65rem;
  --radius-lg: 1.1rem;

  --shadow-md: 0 12px 32px -14px rgba(11, 13, 15, 0.35);
  --shadow-lg: 0 24px 48px -20px rgba(11, 13, 15, 0.45);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --container-w: 1180px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--g-800);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 600; }
svg { display: block; }

:focus-visible {
  outline: 2.5px solid var(--accent-400);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 1000;
  background: var(--g-950);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { left: 1rem; }

.icon {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ===== Layout helpers ===== */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

.section { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section--light { background: var(--paper); color: var(--g-800); }
.section--tint { background: var(--paper-dim); color: var(--g-800); border-top: 1px solid var(--paper-line); }
.section--dark { background: var(--g-900); color: var(--g-300); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: var(--accent-300); }

.section__title {
  font-size: clamp(1.75rem, 1rem + 2.6vw, 2.5rem);
  color: var(--g-950);
  max-width: 36rem;
}
.section__title--light { color: var(--g-100); }

.section__lead-group { display: grid; gap: 1.1rem; max-width: 42rem; margin-top: 1.25rem; }
.section__lead {
  font-size: 1.05rem;
  color: var(--g-700);
  max-width: 42rem;
  margin-top: 1.1rem;
}
.section__lead--light { color: var(--g-300); }

.grid { display: grid; gap: 1.5rem; margin-top: 2.75rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--4 { grid-template-columns: 1fr; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--primary {
  background: var(--accent-400);
  color: var(--g-100);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--accent-500); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: var(--accent-300);
  border: 1.5px solid var(--accent-600);
}
.btn--outline:hover { border-color: var(--accent-300); transform: translateY(-2px); }
.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), padding-block 0.25s var(--ease);
}
.site-header--scrolled {
  background: rgba(18, 21, 25, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.5);
  padding-block: 0.75rem;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo { display: inline-flex; align-items: center; gap: 0.7rem; }
.logo__icon { height: 38px; width: auto; }
.logo__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--g-100);
}
.logo__text strong { font-weight: 700; letter-spacing: 0.01em; }
.logo__text span {
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-300);
  margin-top: 0.15rem;
}
.site-footer .logo__icon { height: 30px; }
.site-footer .logo__text { font-size: 0.92rem; }

.nav__list { display: flex; gap: 2rem; }
.nav__link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--g-200);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--accent-300); border-color: var(--accent-400); }

.site-header__actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
}
.nav-toggle__bar { width: 22px; height: 2px; background: var(--g-100); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--g-900);
    border-bottom: 1px solid var(--g-700);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 0; padding: 0.5rem clamp(1.25rem, 5vw, 2rem) 1.25rem; }
  .nav__list li { border-top: 1px solid var(--g-800); }
  .nav__list li:first-child { border-top: none; }
  .nav__link { display: block; padding-block: 0.85rem; border-bottom: none !important; }
  .site-header__actions .btn--sm { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--g-950);
  color: var(--g-100);
  padding-top: clamp(8rem, 18vw, 11rem);
  padding-bottom: clamp(5rem, 10vw, 7rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; opacity: 0.9; }
.hero__bg svg { width: 100%; height: 100%; }
.hero__line { fill: none; stroke-width: 2; }
.hero__line--soft { stroke: var(--g-500); opacity: 0.35; }
.hero__line--accent {
  stroke: var(--accent-400);
  opacity: 0.65;
  stroke-dasharray: 10 8;
  animation: dash-flow 14s linear infinite;
}
.hero__node { fill: var(--g-400); opacity: 0.6; }
.hero__node--accent { fill: var(--accent-300); opacity: 0.9; }
@keyframes dash-flow { to { stroke-dashoffset: -360; } }

.hero__inner { position: relative; max-width: 42rem; }
.hero__title { font-size: clamp(2.25rem, 1.2rem + 4.5vw, 3.75rem); letter-spacing: -0.01em; margin-bottom: 1.25rem; }
.hero__subtitle { font-size: 1.1rem; color: var(--g-300); max-width: 38rem; }
.hero__subtitle strong { color: var(--accent-300); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 2.75rem; }
.hero__badges li {
  font-size: 0.85rem;
  color: var(--g-400);
  padding-left: 1.1rem;
  position: relative;
}
.hero__badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-500);
}

/* ===== Cards ===== */
.card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--accent-200);
  color: var(--accent-700);
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.1rem; color: var(--g-950); margin-bottom: 0.5rem; }
.card p { font-size: 0.92rem; color: var(--g-600); }

.card--ghost { background: transparent; border-color: var(--paper-line); box-shadow: none; }
.card--ghost h3 { color: var(--g-900); }
.card--ghost p { color: var(--g-600); }

/* ===== Produtos / Tech Marble ===== */
.produtos__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
@media (max-width: 940px) { .produtos__inner { grid-template-columns: 1fr; } }

.feature-list { display: grid; gap: 0.8rem; margin-top: 1.75rem; }
.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  color: var(--g-200);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent-400);
  transform: rotate(45deg);
}

.produtos__inner .btn { margin-top: 2.1rem; }
.produtos__nota {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--g-500);
  max-width: 32rem;
  border-top: 1px solid var(--g-800);
  padding-top: 1.25rem;
}

/* ===== Mockup ===== */
.mockup {
  background: var(--g-850);
  border: 1px solid var(--g-700);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup__titlebar { display: flex; align-items: center; gap: 0.4rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--g-700); }
.mockup__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g-600); }
.mockup__crumb { margin-left: 0.75rem; font-size: 0.75rem; color: var(--g-400); }
.mockup__body { display: grid; grid-template-columns: 9.5rem 1fr; min-height: 16rem; }
.mockup__sidebar { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 0.75rem; border-right: 1px solid var(--g-700); }
.mockup__navitem { font-size: 0.8rem; color: var(--g-400); padding: 0.5rem 0.65rem; border-radius: var(--radius-sm); }
.mockup__navitem.is-active { background: var(--g-800); color: var(--accent-300); font-weight: 600; }
.mockup__main { padding: 1.25rem; display: flex; flex-direction: column; gap: 1.5rem; }
.mockup__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.mockup__stat {
  background: var(--g-800);
  border: 1px solid var(--g-700);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mockup__stat-label { font-size: 0.68rem; color: var(--g-400); }
.mockup__stat-value { font-family: var(--font-display); font-size: 1.2rem; color: var(--g-100); font-weight: 600; }
.mockup__chart { background: var(--g-800); border: 1px solid var(--g-700); border-radius: var(--radius-md); padding: 0.9rem; flex: 1; display: flex; flex-direction: column; }
.mockup__chart-label { font-size: 0.7rem; color: var(--g-400); margin-bottom: 0.75rem; }
.mockup__bars { display: flex; align-items: flex-end; gap: 0.4rem; flex: 1; min-height: 4.5rem; }
.mockup__bar { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent-300), var(--accent-600)); }
.mockup__bar:nth-child(1) { height: 45%; }
.mockup__bar:nth-child(2) { height: 65%; }
.mockup__bar:nth-child(3) { height: 38%; }
.mockup__bar:nth-child(4) { height: 82%; }
.mockup__bar:nth-child(5) { height: 55%; }
.mockup__bar:nth-child(6) { height: 70%; }
.mockup__bar:nth-child(7) { height: 92%; }
.mockup__caption { text-align: center; font-size: 0.8rem; color: var(--g-500); margin-top: 1rem; font-style: italic; }

@media (max-width: 560px) {
  .mockup__body { grid-template-columns: 1fr; min-height: auto; }
  .mockup__sidebar { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--g-700); }
}

/* ===== Timeline ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-400), var(--paper-line));
}
.timeline__step { position: relative; }
.timeline__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-400);
  color: var(--g-100);
  font-family: var(--font-display);
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin-bottom: 1.1rem;
}
.timeline__step h3 { font-size: 1.05rem; color: var(--g-950); margin-bottom: 0.4rem; }
.timeline__step p { font-size: 0.9rem; color: var(--g-600); }

@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 2.25rem; }
  .timeline::before { top: 0; bottom: 0; left: 1.1rem; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent-400), var(--paper-line)); }
}

/* ===== Brand quote ===== */
.brand-quote {
  margin-top: 3.5rem;
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  border-left: 3px solid var(--accent-400);
  background: var(--paper);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  max-width: 46rem;
}
.brand-quote p { font-size: 1.15rem; font-family: var(--font-display); color: var(--g-900); line-height: 1.45; }
.brand-quote footer { margin-top: 1rem; font-size: 0.85rem; color: var(--g-600); font-weight: 600; }

/* ===== Contato ===== */
.contato__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 4.5rem); }
@media (max-width: 940px) { .contato__inner { grid-template-columns: 1fr; } }

.contato__direto { display: grid; gap: 0.85rem; margin-top: 2.25rem; }
.contato__item-group { display: flex; align-items: center; gap: 0.6rem; }
.contato__item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--g-100);
  padding: 0.65rem 0;
  transition: color 0.2s var(--ease);
}
.contato__item:hover { color: var(--accent-300); }
.contato__item-group .contato__item { flex: 1; padding-right: 0; }
.contato__whats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--g-800);
  color: var(--accent-300);
  border: 1px solid var(--g-700);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.contato__whats:hover { background: var(--g-700); border-color: var(--accent-500); }
.contato__whats .icon { width: 1.2rem; height: 1.2rem; }

/* ===== Form ===== */
.form { background: var(--g-850); border: 1px solid var(--g-700); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow-lg); }
.form__nota { font-size: 0.82rem; color: var(--g-400); margin-bottom: 1.5rem; }
.form__nota a { color: var(--accent-300); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-600); }
.form__field { margin-bottom: 1.1rem; display: grid; gap: 0.4rem; }
.form__field label { font-size: 0.82rem; font-weight: 600; color: var(--g-300); }
.form__field input, .form__field textarea {
  background: var(--g-900);
  border: 1px solid var(--g-600);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--g-100);
  resize: vertical;
}
.form__field input::placeholder, .form__field textarea::placeholder { color: var(--g-500); }
.form__field input:focus, .form__field textarea:focus { border-color: var(--accent-400); }
.form .btn { margin-top: 0.5rem; }

/* ===== Footer ===== */
.site-footer { background: var(--g-950); color: var(--g-400); padding-top: clamp(3rem, 6vw, 4rem); }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--g-800);
}
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } }

.site-footer__brand p { margin-top: 0.9rem; font-size: 0.88rem; max-width: 22rem; }
.site-footer__links { display: flex; flex-direction: column; gap: 0.65rem; }
.site-footer__links a { font-size: 0.88rem; transition: color 0.2s var(--ease); }
.site-footer__links a:hover { color: var(--accent-300); }
.site-footer__social { display: flex; gap: 0.75rem; height: fit-content; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--g-800);
  color: var(--g-300);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social-icon:hover { color: var(--accent-300); border-color: var(--accent-600); }
.social-icon .icon { width: 1.15rem; height: 1.15rem; }

.site-footer__bottom {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 1.5rem clamp(1.25rem, 5vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.site-footer__signature { color: var(--g-500); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
