/* ==========================================================================
   WorldSoftNet — base: design tokens, reset, typography
   ========================================================================== */

:root {
  /* Brand colours */
  --navy-950: #070f24;
  --navy-900: #0b1838;
  --navy-800: #11234f;
  --navy-700: #1a3270;
  --blue-600: #2f5bea;
  --blue-500: #4a76ff;
  --blue-100: #e6edff;
  --teal-500: #14c8b4;
  --teal-100: #dcf8f3;
  --coral-500: #ff6b57;
  --coral-100: #ffe7e2;
  --sun-400: #ffc24b;

  /* Neutrals */
  --white: #ffffff;
  --gray-25: #fafbfd;
  --gray-50: #f4f6fb;
  --gray-100: #eaeef6;
  --gray-200: #d8deea;
  --gray-400: #98a2b8;
  --gray-600: #5b6580;
  --gray-800: #2a3149;
  --ink: #141a2e;

  /* Semantic */
  --bg: var(--white);
  --bg-soft: var(--gray-50);
  --text: var(--ink);
  --text-muted: var(--gray-600);
  --border: var(--gray-100);
  --primary: var(--blue-600);
  --primary-hover: #2249cc;
  --accent: var(--teal-500);
  --danger: #d93a3a;
  --success: #12a37a;

  --grad-hero: radial-gradient(1200px 600px at 85% -10%, rgba(74, 118, 255, .35), transparent 60%),
               radial-gradient(800px 500px at -10% 110%, rgba(20, 200, 180, .22), transparent 60%),
               linear-gradient(160deg, var(--navy-950), var(--navy-800));
  --grad-accent: linear-gradient(135deg, var(--blue-500), var(--teal-500));

  /* Type */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-2xl: clamp(1.75rem, 1.35rem + 1.6vw, 2.4rem);
  --fs-3xl: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);

  /* Spacing & shape */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 24, 56, .06), 0 2px 8px rgba(11, 24, 56, .05);
  --shadow: 0 6px 24px rgba(11, 24, 56, .09);
  --shadow-lg: 0 24px 60px rgba(11, 24, 56, .18);
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-100); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 var(--space-4);
  color: var(--navy-900);
  font-weight: 700;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -.01em; }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
small { font-size: var(--fs-xs); }

.lead { font-size: var(--fs-lg); color: var(--text-muted); line-height: 1.6; }
.muted { color: var(--text-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--space-3);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-accent); }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--white); color: var(--navy-900); padding: .75rem 1rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }
.text-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
