@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:           #07080f;
  --bg-2:         #0d0f1c;
  --bg-3:         #12152b;
  --glass:        rgba(255, 255, 255, 0.04);
  --glass-hover:  rgba(255, 255, 255, 0.07);
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(236, 72, 153, 0.4);

  --purple:       #ec4899;
  --purple-light: #f472b6;
  --blue:         #3b82f6;
  --blue-light:   #60a5fa;
  --cyan:         #06b6d4;
  --green:        #10b981;
  --orange:       #f59e0b;
  --red:          #ef4444;

  --text-1:       #ffffff;
  --text-2:       #cbd5e1;
  --text-3:       #94a3b8;

  --glow-purple:  0 0 40px rgba(236, 72, 153, 0.15);
  --glow-blue:    0 0 40px rgba(59, 130, 246, 0.15);

  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --font-sans:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --transition:   all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: linear-gradient(rgba(7, 8, 15, 0.93), rgba(7, 8, 15, 0.93)), url('/2.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(236, 72, 153, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 72, 153, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Top gradient glow */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--purple-light); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.container--wide {
  max-width: 1100px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 900px;
  z-index: 100;
  padding: 0.6rem 1.25rem;
  background: rgba(13, 15, 28, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
}

.nav__logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 0 14px var(--purple), 0 0 6px var(--blue);
  flex-shrink: 0;
  animation: navPulseGlow 2.5s infinite ease-in-out;
}

@keyframes navPulseGlow {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.2); filter: brightness(1.4); }
}

.nav__logo:hover { color: #fff; }

.nav__links {
  display: flex;
  list-style: none;
  gap: 0.35rem;
  align-items: center;
}

.nav__links a {
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav__links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav__links a.active {
  color: #fff;
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.1);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: var(--purple-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--purple-light) 50%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.35s ease-in-out;
  /* Reserva espaço para duas linhas (font-size * line-height * 2) */
  min-height: calc(clamp(2.25rem, 5vw, 3.5rem) * 2.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.typed-cursor {
  font-weight: 400;
  margin-left: 0.1rem;
  color: var(--purple-light);
  animation: typed-blink 0.9s infinite;
  display: inline-block;
}

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

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat__value {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-light), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-wrap {
  padding: 0 0 3rem;
  position: relative;
  z-index: 1;
}

.search-box {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  font-size: 1rem;
}

.search-input {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-1);
  transition: var(--transition);
  outline: none;
}

.search-input::placeholder { color: var(--text-3); }

.search-input:focus {
  border-color: rgba(236, 72, 153, 0.5);
  background: rgba(236, 72, 153, 0.06);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* ============================================================
   TAGS / FILTERS
   ============================================================ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.tag {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.tag:hover, .tag.active {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.4);
  color: var(--purple-light);
}

/* ============================================================
   SOLUTION CARDS GRID
   ============================================================ */
.solutions-section {
  padding: 0 0 5rem;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.25rem;
}

/* Card */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--glass-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-purple), 0 8px 32px rgba(0,0,0,0.3);
}

.card:hover::before { opacity: 1; }

.card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.card__icon--purple { background: rgba(236, 72, 153, 0.15); }
.card__icon--blue   { background: rgba(59, 130, 246, 0.15); }
.card__icon--cyan   { background: rgba(6, 182, 212, 0.15); }
.card__icon--green  { background: rgba(16, 185, 129, 0.15); }

.card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple-light);
}

.card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
}

.card__excerpt {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card__pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pill {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  color: var(--text-3);
  border: 1px solid rgba(255,255,255,0.06);
}

.card__arrow {
  color: var(--text-3);
  font-size: 0.9rem;
  transition: var(--transition);
}

.card:hover .card__arrow {
  color: var(--purple-light);
  transform: translateX(3px);
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-3);
  display: none;
}

.no-results.visible { display: block; }
.no-results__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* ============================================================
   SOLUTION PAGE LAYOUT
   ============================================================ */
.solution-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-3);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.back-link:hover { color: var(--purple-light); }

.solution-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: var(--purple-light);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.solution-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.solution-desc {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 620px;
  line-height: 1.7;
}

.solution-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 500;
}

.chip svg { opacity: 0.6; }

/* ============================================================
   CONTENT BLOCKS
   ============================================================ */
.content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-bottom: 5rem;
}

.block {
  margin-bottom: 2.5rem;
}

.block__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.block__label--symptom { color: var(--orange); }
.block__label--cause   { color: var(--red); }
.block__label--fix     { color: var(--green); }
.block__label--warn    { color: var(--orange); }
.block__label--note    { color: var(--blue-light); }

.block__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.block__body {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.75;
}

.block__body p + p { margin-top: 0.75rem; }

.block__body strong { color: var(--text-1); font-weight: 600; }

/* Alert boxes */
.alert {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.65;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.alert--warn {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fde68a;
}

.alert--info {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #bfdbfe;
}

.alert--success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
}

.alert__icon { flex-shrink: 0; font-size: 1rem; margin-top: 0.05rem; }

/* ============================================================
   CODE BLOCKS
   ============================================================ */
.code-block {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 1rem 0;
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.code-block__lang {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.copy-btn:hover {
  color: var(--text-1);
  border-color: rgba(236, 72, 153, 0.4);
  background: rgba(236, 72, 153, 0.08);
}

.copy-btn.copied {
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.4);
}

.code-block pre {
  padding: 1.25rem;
  overflow-x: auto;
  margin: 0;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #e2e8f0;
}

/* Syntax highlight tokens */
.token-comment  { color: #475569; font-style: italic; }
.token-keyword  { color: #f472b6; }
.token-string   { color: #86efac; }
.token-number   { color: #fb923c; }
.token-flag     { color: #67e8f9; }
.token-path     { color: #fde68a; }
.token-var      { color: #f9a8d4; }

/* Inline code */
code:not(.code-block code) {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  color: var(--purple-light);
  white-space: nowrap;
}

/* ============================================================
   STEP INDICATOR
   ============================================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1.25rem;
  position: relative;
  counter-increment: step;
  padding-bottom: 2rem;
}

.step:last-child { padding-bottom: 0; }

.step__line-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.4);
}

.step__connector {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(236,72,153,0.3), transparent);
  margin: 0.5rem 0;
  min-height: 1.5rem;
}

.step:last-child .step__connector { display: none; }

.step__content {
  flex: 1;
  padding-top: 0.15rem;
  min-width: 0;
}

.step__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.5rem;
}

.step__body {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 2.5rem 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.footer__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer__copy a { color: var(--text-3); }
.footer__copy a:hover { color: var(--purple-light); }

.footer__links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer__links a:hover { color: var(--purple-light); }

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  body {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero__stats { gap: 1.5rem; }
  .solutions-grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }

  /* Disable expensive visual effects on mobile to make scrolling buttery smooth */
  body::before, body::after {
    display: none;
  }
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(13, 15, 28, 0.96);
  }
}
