:root {
  color-scheme: light;
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-muted: #eef5f1;
  --surface-warm: #edf6f2;
  --text: #17211d;
  --muted: #5e6b65;
  --line: #d9e4de;
  --line-warm: #cfe1da;
  --accent: #0f6b5a;
  --accent-dark: #0a463b;
  --accent-soft: #dceee8;
  --gold: #0f6b5a;
  --ink: #08251f;
  --ink-soft: #0d352d;
  --ember: #74c7b7;
  --shadow: 0 24px 70px rgba(23, 33, 29, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-footer,
main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(217, 228, 222, 0.82);
  background: rgba(247, 250, 248, 0.94);
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  box-shadow: 0 10px 34px rgba(8, 37, 31, 0.05);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 720;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(15, 107, 90, 0.16);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 760;
  box-shadow: 0 10px 22px rgba(15, 107, 90, 0.14);
  transform: scaleX(-1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-width: 0;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(207, 225, 218, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 3px;
}

.language-switcher a {
  min-width: 38px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
}

.language-switcher a:hover {
  color: var(--accent-dark);
}

.language-switcher a.is-active {
  background: var(--accent);
  color: #ffffff;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 560;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover,
.contact-link:hover {
  color: var(--accent-dark);
}

.hero {
  min-height: auto;
  display: block;
  padding: 86px 0 96px;
}

.visual-hero {
  width: 100vw;
  min-height: 760px;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  margin-left: calc(50% - 50vw);
  padding: 96px max(20px, calc((100vw - 1120px) / 2)) 118px;
  background:
    linear-gradient(90deg, rgba(3, 19, 16, 0.9), rgba(3, 19, 16, 0.46) 54%, rgba(3, 19, 16, 0.72)),
    linear-gradient(180deg, rgba(3, 19, 16, 0.06), rgba(3, 19, 16, 0.62)),
    url("./assets/hero-mountains.png") center / cover no-repeat;
  color: #f7faf8;
}

.visual-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 38%;
  background: linear-gradient(180deg, rgba(3, 19, 16, 0), var(--bg));
}

.hero-content {
  max-width: 940px;
}

.visual-hero .hero-content {
  max-width: 1040px;
}

.visual-hero .eyebrow {
  color: #8bd8c7;
}

.visual-hero h1,
.visual-hero .lead {
  color: #ffffff;
  text-wrap: balance;
}

.visual-hero .hero-copy {
  max-width: 760px;
  color: rgba(247, 250, 248, 0.82);
  font-weight: 560;
}

.visual-hero .hero-signals span {
  border-color: rgba(139, 216, 199, 0.28);
  background: rgba(8, 37, 31, 0.62);
  color: #dceee8;
  backdrop-filter: blur(10px);
}

.visual-hero .button-secondary {
  border-color: rgba(247, 250, 248, 0.28);
  background: rgba(247, 250, 248, 0.12);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.founder-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 12px 8px 8px;
}

.founder-chip img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.founder-chip span {
  display: block;
  color: var(--text);
  font-weight: 760;
  line-height: 1.2;
}

.founder-chip p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.3;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 980px;
  font-size: 6.1rem;
  line-height: 0.95;
  font-weight: 780;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 3.85rem;
  line-height: 0.98;
  font-weight: 760;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.lead {
  max-width: 820px;
  margin: 26px 0 0;
  font-size: 2.2rem;
  line-height: 1.12;
  font-weight: 660;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 6px 10px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 690;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 690;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-dark);
}

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

.button-secondary:hover {
  border-color: #b9cbc2;
}

.company-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.founder-panel {
  padding: 14px;
}

.founder-photo,
.detail-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  background: var(--surface-muted);
}

.founder-photo {
  aspect-ratio: 4 / 5;
  max-height: 248px;
}

.story-photo-card {
  align-self: center;
  display: block;
  width: min(100%, 280px);
  justify-self: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 58px rgba(23, 33, 29, 0.12);
}

.story-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 34%;
}

.company-panel dl,
.company-panel dd {
  margin: 0;
}

.company-panel div {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.company-panel div:first-child {
  padding-top: 0;
}

.company-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.company-panel dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 730;
  text-transform: uppercase;
}

.company-panel dd {
  margin-top: 6px;
  font-weight: 650;
}

@media (min-width: 861px) {
  .founder-chip {
    display: none;
  }
}

.section {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.intro-band {
  padding: 38px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.intro-grid p {
  margin: 0;
  background: var(--surface);
  padding: 28px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 610;
  line-height: 1.45;
}

.learning-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-top: 1px solid rgba(15, 107, 90, 0.12);
  border-bottom: 1px solid rgba(15, 107, 90, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0)),
    var(--accent-soft);
  color: #050807;
  padding: 78px max(20px, calc((100vw - 1120px) / 2)) 72px;
}

.learning-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.learning-label {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  margin: 0 0 34px;
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 760;
  text-transform: uppercase;
}

.learning-label::after {
  content: "";
  width: 138px;
  height: 2px;
  background: var(--accent);
}

.learning-section h2 {
  max-width: 1040px;
  margin: 0;
  font-size: 5.2rem;
  font-weight: 790;
  line-height: 0.98;
}

.learning-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: 620;
  line-height: 1.42;
}

.learning-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.learning-card {
  min-height: 206px;
  border: 1px solid rgba(15, 107, 90, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 42px rgba(5, 8, 7, 0.1);
  padding: 22px;
}

.learning-card span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 790;
}

.learning-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.05;
}

.learning-card p {
  margin: 0;
  color: #586760;
  font-size: 0.98rem;
  font-weight: 610;
  line-height: 1.38;
}

.trust-section {
  padding: 54px 0 78px;
  border-top: 0;
}

.builder-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 54px;
  align-items: center;
  border-top: 0;
  padding-top: 84px;
}

.builder-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.builder-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.builder-points article {
  min-height: 220px;
  background: var(--surface);
  padding: 22px;
}

.builder-points span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 790;
}

.builder-points h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.builder-points p {
  margin: 0;
  color: var(--muted);
  font-weight: 580;
  line-height: 1.45;
}

.builder-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.builder-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-warm);
  border-radius: 8px;
  background: var(--line-warm);
}

.trust-strip div {
  min-height: 164px;
  background: var(--surface-warm);
  padding: 24px;
}

.trust-strip span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.trust-strip p {
  margin: 0;
  color: var(--text);
  font-weight: 610;
  line-height: 1.45;
}

.principles-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(15, 107, 90, 0.16), rgba(15, 107, 90, 0)),
    var(--ink);
  color: #f7faf8;
  padding: 78px max(20px, calc((100vw - 1120px) / 2)) 86px;
}

.principles-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.principles-section .eyebrow {
  color: #8bd8c7;
  text-align: center;
}

.principles-section h2 {
  max-width: 820px;
  margin: 0 auto;
  color: #f7faf8;
  text-align: center;
}

.principles-lead {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(247, 250, 248, 0.78);
  font-size: 1.22rem;
  font-weight: 610;
  line-height: 1.42;
  text-align: center;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 54px;
}

.principle-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(247, 250, 248, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 24px;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.principle-card:hover {
  border-color: rgba(139, 216, 199, 0.7);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.principle-mark {
  width: 74px;
  height: 74px;
  display: block;
  position: relative;
  align-self: flex-end;
  margin-bottom: auto;
}

.principle-mark::before,
.principle-mark::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 3px solid var(--ember);
  border-radius: 999px;
}

.principle-mark-quality::before {
  transform: translateX(-12px);
}

.principle-mark-quality::after {
  transform: translateX(12px);
}

.principle-mark-privacy::before {
  transform: rotate(90deg);
}

.principle-mark-privacy::after {
  transform: rotate(0deg);
}

.principle-mark-friendly::before {
  border-radius: 58% 42% 58% 42%;
  transform: rotate(45deg);
}

.principle-mark-friendly::after {
  border-radius: 42% 58% 42% 58%;
  transform: rotate(-45deg);
}

.principle-card h3 {
  margin: 34px 0 14px;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.principle-card p {
  margin: 0;
  color: rgba(247, 250, 248, 0.76);
  font-size: 1rem;
  font-weight: 590;
  line-height: 1.5;
}

.niches-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #061b17;
  color: #f7faf8;
  overflow: hidden;
  padding: 86px max(20px, calc((100vw - 1120px) / 2)) 96px;
}

.niches-inner {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 72px;
  align-items: start;
  margin: 0 auto;
}

.niches-intro {
  position: sticky;
  top: 118px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.niches-intro .eyebrow {
  color: #8bd8c7;
}

.niches-intro h2 {
  color: #ffffff;
  font-size: 4.25rem;
}

.niches-intro p:not(.eyebrow) {
  max-width: 420px;
  margin: 24px 0 0;
  color: rgba(247, 250, 248, 0.66);
  font-size: 1.05rem;
  font-weight: 590;
}

.niches-list {
  display: grid;
  gap: 26px;
}

.niche-item {
  min-height: 190px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  border-top: 1px solid rgba(247, 250, 248, 0.1);
  opacity: 0.42;
  padding-top: 22px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.niche-item:hover,
.niche-item.is-active {
  opacity: 1;
  transform: translateX(4px);
}

.niche-number {
  display: block;
  color: rgba(247, 250, 248, 0.18);
  font-size: 7.5rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 0.85;
}

.niche-item.is-active .niche-number {
  color: #8bd8c7;
}

.niche-item h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1.05;
}

.niche-item p {
  max-width: 520px;
  margin: 0;
  color: rgba(247, 250, 248, 0.68);
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.45;
}

.niche-item.is-active p {
  color: rgba(247, 250, 248, 0.82);
}

.section-muted {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  background: var(--surface-muted);
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.service-item {
  min-height: 176px;
  padding: 26px;
  background: var(--surface);
}

.service-item,
.app-card,
.app-feature,
.trust-strip div {
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.service-item:hover,
.app-card:hover,
.app-feature:hover,
.trust-strip div:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(23, 33, 29, 0.08);
}

.service-item p,
.text-block p,
.contact-section p {
  margin: 0;
  color: var(--muted);
}

.text-block {
  max-width: 790px;
  display: grid;
  gap: 18px;
  font-size: 1.1rem;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 50px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  list-style: none;
}

.timeline li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
}

.timeline span,
.app-status {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.timeline p,
.app-card p,
.app-feature p,
.wide-copy {
  margin: 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: var(--accent-dark);
  font-weight: 720;
  text-decoration: none;
}

.text-link:hover {
  color: var(--gold);
}

.app-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 84px max(20px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(220, 238, 232, 0.88), rgba(247, 250, 248, 0.84)),
    var(--surface-muted);
}

.app-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

.app-section .section-heading {
  max-width: 760px;
  margin-bottom: 0;
}

.app-section .section-heading > p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.app-top-link {
  justify-self: end;
  white-space: nowrap;
}

.final-cta {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 88px max(20px, calc((100vw - 1120px) / 2));
  border-top: 0;
  background:
    linear-gradient(135deg, rgba(116, 199, 183, 0.12), rgba(247, 250, 248, 0)),
    var(--ink);
  color: #f7faf8;
}

.final-cta .eyebrow {
  color: #8bd8c7;
}

.final-cta h2 {
  max-width: 900px;
  color: #ffffff;
}

.final-cta p:not(.eyebrow) {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(247, 250, 248, 0.76);
  font-size: 1.12rem;
}

.final-cta .button-secondary {
  border-color: rgba(247, 250, 248, 0.24);
  background: rgba(247, 250, 248, 0.1);
  color: #ffffff;
}

.app-grid,
.app-list,
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ideas-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-card,
.app-feature,
.idea-card,
.contact-card,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
}

.app-card:first-child,
.app-feature:first-child {
  border-color: var(--line-warm);
  background: var(--surface-warm);
}

.app-section .app-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
}

.app-section .app-card {
  min-height: 292px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(23, 33, 29, 0.06);
}

.app-section .app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent-soft);
}

.app-section .app-card-active {
  border-color: rgba(15, 107, 90, 0.32);
  background: #ffffff;
}

.app-section .app-card-active::before {
  background: var(--accent);
}

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 0;
}

.app-card-top span {
  color: rgba(15, 107, 90, 0.16);
  font-size: 3.2rem;
  font-weight: 790;
  line-height: 0.8;
}

.app-card-body {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 24px 24px;
}

.app-section .app-card h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.08;
}

.app-section .app-card p {
  margin-top: 14px;
  color: var(--muted);
}

.app-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
}

.app-card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 5px 9px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 690;
}

.app-section-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.app-section-footer p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.app-section-footer .text-link {
  flex: 0 0 auto;
  margin-top: 0;
}

.idea-card {
  min-height: 260px;
}

.app-card h3,
.idea-card h3,
.app-feature h2,
.contact-card h2 {
  margin-top: 0;
}

.idea-card p,
.ideas-note {
  margin: 0;
  color: var(--muted);
}

.ideas-note {
  max-width: 760px;
  margin-top: 26px;
  font-size: 1.05rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

.contact-section h2 {
  margin-bottom: 18px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px 16px;
  color: var(--accent-dark);
  font-weight: 720;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.contact-link:hover {
  border-color: #b9cbc2;
  box-shadow: 0 12px 26px rgba(23, 33, 29, 0.06);
  transform: translateY(-1px);
}

.contact-links {
  display: grid;
  gap: 10px;
}

.site-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.legal-page {
  max-width: 820px;
  padding: 72px 0 100px;
}

.legal-page h1,
.content-page h1 {
  font-size: 4.8rem;
}

.legal-page h2,
.content-page h2 {
  margin-top: 42px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.legal-page p,
.legal-page li,
.content-page p,
.content-page li {
  color: var(--muted);
}

.legal-page ul,
.content-page ul {
  padding-left: 20px;
}

.content-page {
  padding: 72px 0 100px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
  margin-top: 42px;
}

.prose {
  max-width: 760px;
}

.prose h2:first-child,
.detail-panel dl,
.detail-panel dd {
  margin-top: 0;
}

.detail-panel dl,
.detail-panel dd {
  margin-bottom: 0;
}

.detail-panel div {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.detail-panel div:first-child {
  padding-top: 0;
}

.detail-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-panel dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 730;
  text-transform: uppercase;
}

.detail-panel dd {
  margin-top: 6px;
  color: var(--text);
  font-weight: 650;
}

.profile-detail {
  padding: 18px;
}

.profile-detail dl {
  margin-top: 18px;
}

.app-list {
  margin-top: 42px;
}

.app-feature {
  min-height: 280px;
}

.app-feature h2 {
  margin-bottom: 18px;
  font-size: 2.7rem;
}

.compact-section {
  padding-bottom: 0;
}

.wide-copy {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: 1.08rem;
}

.contact-card {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 24px;
}

.contact-card p {
  margin-top: 8px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--accent-dark);
  font-weight: 690;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 14px max(20px, calc((100vw - 1120px) / 2));
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    padding: 40px 0 66px;
  }

  .visual-hero {
    min-height: 720px;
    padding: 62px max(20px, calc((100vw - 1120px) / 2)) 82px;
  }

  h1 {
    font-size: 5.4rem;
  }

  h2 {
    font-size: 3.25rem;
  }

  .lead {
    font-size: 2rem;
  }

  .legal-page h1,
  .content-page h1 {
    font-size: 3.7rem;
  }

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

  .app-section-header {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .app-top-link {
    justify-self: start;
  }

  .app-section .app-grid {
    grid-template-columns: 1fr;
  }

  .learning-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .builder-section,
  .builder-points,
  .story-layout,
  .app-grid,
  .app-list,
  .ideas-grid,
  .niches-inner,
  .page-grid,
  .principles-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .contact-section {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-card {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-footer,
  main {
    width: min(100% - 28px, 1120px);
  }

  .site-footer,
  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 8px 12px;
  }

  .site-nav a {
    font-size: 0.88rem;
  }

  .site-header {
    min-height: 0;
    gap: 12px;
    padding: 10px 14px 12px;
  }

  .header-actions {
    gap: 10px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .language-switcher a {
    min-width: 34px;
    min-height: 30px;
  }

  .founder-chip {
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 2.76rem;
    line-height: 1;
  }

  h2 {
    font-size: 2.55rem;
  }

  .lead {
    margin-top: 22px;
    font-size: 1.36rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-signals span {
    width: 100%;
  }

  .hero {
    padding: 30px 0 52px;
  }

  .visual-hero {
    min-height: 720px;
    padding: 48px 14px 70px;
    background-position: center top;
  }

  .visual-hero .hero-copy {
    max-width: none;
  }

  .builder-section {
    padding-top: 58px;
    gap: 28px;
  }

  .builder-copy > p:not(.eyebrow) {
    margin-top: 22px;
    font-size: 1rem;
  }

  .builder-points {
    margin-top: 26px;
  }

  .builder-points article {
    min-height: 0;
    padding: 18px;
  }

  .builder-points span {
    margin-bottom: 24px;
  }

  .final-cta {
    padding: 62px 14px;
  }

  .learning-section {
    padding-top: 58px;
    padding-bottom: 52px;
  }

  .learning-label {
    gap: 18px;
    margin-bottom: 24px;
    font-size: 0.82rem;
  }

  .learning-label::after {
    width: 74px;
  }

  .learning-section h2 {
    font-size: 3rem;
    line-height: 1;
    text-align: left;
  }

  .learning-copy {
    margin-top: 22px;
    font-size: 1.02rem;
  }

  .learning-cards {
    gap: 12px;
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .learning-card {
    min-height: 0;
    padding: 18px;
  }

  .learning-card span {
    margin-bottom: 26px;
  }

  .hero-actions,
  .button,
  .contact-link,
  .contact-links {
    width: 100%;
  }

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

  .section {
    padding: 62px 0;
  }

  .trust-section {
    padding: 0 0 62px;
  }

  .app-section {
    padding: 58px 14px;
  }

  .app-section .section-heading > p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 1rem;
  }

  .app-section .app-card {
    min-height: 0;
  }

  .app-card-top {
    padding: 18px 18px 0;
  }

  .app-card-top span {
    font-size: 2.6rem;
  }

  .app-card-body {
    padding: 18px;
  }

  .app-section .app-card h3 {
    font-size: 1.32rem;
  }

  .app-card-tags {
    padding-top: 22px;
  }

  .app-section-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .principles-section {
    padding-top: 56px;
    padding-bottom: 62px;
  }

  .niches-section {
    padding-top: 58px;
    padding-bottom: 64px;
  }

  .niches-intro {
    position: static;
    min-height: 0;
    display: block;
  }

  .niches-intro h2 {
    font-size: 2.55rem;
  }

  .niches-list {
    gap: 18px;
    margin-top: 34px;
  }

  .niche-item {
    min-height: 0;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 18px;
    opacity: 0.72;
    padding-top: 18px;
  }

  .niche-item:hover,
  .niche-item.is-active {
    transform: none;
  }

  .niche-number {
    font-size: 3.85rem;
  }

  .niche-item h3 {
    font-size: 1.35rem;
  }

  .principles-section h2 {
    font-size: 2.25rem;
    text-align: left;
  }

  .principles-section .eyebrow,
  .principles-lead {
    text-align: left;
  }

  .principles-lead {
    font-size: 1.12rem;
  }

  .principles-grid {
    gap: 14px;
    margin-top: 34px;
  }

  .principle-card {
    min-height: 0;
    padding: 22px;
  }

  .principle-mark {
    width: 62px;
    height: 62px;
  }

  .principle-card h3 {
    margin-top: 26px;
    font-size: 1.55rem;
  }

  .service-item {
    min-height: 0;
  }

  .trust-strip div {
    min-height: 0;
  }

  .idea-card {
    min-height: 0;
  }

  .content-page,
  .legal-page {
    padding: 48px 0 76px;
  }

  .legal-page h1,
  .content-page h1 {
    font-size: 2.75rem;
  }

  .app-feature h2 {
    font-size: 2.2rem;
  }
}
