:root {
  /* Paleta */
  --c-blue: #5299D3;
  --c-teal: #0B5563;
  --c-sky: #A2BCE0;
  --c-lilac: #BEB8EB;
  --c-slate: #5E5C6C;

  --bg: #f6f7fb;
  --bg-soft: #eef1f8;
  --ink: #1d2230;
  --ink-soft: #4a4d5c;
  --line: rgba(94, 92, 108, 0.28);
  --word: rgba(94, 92, 108, 0.30);

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --grad: linear-gradient(100deg, var(--c-teal) 0%, var(--c-blue) 45%, var(--c-lilac) 100%);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Topbar ---------- */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 6vw, 240px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
}

/* degradê da paleta girando em círculo, recortado no formato do texto */
.brand,
.grad-spin {
  background: conic-gradient(from var(--brand-angle) at 50% 50%,
    #5299D3, #0B5563, #A2BCE0, #BEB8EB, #5E5C6C, #5299D3);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: brand-spin 6s linear infinite;
}

@property --brand-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes brand-spin {
  to { --brand-angle: 360deg; }
}

.brand-m {
  font-family: var(--font-mono);
  font-size: 1.6em;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-slate);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-blue);
  box-shadow: 0 0 0 0 rgba(82, 153, 211, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(82, 153, 211, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(82, 153, 211, 0); }
  100% { box-shadow: 0 0 0 0 rgba(82, 153, 211, 0); }
}

/* ---------- Navegação ---------- */
.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav-link {
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.topnav-link:hover,
.topnav-link.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.8);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(640px, 78vh);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px dashed var(--line);
  padding: 96px 16px 72px;
}

.domain-field {
  position: absolute;
  inset: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 22px;
  user-select: none;
}

/* suaviza as bordas de cima e de baixo (camadas por cima, mais leve que mask-image) */
.domain-field::before,
.domain-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.domain-field::before {
  top: 0;
  height: 70px;
  background: linear-gradient(to bottom, var(--bg), rgba(246, 247, 251, 0));
}

.domain-field::after {
  bottom: 0;
  height: 50px;
  background: linear-gradient(to top, var(--bg), rgba(246, 247, 251, 0));
}

.domain-row {
  display: flex;
  white-space: nowrap;
  gap: 22px;
  height: 22px;
}

.domain-row span {
  color: var(--word);
  /* rastro: ao sair do mouse a cor apaga em 1s */
  transition: color 1s ease;
}

/* acende na hora; o negrito fica durante o rastro (.trail) e sai no fim */
.domain-row span.lit,
.domain-row span.trail {
  font-weight: 600;
}

.domain-row span.lit {
  transition: none;
}

.domain-row span.twinkle {
  color: rgba(94, 92, 108, 0.62);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  pointer-events: none;
}

/* halo claro atrás do texto para manter a leitura */
.hero-content::before {
  content: "";
  position: absolute;
  inset: -40px -80px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(246, 247, 251, 0.92) 30%, rgba(246, 247, 251, 0) 72%);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
}

h1 {
  margin: 26px 0 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 18px 0 0;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-soft);
}

.hero-search {
  margin-top: 34px;
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(162, 188, 224, 0.22), 0 12px 30px -18px rgba(11, 85, 99, 0.35);
  pointer-events: auto; /* o resto do hero deixa o mouse passar para as palavras */
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hero-search:focus-within {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 5px rgba(82, 153, 211, 0.25), 0 12px 30px -18px rgba(11, 85, 99, 0.35);
}

.hero-search-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  cursor: text;
}

.hero-search .search-icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--c-slate);
  stroke-width: 2;
  stroke-linecap: round;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--c-teal);
  font: 15px var(--font-mono);
}

.hero-search input::-webkit-search-cancel-button { display: none; }

/* sugestões "digitadas" aparecem por cima do campo vazio; somem ao focar */
.hero-search-field:not(:focus-within) input::placeholder { color: transparent; }
.hero-search input::placeholder { color: #9a9dab; }

.typed-ghost {
  position: absolute;
  left: 37px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 15px;
  white-space: nowrap;
  pointer-events: none;
}

.hero-search-field:focus-within .typed-ghost,
.hero-search-field.has-value .typed-ghost { display: none; }

.typed { color: var(--c-teal); }

.caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-left: 2px;
  vertical-align: -3px;
  background: var(--c-blue);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.soon {
  flex-shrink: 0;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--c-teal);
  color: #fff;
  font: 13px var(--font-mono);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s;
}

.soon:hover { background: var(--c-blue); }

/* ---------- Intro ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1120px) minmax(0, 1fr);
}

.intro-side {
  position: relative;
  min-height: 100%;
  border-right: 1px dashed var(--line);
  background-image: radial-gradient(rgba(94, 92, 108, 0.28) 1px, transparent 1.2px);
  background-size: 9px 9px;
}

.intro-side--right {
  border-right: 0;
  border-left: 1px dashed var(--line);
}

.sec-label {
  position: absolute;
  top: -9px;
  right: 18px;
  padding: 0 6px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-slate);
}

.intro-side--right .sec-label { right: auto; left: 18px; }

.intro-body {
  padding: 88px clamp(16px, 5vw, 64px) 104px;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--c-teal);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  border-right: 3px solid var(--c-blue);
  box-shadow: 5px 0 0 -1px var(--c-sky);
}

.welcome {
  margin: 28px 0 0;
  max-width: 880px;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.welcome strong {
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ---------- Últimas publicações ---------- */
.intro--latest { border-top: 1px dashed var(--line); }
.intro--latest .intro-body { padding-top: 72px; }

.latest-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.latest-title {
  margin: 22px 0 0;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.latest-all { margin-top: 0; }

.cards.cards--latest { margin-top: 32px; }

/* código secreto aceito: a página "apaga" antes de ir para o painel */
html.code-ok body {
  opacity: 0;
  filter: blur(4px);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 22px clamp(16px, 6vw, 240px);
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--c-slate);
}

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

/* ---------- Responsivo ---------- */
@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; }
  .intro-side { display: none; }
  .intro-body { padding: 64px 16px 72px; }
  .domain-field { font-size: 12px; }
  .hero { min-height: 600px; }
}

@media (max-width: 560px) {
  .topbar .status-pill { display: none; }
}

@media (max-width: 420px) {
  .brand { font-size: 15px; }
  .status-pill { padding: 6px 10px; font-size: 11px; }
  .hero-search input, .typed-ghost { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot, .caret, .brand, .grad-spin { animation: none; }
  .domain-row span { transition: none; }
}
