:root {
  --bg: #f6f2ea;
  --ink: #151717;
  --muted: #5d6462;
  --line: #d8d0c2;
  --panel: #fffaf0;
  --white: #ffffff;
  --green: #0f8f62;
  --green-dark: #0a6d4a;
  --coral: #e65f4f;
  --blue: #22577a;
  --yellow: #f2b84b;
  --shadow: 0 24px 70px rgba(20, 28, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(21, 23, 23, 0.08);
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(14px);
}

.brand,
.site-nav,
.hero-actions,
.hero-stats,
.section-heading.split,
.quote-section,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--yellow);
}

.site-nav {
  gap: 10px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(21, 23, 23, 0.06);
}

.site-nav .nav-cta {
  background: var(--green);
  color: var(--white);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(32px, 6vw, 90px);
  min-height: calc(100vh - 79px);
  padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 72px) 54px;
  align-items: center;
  overflow: hidden;
}

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

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

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 5.8vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 14px 20px;
  font-weight: 800;
}

.button.primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(15, 143, 98, 0.28);
}

.button.primary:hover,
.site-nav .nav-cta:hover {
  background: var(--green-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--panel);
}

.button.large {
  min-width: min(100%, 260px);
}

.hero-stats {
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--muted);
}

.hero-stats strong {
  color: var(--ink);
}

.hero-visual {
  position: relative;
}

.browser-frame {
  border: 1px solid rgba(21, 23, 23, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #121819;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.browser-top {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.browser-top span:nth-child(1) {
  background: var(--coral);
}

.browser-top span:nth-child(2) {
  background: var(--yellow);
}

.browser-top span:nth-child(3) {
  background: #49c889;
}

.dashboard-preview {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  color: var(--white);
}

.preview-panel,
.code-card,
.metric-grid > div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.preview-panel {
  padding: 22px;
}

.preview-panel p {
  margin-bottom: 8px;
  color: #aeb7b6;
}

.preview-panel strong {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow));
}

.code-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
}

.code-line.blue {
  color: #8fd3ff;
}

.code-line.green {
  color: #87e5b6;
}

.code-line.orange {
  color: #ffc36e;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric-grid > div {
  padding: 18px;
}

.metric-grid strong {
  display: block;
  font-size: 2rem;
}

.metric-grid span {
  color: #aeb7b6;
}

.section-band,
.projects,
.quote-section {
  padding: clamp(62px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.section-band {
  background: var(--white);
}

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

.section-heading.split {
  max-width: none;
  justify-content: space-between;
  gap: 24px;
}

.section-heading.split > div {
  max-width: 820px;
}

.text-link {
  flex: none;
  border-bottom: 2px solid var(--green);
  color: var(--green-dark);
  font-weight: 800;
}

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

.project-grid.single-project {
  grid-template-columns: minmax(0, 760px);
}

.service-grid article,
.project-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 28px;
}

.service-grid article {
  display: flex;
  flex-direction: column;
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: auto;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.service-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.service-grid p,
.project-card span,
.timeline span,
.quote-section p {
  color: var(--muted);
  line-height: 1.7;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.project-card.featured {
  background: var(--ink);
  color: var(--white);
  padding: 0;
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.project-card-content {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
}

.project-card p {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card.featured span {
  color: #dfe6e5;
}

.project-card a {
  width: fit-content;
  margin-top: auto;
  border-bottom: 2px solid var(--yellow);
  color: var(--yellow);
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  min-height: 180px;
  padding: 24px;
  border-top: 4px solid var(--coral);
  background: #f6f2ea;
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-top: 3px solid var(--coral);
  border-right: 3px solid var(--coral);
  transform: translateY(-50%) rotate(45deg);
  background: transparent;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline strong {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.quote-section {
  justify-content: space-between;
  gap: 28px;
  background: var(--blue);
  color: var(--white);
}

.quote-section > div {
  max-width: 720px;
}

.quote-section .eyebrow {
  color: var(--yellow);
}

.quote-section p {
  margin-bottom: 0;
  color: #e7eeee;
}

.faq {
  padding: clamp(62px, 8vw, 112px) clamp(20px, 5vw, 72px);
  background: #101515;
  color: var(--white);
}

.faq .section-heading {
  max-width: 760px;
}

.faq .eyebrow {
  color: var(--yellow);
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.faq-list summary {
  position: relative;
  cursor: pointer;
  padding: 22px 58px 22px 24px;
  font-size: 1.08rem;
  font-weight: 800;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--yellow);
  font-size: 1.8rem;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 24px 22px;
  color: #dfe6e5;
  line-height: 1.75;
}

.faq-list p + p {
  padding-top: 0;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(15, 143, 98, 0.34);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.site-footer {
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #101515;
  color: #dfe6e5;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.social-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #dfe6e5;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
}

.social-links svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

@media (max-width: 920px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .browser-frame {
    transform: none;
  }

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

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

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

  .timeline li:not(:last-child)::after {
    right: 22px;
    top: auto;
    bottom: -18px;
    transform: rotate(135deg);
  }

  .section-heading.split,
  .quote-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand span:last-child {
    max-width: 150px;
  }

  .hero,
  .section-band,
  .projects,
  .quote-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

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

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

  .service-grid article,
  .project-card {
    min-height: auto;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
  }
}
