/* ============================================================
   Skill Labs — Design tokens
   Imported from the Skill Labs design system (claude.ai/design).
   Brand cyan #03B7DD · ink #09071E · signature cyan→aqua gradient.
   ============================================================ */

:root {
  /* ---- Brand: Cyan scale (the primary "Skill" cyan = 500) ---- */
  --cyan-50:  #ecfbff;
  --cyan-100: #d2f4fc;
  --cyan-200: #a6e9f8;
  --cyan-300: #6ed8ef;
  --cyan-400: #2fc4e4;
  --cyan-500: #03b7dd;  /* core brand cyan */
  --cyan-600: #0496ba;
  --cyan-700: #0a7796;
  --cyan-800: #11607a;
  --cyan-900: #134f66;
  --cyan-950: #093445;

  /* ---- Ink / Neutral scale (cool, faint-violet black) ---- */
  --ink-950: #09071e;   /* brand ink (wordmark on light) */
  --ink-900: #100e29;
  --ink-800: #1b1936;
  --ink-700: #2a2947;
  --ink-600: #3d3c5c;
  --ink-500: #565574;
  --ink-400: #777692;
  --ink-300: #a3a2b8;
  --ink-200: #cbcad7;
  --ink-100: #e7e7ee;
  --ink-50:  #f5f5f8;
  --white:   #ffffff;

  /* ---- Semantic status ---- */
  --success-500: #1fb978;
  --success-50:  #e4f8ef;
  --warning-500: #f5a524;
  --warning-50:  #fdf1dc;
  --danger-500:  #f0426a;
  --danger-50:   #fde7ec;
  --info-500:    var(--cyan-500);
  --info-50:     var(--cyan-50);

  /* ---- Signature gradients (top → bottom of the isotipo) ---- */
  --grad-cyan:  linear-gradient(150deg, #10bade 0%, #4ac8e4 45%, #82d5ea 100%);
  --grad-deep:  linear-gradient(150deg, #03b7dd 0%, #0496ba 55%, #0a7796 100%);
  --grad-ink:   linear-gradient(160deg, #100e29 0%, #09071e 100%);
  --grad-glow:  radial-gradient(120% 120% at 80% -10%, rgba(3,183,221,0.28) 0%, rgba(3,183,221,0) 55%);

  /* ---- Semantic aliases ---- */
  --surface-page:    var(--ink-50);
  --surface-card:    var(--white);
  --surface-sunken:  var(--ink-100);
  --surface-inverse: var(--ink-950);
  --surface-brand:   var(--cyan-500);
  --surface-brand-subtle: var(--cyan-50);

  --text-strong:   var(--ink-950);
  --text-body:     var(--ink-700);
  --text-muted:    var(--ink-500);
  --text-subtle:   var(--ink-400);
  --text-on-brand: var(--white);
  --text-inverse:  var(--white);
  --text-link:     var(--cyan-600);

  --border-subtle: var(--ink-100);
  --border-default: var(--ink-200);
  --border-strong: var(--ink-300);
  --border-brand:  var(--cyan-500);
  --focus-ring:    rgba(3,183,221,0.45);

  --brand:          var(--cyan-500);
  --brand-hover:    var(--cyan-600);
  --brand-active:   var(--cyan-700);
  --on-brand:       var(--white);

  /* ---- Typography ---- */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --fw-thin: 200;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --fs-2xs: 0.694rem;   /* 11px */
  --fs-xs:  0.8rem;     /* 12.8px */
  --fs-sm:  0.875rem;   /* 14px  */
  --fs-md:  1rem;       /* 16px  */
  --fs-lg:  1.25rem;    /* 20px  */
  --fs-xl:  1.563rem;   /* 25px  */
  --fs-2xl: 1.953rem;   /* 31px  */
  --fs-3xl: 2.441rem;   /* 39px  */
  --fs-4xl: 3.052rem;   /* 49px  */
  --fs-5xl: 3.815rem;   /* 61px  */
  --fs-6xl: 4.768rem;   /* 76px  */

  --lh-tight: 1.05;
  --lh-snug:  1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  --ls-tighter: -0.03em;
  --ls-tight:   -0.015em;
  --ls-normal:  0;
  --ls-wide:    0.04em;
  --ls-wider:   0.12em;

  /* ---- Spacing (8px base, 4px half-steps) ---- */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* ---- Radii ---- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-xs: 0 1px 2px rgba(9, 7, 30, 0.06);
  --shadow-sm: 0 2px 6px rgba(9, 7, 30, 0.07);
  --shadow-md: 0 8px 24px rgba(9, 7, 30, 0.08);
  --shadow-lg: 0 18px 48px rgba(9, 7, 30, 0.12);
  --shadow-xl: 0 32px 72px rgba(9, 7, 30, 0.16);
  --shadow-brand: 0 12px 32px rgba(3, 183, 221, 0.30);
  --shadow-brand-sm: 0 4px 14px rgba(3, 183, 221, 0.28);
  --ring-inset: inset 0 0 0 1px rgba(9, 7, 30, 0.06);

  /* ---- Header backdrop (light mode default) ---- */
  --header-bg:          rgba(255, 255, 255, 0.80);
  --header-bg-scrolled: rgba(255, 255, 255, 0.97);

  /* ---- Layout ---- */
  --container-max: 1200px;
  --container-narrow: 760px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
}

/* ============================================================
   Base element styles & helpers
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--text-link); text-decoration: none; }

.sl-display {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tighter);
  color: var(--text-strong);
}
.sl-h1 { font-family: var(--font-display); font-weight: var(--fw-bold);     font-size: var(--fs-4xl); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
.sl-h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-3xl); line-height: var(--lh-snug);  letter-spacing: var(--ls-tight); }
.sl-h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-2xl); line-height: var(--lh-snug); }
.sl-h4 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-xl);  line-height: var(--lh-snug); }

.sl-lead { font-family: var(--font-body); font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--text-muted); }
.sl-body { font-family: var(--font-body); font-size: var(--fs-md); line-height: var(--lh-normal); color: var(--text-body); }
.sl-small { font-size: var(--fs-sm); color: var(--text-muted); }

.sl-eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brand);
}

.sl-gradient-text {
  background: var(--grad-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   TEMA ESCURO — overrides de tokens semânticos
   Ativado via JS: document.documentElement.setAttribute('data-theme','dark')
   Compatível com hospedagem estática (Hostgator/Apache) — zero server-side.
   ============================================================ */
:root[data-theme="dark"] {
  /* Superfícies */
  --surface-page:    var(--ink-900);
  --surface-card:    var(--ink-800);
  --surface-sunken:  var(--ink-950);
  --surface-alt:     var(--ink-800);

  /* Texto */
  --text-strong:     var(--white);
  --text-body:       var(--ink-100);
  --text-muted:      var(--ink-300);
  --text-subtle:     var(--ink-400);
  --text-link:       var(--cyan-400);

  /* Bordas */
  --border-subtle:   rgba(255, 255, 255, 0.06);
  --border-default:  var(--ink-600);
  --border-strong:   var(--ink-500);

  /* Sombras — mais visíveis em fundo escuro */
  --shadow-xs: 0 1px  2px rgba(0, 0, 0, 0.20);
  --shadow-sm: 0 2px  6px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.40);
  --shadow-xl: 0 32px 72px rgba(0, 0, 0, 0.50);

  /* Header backdrop escuro */
  --header-bg:          rgba(16, 14, 41, 0.85);
  --header-bg-scrolled: rgba(16, 14, 41, 0.97);

  /* Superfície brand sutil — usado em seções com bg cyan-50 em light mode.
     Em dark mode vira uma superfície levemente cianada para manter o contraste
     sem deixar o texto branco ilegível sobre fundo claro. */
  --cyan-50: rgba(3, 183, 221, 0.08);

  /* Cor de destaque em badges/pills sobre fundo escuro */
  --cyan-700: var(--cyan-400);
}
