:root {
  --bg: #f4f1ea;
  --surface: #fffaf1;
  --surface-contrast: #1f2a24;
  --text: #122016;
  --text-muted: #475649;
  --accent: #e86f2d;
  --accent-strong: #c64f0f;
  --border: #d7c8b1;
  --shadow: 0 20px 40px rgba(18, 32, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 20%, #fce5c7 0%, rgba(252, 229, 199, 0) 50%),
    radial-gradient(circle at 80% 0%, #d7edd6 0%, rgba(215, 237, 214, 0) 45%), var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

.ambient-glow {
  position: fixed;
  inset: -30vmax;
  background: conic-gradient(from 150deg, #ffe8be, #d6f0dc, #ffd8be, #ffe8be);
  opacity: 0.17;
  z-index: -1;
  filter: blur(70px);
  animation: drift 18s linear infinite;
}

@keyframes drift {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.03);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.container {
  width: min(1080px, 92vw);
  margin-inline: auto;
}

.app-error {
  margin-top: 1.2rem;
  margin-bottom: -1.2rem;
  background: #ffe7e4;
  border: 1px solid #d46b62;
  color: #7d231b;
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(244, 241, 234, 0.74);
  border-bottom: 1px solid rgba(199, 184, 160, 0.4);
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.hero {
  padding: 7rem 0 5rem;
}

.eyebrow {
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.hero__subtitle {
  margin-top: 1.2rem;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.82rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

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

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

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

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
}

.section {
  padding: 4.4rem 0;
}

.section__header {
  margin-bottom: 1.6rem;
}

.section__subtitle {
  margin-top: 0.9rem;
  color: var(--text-muted);
}

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

.card {
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.2rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.section--contrast {
  background: var(--surface-contrast);
  color: #f6f4ee;
}

.section--contrast .eyebrow {
  color: #ffd4b4;
}

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

.step {
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
}

.step__index {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  color: #ffd4b4;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: 1.16rem;
  margin-bottom: 0.6rem;
}

.step p {
  margin: 0;
  color: rgba(245, 243, 237, 0.82);
}

.about__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 70ch;
}

.about__actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

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

.reference-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  min-height: 132px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
}

.reference-card__logo {
  width: min(180px, 85%);
  height: 54px;
  object-fit: contain;
}

.reference-card__name {
  margin-top: 0.75rem;
  font-weight: 600;
}

.reference-card__description {
  margin: 0.65rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.references-note {
  margin-top: 1rem;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section--cta {
  background: linear-gradient(120deg, #f7d08a, #f1b8a8 45%, #d0e8ca);
}

.cta {
  text-align: left;
}

.cta p {
  margin: 0.9rem 0 0;
  max-width: 60ch;
}

.cta__actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.footer {
  border-top: 1px solid rgba(199, 184, 160, 0.65);
  padding: 1.3rem 0;
}

.footer__inner {
  text-align: center;
}

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

.footer__meta {
  margin-top: 0.35rem;
}

.footer a {
  color: inherit;
  text-underline-offset: 2px;
}

.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

.reveal-up:nth-of-type(2) {
  animation-delay: 0.06s;
}

.reveal-up:nth-of-type(3) {
  animation-delay: 0.12s;
}

.reveal-up:nth-of-type(4) {
  animation-delay: 0.18s;
}

.reveal-up:nth-of-type(5) {
  animation-delay: 0.24s;
}

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

@media (max-width: 900px) {
  .cards,
  .steps,
  .references-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5.5rem;
  }
}
