:root {
  --blue: #1167ef;
  --blue-dark: #0a55d6;
  --ink: #0e1b35;
  --muted: #66748a;
  --line: #dfe8f5;
  --soft-blue: #edf5ff;
  --panel: rgba(255, 255, 255, 0.82);
  --shadow: 0 22px 60px rgba(31, 88, 154, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 77% 28%, rgba(55, 143, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 10% 46%, rgba(32, 120, 255, 0.08), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 60%, #ffffff 100%);
}

body::before {
  position: fixed;
  inset: 30rem auto auto 0;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  content: "";
  opacity: 0.58;
  background-image: radial-gradient(#88bcff 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(210, 221, 235, 0.85);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.nav,
.section,
.footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 108px;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(145deg, #0b75ff, #0b5de6);
  box-shadow: 0 10px 20px rgba(17, 103, 239, 0.28);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  font-size: 1.05rem;
  font-weight: 500;
}

.nav-links a,
.footer a {
  transition: color 180ms ease;
}

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

.download-button,
.secondary-button,
.app-store-button,
.preview-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.download-button {
  min-height: 52px;
  padding: 0 1.55rem;
  color: #fff;
  font-weight: 700;
  border-radius: 9px;
  background: linear-gradient(180deg, #1477ff, var(--blue-dark));
  box-shadow: 0 14px 30px rgba(17, 103, 239, 0.25);
}

.download-button svg,
.app-store-button svg,
.preview-actions .blue svg {
  fill: none;
  stroke: currentColor;
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 5.8rem);
  min-height: 680px;
  padding: 4.1rem 0 3.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 2.3rem;
  padding: 0.65rem 1rem;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid #b8d6ff;
  border-radius: 999px;
  background: rgba(244, 249, 255, 0.86);
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(3rem, 5.4vw, 4.7rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p {
  max-width: 610px;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.app-store-button {
  min-height: 72px;
  padding: 0 2rem;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 800;
  border-radius: 10px;
  background: linear-gradient(180deg, #1477ff, #075de8);
  box-shadow: 0 22px 45px rgba(17, 103, 239, 0.28);
}

.app-store-button svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
  stroke: none;
}

.app-store-button span {
  display: grid;
  line-height: 1.1;
}

.app-store-button small {
  font-size: 0.78rem;
  font-weight: 600;
}

.secondary-button {
  min-height: 72px;
  padding: 0 2rem;
  color: #173052;
  font-size: 1.1rem;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 34px rgba(26, 68, 119, 0.11);
}

.secondary-button svg {
  fill: currentColor;
  stroke: none;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.7rem;
  padding: 0;
  margin: 4.4rem 0 0;
  color: #43536b;
  font-size: 0.92rem;
  font-weight: 600;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.trust-list svg {
  color: #244267;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  position: absolute;
  inset: 3rem 1rem -1.5rem 0;
  z-index: -1;
  content: "";
  border-radius: 28px;
  background: rgba(227, 240, 255, 0.7);
  filter: blur(28px);
}

.hero-preview-image {
  display: block;
  width: min(760px, 100%);
  height: auto;
  margin-left: auto;
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(31, 88, 154, 0.18);
}

.app-window,
.mini-window {
  overflow: hidden;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.app-window-large {
  max-width: 570px;
  margin-left: auto;
}

.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  height: 38px;
  padding: 0 0.9rem;
  border-bottom: 1px solid #dce3ec;
  background: linear-gradient(180deg, #f9fbfe, #eef2f7);
}

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  font-weight: 700;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
}

.red { background: #ff5f57; }
.yellow { background: #febc2e; }
.green { background: #28c840; }

.window-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 520px;
}

.settings-panel {
  display: grid;
  align-content: start;
  gap: 1.05rem;
  padding: 1.45rem 1rem;
  border-right: 1px solid #dde5ef;
  font-size: 0.82rem;
  background: rgba(249, 251, 254, 0.72);
}

.settings-panel label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.settings-panel input,
.settings-panel select {
  width: 100%;
  min-height: 38px;
  padding: 0 0.75rem;
  color: #17233a;
  border: 1px solid #d7dfe9;
  border-radius: 6px;
  background: #fff;
  font: inherit;
}

.panel-heading {
  margin-top: 0.4rem;
  font-weight: 800;
}

.color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
}

.swatch {
  width: 50px;
  height: 28px;
  border: 1px solid #d6dee9;
  border-radius: 5px;
}

.swatch.black { background: #000; }
.swatch.white { background: #fff; }

.qr-stage {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2.8rem;
  padding: 2rem;
}

.qr-card {
  width: min(100%, 315px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 1.05rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eef2f7;
}

.qr-code {
  position: relative;
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 5px;
  width: 100%;
  aspect-ratio: 1;
  color: #08090b;
}

.qr-dot {
  border-radius: 999px;
  background: currentColor;
}

.qr-dot.empty {
  opacity: 0;
}

.qr-corner {
  position: absolute;
  width: 26%;
  aspect-ratio: 1;
  border: 8px solid #08090b;
  border-radius: 12px;
  background: #fff;
}

.qr-corner::after {
  position: absolute;
  inset: 22%;
  content: "";
  border-radius: 7px;
  background: linear-gradient(145deg, #4e9cff, #0b62df);
}

.qr-corner.tl { top: 0; left: 0; }
.qr-corner.tr { top: 0; right: 0; }
.qr-corner.bl { bottom: 0; left: 0; }

.qr-logo {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 28%;
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  font-weight: 800;
  border: 7px solid #fff;
  border-radius: 14px;
  background: linear-gradient(145deg, #4e9cff, #0b62df);
  transform: translate(-50%, -50%);
}

.preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  width: 100%;
}

.preview-actions button {
  min-height: 40px;
  color: #15233c;
  font-weight: 700;
  border: 1px solid #d9e1eb;
  border-radius: 7px;
  background: #fff;
}

.preview-actions .blue {
  color: #fff;
  border-color: transparent;
  background: var(--blue);
}

.features {
  padding: 2.5rem 0 3.6rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  min-height: 280px;
  padding: 2.1rem 1.65rem;
  text-align: center;
  border: 1px solid #dfe8f4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 45px rgba(31, 88, 154, 0.08);
}

.icon-bubble {
  display: inline-grid;
  width: 84px;
  height: 84px;
  place-items: center;
  color: var(--blue);
  border-radius: 999px;
  background: linear-gradient(145deg, #f2f7ff, #e8f2ff);
}

.icon-bubble svg {
  width: 2.15rem;
  height: 2.15rem;
  stroke-width: 2.4;
}

.icon-bubble.small {
  width: 74px;
  height: 74px;
}

.feature-card h2 {
  margin: 1.35rem 0 0.9rem;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: #53647c;
  font-size: 0.98rem;
  line-height: 1.7;
}

.content-types,
.screenshots,
.faq {
  padding: 2.2rem 0 3.4rem;
  text-align: center;
}

.content-types h2,
.screenshots h2,
.faq h2 {
  margin: 0 0 2.4rem;
  font-size: 1.9rem;
  letter-spacing: 0;
}

.type-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.2rem;
  width: min(880px, 100%);
  margin: 0 auto;
}

.type-item {
  display: grid;
  justify-items: center;
  gap: 1rem;
  font-size: 1.12rem;
  font-weight: 500;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mini-window {
  border-color: #c9ddf7;
  box-shadow: 0 18px 34px rgba(30, 106, 190, 0.14);
}

.window-bar.compact {
  height: 28px;
  padding-inline: 0.65rem;
}

.compact .dot {
  width: 8px;
  height: 8px;
}

.compact .window-title {
  font-size: 0.5rem;
}

.mini-body {
  display: grid;
  grid-template-columns: 41% 59%;
  gap: 0.65rem;
  padding: 0.9rem;
  min-height: 198px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.mini-fields {
  display: grid;
  align-content: start;
  gap: 0.38rem;
  text-align: left;
  font-size: clamp(0.48rem, 0.78vw, 0.72rem);
}

.mini-fields span {
  color: #53647c;
}

.mini-fields b {
  overflow: hidden;
  padding: 0.36rem 0.45rem;
  border: 1px solid #e0e7f0;
  border-radius: 4px;
  background: #fff;
  font-size: inherit;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-preview {
  display: grid;
  place-items: center;
  padding: 0.6rem;
  border-radius: 12px;
  background: #fff;
}

.small-qr {
  gap: 3px;
  color: #0d6def;
}

[data-theme="contact"] .small-qr {
  color: #12943d;
}

[data-theme="text"] .small-qr {
  color: #5331b9;
}

.small-qr .qr-corner {
  border-width: 5px;
  border-color: #111;
  border-radius: 8px;
}

.small-qr .qr-logo {
  width: 25%;
  border-width: 4px;
  border-radius: 9px;
  font-size: 1rem;
}

.privacy-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.2rem;
  padding: 2rem 2.2rem;
  border: 1px solid #cfe0f5;
  border-radius: 16px;
  background: rgba(247, 251, 255, 0.88);
}

.privacy-strip article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.privacy-strip article + article {
  border-left: 1px solid #d8e5f4;
  padding-left: 1.5rem;
}

.privacy-strip h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.privacy-strip p {
  margin: 0;
  color: #53647c;
  font-size: 0.9rem;
  line-height: 1.5;
}

.faq {
  display: grid;
  width: min(780px, calc(100% - 48px));
}

.faq details {
  margin-bottom: 1rem;
  padding: 1.2rem 1.4rem;
  text-align: left;
  border: 1px solid #dfe8f4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.policy-page {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 5rem 0 4.25rem;
}

.policy-document {
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid #dfe8f4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 56px rgba(31, 88, 154, 0.1);
}

.policy-heading {
  padding-bottom: 2rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid #dfe8f4;
}

.policy-heading p {
  margin: 0 0 0.85rem;
  color: var(--blue);
  font-size: 0.96rem;
  font-weight: 800;
  text-transform: uppercase;
}

.policy-heading h1 {
  max-width: 760px;
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.policy-heading time {
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
}

.policy-lead {
  margin: 0 0 2.8rem;
  color: #43536b;
  font-size: 1.2rem;
  line-height: 1.75;
}

.policy-document section {
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.policy-document h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.35;
}

.policy-document p,
.policy-document li,
.policy-document address {
  color: #3f4f66;
  font-size: 1rem;
  line-height: 1.78;
}

.policy-document p {
  margin: 0 0 0.9rem;
}

.policy-document ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.35rem;
  margin: 1rem 0 1.2rem;
}

.policy-document li::marker {
  color: var(--blue);
}

.policy-document address {
  padding: 1rem 1.2rem;
  margin-top: 0.7rem;
  border: 1px solid #dfe8f4;
  border-radius: 10px;
  background: #f8fbff;
  font-style: normal;
}

.policy-document address a {
  color: var(--blue);
  font-weight: 700;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #dfe8f4;
}

.support-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 1rem;
  color: var(--blue);
  font-weight: 800;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #f8fbff;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 3rem;
  padding: 2.5rem 0 3rem;
}

.footer-brand {
  font-size: 1.35rem;
}

.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
  font-size: 1.35rem;
}

.footer p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer nav {
  display: flex;
  gap: 4.5rem;
  font-weight: 600;
}

.copyright {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: auto auto;
    min-height: 84px;
  }

  .nav-toggle {
    display: grid;
    justify-self: end;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .nav-links,
  .download-button {
    display: none;
  }

  .nav.open .nav-links {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding-bottom: 1rem;
  }

  .nav.open .nav-links a {
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
    text-align: center;
  }

  .hero p,
  .hero h1 {
    margin-inline: auto;
  }

  .hero-actions,
  .trust-list {
    justify-content: center;
  }

  .app-window-large {
    margin-inline: auto;
  }

  .hero-preview-image {
    margin-inline: auto;
  }

  .feature-grid,
  .privacy-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy-strip article + article {
    border-left: 0;
    padding-left: 0;
  }

  .type-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .screenshot-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: start;
    gap: 1.6rem;
  }
}

@media (max-width: 640px) {
  .nav,
  .section,
  .footer,
  .faq,
  .policy-page {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    font-size: 1.45rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 1.45rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .hero p {
    font-size: 1.05rem;
  }

  .app-store-button,
  .secondary-button {
    width: 100%;
  }

  .window-body {
    grid-template-columns: 1fr;
  }

  .settings-panel {
    display: none;
  }

  .qr-stage {
    padding: 1.2rem;
  }

  .preview-actions {
    gap: 0.8rem;
  }

  .feature-grid,
  .privacy-strip,
  .type-list {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .privacy-strip {
    padding: 1.4rem;
  }

  .privacy-strip article {
    grid-template-columns: auto 1fr;
    border-bottom: 1px solid #d8e5f4;
    padding-bottom: 1rem;
  }

  .privacy-strip article:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .footer nav {
    flex-wrap: wrap;
    gap: 1.4rem;
  }

  .policy-page {
    padding: 2rem 0 3rem;
  }

  .policy-document {
    padding: 1.35rem;
    border-radius: 10px;
  }

  .policy-heading {
    padding-bottom: 1.4rem;
    margin-bottom: 1.6rem;
  }

  .policy-lead {
    font-size: 1.05rem;
  }
}
