/* Hikari — Design System (preto + azul-claro) */

:root {
  --radius: 0.75rem;
  --background: #0a0b0d;
  --foreground: #ffffff;
  --card: #14161a;
  --primary: #87cefa;
  --primary-foreground: #0b1620;
  --primary-soft: #bfe9ff;
  --secondary: #1b1f26;
  --secondary-foreground: #bfe9ff;
  --muted-foreground: #a0a5ad;
  --success: #4ade80;
  --border: #262b33;
  --shadow-glow: 0 0 40px -12px rgba(135, 206, 250, 0.45);
  --shadow-card-hover: 0 12px 40px -16px rgba(135, 206, 250, 0.3);
  --max: 72rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

::selection {
  background: rgba(135, 206, 250, 0.35);
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 1.5rem;
  }
}
.page {
  flex: 1;
}
.narrow {
  max-width: 48rem;
}
.section {
  padding: 4rem 0;
}
.center {
  text-align: center;
}
.mt-sm {
  margin-top: 0.75rem;
}
.mt {
  margin-top: 1.25rem;
}
.mt-lg {
  margin-top: 2.5rem;
}
.mt-xl {
  margin-top: 4rem;
}

/* ---------- Tipografia ---------- */
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
}
.hero-title {
  font-size: 3rem;
}
@media (min-width: 640px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  .hero-title {
    font-size: 3.75rem;
  }
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
}
.lead {
  color: var(--primary-soft);
  font-size: 1.125rem;
}
.muted {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}
.text-gradient {
  background: linear-gradient(120deg, var(--primary-soft), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pill {
  display: inline-block;
  border: 1px solid rgba(135, 206, 250, 0.25);
  background: rgba(135, 206, 250, 0.06);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.max-prose {
  max-width: 40rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.85rem;
  padding: 0.9rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    filter 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.btn svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.4;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-glow);
}
.btn-ghost {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: rgba(135, 206, 250, 0.4);
  color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.btn-lg {
  padding: 1.05rem 2.4rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 1rem;
}
.btn-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .btn-row {
    flex-direction: row;
  }
}

/* ---------- Cards e grids ---------- */
.grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
.cols-2 {
  grid-template-columns: 1fr;
}
.cols-3,
.cols-4 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .cols-2,
  .cols-3,
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(135, 206, 250, 0.4);
}
.card.flat:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}
.panel {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2rem;
}
@media (min-width: 640px) {
  .panel {
    padding: 2.5rem;
  }
}
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: rgba(135, 206, 250, 0.12);
  color: var(--primary);
  margin-bottom: 1rem;
}
.icon-box.lg {
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
}
.icon-box.lg svg {
  width: 2rem;
  height: 2rem;
}
.row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chip {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.85rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(135, 206, 250, 0.4);
}
.chip svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--primary);
}
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: repeat(2, 1fr);
  }
}
.list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}
.list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}
.list svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.5;
  color: var(--success);
  margin-top: 0.2rem;
}
.terminal {
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 1rem;
  padding: 1.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
  box-shadow: var(--shadow-glow);
}
.terminal .t-title {
  color: var(--primary);
  font-weight: 600;
}
.terminal .ok {
  color: var(--success);
}
.terminal .list li {
  color: var(--foreground);
  align-items: center;
}
.code-tag {
  background: rgba(135, 206, 250, 0.1);
  color: var(--primary);
  border-radius: 0.5rem;
  padding: 0.15rem 0.6rem;
}
.hero-glow {
  background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(135, 206, 250, 0.12), transparent);
}
.link-card {
  display: block;
}
.link-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.link-card .arrow {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
.link-card:hover .arrow {
  color: var(--primary);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(38, 43, 51, 0.7);
  background: rgba(10, 11, 13, 0.8);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand span.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: rgba(135, 206, 250, 0.15);
  color: var(--primary);
}
.brand svg {
  width: 1.15rem;
  height: 1.15rem;
}
.nav-desktop {
  display: none;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
  }
}
.nav-link {
  border-radius: 0.6rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.nav-link:hover {
  background: var(--secondary);
  color: var(--foreground);
}
.nav-link.active {
  background: rgba(135, 206, 250, 0.1);
  color: var(--primary);
}
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
}
.menu-btn:hover {
  background: var(--secondary);
  color: var(--foreground);
}
@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}
.nav-mobile {
  display: none;
  border-top: 1px solid rgba(38, 43, 51, 0.7);
  background: var(--background);
  padding: 0.5rem 1rem 1rem;
  animation: fade-in 0.4s ease-out both;
}
.nav-mobile.open {
  display: block;
}
@media (min-width: 768px) {
  .nav-mobile.open {
    display: none;
  }
}
.nav-mobile .nav-link {
  display: block;
  padding: 0.8rem 0.75rem;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(38, 43, 51, 0.7);
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-inner svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.footer-nav a:hover {
  color: var(--primary);
}

/* ---------- Animações ---------- */
.fade-in {
  animation: fade-in 0.7s ease-out both;
}
.fade-up {
  animation: fade-up 0.7s ease-out both;
}
.d1 {
  animation-delay: 0.1s;
}
.d2 {
  animation-delay: 0.2s;
}
.d3 {
  animation-delay: 0.3s;
}
.d4 {
  animation-delay: 0.4s;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
