:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #5b6472;
  --line: #dbe1e8;
  --accent: #2f6fed;
  --accent-dark: #1f54c7;
  --dark: #111827;
  --dark-panel: #1a2433;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(15, 23, 42, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 225, 232, .85);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; font-size: 1.08rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: linear-gradient(145deg, #3f7cf0, #194fb8);
  border-radius: 9px;
  box-shadow: 0 7px 20px rgba(47, 111, 237, .28);
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; color: #344054; font-size: .95rem; font-weight: 600; }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-download { padding: 9px 15px; color: white; background: var(--accent); border-radius: 9px; }
.nav-toggle { display: none; }

.hero { padding: 92px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.25fr; align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(3rem, 6vw, 5.25rem); line-height: .98; letter-spacing: -.055em; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.035em; }
h3 { margin-bottom: 10px; font-size: 1.14rem; }
.intro { max-width: 620px; margin-bottom: 30px; color: var(--muted); font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 10px; text-decoration: none; font-weight: 750; }
.button-primary { color: white; background: var(--accent); box-shadow: 0 12px 26px rgba(47, 111, 237, .24); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { border: 1px solid var(--line); background: white; }
.hero-note { margin-top: 16px; color: #70798a; font-size: .9rem; }

.app-frame {
  position: relative;
  border: 1px solid #ccd5df;
  border-radius: 16px;
  overflow: hidden;
  background: #edf2f7;
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.hero-screenshot {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.section { padding: 92px 0; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 25px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15, 23, 42, .045); }
.feature-card p { margin-bottom: 0; color: var(--muted); }
.section-dark { color: white; background: var(--dark); }
.section-dark .eyebrow { color: #80aaff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.prose { color: #c5ceda; font-size: 1.08rem; }
.prose p:last-child { margin-bottom: 0; }
.screenshot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 18px; }
.screenshot-placeholder { min-height: 250px; display: grid; place-items: center; padding: 20px; text-align: center; color: #8490a0; background: linear-gradient(145deg, #eef2f7, #dde4ec); border: 1px dashed #aeb8c5; border-radius: var(--radius); font-weight: 700; }
.screenshot-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.screenshot-item { margin: 0; display: flex; flex-direction: column; flex: 0 1 calc((100% - 48px) / 3); }
.screenshot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  padding: 18px;
  border: 1px solid #ccd5df;
  border-radius: 16px;
  overflow: hidden;
  background: #edf2f7;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .1);
}
.section-screenshot {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: contain;
  cursor: zoom-in;
}
.screenshot-item figcaption { margin-top: 14px; color: var(--muted); font-weight: 650; font-size: .95rem; text-align: center; }
.section-muted { background: #eef2f6; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item {
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 14px 0 0; color: var(--muted); }
.requirements-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.requirements-list { margin: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.requirements-list div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.requirements-list div:last-child { border-bottom: 0; }
.requirements-list dt { font-weight: 800; }
.requirements-list dd { margin: 0; color: var(--muted); }
.support-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; }
.support-grid h2 { margin-bottom: 12px; }
.support-grid > div:first-child p { max-width: 560px; margin-bottom: 0; color: var(--muted); }
.support-actions { min-width: 230px; text-align: center; }
.support-actions .button-primary { width: 100%; }
.support-actions p { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.download-section { padding-top: 72px; }
.download-card { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; padding: 42px; color: white; background: linear-gradient(135deg, #1f4fa9, #2f6fed); border-radius: 24px; box-shadow: 0 28px 70px rgba(31, 79, 169, .24); }
.download-card .eyebrow { color: #c9d9ff; }
.download-card h2 { margin-bottom: 10px; }
.download-card p { margin-bottom: 0; color: #e4ebfa; }
.download-actions { min-width: 230px; text-align: center; }
.download-actions .button-primary { width: 100%; }
.download-actions p { margin-top: 10px; font-size: .8rem; }
.install-guide { margin-top: 56px; }
.install-guide h3 { font-size: 1.3rem; margin-bottom: 12px; }
.install-guide h3:not(:first-child) { margin-top: 40px; }
.install-guide > p { max-width: 780px; margin-bottom: 0; color: var(--muted); }
.install-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
}
.install-step {
  position: relative;
  padding: 20px 18px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
}
.install-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: .8rem;
  font-weight: 800;
}
.install-step-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  margin-bottom: 16px;
  padding: 12px;
  background: #edf2f7;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.install-step-shot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.install-step p { margin: 0; color: var(--muted); font-size: .92rem; }
.install-step strong { color: var(--text); }
.site-footer { padding: 30px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; color: #6b7280; font-size: .88rem; }
.footer-inner p { margin-bottom: 0; }
.footer-inner a { text-decoration: none; }
.footer-links { display: flex; gap: 22px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(15, 23, 42, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: zoom-out;
  transition: opacity .32s ease, background .32s ease, visibility 0s linear .32s;
}
.lightbox.open {
  background: rgba(15, 23, 42, .82);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .32s ease, background .32s ease, visibility 0s linear 0s;
}
.lightbox-img {
  max-width: min(1400px, 90vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
  background: #edf2f7;
  transform: scale(.9);
  opacity: 0;
  transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .34s ease;
}
.lightbox.open .lightbox-img {
  transform: scale(1);
  opacity: 1;
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.7rem;
  line-height: 1;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }

@media (max-width: 900px) {
  .hero-grid, .split, .requirements-grid, .support-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 66px; }
  .app-frame { transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshot-grid { grid-template-columns: 1fr; }
  .screenshot-list .screenshot-item { flex-basis: calc((100% - 24px) / 2); }
  .install-steps { grid-template-columns: repeat(2, 1fr); }
  .download-card { grid-template-columns: 1fr; }
  .download-actions { text-align: left; }
  .support-actions { text-align: left; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 26px, 1160px); }
  .nav-toggle { display: inline-flex; border: 1px solid var(--line); background: white; border-radius: 8px; padding: 8px 11px; font: inherit; font-weight: 700; }
  .site-nav { position: absolute; top: 72px; left: 13px; right: 13px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav .nav-download { margin-top: 4px; text-align: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .mock-app { grid-template-columns: 110px 1fr; min-height: 300px; }
  .screenshot-list .screenshot-item { flex-basis: 100%; }
  .screenshot-frame { height: 260px; }
  .install-steps { grid-template-columns: 1fr; }
  .hero { padding-bottom: 58px; }
  .section { padding: 66px 0; }
  .requirements-list div { grid-template-columns: 1fr; gap: 3px; }
  .download-card { padding: 30px 24px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 18px; }
}
