/* ── Reset & Base ─────────────────────────────────── */
html {
  scroll-behavior: smooth;
  /* Matches footer colour — prevents grey flash below the dark footer */
  background: #000000;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-modal-open="true"] { overflow: hidden; }

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

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

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ── Layout helpers ───────────────────────────────── */
.site-shell { position: relative; overflow: clip; }

.container {
  width: min(calc(100% - 3rem), var(--container));
  margin: 0 auto;
}

.section { padding: 6rem 0; }

/* ── Typography ───────────────────────────────────── */
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

h1 {
  font-size: clamp(3.6rem, 9vw, 6.8rem);
  font-weight: 800;
  line-height: 0.96;
}

h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 0.97;
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.1;
}

p { margin: 0; }

/* ── Gradient text utility ────────────────────────── */
.gradient-text {
  background: var(--grad-iris);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Prevent clipping on descenders */
  padding-bottom: 0.06em;
}

/* ── Eyebrow label ────────────────────────────────── */
.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-dark { color: #60A5FA; }

/* ── Hero badge pill ──────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.18);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: badge-pulse 2.4s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}

/* ── Buttons ──────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: var(--text);
  color: var(--bg-white);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.btn-primary:hover {
  background: #3A3A3C;
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.btn-secondary:hover {
  border-color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

/* Ghost button (dark sections) */
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--dark-line-strong);
  background: transparent;
  color: var(--dark-text);
  font-size: 0.97rem;
  font-weight: 600;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.ghost-link:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* Legacy aliases so other pages still work — full properties below */

/* Simple overrides for legacy usage */
.button, .button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  background: var(--text);
  color: var(--bg-white);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.button {
  min-height: 3.4rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.97rem;
}

.button-small {
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
}

.button:hover, .button-small:hover {
  background: #3A3A3C;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

/* ── Section headings ─────────────────────────────── */
.section-heading { max-width: 54rem; }

.section-heading p:last-child {
  margin-top: 1.1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ── Reveal animation ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ── Form elements ────────────────────────────────── */
.form-field {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

input, textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--line-medium);
  border-radius: var(--radius-small);
  background: var(--bg-white);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

textarea { min-height: 8rem; resize: vertical; }

input::placeholder, textarea::placeholder {
  color: var(--text-tertiary);
}

input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-note {
  min-height: 1.4rem;
  margin-top: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ── Accessibility ────────────────────────────────── */
.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;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 760px) {
  .section { padding: 4.5rem 0; }
  h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  h2 { font-size: clamp(2rem, 9vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
