@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Cabin:wght@500;600;700&display=swap');

:root {
  --paper: #fbf7ec;
  --paper-soft: #ffffff;
  --ink: #183247;
  --muted: #52616b;
  --primary: #33705b;
  --secondary: #1769c2;
  --accent: #efb84a;
  --warn: #d75b43;
  --wash: #dcede0;
  --wash-2: #d9ecff;
  --line: #b8c8c3;
  --shadow: rgba(24, 50, 71, 0.15);
}

body.ai-brand {
  --paper: #f3f4ff;
  --paper-soft: #ffffff;
  --ink: #16213f;
  --muted: #566076;
  --primary: #2d5bd1;
  --secondary: #6b4bd8;
  --accent: #7fd1c7;
  --warn: #d95d66;
  --wash: #e6e9ff;
  --wash-2: #e4fbf7;
  --line: #c4cae6;
  --shadow: rgba(22, 33, 63, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 0.7px, transparent 0.7px);
  background-size: 5px 5px;
  opacity: 0.32;
}

a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 94%, white);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 2px 0 var(--line);
  flex: 0 0 auto;
}

.brand-eyebrow {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.brand-name {
  display: block;
  font-family: Cabin, system-ui, sans-serif;
  font-size: clamp(21px, 2.6vw, 29px);
  font-weight: 700;
  line-height: 1.05;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: color-mix(in srgb, var(--ink) 82%, white);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { border-color: var(--accent); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--primary);
  color: white;
  box-shadow: 4px 4px 0 var(--accent);
  padding: 11px 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: var(--paper-soft);
  color: var(--ink);
}

.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--accent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--primary);
}

h1, h2, h3 {
  margin: 0;
  font-family: Cabin, system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(34px, 4.6vw, 56px);
}

h2 {
  max-width: 780px;
  font-size: clamp(28px, 3.8vw, 42px);
}

h3 { font-size: 24px; }
p { margin: 0; color: var(--muted); }

.hero { padding: 58px 0 50px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: 54px;
  align-items: center;
}

.lead {
  max-width: 640px;
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 21px);
}

.proof-note {
  max-width: 650px;
  margin-top: 20px;
  border-left: 5px solid var(--accent);
  background: color-mix(in srgb, var(--paper-soft) 72%, transparent);
  padding: 16px 18px;
  color: color-mix(in srgb, var(--ink) 82%, white);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.cred-card,
.panel {
  border: 2px solid var(--ink);
  border-radius: 6px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--wash-2) 66%, transparent), color-mix(in srgb, white 86%, transparent)),
    var(--paper-soft);
  box-shadow: 8px 8px 0 var(--shadow);
  padding: 24px;
}

.panel.compact {
  padding: 20px;
}

.cred-card img {
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  border-radius: 50%;
}

.cred-card h2 {
  margin-bottom: 12px;
  font-size: 30px;
  text-align: center;
  text-wrap: balance;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: color-mix(in srgb, var(--ink) 82%, white);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.mini-note {
  margin-top: 18px;
  border-top: 2px solid var(--line);
  padding-top: 15px;
  color: color-mix(in srgb, var(--ink) 84%, white);
  font-weight: 800;
}

.sauce { padding: 42px 0 66px; }
.sauce-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.sauce h2 { margin-top: 12px; }

.sauce-list,
.scope-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sauce-list li,
.scope-list li {
  border-left: 5px solid var(--primary);
  background: color-mix(in srgb, var(--wash) 52%, transparent);
  padding: 15px 17px;
}

.sauce-list strong,
.scope-list strong {
  display: block;
  color: var(--ink);
  font-family: Cabin, system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 4px;
}

.strip {
  border-block: 2px solid var(--ink);
  background: var(--secondary);
  color: var(--paper-soft);
}

.strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.26);
}

.strip-item {
  min-height: 112px;
  background: var(--secondary);
  padding: 25px 22px;
}

.strip-item strong {
  display: block;
  margin-bottom: 5px;
  color: white;
  font-family: Cabin, system-ui, sans-serif;
  font-size: 24px;
}

.strip-item span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.section { padding: 76px 0; }

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.section-header p { font-size: 18px; }

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

.card {
  background: var(--paper-soft);
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 23px;
}

.card.feature {
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--wash-2);
}

.card .price {
  margin: 9px 0 12px;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card p { font-size: 15px; }
.card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--secondary);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.build-note {
  margin-top: 24px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: color-mix(in srgb, var(--wash) 62%, white);
  padding: 22px;
}

.build-note h3 {
  margin-bottom: 8px;
}

.build-note p + p {
  margin-top: 14px;
}

.portfolio {
  background: color-mix(in srgb, var(--paper-soft) 54%, var(--wash-2));
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

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

.portfolio-card {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper-soft);
  box-shadow: 5px 5px 0 var(--shadow);
}

.browser-frame {
  min-height: 190px;
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(var(--paper-soft) 0 28px, transparent 28px),
    linear-gradient(135deg, color-mix(in srgb, var(--wash) 82%, white), color-mix(in srgb, var(--wash-2) 78%, white));
  padding: 44px 18px 18px;
  position: relative;
}

.browser-frame::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 17px 0 0 var(--accent), 34px 0 0 var(--primary);
}

.browser-line {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
}

.browser-line.short { width: 54%; }
.browser-line.medium { width: 76%; }
.browser-block {
  width: 100%;
  height: 62px;
  margin-top: 18px;
  border: 2px solid color-mix(in srgb, var(--primary) 50%, white);
  border-radius: 4px;
  background: color-mix(in srgb, var(--paper-soft) 58%, transparent);
}

.portfolio-body {
  padding: 20px;
}

.portfolio-body h3 {
  margin-bottom: 8px;
}

.portfolio-body p {
  font-size: 15px;
}

.portfolio-body a {
  display: inline-block;
  margin-top: 16px;
  color: var(--secondary);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.portfolio-tag {
  display: inline-flex;
  margin-bottom: 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.note { margin-top: 22px; }
.note p + p { margin-top: 14px; }

.process {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--wash) 88%, transparent), color-mix(in srgb, var(--wash-2) 80%, transparent)),
    var(--paper-soft);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.steps.five {
  grid-template-columns: repeat(5, 1fr);
}

.step {
  min-height: 134px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  padding: 14px;
}

.step span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--secondary);
  color: white;
  font-weight: 900;
}

.step strong {
  display: block;
  font-family: Cabin, system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.05;
}

.framework {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.framework-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.framework-list li {
  min-height: 120px;
  border-left: 5px solid var(--primary);
  background: color-mix(in srgb, var(--paper-soft) 66%, transparent);
  padding: 18px;
}

.framework-list strong {
  display: block;
  color: var(--ink);
  font-family: Cabin, system-ui, sans-serif;
  font-size: 23px;
}

.cross-link {
  margin-top: 22px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--paper-soft);
  padding: 18px;
}

.journey-note {
  margin-top: 18px;
  border-left: 5px solid var(--accent);
  background: color-mix(in srgb, var(--paper-soft) 76%, transparent);
  padding: 15px 17px;
}

.journey-note strong {
  display: block;
  color: var(--ink);
  font-family: Cabin, system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 5px;
}

.cross-link a {
  color: var(--secondary);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact {
  padding: 78px 0;
  background: var(--primary);
  color: white;
}

.contact h2,
.contact p { color: white; }

.contact p {
  max-width: 650px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 13px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  padding: 22px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 3px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

.contact-form .button {
  width: 100%;
  cursor: pointer;
}

.footer {
  padding: 28px 0;
  border-top: 2px solid var(--ink);
  color: color-mix(in srgb, var(--ink) 70%, white);
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid,
  .section-header,
  .framework,
  .sauce-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .portfolio-grid,
  .strip .wrap {
    grid-template-columns: 1fr;
  }

  .steps,
  .steps.five { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .brand img { width: 46px; height: 46px; }
  h1 { font-size: 34px; }
  .hero-actions .button { width: 100%; }
  .cred-card { padding: 22px 20px; }
  .steps,
  .steps.five,
  .framework-list {
    grid-template-columns: 1fr;
  }
}
