:root {
  color-scheme: light;
  --ink: #171c2d;
  --muted: #68708a;
  --line: #e2e6ef;
  --line-soft: #eceef5;
  --canvas: #f5f7fa;
  --surface: #ffffff;
  --teal: #05807a;
  --teal-dark: #006d68;
  --teal-soft: #eef9f8;
  --purple: #35307d;
  --purple-soft: #f4f3ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #e8ebf2;
  background: rgba(248, 250, 252, .94);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 9px; width: max-content; }
.brand-name { color: #111f4a; font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.brand-mark { position: relative; display: block; width: 30px; height: 24px; }
.brand-mark i { position: absolute; left: 0; height: 7px; border-radius: 2px; transform: skewX(-28deg); }
.brand-mark i:nth-child(1) { top: 0; left: 3px; width: 27px; background: #4459ef; }
.brand-mark i:nth-child(2) { top: 8px; width: 21px; background: #6172fa; }
.brand-mark i:nth-child(3) { top: 16px; width: 14px; background: #8390ff; }

nav { display: flex; align-items: center; gap: 8px; }
nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  transition: color .16s ease, background .16s ease;
}
nav a:hover, nav a.is-current { color: var(--purple); background: #fff; }

.header-button, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(5, 128, 122, .15);
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.header-button { justify-self: end; min-height: 40px; }
.header-button:hover, .primary-button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(5, 128, 122, .2);
}
.header-button:focus-visible, .primary-button:focus-visible, .text-link:focus-visible,
.product-preview:focus-visible, nav a:focus-visible, .back-link:focus-visible {
  outline: 3px solid rgba(5, 128, 122, .24);
  outline-offset: 3px;
}

.site-main {
  width: min(1180px, calc(100% - 52px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.intro-card, .product-intro-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(83, 101, 255, .08), transparent 38%),
    linear-gradient(110deg, #f5fbfa 0%, #f8f8ff 100%);
  box-shadow: 0 12px 34px rgba(31, 36, 64, .055);
}
.intro-card {
  min-height: 330px;
  padding: clamp(34px, 5vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 48px;
}
.intro-copy { max-width: 720px; }
.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}
.intro-card h1, .product-intro-card h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.intro-card p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.intro-mark {
  width: 152px;
  height: 152px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 48, 125, .1);
  border-radius: 34px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 22px 54px rgba(53, 48, 125, .12);
  transform: rotate(4deg);
}
.intro-mark span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background: linear-gradient(145deg, #5367f5, #35307d);
  color: #fff;
  font-size: 43px;
  font-weight: 900;
  transform: rotate(-4deg);
}

.products-section { padding-top: 24px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px;
}
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2 { margin: 0; font-size: 29px; letter-spacing: -.025em; }
.section-count, .product-badge, .muted-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(5, 128, 122, .16);
  border-radius: 999px;
  background: rgba(5, 128, 122, .07);
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}
.product-grid {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--canvas);
  box-shadow: 0 24px 65px rgba(31, 36, 64, .08);
}
.product-card {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(330px, .8fr) minmax(430px, 1.2fr);
  gap: clamp(30px, 5vw, 66px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid transparent;
  border-radius: 16px;
  background: #fff;
}
.product-card-copy { display: flex; flex-direction: column; align-items: flex-start; }
.product-badge { margin-bottom: 28px; }
.product-title-row { display: flex; align-items: center; gap: 17px; }
.product-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--purple);
  color: #fff;
  font-size: 20px;
  font-weight: 850;
}
.product-title-row p { margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.product-title-row h3 { margin: 0; font-size: 31px; letter-spacing: -.035em; }
.product-description { margin: 25px 0 20px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.product-tags li { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: #f8fafc; color: var(--purple); font-size: 12px; font-weight: 800; }
.product-actions { margin-top: auto; display: flex; align-items: center; gap: 20px; }
.text-link { color: var(--purple); font-size: 14px; font-weight: 850; }
.text-link:hover { color: var(--teal); }

.product-preview, .browser-frame {
  overflow: hidden;
  border: 1px solid #dde1eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(31, 36, 64, .08);
}
.product-preview { align-self: center; transition: transform .18s ease, box-shadow .18s ease; }
.product-preview:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(31, 36, 64, .12); }
.product-preview img, .screenshot-crop img { display: block; width: 100%; height: auto; }
.preview-toolbar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #f5f7fa;
}
.preview-toolbar i { width: 8px; height: 8px; border-radius: 50%; background: #b8becc; }
.preview-toolbar i:first-child { background: #ef6a61; }
.preview-toolbar i:nth-child(2) { background: #e9b949; }
.preview-toolbar i:nth-child(3) { background: #54b978; }
.preview-toolbar span { margin-left: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }

.coming-card {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 28px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #fff;
}
.coming-card .eyebrow { margin-bottom: 7px; color: var(--purple); }
.coming-card h3 { max-width: 650px; margin: 0; font-size: 20px; line-height: 1.4; }
.muted-badge { flex: 0 0 auto; border-color: var(--line); background: #f8fafc; color: var(--muted); }

.product-main { display: grid; gap: 20px; }
.product-intro-card { padding: clamp(28px, 4vw, 48px); }
.back-link { display: inline-flex; margin-bottom: 44px; color: var(--purple); font-size: 13px; font-weight: 800; }
.back-link:hover { color: var(--teal); }
.product-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .72fr);
  align-items: end;
  gap: clamp(44px, 7vw, 90px);
}
.product-intro-card h1 { margin-bottom: 22px; }
.product-lead { max-width: 650px; margin-bottom: 28px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.task-panel {
  padding: 22px;
  border: 1px solid rgba(53, 48, 125, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
}
.task-panel-label { color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.task-panel ol { margin: 16px 0 0; padding: 0; list-style: none; }
.task-panel li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line-soft); font-size: 15px; font-weight: 750; }
.task-panel li span { color: var(--muted); font-size: 11px; padding-top: 3px; }

.showcase-stack {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--canvas);
  box-shadow: 0 24px 65px rgba(31, 36, 64, .08);
}
.showcase-card {
  display: grid;
  grid-template-columns: minmax(260px, .52fr) minmax(480px, 1.48fr);
  align-items: center;
  gap: clamp(34px, 5vw, 70px);
  padding: clamp(26px, 4vw, 44px);
  border-radius: 16px;
  background: #fff;
}
.showcase-copy h2 { margin-bottom: 16px; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -.035em; }
.showcase-copy p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.screenshot-crop { overflow: hidden; }

.product-cta {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(110deg, #f5fbfa 0%, #f8f8ff 100%);
}
.product-cta .eyebrow { margin-bottom: 8px; }
.product-cta h2 { margin-bottom: 8px; font-size: clamp(27px, 3vw, 36px); letter-spacing: -.03em; }
.product-cta p { margin: 0; color: var(--muted); font-size: 16px; }
.product-cta .primary-button { flex: 0 0 auto; }

footer {
  min-height: 100px;
  width: min(1180px, calc(100% - 52px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
footer strong { color: var(--ink); font-size: 16px; font-weight: 800; }

@media (max-width: 900px) {
  .site-header { padding-inline: 24px; grid-template-columns: 1fr auto; }
  nav { display: none; }
  .product-card { grid-template-columns: 1fr; }
  .product-preview { width: 100%; }
  .product-intro-grid { grid-template-columns: 1fr; }
  .showcase-card { grid-template-columns: 1fr; }
  .showcase-copy { max-width: 650px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; padding-inline: 18px; }
  .header-button { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .site-main { width: calc(100% - 24px); padding: 14px 0 34px; }
  .intro-card { min-height: 0; grid-template-columns: 1fr; padding: 28px 22px; border-radius: 18px; }
  .intro-card h1, .product-intro-card h1 { font-size: 38px; }
  .intro-card p { font-size: 16px; }
  .intro-mark { display: none; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 25px; }
  .section-count { margin-top: 20px; }
  .product-grid, .showcase-stack { padding: 8px; border-radius: 18px; }
  .product-card { min-height: 0; padding: 24px 18px; gap: 32px; border-radius: 13px; }
  .product-badge { margin-bottom: 22px; }
  .product-title-row h3 { font-size: 27px; }
  .product-actions { width: 100%; align-items: stretch; flex-direction: column; gap: 15px; }
  .text-link { text-align: center; }
  .coming-card { align-items: flex-start; flex-direction: column; padding: 22px 18px; border-radius: 13px; }
  .product-main { gap: 12px; }
  .product-intro-card { padding: 22px 18px 26px; border-radius: 18px; }
  .back-link { margin-bottom: 36px; }
  .task-panel { padding: 18px; }
  .showcase-card { padding: 24px 18px; gap: 26px; border-radius: 13px; }
  .showcase-copy h2 { font-size: 28px; }
  .browser-frame, .product-preview { border-radius: 12px; }
  .screenshot-crop { overflow-x: auto; }
  .screenshot-crop img { width: 720px; max-width: none; }
  .product-cta { min-height: 0; align-items: stretch; flex-direction: column; padding: 26px 20px; border-radius: 18px; }
  .product-cta .primary-button { width: 100%; }
  footer { width: calc(100% - 32px); min-height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
