:root {
  --ink: #211a14;
  --muted: #786b5f;
  --paper: #fff8ec;
  --clay: #d96f3a;
  --sun: #f2b84b;
  --sage: #7fa56b;
  --night: #17313d;
  --cream: rgba(255, 248, 236, 0.78);
  --line: rgba(33, 26, 20, 0.12);
  --shadow: 0 24px 80px rgba(69, 42, 17, 0.18);
  --radius-lg: 34px;
  --radius-md: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Space Grotesk", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 8% 12%, rgba(242, 184, 75, 0.35), transparent 30rem),
    radial-gradient(circle at 86% 10%, rgba(127, 165, 107, 0.32), transparent 28rem),
    linear-gradient(135deg, #fffaf0 0%, #f4dfbe 52%, #e7c48a 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(33, 26, 20, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 26, 20, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(69, 42, 17, 0.12);
}

.brand,
.nav-menu,
.hero-actions,
.trust-band,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff8ec;
  border-radius: 50%;
  background: var(--ink);
  font-family: var(--font-display);
}

.nav-menu {
  gap: 8px;
}

.nav-menu a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease, background 180ms ease;
}

.nav-menu a:hover {
  color: var(--ink);
  background: rgba(33, 26, 20, 0.07);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--paper);
  transition: transform 180ms ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 76px 0 52px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--font-display);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 11vw, 8.6rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(33, 26, 20, 0.22);
}

.button.secondary {
  background: rgba(255, 248, 236, 0.42);
}

.hero-card {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.card-orbit {
  position: absolute;
  width: min(82vw, 490px);
  aspect-ratio: 1;
  border: 1px solid rgba(33, 26, 20, 0.13);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.card-orbit::before,
.card-orbit::after {
  position: absolute;
  width: 18px;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: var(--clay);
}

.card-orbit::before {
  top: 40px;
  left: 44px;
}

.card-orbit::after {
  right: 26px;
  bottom: 96px;
  background: var(--sage);
}

.browser-mockup {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  overflow: hidden;
  border: 1px solid rgba(33, 26, 20, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 236, 0.82);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.browser-bar {
  display: flex;
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clay);
}

.browser-bar span:nth-child(2) {
  background: var(--sun);
}

.browser-bar span:nth-child(3) {
  background: var(--sage);
}

.mockup-content {
  padding: 36px;
}

.mockup-title {
  width: 76%;
  height: 90px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--night), var(--clay));
}

.mockup-line {
  width: 58%;
  height: 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(33, 26, 20, 0.16);
}

.mockup-line.wide {
  width: 88%;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.mockup-grid div {
  height: 100px;
  border-radius: 22px;
  background: rgba(217, 111, 58, 0.19);
}

.mockup-grid div:nth-child(2) {
  background: rgba(127, 165, 107, 0.23);
}

.mockup-grid div:nth-child(3) {
  background: rgba(242, 184, 75, 0.24);
}

.metric-card {
  position: absolute;
  z-index: 2;
  width: 142px;
  padding: 18px;
  border: 1px solid rgba(33, 26, 20, 0.12);
  border-radius: 24px;
  background: rgba(255, 248, 236, 0.84);
  box-shadow: 0 18px 45px rgba(69, 42, 17, 0.14);
  backdrop-filter: blur(16px);
}

.metric-card strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.metric-card.top {
  top: 92px;
  left: 8px;
}

.metric-card.bottom {
  right: 0;
  bottom: 92px;
}

.trust-band {
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(33, 26, 20, 0.86);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.trust-band span {
  position: relative;
  font-weight: 700;
}

.section {
  padding: 110px 0 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 650px;
}

.service-grid,
.project-grid,
.signup-form {
  display: grid;
  gap: 18px;
}

.service-grid,
.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.project-card,
.process-panel,
.contact-card,
.signup-panel {
  border: 1px solid var(--line);
  box-shadow: 0 20px 55px rgba(69, 42, 17, 0.1);
}

.service-card {
  min-height: 300px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 236, 0.62);
}

.service-card.featured {
  color: var(--paper);
  background:
    radial-gradient(circle at 20% 20%, rgba(242, 184, 75, 0.32), transparent 14rem),
    linear-gradient(145deg, var(--night), #294f4f);
}

.service-card p,
.contact-card p,
.steps p {
  color: var(--muted);
  line-height: 1.7;
}

.service-card.featured p {
  color: rgba(255, 248, 236, 0.78);
}

.service-number {
  display: inline-flex;
  margin-bottom: 64px;
  color: var(--clay);
  font-weight: 800;
}

.featured .service-number {
  color: var(--sun);
}

.project-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff8ec;
}

.project-card span {
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.18);
  font-weight: 700;
}

.project-card h3 {
  max-width: 310px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.project-card.amber {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 248, 236, 0.28), transparent 9rem),
    #b36a1b;
}

.project-card.green {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 248, 236, 0.26), transparent 9rem),
    #496f43;
}

.project-card.blue {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 248, 236, 0.25), transparent 9rem),
    #17313d;
}

.signup-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 8% 12%, rgba(217, 111, 58, 0.18), transparent 16rem),
    rgba(255, 248, 236, 0.66);
}

.signup-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.signup-form {
  grid-template-columns: repeat(2, 1fr);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 248, 236, 0.78);
}

.signup-form label,
.signup-form .full {
  grid-column: span 2;
}

.signup-form label:not(.full) {
  grid-column: span 1;
}

.signup-form span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.signup-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(33, 26, 20, 0.16);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.signup-form input:focus {
  border-color: var(--clay);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 4px rgba(217, 111, 58, 0.14);
}

.signup-form button {
  cursor: pointer;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.form-status.success {
  color: #496f43;
}

.form-status.error {
  color: #a33c1f;
}

.process-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 236, 0.62);
}

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
}

.steps span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}

.steps p {
  margin-bottom: 0;
  padding-top: 8px;
}

.contact {
  padding-bottom: 90px;
}

.contact-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 70px);
  border-radius: 46px;
  background:
    radial-gradient(circle at 95% 20%, rgba(242, 184, 75, 0.34), transparent 18rem),
    rgba(255, 248, 236, 0.74);
  text-align: center;
}

.contact-card p {
  max-width: 600px;
  margin: 0 auto 28px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 28px 0 36px;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 880px) {
  .site-header {
    border-radius: 26px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.is-open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle.is-open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 248, 236, 0.95);
    box-shadow: 0 18px 45px rgba(69, 42, 17, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 13px 14px;
  }

  .hero,
  .signup-panel,
  .process-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 34px;
    padding-top: 62px;
  }

  .hero-card {
    min-height: 430px;
  }

  .metric-card.top {
    top: 28px;
  }

  .metric-card.bottom {
    bottom: 34px;
  }

  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .trust-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

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

  h1 {
    font-size: clamp(3.25rem, 17vw, 4.8rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-card {
    min-height: 360px;
  }

  .browser-mockup {
    border-radius: 26px;
  }

  .mockup-content {
    padding: 24px;
  }

  .mockup-title {
    height: 70px;
  }

  .mockup-grid {
    grid-template-columns: 1fr;
  }

  .mockup-grid div {
    height: 58px;
  }

  .metric-card {
    width: 118px;
    padding: 14px;
  }

  .metric-card strong {
    font-size: 1.6rem;
  }

  .trust-band {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 78px;
  }

  .service-card,
  .project-card {
    min-height: 230px;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .signup-form label,
  .signup-form .full,
  .signup-form label:not(.full) {
    grid-column: 1;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
