
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #101827;
  --muted: #657086;
  --line: #e5eaf2;
  --brand: #0d6b62;
  --brand-2: #0f8a7d;
  --dark: #0d1724;
  --shadow: 0 20px 55px rgba(16, 24, 39, 0.10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247,249,252,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,234,242,.8);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand); color: white; font-weight: 800; letter-spacing: -.5px;
}
.brand strong { display: block; font-size: 15px; }
.brand span { display: block; color: var(--muted); font-size: 12px; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.menu-btn { display: none; border: 0; background: transparent; font-size: 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; border-radius: 12px;
  padding: 13px 20px; font-weight: 700; transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--brand-2); }
.btn-small { padding: 9px 15px; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }

.hero { padding: 96px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.eyebrow {
  margin: 0 0 14px; color: var(--brand); font-weight: 800;
  font-size: 12px; letter-spacing: .13em;
}
h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.03; letter-spacing: -.045em; margin: 0 0 24px; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 24px; }
h3 { line-height: 1.25; }
.hero-copy { max-width: 720px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.trust-row span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; font-size: 12px; color: var(--muted); }

.hero-card {
  border-radius: 26px; background: #fff; box-shadow: var(--shadow);
  overflow: hidden; border: 1px solid var(--line); transform: rotate(1.5deg);
}
.window-bar { padding: 16px; display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cfd6e2; }
.code-card { padding: 28px; }
.code-card b { font-size: 20px; }
.muted { color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.metric-grid div { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.metric-grid strong { display: block; font-size: 25px; color: var(--brand); }
.metric-grid span { font-size: 12px; color: var(--muted); }

.section { padding: 86px 0; }
.section-alt { background: #fff; }
.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.two-col p { color: var(--muted); font-size: 17px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 38px; }
.card, .product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 6px 22px rgba(16,24,39,.04);
}
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e8f6f3; color: var(--brand); font-size: 21px; }
.card p, .product-card p { color: var(--muted); font-size: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.product-tag { display: inline-block; font-size: 11px; font-weight: 800; color: var(--brand); background: #e8f6f3; padding: 7px 10px; border-radius: 999px; }

.project-showcase {
  margin-top: 64px;
  padding-top: 58px;
  border-top: 1px solid var(--line);
}
.showcase-heading {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 32px;
}
.showcase-heading h3 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.showcase-heading > div:last-child > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.showcase-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.showcase-meta span {
  border: 1px solid #cfe8e3;
  border-radius: 999px;
  padding: 7px 11px;
  background: #eef8f6;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.showcase-card {
  display: flex;
  flex-direction: column;
  grid-column: span 6;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16,24,39,.06);
}
.showcase-card-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  grid-column: 1 / -1;
  align-items: stretch;
  background: var(--dark);
  color: #fff;
  border-color: rgba(255,255,255,.08);
}
.showcase-card--five { grid-column: span 5; }
.showcase-card--seven { grid-column: span 7; }
.showcase-card--third { grid-column: span 4; }
.showcase-card--half { grid-column: span 6; }
.screenshot-trigger {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: #edf2f8;
  color: inherit;
  cursor: zoom-in;
  text-align: inherit;
}
.screenshot-trigger:focus-visible {
  outline: 3px solid #59cbbd;
  outline-offset: -3px;
}
.screenshot-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #edf2f8;
}
.screenshot-frame-featured { aspect-ratio: 16 / 9; }
.screenshot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transition: transform .35s ease;
}
.screenshot-trigger:hover img { transform: scale(1.018); }
.expand-cue {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(13,23,36,.84);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13,23,36,.2);
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.showcase-card-copy {
  flex: 1;
  padding: 23px 24px 25px;
}
.showcase-card-featured .showcase-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
}
.showcase-index {
  display: block;
  margin-bottom: 11px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.showcase-card-featured .showcase-index { color: #6dd6c8; }
.showcase-card h4 {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.showcase-card-featured h4 { font-size: 28px; }
.showcase-card p { margin: 0; color: var(--muted); font-size: 14px; }
.showcase-card-featured p { color: #aab5c5; }

body.modal-open { overflow: hidden; }
.screenshot-dialog {
  width: min(1240px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 30px 100px rgba(0,0,0,.35);
}
.screenshot-dialog:not([open]) { display: none; }
.screenshot-dialog::backdrop {
  background: rgba(6,13,23,.78);
  backdrop-filter: blur(8px);
}
.screenshot-dialog.fallback-open {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border-radius: 0;
  background: rgba(6,13,23,.78);
  backdrop-filter: blur(8px);
}
.screenshot-dialog.fallback-open .dialog-shell { width: min(1240px, 100%); }
.dialog-shell {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background: var(--dark);
  color: #fff;
}
.dialog-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0 0 2px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(13,23,36,.86);
  color: #fff;
  font: inherit;
  font-size: 25px;
  cursor: pointer;
}
.dialog-close:hover { background: var(--brand); }
.dialog-close:focus-visible { outline: 3px solid #6dd6c8; outline-offset: 2px; }
.dialog-copy { padding: 28px 76px 24px 30px; }
.dialog-copy .eyebrow { margin-bottom: 7px; color: #6dd6c8; }
.dialog-copy h3 { margin: 0; font-size: clamp(22px, 3vw, 32px); }
.dialog-copy > p:last-child { margin: 7px 0 0; color: #aab5c5; font-size: 14px; }
.dialog-image-wrap {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 18px;
  background: #eaf0f7;
}
.dialog-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 15px 50px rgba(13,23,36,.15);
}

.section-dark { background: var(--dark); color: white; }
.section-dark .eyebrow { color: #6dd6c8; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 38px; }
.steps > div { border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; }
.steps span { color: #6dd6c8; font-weight: 800; font-size: 13px; }
.steps p { color: #aab5c5; font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 64px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-card p { margin: 10px 0; color: var(--muted); }
.contact-card small { display: block; margin-top: 20px; color: #8a94a7; }

.verification { padding-top: 20px; }
.verification-box {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center;
  border: 1px solid var(--line); background: #eef7f5; border-radius: 24px; padding: 32px;
}
.verification-box p { color: #4f5f70; }

footer { border-top: 1px solid var(--line); padding: 28px 0; background: #fff; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .hero-grid, .two-col, .contact-grid, .verification-box, .showcase-heading { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 64px; }
  .hero-card { transform: none; }
  .showcase-heading { gap: 20px; }
  .showcase-card-featured { grid-template-columns: 1fr; }
  .showcase-card-featured .showcase-card-copy { padding: 28px; }
  .showcase-card--five, .showcase-card--seven, .showcase-card--third, .showcase-card--half { grid-column: span 6; }
}
@media (max-width: 680px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; left: 20px; right: 20px; top: 70px;
    flex-direction: column; align-items: stretch; background: white; padding: 18px;
    border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .cards, .steps { grid-template-columns: 1fr; }
  h1 { font-size: 46px; }
  .footer-row { flex-direction: column; }
  .project-showcase { margin-top: 48px; padding-top: 44px; }
  .showcase-card, .showcase-card--five, .showcase-card--seven, .showcase-card--third, .showcase-card--half { grid-column: 1 / -1; }
  .showcase-card-featured h4 { font-size: 23px; }
  .showcase-card-copy, .showcase-card-featured .showcase-card-copy { padding: 22px; }
  .expand-cue { right: 10px; bottom: 10px; }
  .dialog-copy { padding: 24px 64px 20px 22px; }
  .dialog-image-wrap { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .screenshot-frame img { transition: none; }
}
