:root {
  --bg: #0b0a08;
  --surface: #12100c;
  --bone: #f4efe4;
  --secondary: #b8b1a2;
  --muted: #8e887b;
  --placeholder: #6b6558;
  --accent: #2f7cff;
  --border-subtle: rgba(244, 239, 228, 0.1);
  --border-mid: rgba(244, 239, 228, 0.25);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  background-color: var(--bg);
  color: var(--bone);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

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

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

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

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--bg);
  color: var(--bone);
}

/* Film grain overlay */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography & Utility Classes */
.font-display {
  font-family: "Big Shoulders Display", Impact, sans-serif;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

.block {
  display: block;
}

.text-bone {
  color: var(--bone);
}

.text-accent {
  color: var(--accent);
}

.text-stroke-accent {
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
}

.text-stroke-bone {
  -webkit-text-stroke: 1.5px rgba(244, 239, 228, 0.35);
  color: transparent;
}

@media (max-width: 640px) {
  .text-stroke-accent {
    -webkit-text-stroke-width: 1.2px;
  }
}

.clip-frame {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%);
}

.lane-dash-x {
  background-image: linear-gradient(90deg, var(--accent) 55%, transparent 0);
  background-size: 28px 2px;
  background-repeat: repeat-x;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.eyebrow.text-accent {
  color: var(--accent);
}

/* Icons */
.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.icon-lg {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-arrow {
  transition: transform 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn:hover .icon-arrow {
  transform: translate(2px, -2px);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background-color: var(--bone);
}

.btn-outline {
  border: 1px solid var(--border-mid);
  color: var(--bone);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border-subtle);
  background-color: rgba(11, 10, 8, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: headerDrop 0.9s var(--ease-out-expo) 0.15s both;
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-48px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav-logo-link {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 2.75rem;
  width: auto;
  mix-blend-mode: lighten;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .header-actions {
    gap: 1.25rem;
  }
}

.nav-whatsapp-btn {
  padding: 0.625rem 0.75rem;
}

.nav-whatsapp-label {
  display: none;
}

@media (min-width: 640px) {
  .nav-whatsapp-btn {
    padding: 0.625rem 1.25rem;
  }

  .nav-whatsapp-label {
    display: inline;
  }
}

.nav-phone {
  display: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--secondary);
  transition: color 0.2s ease;
}

.nav-phone:hover {
  color: var(--accent);
}

@media (min-width: 640px) {
  .nav-phone {
    display: block;
  }
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 10rem;
  }
}

.hero-glow {
  pointer-events: none;
  position: absolute;
  top: -8rem;
  right: -10%;
  height: 55vh;
  width: 55vw;
  border-radius: 9999px;
  background-color: rgba(47, 124, 255, 0.1);
  filter: blur(130px);
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  will-change: opacity;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
  }

  .hero-copy {
    grid-column: span 7 / span 7;
  }

  .hero-media {
    grid-column: span 5 / span 5;
  }
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
}

.eyebrow-dash {
  display: none;
  height: 2px;
  width: 4rem;
}

@media (min-width: 640px) {
  .eyebrow-dash {
    display: block;
  }
}

.hero-title {
  margin-top: 2rem;
  font-size: 15vw;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.85;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 5.8rem;
  }
}

.hero-line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.25rem;
}

.hero-line {
  display: block;
  animation: lineRise 1.05s var(--ease-out-expo) var(--delay, 0.3s) both;
}

@keyframes lineRise {
  from {
    transform: translateY(110%);
  }
  to {
    transform: translateY(0);
  }
}

.hero-anim {
  animation: fadeOnly 0.8s ease var(--delay, 0.2s) both;
}

.hero-anim-up {
  animation: fadeUp 0.8s var(--ease-out-expo) var(--delay, 1.15s) both;
}

.hero-anim-media {
  animation: fadeUpLarge 1.1s var(--ease-out-expo) var(--delay, 0.75s) both;
}

@keyframes fadeOnly {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpLarge {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  margin-top: 2rem;
  max-width: 28rem;
  font-size: 1rem;
  color: var(--secondary);
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transform: scale(1.1);
  will-change: transform;
}

@media (min-width: 640px) {
  .hero-img {
    height: 560px;
  }
}

.hero-img-scrim {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 10, 8, 0.5), transparent 55%, transparent);
}

.hero-caption {
  margin-top: 1rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

/* Marquee */
.marquee-wrap {
  position: relative;
  transform: rotate(-1deg);
  overflow: hidden;
  border-top: 1px solid var(--bg);
  border-bottom: 1px solid var(--bg);
  background-color: var(--accent);
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--bg);
}

.marquee-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 42s linear infinite;
}

/* Chapters / Manifesto */
.section-chapters {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

@media (min-width: 640px) {
  .section-chapters {
    padding-top: 9rem;
    padding-bottom: 9rem;
  }
}

.section-heading {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 2.25rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
}

@media (min-width: 640px) {
  .section-heading {
    font-size: 3.75rem;
  }
}

.chapters-list {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

@media (min-width: 640px) {
  .chapters-list {
    gap: 8rem;
  }
}

.chapter-row {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .chapter-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .chapter-num-col {
    grid-column: span 2 / span 2;
  }

  .chapter-text-col {
    grid-column: span 5 / span 5;
  }

  .chapter-media-col {
    grid-column: span 5 / span 5;
  }

  .chapter-row-reversed .chapter-media-col {
    order: 1;
  }

  .chapter-row-reversed .chapter-text-col {
    order: 2;
  }

  .chapter-row-reversed .chapter-num-col {
    order: 3;
  }
}

.chapter-num {
  display: block;
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
}

@media (min-width: 640px) {
  .chapter-num {
    font-size: 8rem;
  }
}

.chapter-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
}

@media (min-width: 640px) {
  .chapter-title {
    font-size: 3rem;
  }
}

.chapter-body {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--secondary);
}

.chapter-img-wrap {
  overflow: hidden;
}

.chapter-img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

@media (min-width: 640px) {
  .chapter-img {
    height: 24rem;
  }
}

/* Process / Steps & Stats */
.section-steps {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--surface);
}

.steps-inner {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 640px) {
  .steps-inner {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.steps-grid {
  margin-top: 4rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step-card {
  border-top: 2px dashed rgba(47, 124, 255, 0.4);
  padding-top: 1.5rem;
}

.step-title {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .step-title {
    font-size: 1.875rem;
  }
}

.step-body {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--secondary);
}

@media (min-width: 640px) {
  .step-body {
    font-size: 1rem;
  }
}

.stats-band {
  margin-top: 5rem;
  padding-top: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  color: var(--accent);
}

@media (min-width: 640px) {
  .stat-value {
    font-size: 3.75rem;
  }
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

/* Contact & Footer */
.section-contact {
  padding-top: 7rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .section-contact {
    padding-top: 9rem;
  }
}

.contact-heading {
  margin-top: 1.5rem;
  font-size: 16vw;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.85;
}

@media (min-width: 640px) {
  .contact-heading {
    font-size: 6rem;
  }
}

@media (min-width: 1024px) {
  .contact-heading {
    font-size: 7.2rem;
  }
}

.contact-subtitle {
  margin-top: 2rem;
  max-width: 28rem;
  font-size: 1rem;
  color: var(--secondary);
}

@media (min-width: 640px) {
  .contact-subtitle {
    font-size: 1.125rem;
  }
}

.contact-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.contact-phone {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--bone);
  transition: color 0.2s ease;
}

.contact-phone:hover {
  color: var(--accent);
}

@media (min-width: 640px) {
  .contact-phone {
    font-size: 1.875rem;
  }
}

.contact-details {
  margin-top: 5rem;
  display: grid;
  gap: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
}

@media (min-width: 640px) {
  .contact-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .contact-details {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.contact-detail-body {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--secondary);
}

.contact-email-link {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--secondary);
  transition: color 0.2s ease;
}

.contact-email-link:hover {
  color: var(--accent);
}

.site-footer {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-copy {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--accent);
}

/* Modal */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal-root[hidden] {
  display: none;
}

.modal-root.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 640px) {
  .modal-root {
    align-items: center;
    padding: 1.5rem;
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(11, 10, 8, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 92vh;
  overflow-y: auto;
  border: 1px solid rgba(244, 239, 228, 0.15);
  background-color: var(--surface);
  padding: 1.5rem;
  transform: translateY(48px);
  opacity: 0;
  transition: transform 0.45s var(--ease-out-expo), opacity 0.35s ease;
}

.modal-root.is-open .modal-panel {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 640px) {
  .modal-panel {
    padding: 2.5rem;
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-title {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

@media (min-width: 640px) {
  .modal-title {
    font-size: 2.25rem;
  }
}

.modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(244, 239, 228, 0.2);
  padding: 0.5rem;
  color: var(--bone);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lead-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.field-input {
  width: 100%;
  border: none;
  border-bottom: 1px dashed var(--border-mid);
  background: transparent;
  padding: 0.75rem 0;
  color: var(--bone);
  outline: none;
  transition: border-color 0.2s ease;
}

.field-input::placeholder {
  color: var(--placeholder);
}

.field-input:focus {
  border-bottom-color: var(--accent);
}

.field-select {
  background-color: var(--surface);
  cursor: pointer;
}

.field-select option {
  background-color: var(--surface);
  color: var(--bone);
}

.field-textarea {
  resize: none;
}

.modal-state {
  margin-top: 2.5rem;
}

.success-badge {
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--accent);
  color: var(--bg);
}

.icon-check {
  width: 1.5rem;
  height: 1.5rem;
}

.state-title {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.state-body {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--secondary);
}

.error-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Scroll Reveal Animations */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out-expo) var(--delay, 0s),
              transform 0.9s var(--ease-out-expo) var(--delay, 0s);
}

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

.js-enabled .reveal-scale {
  transform: scale(1.12);
  transition: transform 1.4s var(--ease-out-expo);
}

.js-enabled .reveal.is-visible .reveal-scale,
.js-enabled .reveal-scale.is-visible {
  transform: scale(1);
}

/* 404 Page */
.not-found-shell {
  display: flex;
  align-items: center;
}

.not-found-inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.not-found-title {
  margin-top: 1rem;
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.85;
}

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

  .site-header,
  .hero-line,
  .hero-anim,
  .hero-anim-up,
  .hero-anim-media,
  .animate-marquee {
    animation: none !important;
  }

  .js-enabled .reveal,
  .js-enabled .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
