:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #54605a;
  --line: #d8ded7;
  --paper: #fbfcf8;
  --panel: #ffffff;
  --green: #126b57;
  --green-dark: #083f35;
  --coral: #b84b3c;
  --gold: #b7821b;
  --blue: #285e8f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(251, 252, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  font-weight: 750;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a,
footer a {
  color: var(--muted);
  font-size: 0.94rem;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: clamp(72px, 12vw, 140px) clamp(18px, 5vw, 72px) clamp(44px, 8vw, 76px);
  background-color: #123f36;
  background-image:
    linear-gradient(90deg, rgba(9, 34, 29, 0.92), rgba(9, 34, 29, 0.62), rgba(9, 34, 29, 0.28)),
    url("../ClientFlow%20Command%20Center/docs/screenshots/clientflow-appstore-media-contact-sheet.png");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.portfolio-hero {
  background-position: center 38%;
}

.clientflow-hero {
  background-position: center 28%;
}

.hero-copy {
  max-width: 760px;
}

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

.hero .eyebrow {
  color: #f3c15f;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 720;
}

.button.primary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--green-dark);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

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

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.app-card {
  min-height: 168px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 32, 28, 0.06);
}

.app-card.featured {
  border-color: rgba(18, 107, 87, 0.38);
  box-shadow: 0 14px 30px rgba(18, 107, 87, 0.12);
}

.app-card p {
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 1.12fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.check-list {
  padding-left: 20px;
  color: var(--muted);
}

.check-list li {
  margin-bottom: 9px;
}

.screenshot-panel {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0c1915;
  border: 1px solid var(--line);
}

.screenshot-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-panel figcaption {
  padding: 12px 14px;
  color: #dce7df;
  font-size: 0.9rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #eff4ef;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band .button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 76vh;
  }

  .two-column,
  .cta-band {
    grid-template-columns: 1fr;
    display: grid;
  }
}
