/* ==========================================================================
   INNOBIZA v2 — Base, Accessible Primitives & Buttons
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: var(--navy-980);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--navy-980);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

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

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

::selection {
  background: var(--orange-500);
  color: var(--navy-980);
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  background: var(--orange-500);
  color: var(--navy-980);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2.5px solid var(--orange-500);
  outline-offset: 3px;
}

.btn[hidden],
[hidden] {
  display: none !important;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Editorial Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-400);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange-500), transparent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.028em;
  color: var(--white);
}

.section-lead {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 58ch;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.55rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  transition:
    transform var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--orange-500);
  color: var(--navy-980);
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
  background: var(--orange-400);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(253, 125, 2, 0.44);
}

.btn--secondary-dark {
  background: rgba(6, 35, 70, 0.45);
  color: var(--white);
  border: 1px solid rgba(199, 217, 245, 0.28);
  backdrop-filter: blur(10px);
}

.btn--secondary-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--orange-400);
  transform: translateY(-2px);
}

.btn--ghost-dark {
  padding: 0.65rem 1.05rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  font-size: 0.875rem;
}

.btn--ghost-dark:hover {
  color: var(--white);
  border-color: var(--orange-500);
}

.btn--sm {
  padding: 0.64rem 1.15rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1.05rem 1.9rem;
  font-size: 1rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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