:root {
  --background: oklch(0.14 0.015 165);
  --foreground: oklch(0.98 0.005 160);
  --surface: oklch(0.18 0.02 165);
  --card: oklch(0.18 0.02 165);
  --primary: oklch(0.84 0.22 158);
  --primary-foreground: oklch(0.12 0.02 165);
  --primary-glow: oklch(0.9 0.25 158);
  --muted-foreground: oklch(0.7 0.02 160);
  --border: color-mix(in oklab, white 8%, transparent);
  --input: oklch(0.2 0.02 165);
  --destructive: oklch(0.65 0.22 25);
  --shadow-glow: 0 0 40px -8px color-mix(in oklab, var(--primary) 60%, transparent);
  --shadow-glow-strong: 0 0 60px -10px color-mix(in oklab, var(--primary) 80%, transparent);
  --shadow-card: 0 10px 40px -10px oklch(0 0 0 / 0.6);
  --radius: 0.875rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, color-mix(in oklab, var(--primary) 18%, transparent), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, color-mix(in oklab, var(--primary) 10%, transparent), transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

.page { position: relative; min-height: 100vh; overflow: hidden; }

.ambient-glow {
  pointer-events: none;
  position: absolute;
  top: -160px;
  left: 50%;
  width: 1000px;
  height: 600px;
  transform: translateX(-50%);
  border-radius: 9999px;
  opacity: 0.6;
  filter: blur(60px);
  background: radial-gradient(closest-side, color-mix(in oklab, var(--primary) 35%, transparent), transparent);
}

.site-header {
  position: relative; z-index: 10;
  display: flex; justify-content: center;
  padding: 20px 16px 4px;
}
.ideweb-logo { height: 40px; width: auto; }

.hero {
  position: relative; z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  padding: 12px 16px 40px;
  display: grid;
  gap: 24px;
  align-items: center;
}

.badge {
  display: none;
  align-items: center; gap: 8px;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: var(--primary);
  box-shadow: var(--shadow-glow);
}

.hero-text { text-align: center; }

.headline {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.headline-desktop { display: none; }
.headline-mobile { display: inline; }
.hl {
  color: var(--primary);
  text-shadow: 0 0 24px color-mix(in oklab, var(--primary) 60%, transparent);
}

.subheadline {
  margin: 12px auto 0;
  max-width: 36rem;
  font-size: 14px;
  color: var(--muted-foreground);
}
.subheadline strong { color: var(--foreground); font-weight: 600; }

.logos-mobile { margin-top: 16px; }
.logos-desktop { display: none; }

.logos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.logo-cell {
  display: flex; align-items: center; justify-content: center;
  height: 80px;
  border: 1px solid color-mix(in oklab, white 8%, transparent);
  background: color-mix(in oklab, var(--card) 30%, transparent);
  border-radius: 12px;
  padding: 0 8px;
}
.logo-cell img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.hero-form { display: flex; flex-direction: column; gap: 24px; }

.lead-form {
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 60%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  border-radius: calc(var(--radius) + 12px);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 16px;
}

.field { display: flex; flex-direction: column; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.lead-form input,
.lead-form select {
  width: 100%;
  border-radius: 12px;
  background: var(--input);
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 16px;
  color: var(--foreground);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}
.lead-form input::placeholder { color: color-mix(in oklab, var(--muted-foreground) 70%, transparent); }
.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  background: var(--background);
}

.grid-2 { display: grid; gap: 16px; }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
}
.select-wrap .chev {
  pointer-events: none;
  position: absolute;
  right: 16px; top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  color: var(--muted-foreground);
}

.cta-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.2s ease;
  font-family: inherit;
}
.cta-btn:hover { box-shadow: var(--shadow-glow-strong); filter: brightness(1.1); }
.cta-btn:active { transform: scale(0.99); }
.cta-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-error { color: var(--destructive); font-size: 14px; margin: 0; }
.form-note { text-align: center; font-size: 12px; color: var(--muted-foreground); margin: 0; }

.site-footer {
  position: relative; z-index: 10;
  border-top: 1px solid color-mix(in oklab, white 8%, transparent);
  padding: 32px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .site-header { padding: 40px 16px 8px; }
  .ideweb-logo { height: 48px; }

  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 64px 16px 80px;
  }
  .hero-text { text-align: left; }

  .badge { display: inline-flex; }

  .headline {
    font-size: 3rem;
    line-height: 1.15;
    margin-top: 20px;
  }
  .headline-mobile { display: none; }
  .headline-desktop { display: inline; }

  .subheadline {
    margin: 24px 0 0;
    font-size: 20px;
    max-width: 36rem;
  }

  .logos-mobile { display: none; }
  .logos-desktop { display: block; }

  .logos-grid { gap: 12px; }
  .logo-cell { height: 96px; }
  .logo-cell img { max-height: 64px; }

  .lead-form { padding: 32px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .headline { font-size: 3.75rem; }
}

/* ===== Success page (obrigado / desqualificado) ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  position: relative;
  overflow: hidden;
}
.success-page .ambient-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 700px;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  opacity: 0.5;
  filter: blur(64px);
  background: radial-gradient(closest-side, color-mix(in oklab, var(--primary) 30%, transparent), transparent);
  pointer-events: none;
  z-index: 0;
}
.success-header {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}
.success-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 36rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 60%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}
@media (min-width: 768px) {
  .success-card { padding: 48px; }
}
.success-check {
  margin: 0 auto 24px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--primary) 15%, transparent);
  box-shadow: var(--shadow-glow);
}
.success-check svg { width: 32px; height: 32px; color: var(--primary); }
.success-title {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .success-title { font-size: 2.25rem; line-height: 1.15; }
}
.success-text {
  margin: 20px auto 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.success-cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: all 0.2s ease;
}
.success-cta:hover { box-shadow: var(--shadow-glow-strong); filter: brightness(1.1); }
.success-cta svg { width: 20px; height: 20px; }

/* ===== Success Stories ===== */
.success-stories {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}
.success-title {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}
@media (min-width: 768px) {
  .success-stories { padding-bottom: 6rem; }
  .success-title { font-size: 3rem; margin-bottom: 3rem; }
}
.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .videos-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--border, #2a2a2a) 60%, transparent);
  background: #000;
  box-shadow: 0 10px 40px -10px color-mix(in oklab, var(--primary) 30%, transparent);
}
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}
.play-btn:hover { background: rgba(0, 0, 0, 0.3); }
.play-btn svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary-foreground, #0b0f10);
  background: var(--primary);
  border-radius: 9999px;
  padding: 1rem;
  box-sizing: content-box;
  box-shadow: 0 0 30px color-mix(in oklab, var(--primary) 60%, transparent);
  transition: transform 0.2s ease;
}
.play-btn:hover svg { transform: scale(1.05); }
.video-card.playing .play-btn { display: none; }
