* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f8fbff;
  --bg-strong: #e8f1ff;
  --card: rgba(255, 255, 255, 0.88);
  --card-strong: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --border: rgba(148, 163, 184, 0.28);
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-soft: rgba(59, 130, 246, 0.12);
  --teal: #14b8a6;
  --teal-soft: rgba(20, 184, 166, 0.12);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.12);
  --radius: 24px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 24%),
    linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
  line-height: 1.65;
  min-height: 100vh;
}

body.embed-mode {
  padding-top: 0;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(248, 251, 255, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.links a,
.footer-links a,
a {
  color: var(--primary-dark);
  text-decoration: none;
}

.links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.links a:hover,
.footer-links a:hover,
a:hover {
  text-decoration: underline;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 32px;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.hero-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  margin-bottom: 20px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  max-width: 600px;
}

.app-icon {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.18);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  margin-bottom: 16px;
}

.tagline {
  font-size: 22px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 520px;
}

.hero-text {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero-actions {
  justify-content: flex-start;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-stack {
  position: relative;
  min-height: 560px;
  width: min(100%, 420px);
}

.mock-phone {
  position: absolute;
  width: 56%;
  max-width: 240px;
  min-height: 430px;
  padding: 56px 22px 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
  background: linear-gradient(180deg, #101a30 0%, #16213e 100%);
  color: #fff;
}

.mock-phone-scan {
  top: 10px;
  left: 0;
  transform: rotate(-8deg);
}

.mock-phone-generate {
  right: 0;
  bottom: 0;
  transform: rotate(8deg);
}

.mock-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 72px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
}

.scan-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 0.82;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: inset 0 0 0 8px rgba(59, 130, 246, 0.06);
}

.scan-core {
  position: absolute;
  inset: 50%;
  width: 54px;
  height: 54px;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  transform: translate(-50%, -50%);
}

.scan-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: #3b82f6;
  border-style: solid;
}

.scan-corner.top-left {
  top: 26%;
  left: 20%;
  border-width: 3px 0 0 3px;
}

.scan-corner.top-right {
  top: 26%;
  right: 20%;
  border-width: 3px 3px 0 0;
}

.scan-corner.bottom-left {
  left: 20%;
  bottom: 26%;
  border-width: 0 0 3px 3px;
}

.scan-corner.bottom-right {
  right: 20%;
  bottom: 26%;
  border-width: 0 3px 3px 0;
}

.mock-qr {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  width: 100%;
  aspect-ratio: 1;
  margin-top: 18px;
}

.mock-qr span {
  background: #0f172a;
  border-radius: 4px;
}

.mock-qr span:nth-child(3n) {
  background: #3b82f6;
}

.mock-caption {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mock-subcaption {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-top: 8px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card,
.feature,
.card,
.callout {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-card {
  overflow: hidden;
}

.screen-card {
  padding: 18px;
}

.screen-topline {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-card h3 {
  font-size: 18px;
  letter-spacing: -0.03em;
  margin-top: 16px;
  margin-bottom: 8px;
}

.screen-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

.scan-panel,
.qr-panel,
.history-panel,
.settings-panel {
  margin-top: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.scan-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-brackets {
  width: 124px;
  height: 124px;
  border-radius: 22px;
  position: relative;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: inset 0 0 0 8px rgba(59, 130, 246, 0.08);
}

.scan-brackets::before,
.scan-brackets::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 3px solid #3b82f6;
  border-radius: 18px;
  clip-path: polygon(0 0, 24% 0, 24% 8%, 8% 8%, 8% 24%, 0 24%, 0 0, 100% 0, 100% 24%, 92% 24%, 92% 8%, 76% 8%, 76% 0, 100% 0, 100% 100%, 76% 100%, 76% 92%, 92% 92%, 92% 76%, 100% 76%, 100% 100%, 0 100%, 0 76%, 8% 76%, 8% 92%, 24% 92%, 24% 100%, 0 100%);
}

.scan-brackets::after {
  inset: 44px;
  background: rgba(148, 163, 184, 0.2);
  border: 0;
  clip-path: none;
  border-radius: 12px;
}

.qr-panel,
.history-panel,
.settings-panel {
  padding: 22px;
}

.tiny-qr {
  width: 100%;
  height: 100%;
  min-height: 176px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, #0f172a 12px, transparent 12px) 0 0 / 36px 36px,
    linear-gradient(#0f172a 12px, transparent 12px) 0 0 / 36px 36px,
    linear-gradient(90deg, #3b82f6 12px, transparent 12px) 18px 18px / 36px 36px,
    linear-gradient(#3b82f6 12px, transparent 12px) 18px 18px / 36px 36px,
    #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.history-panel,
.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.history-item,
.setting-row {
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  position: relative;
}

.history-item::before,
.setting-row::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--primary-soft);
  transform: translateY(-50%);
}

.history-item::after,
.setting-row::after {
  content: "";
  position: absolute;
  left: 48px;
  right: 14px;
  top: 50%;
  height: 8px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.2);
  transform: translateY(-50%);
}

.history-item.short::after {
  right: 90px;
}

.setting-row::after {
  right: 72px;
}

.setting-row.on {
  border-color: rgba(20, 184, 166, 0.28);
}

.setting-row.on span,
.setting-row span {
  display: none;
}

.setting-row {
  background:
    radial-gradient(circle at calc(100% - 22px) 50%, #ffffff 0 8px, transparent 9px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.22) calc(100% - 54px), rgba(148, 163, 184, 0.16) calc(100% - 54px));
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.feature {
  padding: 24px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-soft), var(--teal-soft));
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.feature p,
.muted,
p,
li {
  color: var(--text-secondary);
  font-size: 15px;
}

.callout {
  margin-top: 28px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn-group-left {
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.18);
}

.btn-outline {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}

.card {
  padding: 36px;
}

.prose h1 {
  font-size: 36px;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.prose h2 {
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-top: 28px;
  margin-bottom: 10px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.prose li {
  margin-bottom: 8px;
}

.highlight,
.warning {
  padding: 16px 18px;
  border-radius: 16px;
  margin: 22px 0;
  font-size: 14px;
}

.highlight {
  background: var(--primary-soft);
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.warning {
  background: var(--warning-soft);
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 58px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  padding: 18px 20px;
  margin-bottom: 12px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 12px;
}

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  text-align: center;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 980px) {
  .hero-inner,
  .features,
  .gallery,
  .callout {
    grid-template-columns: 1fr;
  }

  .callout {
    display: block;
  }

  .phone-stack {
    min-height: 480px;
    margin-top: 8px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .links {
    gap: 14px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero h1,
  .section-head h2,
  .prose h1 {
    letter-spacing: -0.04em;
  }

  .phone-stack {
    min-height: 420px;
  }

  .mock-phone {
    min-height: 360px;
    padding-top: 46px;
  }

  .gallery,
  .features {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }
}
