/* DevShed Digital landing page, ported from the Figma Make "Website Redesign" file. */

:root {
  --ink: #111614;
  --ink-hover: #37413d;
  --paper: #f5f4ee;
  --lime: #d7ff64;
  --sky: #9fe8ff;
  --peach: #ffb78a;
  --green: #527d09;
  --green-dot: #6dae00;
  --muted: #66706b;
  --body: #4e5954;
  --font-sans: "Manrope", sans-serif;
  --font-serif: "DM Serif Display", serif;
  --font-mono: "Roboto Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

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

.container {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--green { color: var(--green); }
.eyebrow--lime { color: var(--lime); }

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section {
  scroll-margin-top: 5rem;
  padding-block: 5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-intro {
  display: grid;
  gap: 2rem;
}

.eyebrow + .section-title,
.eyebrow + .section-intro {
  margin-top: 1.25rem;
}

.lead {
  max-width: 32rem;
  align-self: end;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--body);
}

/* ---------- Logo ---------- */

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo__mark {
  width: 2.5rem;
  height: 1.75rem;
  flex-shrink: 0;
  color: var(--ink);
}

.logo__text {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.logo__text span {
  font-weight: 500;
  color: var(--muted);
}

.logo--inverted .logo__mark,
.logo--inverted .logo__text { color: #fff; }
.logo--inverted .logo__text span { color: rgb(255 255 255 / 0.5); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgb(17 22 20 / 0.1);
  background: rgb(245 244 238 / 0.9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-link {
  position: relative;
  padding-block: 0.5rem;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 150ms;
}

.header-cta:hover { background: var(--ink-hover); }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgb(17 22 20 / 0.2);
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span span {
  display: block;
  width: 1.25rem;
  height: 0.125rem;
  background: currentColor;
}

.menu-toggle span span + span { margin-top: 0.375rem; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid rgb(17 22 20 / 0.1);
  background: var(--paper);
  font-size: 1.5rem;
  font-weight: 700;
}

.mobile-nav[hidden] { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  font-weight: 700;
  transition: transform 150ms, background-color 150ms;
}

.btn--primary {
  justify-content: space-between;
  gap: 2rem;
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover { transform: translateY(-0.125rem); }

.btn--secondary {
  justify-content: center;
  border: 1px solid rgb(17 22 20 / 0.25);
  background: rgb(255 255 255 / 0.5);
}

.btn--secondary:hover { background: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(17, 22, 20, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 22, 20, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 90%);
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(17 22 20 / 0.15);
  background: rgb(255 255 255 / 0.7);
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green-dot);
}

.pulse-dot--animated { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes pulse {
  50% { opacity: 0.5; }
}

.hero__title {
  max-width: 48rem;
  font-size: clamp(3.5rem, 8vw, 7.2rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.hero__title em {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.055em;
  color: var(--green);
}

.hero__copy {
  max-width: 36rem;
  margin-top: 2rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--body);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(17 22 20 / 0.15);
  color: var(--muted);
}

.hero__visual { position: relative; }

.hero__glow {
  position: absolute;
  top: -3rem;
  right: -4rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: var(--lime);
  filter: blur(64px);
}

.hero__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d9ddd7;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.hero__photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgb(17 22 20 / 0.6), transparent 50%);
}

.hero__caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: #fff;
}

.hero__caption .eyebrow-sm {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.7);
}

.hero__caption-title {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.hero__caption-icon {
  display: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--lime);
  color: var(--ink);
}

.status-card {
  position: absolute;
  top: 2rem;
  left: -1.25rem;
  z-index: 2;
  width: 14rem;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 22, 20, 0.18);
}

.status-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-card__steps {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.status-card__steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-card__num {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.status-card__num--active {
  background: var(--lime);
  color: var(--ink);
}

/* ---------- Services ---------- */

.services .section-title {
  max-width: 36rem;
  line-height: 0.98;
}

.services {
  background: var(--ink);
  color: #fff;
}

.services .lead { color: rgb(255 255 255 / 0.6); }

.services__grid {
  display: grid;
  margin-top: 3.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  border-left: 1px solid rgb(255 255 255 / 0.15);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  padding: 1.75rem;
  border-right: 1px solid rgb(255 255 255 / 0.15);
  border-bottom: 1px solid rgb(255 255 255 / 0.15);
  transition: background-color 150ms, color 150ms;
}

.service-card:hover {
  background: #fff;
  color: var(--ink);
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.45);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  transition: transform 150ms, border-color 150ms;
}

.service-card__body {
  margin-top: auto;
  padding-top: 4rem;
}

.service-card__tag {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.service-card__text {
  margin-top: 1rem;
  line-height: 1.625;
  color: rgb(255 255 255 / 0.55);
}

.service-card:hover .service-card__num { color: var(--muted); }
.service-card:hover .service-card__icon { transform: rotate(45deg); border-color: rgb(17 22 20 / 0.2); }
.service-card:hover .service-card__tag { color: var(--green); }
.service-card:hover .service-card__text { color: var(--body); }

/* ---------- Process ---------- */

.process__steps {
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin-top: 4rem;
}

.process__line {
  display: none;
  position: absolute;
  top: 1.25rem;
  right: 0;
  left: 0;
  border-top: 1px dashed rgb(17 22 20 / 0.25);
}

.process-step { position: relative; }

.process-step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.process-step h3 {
  margin-top: 1.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.process-step p {
  max-width: 24rem;
  margin-top: 0.75rem;
  line-height: 1.625;
  color: var(--muted);
}

/* ---------- Results ---------- */

.results {
  border-block: 1px solid rgb(17 22 20 / 0.15);
  background: #fff;
}

.results__head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.results__head p:last-child {
  max-width: 24rem;
  line-height: 1.625;
  color: var(--muted);
}

.results__grid {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
}

.result-card {
  display: flex;
  flex-direction: column;
  min-height: 18rem;
  padding: 1.75rem;
}

.result-card--lime { background: var(--lime); }
.result-card--sky { background: var(--sky); }
.result-card--peach { background: var(--peach); }

.result-card__company {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-card__body { margin-top: auto; }

.result-card__metric {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.result-card__label {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

/* ---------- FAQ ---------- */

.faq__inner {
  display: grid;
  gap: 3rem;
}

.faq__intro p:last-child {
  max-width: 24rem;
  margin-top: 1.25rem;
  line-height: 1.625;
  color: var(--muted);
}

.faq__list { border-top: 1px solid rgb(17 22 20 / 0.2); }

.faq-item {
  padding-block: 1.5rem;
  border-bottom: 1px solid rgb(17 22 20 / 0.2);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.faq-item__q { flex: 1; }

.faq-item__toggle {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 150ms;
}

.faq-item[open] .faq-item__toggle { transform: rotate(45deg); }

.faq-item p {
  max-width: 42rem;
  margin-left: 2.5rem;
  padding-top: 1rem;
  line-height: 1.625;
  color: var(--muted);
}

/* ---------- CTA ---------- */

.cta { background: var(--lime); }

.cta__inner {
  display: grid;
  gap: 2.5rem;
  padding-block: 5rem;
}

.cta__title {
  max-width: 56rem;
  margin-top: 1.5rem;
  font-size: 3rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.cta__button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  width: 10rem;
  height: 10rem;
  padding: 1.25rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transition: transform 150ms;
}

.cta__button:hover { transform: rotate(-2deg); }

.cta__button span {
  font-size: 1.25rem;
  line-height: 1.25;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #fff;
}

.site-footer__inner { padding-block: 3rem; }

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.15);
}

.site-footer__tagline {
  max-width: 24rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgb(255 255 255 / 0.5);
}

.site-footer__cols {
  display: flex;
  gap: 3rem;
  font-size: 0.875rem;
}

.site-footer__col {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.site-footer__col p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.4);
}

.site-footer__col a:hover { color: var(--lime); }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.35);
}

/* ---------- Breakpoints (match Tailwind sm/md/lg) ---------- */

@media (min-width: 640px) {
  .container { padding-inline: 2rem; }
  .header-cta { display: flex; }
  .section { padding-block: 7rem; }
  .section-title { font-size: 3.75rem; }
  .hero__inner { padding-top: 6rem; padding-bottom: 6rem; }
  .hero__copy { font-size: 1.25rem; }
  .hero__actions { flex-direction: row; }
  .hero__photo { aspect-ratio: 5 / 4; }
  .hero__caption-icon { display: grid; }
  .status-card { left: -2.5rem; }
  .service-card { padding: 2.25rem; }
  .results__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .result-card { padding: 2.25rem; }
  .result-card__metric { font-size: 3rem; }
  .faq__intro .section-title { font-size: 3rem; }
  .faq-item summary { font-size: 1.25rem; }
  .cta__inner { padding-block: 6rem; }
  .cta__title { font-size: 4.5rem; }
  .cta__button { width: 12rem; height: 12rem; }
  .site-footer__top { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .menu-toggle,
  .mobile-nav { display: none !important; }
  .process__steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .process__line { display: block; }
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 4rem;
    padding-bottom: 7rem;
  }
  .hero__visual { padding-left: 1.5rem; }
  .hero__photo { aspect-ratio: 4 / 5; }
  .section-intro { grid-template-columns: 1fr 1fr; }
  .section-intro .lead { justify-self: end; }
  .services__grid,
  .results__grid { grid-template-columns: repeat(3, 1fr); }
  .faq__inner { grid-template-columns: 0.7fr 1.3fr; }
  .cta__inner { grid-template-columns: 1fr auto; align-items: end; }
  .cta__title { font-size: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
