/* Reset moderno + tipografia + utilities essenciais */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'rlig' 1, 'calt' 1;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection {
  background: var(--purple-600);
  color: #fff;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 768px)  { .container { padding-inline: var(--container-pad); } }

/* ---------- Layout utilities ---------- */
.flex          { display: flex; }
.inline-flex   { display: inline-flex; }
.grid          { display: grid; }
.hidden        { display: none; }
.block         { display: block; }
.relative      { position: relative; }
.absolute      { position: absolute; }
.fixed         { position: fixed; }
.inset-0       { inset: 0; }

.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.justify-center{ justify-content: center; }
.justify-between{ justify-content: space-between; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.flex-1        { flex: 1 1 0%; }
.shrink-0      { flex-shrink: 0; }

.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12{ gap: 3rem; }

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

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.mx-auto { margin-inline: auto; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mb-1  { margin-bottom: .25rem; }
.mb-2  { margin-bottom: .5rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.p-4  { padding: 1rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.px-4 { padding-inline: 1rem; }
.px-6 { padding-inline: 1.5rem; }
.px-8 { padding-inline: 2rem; }
.py-2 { padding-block: .5rem; }
.py-3 { padding-block: .75rem; }
.py-6 { padding-block: 1.5rem; }
.py-24{ padding-block: 6rem; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }

.rounded-md  { border-radius: calc(var(--radius) - 2px); }
.rounded-lg  { border-radius: var(--radius); }
.rounded-xl  { border-radius: 1rem; }
.rounded-2xl { border-radius: 1.5rem; }
.rounded-full{ border-radius: 9999px; }

/* ---------- Tipografia ---------- */
.text-sm   { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;    line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem;line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;  line-height: 2rem; }
.text-3xl  { font-size: 1.875rem;line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;    line-height: 1.1; }
.text-6xl  { font-size: 3.75rem; line-height: 1.1; }
.text-7xl  { font-size: 4.5rem;  line-height: 1.05; }
.text-8xl  { font-size: 6rem;    line-height: 1; }

.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-light   { font-weight: 300; }

.tracking-tight   { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wider   { letter-spacing: 0.05em; }
.uppercase        { text-transform: uppercase; }
.leading-relaxed  { line-height: 1.625; }

/* Cores de texto */
.text-white          { color: #fff; }
.text-zinc-300       { color: var(--zinc-300); }
.text-zinc-400       { color: var(--zinc-400); }
.text-zinc-500       { color: var(--zinc-500); }
.text-zinc-600       { color: var(--zinc-600); }
.text-purple-300     { color: var(--purple-300); }
.text-purple-400     { color: var(--purple-400); }
.text-purple-500     { color: var(--purple-500); }

/* Gradiente de texto (igual ao .text-gradient do Tailwind) */
.text-gradient {
  background: linear-gradient(to right, var(--purple-400), var(--indigo-400), var(--pink-400));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Fundos */
.bg-black      { background-color: #000; }
.bg-background { background-color: hsl(var(--background)); }
.bg-zinc-900   { background-color: var(--zinc-900); }
.bg-zinc-950   { background-color: var(--zinc-950); }

/* Glass cards */
.glass {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--white-10);
}
.glass-card {
  background-color: rgba(24, 24, 27, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--white-05);
  transition: border-color .3s;
}
.glass-card:hover { border-color: rgba(168, 85, 247, 0.3); }

/* Bordas */
.border          { border: 1px solid hsl(var(--border)); }
.border-t        { border-top: 1px solid hsl(var(--border)); }
.border-white-05 { border: 1px solid var(--white-05); }
.border-white-10 { border: 1px solid var(--white-10); }
.border-zinc-800 { border-color: var(--zinc-800); }

/* Responsividade básica */
@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex   { display: flex; }
  .md\:block  { display: block; }
  .md\:grid   { display: grid; }
  .md\:text-5xl { font-size: 3rem;   line-height: 1.1; }
  .md\:text-6xl { font-size: 3.75rem;line-height: 1.1; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1.05; }
  .md\:text-xl  { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:flex-row { flex-direction: row; }
}
@media (min-width: 1024px) {
  .lg\:text-8xl { font-size: 6rem; line-height: 1; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
