/* ─────────────────────────────────────────────────────────────────────────────
   SHADCN ZINC DESIGN TOKENS
   Strict Black & White / Neutral Palette with High Craft & Precision
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Shadcn Zinc Light Tokens */
  --background: 0 0% 100%;                  /* #ffffff */
  --foreground: 240 10% 3.9%;               /* #09090b - deep ink */
  --card: 0 0% 100%;                        /* #ffffff */
  --card-foreground: 240 10% 3.9%;          /* #09090b */
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  
  --primary: 240 5.9% 10%;                  /* #18181b - pure dark zinc */
  --primary-foreground: 0 0% 98%;           /* #fafafa */
  
  --secondary: 240 4.8% 95.9%;              /* #f4f4f5 - soft zinc surface */
  --secondary-foreground: 240 5.9% 10%;     /* #18181b */
  
  --muted: 240 4.8% 95.9%;                  /* #f4f4f5 */
  --muted-foreground: 240 3.8% 46.1%;       /* #71717a - mid zinc */
  
  --accent: 240 4.8% 95.9%;                 /* #f4f4f5 */
  --accent-foreground: 240 5.9% 10%;
  
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  
  --border: 240 5.9% 90%;                   /* #e4e4e7 - crisp subtle border */
  --border-subtle: 240 5.9% 92%;            /* #eaeaea */
  --input: 240 5.9% 90%;
  --ring: 240 10% 3.9%;
  
  --radius-sm: 0.25rem;
  --radius: 0.5rem;                         /* 8px standard */
  --radius-md: 0.625rem;                    /* 10px */
  --radius-lg: 0.75rem;                     /* 12px */
  --radius-xl: 1rem;                        /* 16px */
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Layout & Sizing */
  --container-max: 74rem;                   /* 1184px - optimal reading & showcase */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4.5rem, 8vw, 7rem);

  /* Component Standards */
  --btn-h-sm: 2rem;       /* 32px */
  --btn-h-md: 2.375rem;   /* 38px */
  --btn-h-lg: 2.75rem;    /* 44px */
  --badge-h: 1.375rem;    /* 22px */
  --badge-h-sm: 1.125rem; /* 18px */

  /* Shadows - Minimalist Monochrome Drop */
  --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.03);
  --shadow-modal: 0 24px 48px -12px rgba(0, 0, 0, 0.18), 0 12px 24px -8px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 220ms;
}

/* Optional Dark Class or Theme */
.dark {
  --background: 240 10% 3.9%;               /* #09090b */
  --foreground: 0 0% 98%;                   /* #fafafa */
  --card: 240 10% 4.9%;                     /* #0c0c0e */
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 4.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;                      /* #fafafa */
  --primary-foreground: 240 5.9% 10%;       /* #18181b */
  --secondary: 240 3.7% 15.9%;              /* #27272a */
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;                  /* #27272a */
  --muted-foreground: 240 5% 64.9%;         /* #a1a1aa */
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;                 /* #27272a */
  --border-subtle: 240 3.7% 18%;
  --input: 240 3.7% 15.9%;
  --ring: 240 4.9% 83.9%;
  --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.6);
  --shadow-modal: 0 24px 60px -12px rgba(0, 0, 0, 0.85);
}

/* Base Reset & Typography Standards */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: var(--section-pad);
}

/* Typography Hierarchy - Tight Tracking & Clear Contrast */
.h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: hsl(var(--foreground));
}

.h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: hsl(var(--foreground));
}

.h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: hsl(var(--foreground));
}

.p-muted {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.65;
}

.small {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: -0.01em;
}
