:root {
  color-scheme: light;
  --paper: #f8fbff;
  --ink: #070d23;
  --muted: #475269;
  --soft: #737d92;
  --line: #dfe6f4;
  --panel: #ffffff;
  --blue: #2557f6;
  --violet: #8538ef;
  --green: #159b38;
  --orange: #e46621;
  --shadow: 0 26px 70px rgba(22, 33, 67, 0.14);
  --soft-shadow: 0 14px 38px rgba(26, 43, 84, 0.1);
  font-family: Avenir Next, Avenir, Segoe UI, Helvetica Neue, sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 7% 9%, rgba(37, 87, 246, 0.1), transparent 18rem),
    radial-gradient(circle at 92% 15%, rgba(133, 56, 239, 0.14), transparent 21rem),
    linear-gradient(180deg, #fbfdff 0%, #fff 48%, #fbfdff 100%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  content: "";
}

body::before {
  inset: 0 0 auto;
  height: 58vh;
  background-image:
    linear-gradient(rgba(37, 87, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 87, 246, 0.07) 1px, transparent 1px);
  background-size: 9px 9px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.65), transparent 52%);
}

body::after {
  right: -8rem;
  bottom: 46%;
  width: 42rem;
  height: 28rem;
  border-radius: 50%;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(86, 111, 255, 0.13) 0,
      rgba(86, 111, 255, 0.13) 1px,
      transparent 1px,
      transparent 8px
    );
  transform: rotate(-12deg);
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button.primary svg:first-child {
  fill: currentColor;
  stroke: none;
}

code,
pre,
.code-sheet {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, Liberation Mono, monospace;
  letter-spacing: 0;
}

code {
  border-radius: 5px;
  background: rgba(37, 87, 246, 0.08);
  color: var(--blue);
  padding: 0.08rem 0.28rem;
}

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

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  border: 1px solid rgba(183, 195, 221, 0.78);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.87);
  box-shadow: 0 15px 45px rgba(21, 31, 61, 0.12);
  padding: 0 30px;
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
}

.brand {
  gap: 16px;
  font-size: 1.28rem;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
  box-shadow: 0 11px 24px rgba(37, 87, 246, 0.2);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px 42px;
  color: #1b2338;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a,
.site-footer a,
.text-link {
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--blue);
}

.nav-external,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero {
  min-height: 565px;
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(540px, 1.17fr);
  align-items: center;
  gap: 66px;
  padding: 54px 0 28px;
}

.hero-copy {
  padding-left: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #3348f5;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow.text-only {
  display: block;
  margin-bottom: 7px;
  color: #1949df;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 520px;
  margin-bottom: 23px;
  font-size: clamp(2.85rem, 5.2vw, 4.35rem);
  line-height: 1.08;
  font-weight: 900;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.13;
  font-weight: 850;
}

h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 850;
}

.hero-lede {
  max-width: 485px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(64, 92, 154, 0.26);
  border-radius: 8px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 14px 28px rgba(74, 67, 230, 0.32);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: #293248;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.browser-demo {
  overflow: hidden;
  border: 1px solid rgba(188, 199, 224, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.browser-bar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 18px;
}

.traffic-lights {
  display: flex;
  gap: 8px;
}

.traffic-lights span {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: #ff5a52;
}

.traffic-lights span:nth-child(2) {
  background: #ffb422;
}

.traffic-lights span:nth-child(3) {
  background: #23bd45;
}

.browser-controls,
.browser-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #798196;
}

.url-pill {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border-radius: 99px;
  background: #edf0f6;
  color: #545b6e;
  padding: 8px 16px;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.url-pill svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.demo-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 12px;
  padding: 0 12px 12px;
}

.webpage-preview,
.markdown-preview {
  min-height: 405px;
  border: 1px solid #e9edf7;
  border-radius: 9px;
  background: #fff;
  padding: 27px 20px;
}

.preview-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  font-weight: 850;
}

.preview-label.blue {
  color: var(--blue);
}

.preview-label.purple {
  color: var(--violet);
}

.webpage-preview h2 {
  margin-bottom: 7px;
  font-size: 1.48rem;
}

.webpage-preview p:not(.preview-label) {
  color: #2c3346;
  font-size: 0.83rem;
  line-height: 1.45;
}

.skeleton {
  height: 7px;
  border-radius: 99px;
  background: #dfe3ed;
}

.skeleton.title {
  width: 52%;
  margin-bottom: 20px;
}

.skeleton.long {
  width: 76%;
  margin: 27px 0 10px;
}

.skeleton.short {
  width: 58%;
}

.image-card {
  position: relative;
  overflow: hidden;
  height: 76px;
  margin: 22px 0 17px;
  border-radius: 9px;
  background: linear-gradient(180deg, #f2f6ff, #e9effd);
}

.sun {
  position: absolute;
  top: 14px;
  left: 35%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #bdc9f5;
}

.mountain {
  position: absolute;
  bottom: -16px;
  width: 150px;
  height: 72px;
  border-radius: 18px 18px 4px 4px;
  background: linear-gradient(145deg, #c7d4f9, #eef3ff);
  transform: rotate(38deg);
}

.mountain.one {
  left: 9px;
}

.mountain.two {
  right: 0;
  bottom: -24px;
  background: linear-gradient(145deg, #d9e3fb, #b8c8f1);
}

.webpage-preview ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: #222a3d;
  font-size: 0.78rem;
  list-style: none;
}

.webpage-preview li {
  position: relative;
  padding-left: 18px;
}

.webpage-preview li::before {
  position: absolute;
  top: 0.54em;
  left: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.convert-arrow {
  position: absolute;
  z-index: 2;
  top: 43%;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #dce3f2;
  border-radius: 50%;
  background: #fff;
  color: #24304a;
  box-shadow: 0 10px 26px rgba(29, 39, 67, 0.15);
  transform: translate(-50%, -50%);
}

.markdown-preview {
  padding-bottom: 11px;
}

.code-sheet {
  position: relative;
  min-height: 326px;
  border: 1px solid #eef1f8;
  border-radius: 9px;
  background: #fff;
  color: #151b2d;
  padding: 16px 12px 50px;
  font-size: 0.74rem;
  line-height: 1.8;
}

.code-sheet ol {
  margin: 0;
  padding-left: 28px;
}

.code-sheet li {
  min-height: 1.8em;
  padding-left: 12px;
}

.code-sheet li::marker {
  color: #8f98ad;
}

.md-heading,
.md-accent {
  color: #861ce3;
  font-weight: 800;
}

.local-badge {
  position: absolute;
  right: 8px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #bddfca;
  border-radius: 7px;
  background: #f0fff4;
  color: var(--green);
  padding: 8px 10px;
  font-family: Avenir Next, Avenir, Segoe UI, Helvetica Neue, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
}

.section {
  padding: 30px 0;
}

.workflow {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 26px;
}

.feature-grid article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 105px;
  border: 1px solid #dfe6f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  padding: 20px 26px 20px 18px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.feature-icon,
.privacy-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.feature-icon {
  width: 58px;
  height: 58px;
}

.feature-icon svg,
.privacy-icon svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.9;
}

.blue {
  background: #e9f0ff;
  color: var(--blue);
}

.purple {
  background: #f1e6ff;
  color: var(--violet);
}

.green {
  background: #e8f9e9;
  color: var(--green);
}

.orange {
  background: #fff0e6;
  color: var(--orange);
}

.privacy-band {
  display: grid;
  grid-template-columns: 0.86fr 1.65fr;
  align-items: center;
  gap: 38px;
  margin: 36px 0 20px;
  border: 1px solid #dce7fb;
  border-radius: 13px;
  background:
    linear-gradient(105deg, rgba(235, 244, 255, 0.95), rgba(255, 255, 255, 0.96) 48%, rgba(248, 238, 255, 0.95));
  box-shadow: var(--soft-shadow);
  padding: 30px 38px;
}

.privacy-copy h2 {
  max-width: 380px;
  margin-bottom: 12px;
}

.privacy-copy p:last-child,
.privacy-list dd,
.policy-cta p {
  color: var(--muted);
}

.privacy-copy p:last-child {
  max-width: 405px;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.privacy-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.privacy-list div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 108px;
  border-left: 1px solid #d9deeb;
  padding-left: 28px;
}

.privacy-icon {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.privacy-list dt {
  align-self: end;
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 850;
}

.privacy-list dd {
  align-self: start;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.policy-cta {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 30px;
  margin: 20px auto 22px;
  border: 1px solid #dfe6f4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  padding: 14px 30px;
}

.store-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 9px;
  background: #edf4ff;
}

.store-icon img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.policy-cta h2 {
  margin-bottom: 4px;
  font-size: 1.28rem;
}

.policy-cta p {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.policy-cta .text-link {
  color: #0249f5;
  font-weight: 700;
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  align-items: center;
  gap: 14px 30px;
  border-top: 1px solid #e5eaf5;
  padding: 22px 0 28px;
  color: #596276;
  font-size: 0.82rem;
}

.footer-brand {
  gap: 12px;
  color: #1e2639;
  font-size: 1rem;
}

.site-footer a:not(.footer-brand) {
  justify-self: center;
}

.site-footer small {
  grid-column: 1 / -1;
  justify-self: center;
  color: #767f91;
  font-size: 0.72rem;
}

.policy-page {
  max-width: 890px;
  padding: 60px 0 92px;
}

.policy {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
  padding: clamp(26px, 6vw, 64px);
}

.policy h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
}

.policy h2 {
  margin: 42px 0 12px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.policy p,
.policy li {
  color: var(--muted);
}

.policy .updated,
.policy a {
  color: var(--blue);
}

.policy .updated {
  font-weight: 800;
}

.policy a {
  overflow-wrap: anywhere;
}

@media (max-width: 1060px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 24px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 14px 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    min-height: auto;
    padding-top: 44px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .workflow {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .privacy-band,
  .privacy-list {
    grid-template-columns: 1fr;
  }

  .privacy-list div {
    border-left: 0;
    border-top: 1px solid #d9deeb;
    padding: 20px 0 0;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 24px, 1160px);
  }

  .brand {
    font-size: 1.06rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 3.45rem);
  }

  .hero {
    padding-top: 36px;
  }

  .button {
    width: 100%;
  }

  .browser-bar {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .browser-controls {
    display: none;
  }

  .demo-grid,
  .feature-grid,
  .policy-cta,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .webpage-preview,
  .markdown-preview {
    min-height: auto;
  }

  .convert-arrow {
    top: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .feature-grid article {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .privacy-band {
    padding: 24px;
  }

  .policy-cta .text-link,
  .site-footer a,
  .site-footer small {
    justify-self: start;
  }
}
