/* ==========================================================================
   Genesis — global styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700;800&family=Inter:wght@300;400;500;700&display=swap');

:root {
  --brand: #007f7a;
  --brand-hover: #005f5b;
  --brand-tint: #e6f4f3;
  --brand-tint-2: #cfe7e5;
  --white: #ffffff;
  --surface: #f7f9f9;
  --surface-card: #ffffff;
  --text: #0f2928;
  --text-muted: #4a6b6a;
  --text-faint: #8aabaa;
  --divider: #d0e4e3;
  --dark-bg: #004e4b;
  --dark-bg-2: #003634;

  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 41, 40, 0.04), 0 2px 8px rgba(15, 41, 40, 0.04);
  --shadow: 0 2px 8px rgba(15, 41, 40, 0.06), 0 12px 32px rgba(15, 41, 40, 0.06);
  --shadow-lg: 0 8px 24px rgba(15, 41, 40, 0.08), 0 24px 64px rgba(15, 41, 40, 0.10);

  --max-w: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 10vw, 120px);
}


/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 72px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Type */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.2; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
p  { margin: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow.on-dark { color: #7fd3ce; }

.muted { color: var(--text-muted); }

/* Layout */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tint { background: var(--brand-tint); }
.section--dark {
  background: var(--dark-bg);
  color: #e6f4f3;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #ffffff; }
.section--dark .muted { color: #a9cfcc; }

.divider { height: 1px; background: var(--divider); border: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 6px 18px rgba(0, 127, 122, 0.25);
}
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 10px 24px rgba(0, 127, 122, 0.28); }
.btn--secondary {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn--secondary:hover { background: var(--brand-tint); transform: translateY(-1px); }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.btn--white {
  background: #fff;
  color: var(--brand);
}
.btn--white:hover { background: var(--brand-tint); transform: translateY(-1px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  background: #fff;
  color: var(--brand);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.nav__logo .mark { width: 28px; height: 28px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--brand);
  padding: 8px 0;
  transition: color .15s ease;
}
.nav__link:hover { color: var(--brand-hover); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: auto;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width .25s ease;
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: #fff; }

.nav__cta {
  background:  var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background .18s ease, transform .18s ease;
}
.nav__cta:hover { background: var(--brand-hover); transform: translateY(-1px); }


.nav__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 18px;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: background .18s ease, color .18s ease;
}
.nav__lang:hover { background: var(--brand); color: #fff; }

.nav__burger { display: none; }
.nav__mobile { display: none; }

@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    color: var(--brand);
    margin-left: auto;
  }
  .nav__mobile {
    position: absolute;
    inset: 72px 0 auto 0;
    background: var(--brand);
    padding: 16px var(--pad-x) 28px;
    display: none;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav.is-open .nav__mobile { display: flex; }
  .nav__mobile a {
    padding: 12px 0;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

/* Hero (homepage) */
.hero {
  background: var(--brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: clamp(56px, 8vw, 110px);
  padding-bottom: clamp(72px, 10vw, 140px);
}
.hero h1 { color: #fff; }
.hero__sub {
  margin-top: 22px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  line-height: 1.5;
}
.hero__ctas { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta {
  display: flex; gap: 28px; align-items: center;
  margin-top: 48px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}
.hero__meta .dot { width: 6px; height: 6px; border-radius: 50%; background: #7fd3ce; }
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-left: auto;
  width: 100%;
}

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 380px; aspect-ratio: 1.1 / 1; }
}

/* Generic page header (non-home) */
.page-head {
  background: var(--brand);
  color: #fff;
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.page-head h1 { color: #fff; font-size: clamp(40px, 5vw, 64px); max-width: 14ch; }
.page-head p { margin-top: 18px; color: rgba(255,255,255,0.85); font-size: clamp(16px, 1.4vw, 19px); max-width: 60ch; line-height: 1.55; }

/* Section heads */
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .eyebrow { display: inline-block; margin-bottom: 14px; }
.sec-head p { margin-top: 16px; color: var(--text-muted); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; }

/* Cards */
.card {
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 15px; line-height: 1.55; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
}
.tag::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}

.tag--planned::before { background: #c89b3c; }
.tag--planned { background: #fbf1da; color: #8a6418; }
.tag--dev::before { background: #3c8bc8; }
.tag--dev { background: #e2eef9; color: #1f548a; }
.tag--active::before { background: var(--brand); }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* Two-col split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse > :first-child { order: 0; }
}

/* Feature list */
.feat-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.feat-list li {
  list-style: none;
  display: flex; gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
}
.feat-list .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.feat-list li strong { display: block; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.feat-list li span.desc { color: var(--text-muted); font-size: 14.5px; }

/* CTA banner */
.cta-banner {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-top: 12px; max-width: 50ch; }
.cta-banner .cta-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: flex-end;
}
/* .cta-banner::before {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.18), transparent 65%);
} */
@media (max-width: 880px) {
  .cta-banner { grid-template-columns: 1fr; }
  .cta-banner .cta-actions { justify-content: flex-start; }
}

/* Footer */
.footer {
  background: var(--dark-bg-2);
  color: #cfe7e5;
  padding-top: 80px;
  padding-bottom: 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand p { color: rgba(255,255,255,0.6); margin-top: 14px; max-width: 36ch; font-size: 14.5px; }
.footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer a { color: rgba(255,255,255,0.7); font-size: 14.5px; transition: color .15s ease; }
.footer a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
}
.footer__logo .mark { width: 28px; height: 28px; }
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Stat blocks */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.stats__item { padding: 28px 24px; border-right: 1px solid var(--divider); }
.stats__item:last-child { border-right: 0; }
.stats__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.5vw, 44px);
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1;
}
.stats__label { margin-top: 8px; color: var(--text-muted); font-size: 14px; }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item { border-right: 0; border-bottom: 1px solid var(--divider); }
  .stats__item:nth-child(odd) { border-right: 1px solid var(--divider); }
  .stats__item:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.01em; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface-card);
  border: 1.5px solid var(--divider);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0,127,122,0.12);
}
.field .err { color: #b3372c; font-size: 12.5px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

/* Logo cloud */
.logo-cloud {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.logo-cloud__cell {
  background: var(--surface-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  height: 88px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
  transition: color .2s ease, border-color .2s ease;
}
.logo-cloud__cell:hover { color: var(--brand); border-color: var(--brand-tint-2); }
@media (max-width: 880px) { .logo-cloud { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logo-cloud { grid-template-columns: repeat(2, 1fr); } }

/* Project cards */
.project-card {
  background: var(--surface-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.project-card__visual {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--brand-tint), var(--brand-tint-2));
  position: relative;
  overflow: hidden;
}
.project-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.project-card__meta { display: flex; align-items: center; gap: 10px; }
.project-card__type { font-size: 12.5px; color: var(--text-muted); }
.project-card h3 { margin: 4px 0 0; }
.project-card p { color: var(--text-muted); font-size: 14.5px; }
.project-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--divider); }
.project-card__link { color: var(--brand); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.project-card__link:hover { gap: 10px; }

/* Misc */
.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  padding: 2px 6px;
  background: var(--brand-tint);
  border-radius: 4px;
  color: var(--brand);
}

.numbered { counter-reset: n; display: flex; flex-direction: column; gap: 18px; }
.numbered li {
  list-style: none;
  counter-increment: n;
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: 22px;
  background: var(--surface-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
}
.numbered li::before {
  content: counter(n, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--brand);
  line-height: 1;
}
.numbered li strong { display: block; margin-bottom: 4px; font-weight: 600; grid-column: 2; }
.numbered li p { color: var(--text-muted); font-size: 14.5px; grid-column: 2; }
