/*
 * IA para Engenheiros — Custom Styles
 *
 * Complementa o Tailwind CSS (CDN).
 * Adicione aqui: tokens de design, componentes customizados
 * e overrides que o Tailwind não suporta diretamente.
 *
 * MAPA DA PÁGINA
 * -------------------------------------------------------
 *  #hero      — Cabeçalho principal + checkout
 *  #benefits  — Grade bento com benefícios
 *  #faq       — Perguntas frequentes
 *  [futuro]   — Insira novas <section> antes do <footer>
 * -------------------------------------------------------
 */

/* ==========================================================
   1. DESIGN TOKENS
   Use estas variáveis em qualquer nova seção para manter
   consistência visual sem procurar valores no HTML.
   ========================================================== */
:root {
  /* Cores da marca */
  --brand:          #2563eb;                    /* blue-600  */
  --brand-light:    #60a5fa;                    /* blue-400  */
  --brand-accent:   #67e8f9;                    /* cyan-300  */
  --brand-dim:      rgba(37, 99, 235, 0.15);

  /* Superfícies */
  --surface-1:      rgba(24, 24, 27, 0.30);    /* zinc-900/30 */
  --surface-2:      rgba(24, 24, 27, 0.60);    /* zinc-900/60 */
  --border-subtle:  rgba(255, 255, 255, 0.05);
  --border-hover:   rgba(255, 255, 255, 0.10);

  /* Texto */
  --text-base:      #d4d4d8;                    /* zinc-300  */
  --text-muted:     #71717a;                    /* zinc-500  */
  --text-faint:     #52525b;                    /* zinc-600  */
  --text-white:     #ffffff;

  /* Layout */
  --max-w-content:  80rem;                      /* max-w-7xl */
  --section-y:      6rem;                       /* py-24     */
  --section-x:      1.5rem;                     /* px-6      */

  /* Raios */
  --r-card:         1.5rem;                     /* rounded-3xl */
  --r-btn:          0.75rem;                    /* rounded-xl  */

  /* Tipografia */
  --font-sans:      'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display:   'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
}

/* ==========================================================
   2. COMPONENTES REUTILIZÁVEIS
   Use estas classes ao criar novas seções para evitar
   repetir longas cadeias de classes Tailwind.
   ========================================================== */

/* --- Seção genérica ---
   Uso: <section id="minha-secao" class="section-base"> */
.section-base {
  padding: var(--section-y) var(--section-x);
  position: relative;
}

/* --- Cabeçalho de seção ---
   Uso:
   <div class="section-header">
     <h2 class="section-title">Título</h2>
     <p class="section-subtitle">Subtítulo</p>
   </div> */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.625;
}

/* --- Card bento ---
   Uso: <div class="bento-card">
   Para cards largos, adicione md:col-span-2 do Tailwind. */
.bento-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-card);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease;
}

.bento-card:hover {
  border-color: var(--border-hover);
}

/* --- Campo de formulário ---
   Uso: <input class="form-input" ... />
        <select class="form-input" ... />  */
.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #3f3f46;            /* zinc-800 */
  border-radius: var(--r-btn);
  padding: 0.875rem 1rem;
  color: var(--text-white);
  appearance: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-input::placeholder {
  color: var(--text-faint);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.5);
}

/* --- Rótulo de formulário ---
   Uso: <label class="form-label">Campo</label> */
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

/* --- Botão primário ---
   Uso: <button class="btn-primary" type="submit">Texto</button>
        <a href="#checkout" class="btn-primary">Texto</a>      */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 2rem;
  background-color: var(--brand);
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--r-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 0 20px var(--brand-dim);
}

.btn-primary:hover {
  background-color: #3b82f6;            /* blue-500 */
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 2rem;
  background-color: var(--brand-accent);
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--r-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 0 20px var(--brand-dim);
}

.btn-secondary:hover {
  background-color: #3b82f6;            /* blue-500 */
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
}

/* --- Gradiente de texto (marca) ---
   Uso: <span class="text-gradient-brand">Texto destacado</span> */
.text-gradient-brand {
  background: linear-gradient(to right, var(--brand-light), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Gradiente de texto (marca) ---
   Uso: <span class="text-gradient-brand">Texto destacado</span> */
.text-gradient-brand {
  background: linear-gradient(to right, var(--brand-light), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================
   3. OVERRIDES E UTILITÁRIOS
   ========================================================== */

html {
  scroll-behavior: smooth;
}
