/* goUp — design tokens (compilado de styles.css + tokens/) */

/* ==== tokens/fonts.css ==== */
/* goUp Design System — Webfonts
   No font files were provided with the brand assets, so we source the closest
   Google Fonts match to the wordmark's geometry (see readme.md → Visual Foundations).
   Display/UI: Space Grotesk (geometric, confident, technical)
   Body/UI:    Manrope (clean, humanist, highly legible at small sizes)
   Mono:       IBM Plex Mono (for DNS records, certs, code, server data)
*/
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --font-display: 'Space Grotesk', 'Arial', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

/* ==== tokens/colors.css ==== */
/* goUp Design System — Color tokens
   Base ramps sampled/derived from the goUp mark:
   Navy   #022D45 (wordmark "go")
   Orange #F18E0D → #F5A30E (the "U", gradient)
   Teal   #117A95 → #1A9CBA (the "P", gradient)
*/
:root {
  /* ---- Base ramp: Navy (primary — trust, backbone, stability) ---- */
  --navy-50:  #F1F7FA;
  --navy-100: #DCEBF1;
  --navy-200: #B3D3E3;
  --navy-300: #7FB4CF;
  --navy-400: #4C93B8;
  --navy-500: #2D77A0;
  --navy-600: #1E5F85;
  --navy-700: #124C6E;
  --navy-800: #0A3B58;
  --navy-900: #022D45; /* brand core navy */
  --navy-950: #041826;

  /* ---- Base ramp: Orange (accent — energy, growth, innovation) ---- */
  --orange-50:  #FEF8ED;
  --orange-100: #FDEFD6;
  --orange-200: #FCDFAD;
  --orange-300: #FACB7D;
  --orange-400: #F7B646;
  --orange-500: #F5A30E; /* brand core orange, light */
  --orange-600: #F18E0D; /* brand core orange */
  --orange-700: #D2760A;
  --orange-800: #A85D07;
  --orange-900: #7A4405;

  /* ---- Base ramp: Teal (secondary accent — from the "P" gradient) ---- */
  --teal-50:  #E4F5F9;
  --teal-100: #C3E8F0;
  --teal-200: #8DD0E1;
  --teal-300: #4CB4CE;
  --teal-400: #1A9CBA; /* brand core teal, light */
  --teal-500: #117A95; /* brand core teal */
  --teal-600: #0B5C70;
  --teal-700: #08475A;

  /* ---- Base ramp: Neutral (cool, navy-tinted gray) ---- */
  --gray-0:   #FFFFFF;
  --gray-50:  #F7FAFB;
  --gray-100: #EEF3F6;
  --gray-200: #DCE6EC;
  --gray-300: #B7C6D1;
  --gray-400: #8CA0AF;
  --gray-500: #647A8D;
  --gray-600: #47596B;
  --gray-700: #2E4152;
  --gray-800: #1C2C3A;
  --gray-900: #121F2B;
  --gray-950: #0B1620;

  /* ---- Semantic: status ---- */
  --color-success: #1E8E5A;
  --color-success-bg: #E6F4ED;
  --color-warning: var(--orange-600);
  --color-warning-bg: var(--orange-50);
  --color-danger: #D64545;
  --color-danger-bg: #FBEAEA;
  --color-info: var(--teal-500);
  --color-info-bg: var(--teal-50);

  /* ---- Semantic: surfaces ---- */
  --surface-page: var(--gray-50);
  --surface-card: var(--gray-0);
  --surface-sunken: var(--gray-100);
  --surface-inverse: var(--navy-900);
  --surface-overlay: rgba(6, 20, 31, 0.56);

  /* ---- Semantic: text ---- */
  --text-primary: var(--navy-900);
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-500);
  --text-disabled: var(--gray-400);
  --text-on-dark: var(--gray-0);
  --text-on-dark-secondary: var(--navy-200);
  --text-link: var(--teal-500);
  --text-link-hover: var(--teal-600);

  /* ---- Semantic: borders ---- */
  --border-default: var(--gray-200);
  --border-strong: var(--gray-300);
  --border-inverse: rgba(255, 255, 255, 0.16);
  --border-focus: var(--navy-500);

  /* ---- Semantic: brand actions ---- */
  --action-primary: var(--navy-900);
  --action-primary-hover: var(--navy-800);
  --action-primary-active: var(--navy-950);
  --action-accent: var(--orange-600);
  --action-accent-hover: var(--orange-700);
  --action-accent-active: #B8690A;

  /* ---- Gradient: reserved ONLY for the goUp mark itself. Every other element uses flat color. ---- */
  --gradient-mark: linear-gradient(160deg, var(--orange-500) 0%, var(--orange-600) 45%, var(--teal-500) 100%);
}

/* ==== tokens/typography.css ==== */
/* goUp Design System — Typography tokens */
:root {
  /* Type scale (px) — 1.25 ratio, tuned for dashboard + marketing use */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 30px;
  --text-3xl: 38px;
  --text-4xl: 48px;
  --text-5xl: 60px;

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --tracking-tight: -0.02em;
  --tracking-normal: 0em;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;
}

/* ==== tokens/spacing.css ==== */
/* goUp Design System — Spacing, radius, effects tokens */
:root {
  /* Spacing scale (4px base unit) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Corner radii — geometric, moderate. Never pill-shaped except tags/badges. */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 999px;

  /* Border widths */
  --border-thin: 1px;
  --border-thick: 2px;

  /* Shadows — soft, cool navy-tinted, low elevation. Solidity, not flash. */
  --shadow-xs: 0 1px 2px rgba(4, 24, 38, 0.06);
  --shadow-sm: 0 2px 6px rgba(4, 24, 38, 0.08);
  --shadow-md: 0 6px 16px rgba(4, 24, 38, 0.10);
  --shadow-lg: 0 16px 40px rgba(4, 24, 38, 0.14);
  --shadow-focus: 0 0 0 3px rgba(45, 119, 160, 0.35);

  /* Motion — quiet, functional, never bouncy */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */
  --ease-out: cubic-bezier(0, 0, 0.2, 1); /* @kind other */
  --duration-fast: 120ms; /* @kind other */
  --duration-base: 180ms; /* @kind other */
  --duration-slow: 280ms; /* @kind other */
}

/* ==== tokens/base.css ==== */
/* goUp Design System — base element resets */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin: 0;
  color: var(--text-primary);
}

p { margin: 0; }

a {
  color: var(--text-link);
  text-decoration: none;
}
a:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}

code, pre, kbd {
  font-family: var(--font-mono);
}

::selection {
  background: var(--navy-200);
  color: var(--navy-900);
}
