/* ============================================================
   Neoform — Design tokens
   Single source of truth for colour, type, spacing, radius,
   shadow and motion. Every other stylesheet reads these via
   var(--token-name) — nothing else should hardcode a raw value.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Fonts */
  --font-display: "Manrope", "Manrope Fallback", system-ui, sans-serif;
  --font-body: "DM Sans", "DM Sans Fallback", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Brand — mint. Light steps carry the brand; dark steps do the work. */
  --mint-50: #f2fbf6;
  --mint-100: #dff6ea;
  --mint-200: #bfedd6;
  --mint-300: #8fddbb;
  --mint-400: #4cc79a;
  --mint-500: #17b486;
  --mint-600: #0e9670;
  --mint-700: #0c765a;
  --mint-800: #0b4f3e;
  --mint-900: #0a2e26;

  /* Ink & neutrals — all carry a faint green cast, never pure grey */
  --white: #ffffff;
  --n-50: #f7f9f8;
  --n-100: #edf1ef;
  --n-200: #dce3e0;
  --n-300: #c3cdc9;
  --n-400: #a9b4b0;
  --n-500: #7c8884;
  --n-600: #5a6763;
  --n-700: #3b4744;
  --n-800: #24302d;
  --n-900: #14201d;

  /* Semantic */
  --info-500: #2e6be6;
  --warn-500: #d9950b;
  --danger-500: #dc4a3d;
  --success-500: var(--mint-500);

  /* Surfaces — dark redesign: deep ink-green page, never flat black */
  --surface-page: #061512;
  --surface-card: #0c201c;
  --surface-sunken: #081a16;
  --surface-brand-soft: rgba(23, 180, 134, 0.13);
  --surface-brand: var(--mint-500);
  --surface-ink: #04100d;
  --surface-glass: rgba(6, 21, 18, 0.68);

  /* Text */
  --text-strong: #eaf7f1;
  --text-body: rgba(214, 236, 227, 0.7);
  --text-muted: rgba(214, 236, 227, 0.46);
  --text-inverse: #04100d;
  --text-brand: #4cc79a;
  --text-link: #4cc79a;
  --text-link-hover: #8fddbb;

  /* Lines */
  --border-subtle: rgba(143, 221, 187, 0.1);
  --border-default: rgba(143, 221, 187, 0.17);
  --border-strong: rgba(143, 221, 187, 0.32);
  --border-brand: var(--mint-400);
  --focus-ring: rgba(23, 180, 134, 0.38);

  /* Atmospheric backgrounds — used instead of flat fills on hero/section blocks */
  --grad-fresh: radial-gradient(
    115% 105% at 8% -10%,
    rgba(23, 180, 134, 0.2) 0%,
    rgba(6, 21, 18, 1) 55%,
    #04100d 100%
  );
  --grad-ink: linear-gradient(155deg, #0b322a 0%, #08201b 58%, #04100d 100%);
  --grad-glow: radial-gradient(
    60% 60% at 50% 0%,
    rgba(23, 180, 134, 0.22) 0%,
    rgba(23, 180, 134, 0) 70%
  );

  /* Type scale */
  --text-display-1: clamp(3rem, 6.2vw, 5.25rem);
  --text-h1: 2.75rem;
  --text-h2: 2.125rem;
  --text-h3: 1.5rem;
  --text-h4: 1.1875rem;
  --text-lead: 1.25rem;
  --text-body-lg: 1.0625rem;
  --text-body-md: 1rem;
  --text-body-sm: 0.9375rem;
  --text-caption: 0.8125rem;
  --text-micro: 0.6875rem;

  --lh-tight: 1.04;
  --lh-heading: 1.14;
  --lh-snug: 1.35;
  --lh-body: 1.62;

  --tracking-display: -0.032em;
  --tracking-heading: -0.02em;
  --tracking-body: 0em;
  --tracking-eyebrow: 0.14em;

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

  /* Spacing — 4px base, layout lives in the big steps */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --gutter: 24px;
  --section-y: clamp(72px, 10vw, 128px);
  --container: 1200px;
  --container-narrow: 760px;

  /* Radius — soft throughout */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;

  /* Shadow — dark redesign: neutral black, deeper than the light theme */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 48px -18px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 40px 80px -28px rgba(0, 0, 0, 0.8);
  --shadow-brand: 0 18px 40px -18px rgba(23, 180, 134, 0.45);

  /* Motion */
  --dur-fast: 160ms;
  --dur-hover: 220ms;
  --dur-base: 320ms;
  --dur-slow: 400ms;
  --dur-reveal: 520ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --scale-press: 0.985;
}
