:root {
  color-scheme: light;
  --purple-950: #251b3f;
  --purple-900: #32108f;
  --purple-800: #4b22c8;
  --purple-700: #7047eb;
  --purple-500: #9c73ff;
  --purple-300: #cdbbff;
  --purple-100: #eee8ff;
  --purple-050: #f8f6ff;
  --white: #ffffff;
  --muted: #6f6680;
  --border: rgba(112, 71, 235, 0.18);
  --shadow: 0 24px 70px rgba(55, 28, 126, 0.15);
  --content: 1160px;
  --legal-content: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--purple-950);
  background:
    radial-gradient(
      circle at 8% 8%,
      rgba(205, 187, 255, 0.55),
      transparent 32rem
    ),
    radial-gradient(
      circle at 92% 24%,
      rgba(156, 115, 255, 0.2),
      transparent 27rem
    ),
    linear-gradient(180deg, #fbfaff 0%, #f6f2ff 48%, #ffffff 100%);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--purple-800);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--purple-700);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(112, 71, 235, 0.42);
  outline-offset: 4px;
  border-radius: 8px;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--purple-950);
  border-radius: 999px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  padding: 22px 24px 0;
}

.nav-shell {
  display: flex;
  width: min(100%, var(--content));
  min-width: 0;
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 12px 10px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(112, 71, 235, 0.14);
  border-radius: 24px;
  box-shadow: 0 14px 42px rgba(55, 28, 126, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--purple-950);
  font-size: 1.04rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(75, 34, 200, 0.22);
}

.site-nav {
  display: flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  padding: 10px 13px;
  color: var(--muted);
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--purple-800);
  background: var(--purple-100);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 82px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 6%;
  left: 50%;
  width: 780px;
  height: 520px;
  background: radial-gradient(
    ellipse,
    rgba(112, 71, 235, 0.2),
    transparent 66%
  );
  content: '';
  transform: translateX(-50%);
  filter: blur(10px);
}

.hero-grid {
  display: grid;
  width: min(100%, 1080px);
  margin: 0 auto;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 72px;
}

.hero-grid > *,
.privacy-band > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 7px 12px;
  color: var(--purple-800);
  background: rgba(238, 232, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.gradient-text {
  color: var(--purple-700);
  background: linear-gradient(115deg, var(--purple-700), var(--purple-800));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  max-width: 640px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.center-actions {
  margin-top: 28px;
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 760;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-700), var(--purple-800));
  box-shadow: 0 13px 30px rgba(75, 34, 200, 0.26);
}

.button-primary:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--purple-800);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--border);
}

.phone-stage {
  position: relative;
  display: grid;
  min-height: 650px;
  place-items: center;
}

.phone-stage::before {
  position: absolute;
  width: min(390px, 100%);
  height: 500px;
  background: radial-gradient(
    ellipse,
    rgba(156, 115, 255, 0.3),
    transparent 68%
  );
  content: '';
  filter: blur(4px);
}

.phone-mockup {
  position: relative;
  width: min(100%, 318px);
  padding: 9px;
  background: linear-gradient(145deg, #312c3b, #0d0b13 48%, #292431);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50px;
  box-shadow:
    0 38px 80px rgba(37, 27, 63, 0.28),
    0 12px 28px rgba(55, 28, 126, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-side-button {
  position: absolute;
  background: #1d1923;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone-volume {
  top: 142px;
  left: -4px;
  width: 4px;
  height: 74px;
  border-radius: 4px 0 0 4px;
}

.phone-power {
  top: 172px;
  right: -4px;
  width: 4px;
  height: 82px;
  border-radius: 0 4px 4px 0;
}

.phone-screen {
  position: relative;
  display: flex;
  min-height: 632px;
  padding: 13px 17px 20px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 90% 12%,
      rgba(156, 115, 255, 0.25),
      transparent 170px
    ),
    linear-gradient(180deg, #faf8ff 0%, #eee8ff 100%);
  border-radius: 41px;
  flex-direction: column;
}

.phone-camera {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  width: 90px;
  height: 27px;
  background: #121017;
  border-radius: 999px;
  transform: translateX(-50%);
}

.phone-camera::after {
  position: absolute;
  top: 9px;
  right: 11px;
  width: 8px;
  height: 8px;
  background: #232244;
  border: 1px solid #4a4871;
  border-radius: 50%;
  content: '';
}

.phone-status-bar {
  display: flex;
  min-height: 31px;
  padding: 1px 8px 0;
  align-items: flex-start;
  justify-content: space-between;
  color: #1d172a;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-battery {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.phone-battery::before {
  position: absolute;
  top: 1.5px;
  right: 1.5px;
  bottom: 1.5px;
  left: 1.5px;
  background: currentColor;
  border-radius: 1px;
  content: '';
}

.phone-battery::after {
  position: absolute;
  top: 2px;
  right: -3px;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 0 2px 2px 0;
  content: '';
}

.phone-app-bar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
}

.preview-brand {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 8px;
  color: var(--purple-800);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 6px 14px rgba(75, 34, 200, 0.2);
}

.phone-more {
  color: var(--purple-700);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.phone-card {
  display: flex;
  min-height: 479px;
  padding: 20px 18px 18px;
  align-items: center;
  background:
    radial-gradient(
      circle at 88% 2%,
      rgba(205, 187, 255, 0.55),
      transparent 135px
    ),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(112, 71, 235, 0.15);
  border-radius: 29px;
  box-shadow: 0 20px 42px rgba(55, 28, 126, 0.13);
  flex: 1;
  flex-direction: column;
}

.phone-card-label {
  align-self: flex-start;
  margin: 0 0 15px;
  color: var(--purple-700);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-500), var(--purple-800));
  border: 4px solid rgba(238, 232, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 9px 22px rgba(75, 34, 200, 0.25);
  font-size: 1rem;
  font-weight: 850;
  place-items: center;
}

.preview-name {
  margin: 0 0 3px;
  font-size: 1.6rem;
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-align: center;
}

.preview-phone {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 0.87rem;
}

.phone-qr-shell {
  padding: 9px;
  background: var(--white);
  border: 1px solid rgba(112, 71, 235, 0.1);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(37, 27, 63, 0.12);
}

.qr-demo {
  display: block;
  width: 148px;
  height: 148px;
  border-radius: 14px;
  object-fit: contain;
}

.phone-scan-label {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 700;
}

.phone-privacy-note {
  margin: 12px 0 9px;
  color: var(--purple-800);
  font-size: 0.68rem;
  font-weight: 750;
  text-align: center;
}

.phone-privacy-note::before {
  margin-right: 5px;
  content: '✓';
}

.phone-home-indicator {
  width: 88px;
  height: 4px;
  margin: 0 auto;
  background: #1e1927;
  border-radius: 999px;
}

.section {
  padding: 84px 24px;
}

.section-shell {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.feature-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 14px 42px rgba(55, 28, 126, 0.07);
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--purple-800);
  background: var(--purple-100);
  border-radius: 14px;
  font-size: 1.3rem;
  font-weight: 900;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.privacy-band {
  display: grid;
  padding: 44px;
  color: var(--white);
  background:
    radial-gradient(
      circle at 82% 0%,
      rgba(205, 187, 255, 0.32),
      transparent 25rem
    ),
    linear-gradient(135deg, var(--purple-950), var(--purple-800));
  border-radius: 32px;
  box-shadow: var(--shadow);
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
}

.privacy-band h2 {
  margin-bottom: 14px;
}

.privacy-band p,
.privacy-band li {
  color: rgba(255, 255, 255, 0.8);
}

.privacy-band ul {
  margin: 0;
  padding-left: 1.3rem;
}

.privacy-band li + li {
  margin-top: 10px;
}

.legal-hero {
  padding: 74px 24px 44px;
  text-align: center;
}

.legal-hero h1 {
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(2.7rem, 7vw, 4.6rem);
}

.legal-hero p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 0 24px 96px;
  grid-template-columns: 190px minmax(0, var(--legal-content));
  justify-content: center;
  gap: 42px;
}

.legal-toc {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.legal-toc strong {
  display: block;
  margin-bottom: 9px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--purple-700);
}

.legal-document {
  padding: clamp(28px, 6vw, 58px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.legal-meta {
  display: grid;
  margin: 0 0 38px;
  padding: 18px 20px;
  background: var(--purple-050);
  border: 1px solid var(--border);
  border-radius: 16px;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  font-size: 0.92rem;
}

.legal-meta dt {
  color: var(--muted);
  font-weight: 700;
}

.legal-meta dd {
  margin: 0;
}

.legal-document section + section {
  margin-top: 42px;
  padding-top: 4px;
}

.legal-document h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.legal-document p,
.legal-document li {
  color: #494057;
}

.legal-document ul {
  padding-left: 1.25rem;
}

.notice {
  margin: 26px 0;
  padding: 18px 20px;
  background: #fff8df;
  border: 1px solid #efd98d;
  border-left: 5px solid #d49500;
  border-radius: 14px;
  color: #5d3d00;
}

.notice strong {
  color: #4f3300;
}

.deletion-steps {
  counter-reset: deletion-step;
  display: grid;
  margin: 28px 0;
  gap: 14px;
}

.deletion-step {
  position: relative;
  padding: 20px 20px 20px 64px;
  background: var(--purple-050);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.deletion-step::before {
  counter-increment: deletion-step;
  position: absolute;
  top: 50%;
  left: 18px;
  display: grid;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  place-items: center;
  color: var(--white);
  background: var(--purple-700);
  border-radius: 50%;
  content: counter(deletion-step);
  font-size: 0.84rem;
  font-weight: 800;
}

.site-footer {
  padding: 36px 24px 44px;
  border-top: 1px solid var(--border);
}

.footer-shell {
  display: flex;
  width: min(100%, var(--content));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 820px) {
  .hero {
    padding-top: 68px;
  }

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

  .hero-grid {
    gap: 48px;
  }

  .phone-stage {
    width: min(100%, 470px);
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    display: block;
  }

  .legal-toc {
    position: static;
    margin-bottom: 18px;
  }

  .legal-toc a {
    display: inline-block;
    margin-right: 12px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 12px 0;
  }

  .nav-shell {
    padding: 12px;
    align-items: flex-start;
    border-radius: 20px;
    flex-direction: column;
    gap: 8px;
  }

  .site-nav {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .draft-banner {
    width: calc(100% - 24px);
  }

  .hero,
  .section,
  .legal-hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-grid {
    width: 100%;
  }

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

  .hero .gradient-text {
    display: block;
  }

  .hero .actions,
  .privacy-band .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero .button,
  .privacy-band .button {
    width: 100%;
  }

  .phone-stage {
    width: 100%;
    min-height: 590px;
  }

  .phone-mockup {
    width: min(100%, 286px);
    border-radius: 45px;
  }

  .phone-screen {
    min-height: 563px;
    border-radius: 37px;
  }

  .phone-card {
    min-height: 420px;
    padding: 16px;
  }

  .phone-avatar {
    width: 52px;
    height: 52px;
    margin-bottom: 9px;
  }

  .qr-demo {
    width: 132px;
    height: 132px;
  }

  .privacy-band {
    padding: 30px 24px;
  }

  .legal-layout {
    padding-right: 12px;
    padding-left: 12px;
  }

  .legal-document {
    border-radius: 22px;
  }

  .legal-meta {
    display: block;
  }

  .legal-meta dt:not(:first-child) {
    margin-top: 9px;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
