/* ─── Design Tokens & Shared Styles ─── */

:root {
  --bg: #05040a;
  --surface: rgba(9, 9, 18, 0.75);
  --surface-strong: rgba(18, 18, 32, 0.95);
  --fg: #f2f3f7;
  --muted: rgba(242, 243, 247, 0.72);
  --accent: #ffd36b;
  --accent-strong: #ff9f6b;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: min(1200px, 92vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html,
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--fg);
}

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

section {
  padding: clamp(72px, 12vw, 136px) 0;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Buttons ─── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 10px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(12, 10, 20, 0.8);
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.25);
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(24, 20, 38, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.button.is-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #08070c;
  border: none;
  box-shadow: 0 18px 48px rgba(255, 168, 80, 0.35);
}

.button.is-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 32px 70px rgba(255, 168, 80, 0.45);
}

/* ─── Section Heading ─── */

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(32px, 6vw, 58px);
}

.section-heading__eyebrow {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.section-heading__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  margin: 0;
}

.section-heading__lede {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

/* ─── Modal ─── */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 10, 0.78);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 12;
}

.modal.is-open {
  display: flex;
}

.modal__dialog {
  width: min(420px, 92vw);
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 16px;
  text-align: center;
}

.modal__title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.modal__body {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal__close {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ─── Responsive ─── */

@media (max-width: 880px) {
  section {
    padding: clamp(56px, 14vw, 96px) 0;
  }
}

@media (max-width: 640px) {
  .section-heading__title {
    font-size: clamp(28px, 8vw, 44px);
  }

  .button {
    width: 100%;
  }
}
