/* ============================================================
   VoidPOS — Global Design System
   Professional B&W · Square-inspired · Editorial
   ============================================================ */

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

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Palette */
  --black:       #000000;
  --white:       #FFFFFF;
  --gray-50:     #F5F5F7;
  --gray-100:    #EFEFEF;
  --gray-200:    #E3E3E3;
  --gray-300:    #C8C8C8;
  --gray-400:    #A0A0A0;
  --gray-500:    #6E6E73;
  --gray-700:    #2D2D2D;
  --gray-800:    #1D1D1F;
  --gray-900:    #0A0A0A;

  /* Typography */
  --font-display: 'Syne', -apple-system, sans-serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */
  --text-8xl:  6rem;       /* 96px */

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.16);

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:   150ms;
  --duration-normal: 280ms;
  --duration-slow:   500ms;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1440px;
  --nav-height: 68px;
  --section-padding: var(--space-24) 5%;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-body);
}

ul, ol {
  list-style: none;
}

/* ── Typography Utilities ──────────────────────────────────── */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }

.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }
.text-4xl   { font-size: var(--text-4xl); }
.text-5xl   { font-size: var(--text-5xl); }
.text-6xl   { font-size: var(--text-6xl); }
.text-7xl   { font-size: var(--text-7xl); }

.weight-300 { font-weight: 300; }
.weight-400 { font-weight: 400; }
.weight-500 { font-weight: 500; }
.weight-600 { font-weight: 600; }
.weight-700 { font-weight: 700; }
.weight-800 { font-weight: 800; }

.text-black  { color: var(--black); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--gray-500); }
.text-subtle { color: var(--gray-400); }

.leading-tight  { line-height: 1.1; }
.leading-snug   { line-height: 1.3; }
.leading-normal { line-height: 1.6; }
.leading-loose  { line-height: 1.8; }

.tracking-tight  { letter-spacing: -0.04em; }
.tracking-snug   { letter-spacing: -0.02em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide   { letter-spacing: 0.04em; }
.tracking-wider  { letter-spacing: 0.08em; }
.tracking-widest { letter-spacing: 0.12em; }

.uppercase { text-transform: uppercase; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 5%;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--gray-50);
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.text-center { text-align: center; }
.text-left   { text-align: left; }

.w-full  { width: 100%; }
.max-w-lg  { max-width: 640px; }
.max-w-xl  { max-width: 800px; }
.max-w-2xl { max-width: 960px; }
.mx-auto { margin: 0 auto; }

/* ── Responsive Breakpoints ────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-padding: var(--space-16) 5%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .text-7xl { font-size: var(--text-5xl); }
  .text-6xl { font-size: var(--text-4xl); }
  .text-5xl { font-size: var(--text-3xl); }
  .hide-mobile { display: none !important; }
}

@media (max-width: 480px) {
  .text-5xl { font-size: var(--text-2xl); }
  .text-4xl { font-size: var(--text-xl); }
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
