/* ============================================
   VARIABLES.CSS — Design System Foundation
   Reset, Custom Properties, Typography, Utilities
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* — Core Palette (Axilon-style dark minimal) — */
  --color-background:    #0f0f0f;
  --color-middleground:  #1a1a1a;
  --color-foreground:    #242424;
  --color-text:          #f5f5f5;
  --color-text-secondary:#999;
  --color-text-muted:    #666;
  --color-border:        #2a2a2a;
  --color-borderhover:   #444;

  /* — Accent — */
  --accent-primary:      #f5f5f5;
  --accent-glow:         rgba(245, 245, 245, 0.08);

  /* — Typography — */
  --ff-heading: 'Space Grotesk', sans-serif;
  --ff-body:    'Inter', sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  3.25rem;
  --fs-5xl:  4rem;
  --fs-hero: clamp(2.5rem, 6vw, 5rem);

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

  /* — Border Radius — */
  --radius-sm:   0.375rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.25rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* — Shadows — */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.4);
  --shadow-md:   0 4px 12px rgba(0,0,0,.5);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.6);
  --shadow-theme: 0 2px 16px rgba(0,0,0,.3);
  --shadow-header: 0 1px 0 rgba(255,255,255,.04);

  /* — Transitions — */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   500ms;

  /* — Layout — */
  --container-max: 1200px;
  --container-padding: var(--sp-8);
  --nav-height: auto;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }

p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

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

/* ---------- Utility: Section ---------- */
.section {
  padding-block: var(--sp-24);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-header h2 {
  margin-bottom: var(--sp-2);
}

.section-header .section-subtitle {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-family: var(--ff-heading);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header h4 {
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-transform: uppercase;
  word-spacing: -0.1em;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-top: 8px;
}

.section-header p {
  max-width: 600px;
  margin-inline: auto;
  font-size: var(--fs-md);
}

/* ---------- Utility: Text ---------- */
.text-gradient {
  background: linear-gradient(135deg, #f5f5f5, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--color-text);
}

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }

/* ---------- Utility: Visibility / SR-Only ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Utility: Reveal (JS driven) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(245, 245, 245, 0.2);
  color: var(--color-text);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-borderhover);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root {
    --container-padding: var(--sp-6);
  }

  .section {
    padding-block: var(--sp-16);
  }

  h2 { font-size: var(--fs-3xl); }
  h3 { font-size: var(--fs-xl); }
}

@media (max-width: 480px) {
  :root {
    --container-padding: var(--sp-5);
  }

  h2 { font-size: var(--fs-2xl); }

  .section-header {
    margin-bottom: var(--sp-10);
  }
}
