:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: #a8b2aa;
  --line: rgba(245, 241, 232, 0.16);
  --paper: #090d0f;
  --white: #ffffff;
  --green: #12a58f;
  --green-dark: #0f7467;
  --gold: #d8b66b;
  --clay: #f0642f;
  --charcoal: #10171a;
  --panel: rgba(15, 21, 24, 0.9);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(9, 13, 15, 0.82);
  border-bottom: 1px solid rgba(245, 241, 232, 0.12);
  backdrop-filter: blur(18px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--clay);
  color: var(--white);
  font-size: 17px;
  border-radius: 6px;
}

nav {
  gap: 22px;
  color: rgba(245, 241, 232, 0.72);
  font-size: 14px;
}

.hero {
  min-height: calc(100svh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(38px, 7vw, 90px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.94), rgba(3, 6, 7, 0.66), rgba(3, 6, 7, 0.18)),
    url("/assets/projects/wraith/wraith-aerial.jpg") center / cover;
  color: var(--white);
}

.hero-copy {
  max-width: 760px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy > p:not(.kicker) {
  max-width: 690px;
  margin-bottom: 30px;
  color: rgba(245, 241, 232, 0.82);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-button,
button,
.whatsapp-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: var(--clay);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 780;
}

.hero-button {
  padding: 0 22px;
}

.lead-panel {
  width: 100%;
  border: 1px solid rgba(245, 241, 232, 0.28);
  border-radius: 8px;
  background: rgba(245, 241, 232, 0.96);
  box-shadow: var(--shadow);
  color: #111819;
}

form,
.success {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
}

.form-head h2,
.success h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.form-head p,
.success p,
small {
  color: #5d6863;
}

label {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 720;
}

legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 720;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  background: #ffffff;
  color: #111819;
  font: inherit;
}

select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green-dark) 50%),
    linear-gradient(135deg, var(--green-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 21px,
    calc(100% - 16px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

select:invalid {
  color: #8a9893;
}

input:focus,
select:focus {
  outline: 3px solid rgba(15, 107, 93, 0.18);
  border-color: var(--green);
}

[aria-invalid="true"] {
  border-color: #c9492d;
}

[aria-invalid="true"]:focus {
  outline-color: rgba(201, 73, 45, 0.18);
  border-color: #c9492d;
}

.field-error {
  color: #b33a22;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
}

.phone-field[hidden],
.telegram-field[hidden] {
  display: none;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.35;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--green);
}

button {
  width: 100%;
  margin-top: 4px;
}

small {
  font-size: 12px;
}

.success[hidden] {
  display: none;
}

.whatsapp-link {
  padding: 0 18px;
  background: var(--green);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(245, 241, 232, 0.12);
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  border-bottom: 1px solid rgba(245, 241, 232, 0.12);
}

.stats-band div {
  display: grid;
  gap: 4px;
  padding: 24px clamp(18px, 4vw, 56px);
  background: #0d1315;
}

.stats-band strong {
  color: var(--gold);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.stats-band span {
  color: var(--muted);
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.section-head {
  max-width: 820px;
  margin-bottom: 26px;
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
}

.project-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card,
.proof-grid article {
  overflow: hidden;
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: 8px;
  background: #11181b;
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.project-card p {
  margin-bottom: 18px;
  color: var(--muted);
}

.project-image {
  min-height: 260px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 14px;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.54)),
    var(--project-image);
  background-position: center;
  background-size: cover;
}

.project-image span {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(9, 13, 15, 0.64);
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.project-body {
  padding: 20px;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.project-metrics div {
  min-height: 72px;
  border: 1px solid rgba(245, 241, 232, 0.12);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.project-metrics dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-metrics dd {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.project-metrics div:first-child,
.project-metrics div:last-child {
  grid-column: span 2;
}

.project-metrics div:last-child dd {
  color: var(--clay);
  font-size: 26px;
}

.proof-section {
  background:
    linear-gradient(180deg, #12191b, #090d0f);
}

.proof-grid article {
  padding: 22px;
}

.proof-grid h3 {
  margin-bottom: 8px;
}

.proof-grid p {
  color: var(--muted);
}

.process {
  background:
    linear-gradient(90deg, rgba(240, 100, 47, 0.18), transparent),
    #0e1517;
  color: var(--white);
}

.process ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.process li {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 18px;
}

.process li::before {
  display: block;
  margin-bottom: 20px;
  color: var(--gold);
  counter-increment: step;
  content: "0" counter(step);
  font-weight: 850;
}

.faq {
  max-width: 920px;
  margin: 0 auto;
}

details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 760;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.thank-you-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(8, 18, 16, 0.76), rgba(8, 18, 16, 0.34)),
    url("/assets/projects/wraith/wraith-aerial.jpg") center / cover;
}

.thank-you-card {
  width: min(100%, 720px);
  border: 1px solid rgba(245, 241, 232, 0.24);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
  background: rgba(9, 13, 15, 0.92);
  box-shadow: var(--shadow);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.thank-you-brand {
  margin-bottom: 34px;
}

.thank-you-card .kicker {
  color: var(--gold);
}

.thank-you-card h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 72px);
  color: #fffaf0;
}

.thank-you-card p {
  max-width: 590px;
  color: rgba(245, 241, 232, 0.82);
  font-size: clamp(17px, 2vw, 20px);
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.secondary-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 241, 232, 0.22);
  border-radius: 6px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf0;
  font-weight: 780;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
  }

  .lead-panel {
    max-width: 620px;
  }

  .project-grid,
  .proof-grid,
  .process ol {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 10px 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    padding: 32px 14px;
    background:
      linear-gradient(180deg, rgba(8, 18, 16, 0.82), rgba(8, 18, 16, 0.38)),
      url("/assets/projects/wraith/wraith-aerial.jpg") center / cover;
  }

  h1 {
    font-size: clamp(38px, 14vw, 54px);
  }

  .stats-band,
  .project-grid,
  .proof-grid,
  .process ol {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 14px;
  }

  .project-image {
    min-height: 190px;
  }
}
