/* ============================================================
   base.css — design tokens, reset, focus, reduced-motion
   Theme: "Dark Premium + Orange"
   ============================================================ */

:root {
  /* Color */
  --color-bg: #0a0e14;
  --color-bg-alt: #0d1220;
  --color-surface: #121828;
  --color-surface-2: #171f33;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.16);

  --color-text: #f2f5fa;
  --color-text-muted: #9aa6bc;

  --color-accent: #ff7a1a;
  --color-accent-hover: #ff8c42;
  --color-accent-soft: rgba(255, 122, 26, 0.14);
  --color-on-accent: #1a1207;

  --color-focus: #ffa35c;

  /* Typography (system font stack) */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 14px 36px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(255, 122, 26, 0.35),
    0 8px 32px rgba(255, 122, 26, 0.18);

  /* Motion */
  --motion-fast: 150ms;
  --motion-med: 250ms;
  --motion-slow: 500ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Header */
  --header-height: 4.25rem;
}

/* ------------------------------------------------------------
   Reset
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img,
svg {
  display: block;
}

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

/* ------------------------------------------------------------
   Utilities
   ------------------------------------------------------------ */
.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-inner {
  width: 90vw;
  max-width: none;
  margin-inline: auto;
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: var(--space-7);
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.section-subheading {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.text-gradient {
  background: linear-gradient(100deg, var(--color-accent) 0%, #ffb066 55%, var(--color-accent-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------
   Focus
   ------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
