/* ==========================================================================
   AxionTech Design System v3
   Editorial white + controlled dark/neon
   ========================================================================== */

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

:root {
  --axion-black: #050505;
  --axion-ink: #0B0B0F;
  --axion-white: #FAFAF9;
  --axion-surface: #FFFFFF;
  --axion-muted-bg: #F4F4F2;
  --axion-muted: #6B7280;
  --axion-muted-2: #9CA3AF;
  --axion-border: rgba(11, 11, 15, 0.08);
  --axion-border-strong: rgba(11, 11, 15, 0.14);
  --axion-border-dark: rgba(255, 255, 255, 0.1);

  --axion-blue: #2563EB;
  --axion-cyan: #22D3EE;
  --axion-violet: #7C3AED;
  --axion-green: #C9F465;
  --axion-pink: #F472B6;
  --axion-orange: #FB923C;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.5rem, 2.5vw, 2rem);
  --text-3xl: clamp(2rem, 4vw, 3rem);
  --text-4xl: clamp(2.1rem, 7vw, 4.5rem);
  --text-hero: clamp(2.75rem, 11vw, 9rem);

  --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;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --container: 1280px;
  --gutter: clamp(1rem, 4.5vw, 3rem);
  --header-h: 88px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 320ms;
  --duration-slow: 700ms;

  --shadow-soft: 0 20px 60px rgba(11, 11, 15, 0.06);
  --z-header: 1000;
  --z-overlay: 2000;
  --z-loader: 10000;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  overflow-x: clip;
}
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--axion-ink);
  background: var(--axion-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}
img, svg, video, canvas, iframe { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Prevent iOS zoom on focus */
input, select, textarea { font-size: 16px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; word-wrap: break-word; overflow-wrap: break-word; }
h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-weight: 700;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  max-width: 100%;
}
.container--wide { width: min(100% - (var(--gutter) * 2), 1440px); }
.container--narrow { width: min(100% - (var(--gutter) * 2), 820px); }

@media (min-width: 768px) {
  :root { --header-h: 108px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
}
.btn:focus-visible { outline: 2px solid var(--axion-cyan); outline-offset: 3px; }
.btn--primary { background: var(--axion-ink); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--secondary { background: var(--axion-muted-bg); color: var(--axion-ink); }
.btn--ghost, .btn--outline {
  background: transparent;
  border-color: var(--axion-border-strong);
}
.btn--ghost:hover, .btn--outline:hover { border-color: var(--axion-ink); }
.btn--neon { background: var(--axion-green); color: var(--axion-black); }
.btn--sm { min-height: 40px; padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn--lg { min-height: 56px; padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn--icon {
  width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%;
  border: 1px solid var(--axion-border-strong); background: var(--axion-surface);
}
.btn--arrow {
  width: 56px; height: 56px; min-height: 56px; padding: 0;
  border-radius: 50%; background: var(--axion-ink); color: #fff;
}
.btn-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.95rem;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

/* Badge / Pill */
.badge, .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--axion-border);
  border-radius: var(--radius-full);
  background: var(--axion-surface);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--axion-muted);
}
.badge::before, .pill--dot::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.7;
}
.pill-tag {
  display: inline-flex;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--axion-border-strong);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--axion-ink);
  background: transparent;
  transition: border-color 0.2s, background 0.2s;
}
.pill-tag:hover { border-color: var(--axion-ink); background: var(--axion-muted-bg); }
.pill-cloud { display: flex; flex-wrap: wrap; gap: 0.55rem; }

/* Section header */
.section-header { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-header--row {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: var(--space-6);
}
.section-header--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-header__title {
  font-size: var(--text-4xl);
  margin: 0.85rem 0 0.75rem;
  white-space: pre-line;
}
.section-header__subtitle {
  color: var(--axion-muted);
  font-size: var(--text-lg);
  max-width: 48ch;
  line-height: 1.55;
}
.section-header--center .section-header__subtitle { margin-inline: auto; }

/* Forms */
.form-group { margin-bottom: var(--space-5); }
.form-group label {
  display: block; margin-bottom: 0.4rem;
  font-size: var(--text-sm); font-weight: 500;
}
.form-control,
input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="date"], input[type="time"],
select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--axion-border);
  border-radius: var(--radius-md);
  background: var(--axion-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 150px; resize: vertical; }
.form-control:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--axion-ink);
  box-shadow: 0 0 0 4px rgba(11, 11, 15, 0.06);
}
.form-row {
  display: grid; gap: var(--space-4);
}
@media (min-width: 768px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}

/* Utilities */
.text-muted { color: var(--axion-muted); }
.text-gradient {
  background: linear-gradient(135deg, var(--axion-cyan), var(--axion-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.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;
}

.section--dark {
  background: var(--axion-black);
  color: var(--axion-white);
  --axion-muted: #A1A1AA;
  --axion-border: var(--axion-border-dark);
  --axion-surface: #111114;
  --axion-ink: #FAFAF9;
}

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