/* ==========================================================================
   OCTOS DESIGN SYSTEM — TOKENS
   The single source of truth. Everything else in this system reads from here.
   Values were sampled from the Octos logo, the v4 pitch deck and the glow art.
   ========================================================================== */

:root {
  /* ---------- BRAND ---------------------------------------------------- */
  /* Read out of the vector source octos_full-color_white.ai = rgb(4,164,174). */
  --octos-teal: #04A4AE;
  /* Mesma cor em canais soltos: as transparencias de destaque leem daqui,
     entao trocar o acento (marca) nao exige mexer nos componentes. */
  --octos-accent-rgb: 4, 164, 174;

  /* Teal ramp. 500 is the brand mark colour. */
  --octos-teal-50:  #E6F8F9;
  --octos-teal-100: #BFEDF0;
  --octos-teal-200: #8ADEE3;
  --octos-teal-300: #4ECDD5;   /* accent text ON DARK — 10.4:1 on ink-900 */
  --octos-teal-400: #16B7C2;
  --octos-teal-500: #04A4AE;   /* the mark */
  --octos-teal-600: #03858E;
  --octos-teal-700: #036A72;   /* accent text ON LIGHT — 6.4:1 on white */
  --octos-teal-800: #024E54;
  --octos-teal-900: #013337;

  /* ---------- INK (the near-black, very slightly violet) ---------------- */
  --octos-ink-950: #0C0C11;
  --octos-ink-900: #15141A;    /* canonical background — decks + site */
  --octos-ink-800: #1C1B23;
  --octos-ink-700: #26252F;
  --octos-ink-600: #34333F;
  --octos-ink-500: #4A4956;
  --octos-ink-400: #6E6C7C;
  --octos-ink-300: #9A98A6;
  --octos-ink-200: #C6C4CE;
  --octos-ink-100: #E4E3E9;
  --octos-ink-50:  #F4F4F7;
  --octos-white:   #FFFFFF;

  /* ---------- GLOW PALETTE (sampled from 02. Glows) --------------------- */
  --octos-cyan:  #6DD0FF;
  --octos-ice:   #D1F4FF;
  --octos-blue:  #2E6BFF;
  --octos-violet:#7C6BFF;

  /* ---------- STATUS ---------------------------------------------------- */
  --octos-success: #3ECF8E;
  --octos-warning: #F5B544;
  --octos-danger:  #F2555A;

  /* ---------- SEMANTIC — DARK IS THE DEFAULT ---------------------------- */
  --octos-bg:            var(--octos-ink-900);
  --octos-bg-elevated:   var(--octos-ink-800);
  --octos-surface:       rgba(255, 255, 255, 0.04);
  --octos-surface-hover: rgba(255, 255, 255, 0.07);
  --octos-border:        rgba(255, 255, 255, 0.10);
  --octos-border-strong: rgba(255, 255, 255, 0.18);

  --octos-text:          #FFFFFF;
  --octos-text-secondary:rgba(255, 255, 255, 0.72);
  --octos-text-muted:    rgba(255, 255, 255, 0.48);
  --octos-text-accent:   var(--octos-teal-300);

  --octos-focus:         var(--octos-teal-300);

  /* ---------- TYPE ------------------------------------------------------ */
  --octos-font-display: "Onest", "Onest Variable", ui-sans-serif, system-ui,
                        -apple-system, "Segoe UI", Roboto, sans-serif;
  --octos-font-body:    "Inter", "Inter Variable", ui-sans-serif, system-ui,
                        -apple-system, "Segoe UI", Roboto, sans-serif;
  --octos-font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --octos-weight-regular: 400;
  --octos-weight-medium:  500;
  --octos-weight-semi:    600;
  --octos-weight-bold:    700;
  --octos-weight-black:   800;

  /* Tracking. Display type is always tightened; eyebrows are always opened. */
  --octos-track-display: -0.03em;
  --octos-track-heading: -0.02em;
  --octos-track-body:     0em;
  --octos-track-eyebrow:  0.16em;

  --octos-leading-display: 1.05;
  --octos-leading-heading: 1.15;
  --octos-leading-body:    1.6;

  /* Web type scale (1rem = 16px) */
  --octos-size-display-1: 4.5rem;
  --octos-size-display-2: 3.5rem;
  --octos-size-h1:        2.75rem;
  --octos-size-h2:        2rem;
  --octos-size-h3:        1.5rem;
  --octos-size-h4:        1.25rem;
  --octos-size-lg:        1.125rem;
  --octos-size-base:      1rem;
  --octos-size-sm:        0.875rem;
  --octos-size-xs:        0.75rem;

  /* ---------- SPACE (4px base) ------------------------------------------ */
  --octos-space-1:  0.25rem;
  --octos-space-2:  0.5rem;
  --octos-space-3:  0.75rem;
  --octos-space-4:  1rem;
  --octos-space-5:  1.5rem;
  --octos-space-6:  2rem;
  --octos-space-7:  3rem;
  --octos-space-8:  4rem;
  --octos-space-9:  6rem;
  --octos-space-10: 8rem;

  /* ---------- RADIUS ---------------------------------------------------- */
  /* Octos is a soft-cornered brand. When unsure, round more, not less. */
  --octos-radius-sm:   8px;
  --octos-radius-md:   14px;
  --octos-radius-lg:   20px;
  --octos-radius-xl:   28px;
  --octos-radius-2xl:  40px;
  --octos-radius-pill: 999px;

  /* ---------- ELEVATION ------------------------------------------------- */
  --octos-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.32);
  --octos-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.36);
  --octos-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.48);
  --octos-shadow-glow: 0 0 0 1px rgba(4, 164, 174, 0.30),
                       0 12px 48px rgba(4, 164, 174, 0.22);

  /* ---------- GRADIENTS ------------------------------------------------- */
  --octos-gradient-brand: linear-gradient(135deg, var(--octos-teal-500) 0%, var(--octos-cyan) 100%);
  --octos-gradient-text:  linear-gradient(100deg, var(--octos-teal-200) 0%, var(--octos-cyan) 55%, var(--octos-ice) 100%);
  --octos-gradient-hairline: linear-gradient(180deg,
                              rgba(255,255,255,0.16) 0%,
                              rgba(255,255,255,0.04) 40%,
                              rgba(4,164,174,0.22) 100%);

  /* ---------- MOTION ---------------------------------------------------- */
  --octos-ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --octos-ease-in:   cubic-bezier(0.5, 0, 0.75, 0);
  --octos-dur-fast:  140ms;
  --octos-dur-base:  260ms;
  --octos-dur-slow:  520ms;

  /* ---------- LAYOUT ---------------------------------------------------- */
  --octos-container: 1200px;
  --octos-container-wide: 1440px;
  --octos-gutter: clamp(1.25rem, 4vw, 4rem);
}

/* ==========================================================================
   LIGHT THEME
   Octos is dark-first. Light mode exists for documents, docs sites and
   printed material — not as the marketing default.
   ========================================================================== */

[data-octos-theme="light"] {
  --octos-bg:            #FFFFFF;
  --octos-bg-elevated:   var(--octos-ink-50);
  --octos-surface:       rgba(21, 20, 26, 0.03);
  --octos-surface-hover: rgba(21, 20, 26, 0.06);
  --octos-border:        rgba(21, 20, 26, 0.10);
  --octos-border-strong: rgba(21, 20, 26, 0.20);

  --octos-text:           var(--octos-ink-900);
  --octos-text-secondary: rgba(21, 20, 26, 0.70);
  --octos-text-muted:     rgba(21, 20, 26, 0.50);
  /* teal-500 only reaches 2.8:1 on white — never use it for text on light. */
  --octos-text-accent:    var(--octos-teal-700);

  --octos-shadow-sm: 0 1px 2px rgba(21, 20, 26, 0.06);
  --octos-shadow-md: 0 8px 24px rgba(21, 20, 26, 0.08);
  --octos-shadow-lg: 0 24px 64px rgba(21, 20, 26, 0.12);
  --octos-gradient-text: linear-gradient(100deg, var(--octos-teal-700) 0%, var(--octos-teal-500) 100%);
}
