@import url('variables.css');

/* --- RESET & BASICS --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
}

/* --- HEADER SIMÉTRICO & LOGO CENTRALIZADA --- */
.header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.header.scrolled {
  background: rgba(8, 8, 8, 0.96);
  border-color: rgba(255, 255, 255, 0.15);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 3 Colunas Simétricas */
.header-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-center {
  flex: 0 0 auto;
  text-align: center;
}

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.logo {
  font-size: 23px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #ffffff;
}

.header-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-cta {
  padding: 0 16px;
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.header-cta:hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.header-cta svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* --- HERO SECTION COM AMBIENT GLOW --- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 130px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #cccccc;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(36px, 8.5vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #ffffff;
}

.hero-description {
  max-width: 740px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

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

.btn {
  width: 100%;
  padding: 0 22px;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.btn-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.hero-proof {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.hero-proof svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
}

.scroll-cue {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-cue svg {
  width: 12px;
  height: 12px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(4px); }
  60% { transform: translateY(2px); }
}

/* --- SEÇÕES & HEADERS --- */
.section {
  padding: 90px 0;
}

.section-header {
  margin-bottom: 36px;
}

.section-label {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.12;
  letter-spacing: -1.3px;
}

/* --- COMPARATIVO (VIÉS COGNITIVO & AUTORIDADE) --- */
.comparison {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.comparison-card {
  padding: 32px;
  position: relative;
}

/* Card Legado (Efeito Apagado) */
.comparison-card.legacy {
  opacity: 0.65;
  border-color: rgba(255, 255, 255, 0.04);
}

/* Card StargoLab (Destaque Imponente) */
.comparison-card.featured {
  opacity: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(18, 18, 18, 1) 100%), #121212;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px -10px rgba(255, 255, 255, 0.12);
}

.badge-featured {
  position: absolute;
  top: -12px;
  right: 24px;
  background: #ffffff;
  color: #000000;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
}

.card-title {
  margin: 0 0 24px;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}

.feature-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.feature-list svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
  stroke-width: 2;
}

.negative { color: #666666; }
.positive { color: #ffffff; font-weight: 500; }

/* --- GRID DE DEMOS (CARDS INTERATIVOS) --- */
.demos {
  display: grid;
  gap: 16px;
}

.demo-card {
  position: relative;
  overflow: hidden;
}

.demo-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8);
}

.demo-preview {
  height: 190px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, #171717 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(#171717 1px, transparent 1px) 0 0 / 32px 32px,
    #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-window {
  width: 80%;
  height: 72%;
  border: 1px solid #303030;
  border-radius: 6px;
  background: #111111;
  padding: 12px;
}

.preview-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
}

.preview-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4a4a4a;
}

.preview-line {
  height: 5px;
  margin-bottom: 8px;
  border-radius: 2px;
  background: #282828;
}

.preview-line.short { width: 45%; }
.preview-line.medium { width: 68%; }
.preview-line.long { width: 90%; }

.demo-body {
  padding: 22px;
}

.demo-tag {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.demo-title {
  margin: 8px 0 16px;
  font-size: 19px;
}

.demo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 11px;
}

.demo-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.demo-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.demo-card:hover .demo-link svg {
  transform: translateX(4px);
}

/* --- PROCESSO (OL SEMÂNTICO) --- */
.process {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--border);
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-step {
  padding: 28px;
  background: var(--surface-card);
}

.step-number {
  margin-bottom: 22px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
}

.step-title {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.step-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* --- FINAL CTA COM AMBIENT GLOW --- */
.final-cta {
  padding: 100px 0 70px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse at bottom, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.final-inner {
  max-width: 780px;
}

.final-title {
  margin: 0;
  font-size: clamp(32px, 7vw, 60px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.final-description {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.final-button {
  margin-top: 32px;
  width: auto;
}

/* --- FOOTER --- */
footer {
  padding: 30px 0 45px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
}

.footer-email {
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}

.footer-email:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- MEDIA QUERIES & RESPONSIVIDADE --- */
@media (max-width: 639px) {
  .demos {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 12px;
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .demo-card {
    flex: 0 0 85vw;
    scroll-snap-align: center;
  }

  /* No mobile, ajusta o botão do header pra ficar compacto */
  .header-cta span {
    display: none;
  }
}

@media (min-width: 640px) {
  .container {
    width: min(calc(100% - 48px), var(--max));
  }

  .actions {
    flex-direction: row;
  }

  .btn {
    width: auto;
  }

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

  .demos {
    grid-template-columns: repeat(3, 1fr);
  }

  .process {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .section {
    padding: 110px 0;
  }

  .comparison-card {
    padding: 36px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}