:root {
  --bg: #0c0c0b;
  --bg-soft: #141413;
  --panel: #181816;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3efe7;
  --muted: #9a948a;
  --accent: #c4a574;
  --accent-strong: #d4b78a;
  --ok: #7cb89a;
  --err: #e07a6a;
  --font: "Source Sans 3", "Source Sans Pro", sans-serif;
  --display: "Bricolage Grotesque", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.demo-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 1.25rem;
  background: rgba(12, 12, 11, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  color: var(--muted);
}

.demo-bar span {
  flex-shrink: 0;
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(196, 165, 116, 0.45);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ——— Nav ——— */
.nav {
  position: absolute;
  top: 2.6rem;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
}

.nav__logo {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__phone {
  text-decoration: none;
  font-size: 0.92rem;
  color: rgba(243, 239, 231, 0.82);
}

.nav__cta {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(243, 239, 231, 0.28);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav__cta:hover {
  border-color: var(--accent);
  background: rgba(196, 165, 116, 0.1);
}

@media (max-width: 640px) {
  .nav__phone {
    display: none;
  }

  .demo-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a1816;
}

.hero__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(12, 12, 11, 0.55) 0%, rgba(12, 12, 11, 0.18) 52%, rgba(12, 12, 11, 0.12) 100%),
    linear-gradient(0deg, rgba(12, 12, 11, 0.78) 0%, rgba(12, 12, 11, 0.08) 48%, rgba(12, 12, 11, 0.25) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem 4.5rem;
  animation: rise 0.9s ease-out both;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 15ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: 1.1rem;
  color: rgba(243, 239, 231, 0.78);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.45rem;
  border: 0;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: var(--accent-strong);
}

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

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--back {
  min-width: 52px;
  padding-inline: 0.9rem;
}

/* ——— Trust ——— */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: -1.5rem auto 0;
  padding: 0 1.25rem;
  position: relative;
  z-index: 5;
}

.trust > div {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.35rem 1.2rem;
}

.trust strong {
  display: block;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.trust span {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 800px) {
  .trust {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }
}

/* ——— Sections ——— */
.section-head {
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.works {
  padding: 5rem 0 2rem;
}

.works__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-auto-rows: minmax(220px, auto);
  gap: 0.85rem;
}

.works__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--bg-soft);
  min-height: 260px;
}

.works__item--lg {
  grid-row: span 2;
  min-height: 540px;
}

.works__item--wide {
  grid-column: 1 / -1;
  min-height: 320px;
}

.works__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.works__item:hover img {
  transform: scale(1.04);
}

.works__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.works__item figcaption span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 800px) {
  .works__grid {
    grid-template-columns: 1fr;
  }

  .works__item--lg,
  .works__item--wide {
    grid-row: auto;
    grid-column: auto;
    min-height: 280px;
  }
}

/* ——— Process ——— */
.process {
  padding: 4.5rem 0 2rem;
}

.process__list {
  list-style: none;
  margin: 0 auto;
  padding: 0 1.25rem;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.process__list li {
  padding: 1.4rem 1.15rem;
  border-top: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(196, 165, 116, 0.06), transparent 60%);
}

.process__list span {
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.process__list h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.process__list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 800px) {
  .process__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .process__list {
    grid-template-columns: 1fr;
  }
}

/* ——— Quiz ——— */
.quiz-section {
  padding: 4.5rem 0 5rem;
}

.quiz-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.quiz-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.quiz-copy > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 34ch;
  font-size: 1.02rem;
}

.quiz-copy__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quiz-copy__list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  border-top: 1px solid var(--line);
  color: rgba(243, 239, 231, 0.88);
  font-size: 0.95rem;
}

.quiz-copy__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
}

.quiz-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.5rem 1.35rem 1.6rem;
  animation: rise 0.7s 0.1s ease-out both;
}

.progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.progress__bar {
  height: 100%;
  width: 25%;
  background: var(--accent);
  transition: width 0.35s ease;
}

.step-label {
  margin: 0 0 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.step {
  display: none;
}

.step.is-active {
  display: block;
  animation: fade 0.3s ease;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice:hover {
  border-color: rgba(196, 165, 116, 0.45);
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(196, 165, 116, 0.08);
}

.choice input {
  accent-color: var(--accent);
}

.choice span {
  font-weight: 600;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.field em {
  font-style: normal;
  opacity: 0.7;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: #10100f;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

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

.quiz-nav {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.quiz-nav .btn:not(.btn--back) {
  flex: 1;
}

.form-status {
  min-height: 1.25rem;
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-status.is-error {
  color: var(--err);
}

.success {
  text-align: left;
  padding: 0.5rem 0;
  animation: fade 0.3s ease;
}

.success h3 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ok);
}

.success p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .quiz-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
}

.footer__brand {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.footer p {
  margin: 0 auto 0.4rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer__meta {
  opacity: 0.7;
}

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

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

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero__img {
    transform: none;
  }
}
