:root {
  --background: #f7f6f2;
  --foreground: #17211c;
  --muted: #5e6861;
  --line: #ddd9d0;
  --panel: #ffffff;
  --panel-strong: #eef3f0;
  --brand: #285f4d;
  --brand-dark: #183a31;
  --accent: #c99a3c;
  --blue: #2f5f87;
  --blue-soft: #e8f0f6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--foreground); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
main { overflow: hidden; }

.page-head { position: fixed; inset: 0 0 auto; z-index: 10; color: #fff; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; margin: 0;
  padding: 12px max(24px, calc((100vw - 1180px) / 2 + 16px)); border-bottom: 1px solid rgb(255 255 255 / 20%);
  background: rgb(20 29 26 / 62%); backdrop-filter: blur(18px); box-shadow: 0 16px 42px rgb(0 0 0 / 16%);
}
.brand { display: inline-flex; align-items: center; min-width: max-content; }
.brand img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgb(0 0 0 / 18%); }
nav { display: flex; align-items: center; justify-content: center; gap: 4px; color: rgb(255 255 255 / 88%); font-size: .94rem; font-weight: 700; }
nav a, .nav-cta { border-radius: 8px; padding: 10px 12px; transition: background .18s ease, color .18s ease, transform .18s ease; }
nav a:hover, nav a:focus-visible { background: rgb(255 255 255 / 12%); color: #fff; }
.nav-cta { background: #fff; color: var(--brand-dark); font-weight: 800; white-space: nowrap; }
.nav-cta:hover, .nav-cta:focus-visible { background: #eef3f0; }

.hero .button.primary { background: #fff; color: var(--brand-dark); box-shadow: 0 18px 35px rgb(0 0 0 / 22%); }
.hero .button.secondary { border-color: rgb(255 255 255 / 52%); background: rgb(255 255 255 / 12%); color: #fff; backdrop-filter: blur(10px); }
.nav-cta:hover, .button:hover { transform: translateY(-1px); }

.hero, .section, .problem-section, .cta-section { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.hero { position: relative; display: grid; align-items: center; width: 100%; min-height: 760px; margin-inline: 0; padding: 190px max(24px, calc((100vw - 1180px) / 2 + 16px)) 92px; color: #fff; }
.hero-bg, .hero-overlay, .legacy-watermark { position: absolute; pointer-events: none; }
.hero-bg { inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { inset: 0; z-index: -2; background: linear-gradient(90deg, rgb(6 17 15 / 88%) 0%, rgb(13 30 26 / 72%) 43%, rgb(13 30 26 / 18%) 100%), linear-gradient(0deg, #fff 0%, transparent 22%), radial-gradient(circle at 20% 34%, rgb(201 154 60 / 18%), transparent 32%); }
.legacy-watermark { right: max(20px, calc((100vw - 1180px) / 2 + 16px)); bottom: 58px; z-index: -1; width: min(360px, 34vw); opacity: .09; filter: grayscale(1); border-radius: 8px; }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }

.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(2.45rem, 3.35vw, 3.25rem); line-height: 1.12; }
h2 { max-width: 780px; margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; }
h3 { margin-bottom: 10px; font-size: 1.17rem; line-height: 1.25; }
.hero-copy > p:not(.eyebrow), .section-heading > p, .cta-section p { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.65; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; color: rgb(255 255 255 / 88%); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 8px; padding: 13px 18px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button.primary { background: var(--brand-dark); color: #fff; box-shadow: 0 18px 35px rgb(24 58 49 / 18%); }
.button.secondary { border: 1px solid var(--line); background: #fff; color: var(--brand-dark); }
.trust-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.trust-list li { min-height: 84px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 8px; background: rgb(255 255 255 / 94%); padding: 14px; color: var(--brand-dark); font-size: .95rem; font-weight: 800; line-height: 1.32; }

.problem-section, .section, .cta-section { padding: 86px 0; }
.section-split, .why-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.section-heading { max-width: 780px; margin-bottom: 38px; }
.problem-list { display: grid; gap: 10px; }
.problem-list p { margin: 0; border-left: 4px solid var(--accent); border-radius: 8px; background: #fff; padding: 18px 20px; color: var(--brand-dark); font-weight: 800; box-shadow: 0 14px 38px rgb(30 43 38 / 6%); }
.service-grid, .case-grid, .testimonial-grid, .workflow-grid, .why-grid { display: grid; gap: 16px; }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card, .workflow-card, .case-card, .testimonial, .team-member { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 18px 42px rgb(30 43 38 / 6%); }
.service-card { min-height: 224px; padding: 24px; }
.service-card span { display: block; width: 34px; height: 6px; margin-bottom: 28px; border-radius: 999px; background: var(--accent); }
.service-card p, .workflow-card p, .case-card dd, .why-grid p, .testimonial figcaption, .team-member p { color: var(--muted); line-height: 1.6; }
.workflow-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.workflow-card { min-height: 248px; padding: 22px; }
.workflow-card span { display: block; margin-bottom: 28px; color: var(--accent); font-size: .86rem; font-weight: 900; }
.why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.why-grid p { margin: 0; border-top: 1px solid var(--line); padding-top: 18px; }

.case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.case-card { display: flex; min-height: 520px; flex-direction: column; padding: 24px; }
.case-meta { display: flex; min-height: 31px; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.case-meta span, .stack-list li { border-radius: 999px; padding: 7px 10px; }
.case-meta span { background: var(--blue-soft); color: var(--blue); }
dl, dd { margin: 0; }
.case-card dl { display: grid; gap: 18px; }
dt { margin-bottom: 5px; color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; }
.stack-list, .tech-list { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 0; list-style: none; }
.stack-list li, .tech-list li { background: var(--panel-strong); color: var(--brand-dark); font-size: .86rem; font-weight: 800; }
.case-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 18px; border-radius: 8px; background: var(--brand-dark); color: #fff; font-weight: 800; transition: background .18s ease, transform .18s ease; }
.case-link:hover, .case-link:focus-visible { background: var(--brand); transform: translateY(-1px); }

.testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.testimonial { margin: 0; padding: 28px; }
.testimonial blockquote { margin: 0 0 24px; color: var(--brand-dark); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800; line-height: 1.2; }
.testimonial figcaption { display: grid; gap: 4px; }
.team-list { display: grid; gap: 14px; }
.team-member { display: flex; min-height: 116px; align-items: center; gap: 18px; padding: 18px; }
.avatar { display: grid; flex: 0 0 auto; width: 64px; height: 64px; place-items: center; border-radius: 8px; background: var(--brand-dark); color: #fff; font-weight: 900; }
.team-member h3, .team-member p { margin-bottom: 4px; }
.tech-list { margin-top: 12px; }
.tech-list li { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px 16px; }
.cta-section { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 32px; border-radius: 8px; background: var(--brand-dark); padding: 48px; color: #fff; }
.cta-section .eyebrow, .cta-section p { color: #dce8e2; }
.cta-section h2 { margin-bottom: 12px; }
.cta-section .button.primary { background: #fff; color: var(--brand-dark); box-shadow: none; white-space: nowrap; }

a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 980px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .brand img { width: 62px; height: 62px; }
  nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .section-split, .why-section { grid-template-columns: 1fr; }
  .hero { min-height: 700px; padding-top: 160px; padding-bottom: 72px; }
  .legacy-watermark { width: min(320px, 42vw); }
  .service-grid, .case-grid, .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-card { min-height: auto; }
}
@media (max-width: 720px) {
  .site-header { padding: 10px 12px; }
  .nav-cta { display: none; }
  nav a { padding-inline: 10px; }
  .section, .problem-section, .cta-section { width: min(100% - 24px, 1180px); }
  .hero { min-height: 720px; padding: 150px 24px 58px; }
  .legacy-watermark { right: -220px; bottom: 36px; width: 680px; opacity: .04; }
  h1 { font-size: clamp(2.2rem, 9.5vw, 3rem); }
  h2 { font-size: clamp(1.9rem, 10vw, 3rem); }
  .trust-list, .service-grid, .case-grid, .testimonial-grid, .workflow-grid, .why-grid { grid-template-columns: 1fr; }
  .problem-section, .section { padding: 58px 0; }
  .cta-section { display: grid; margin-bottom: 20px; padding: 30px 22px; }
  .cta-section .button.primary { width: 100%; }
}
