:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5c6472;
  --line: #dce2ea;
  --surface: #ffffff;
  --soft: #f3f7fb;
  --night: #101926;
  --blue: #3a69ff;
  --mint: #27b99a;
  --coral: #ff735d;
  --lime: #c7f36e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fbfdff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(251, 253, 255, .9);
  border-bottom: 1px solid rgba(220, 226, 234, .8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand img {
  border-radius: 10px;
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: clamp(32px, 7vw, 84px);
  align-items: center;
  padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(140deg, rgba(58, 105, 255, .12), transparent 32%),
    linear-gradient(310deg, rgba(39, 185, 154, .16), transparent 38%),
    #fbfdff;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 88px);
  line-height: .95;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.55;
  font-weight: 650;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-button {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .08);
}

.store-button.primary {
  color: white;
  background: var(--night);
  border-color: var(--night);
}

.phone-showcase {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(100%, 382px);
  aspect-ratio: 390 / 760;
  padding: 22px;
  color: white;
  background: var(--night);
  border: 10px solid #1f2937;
  border-radius: 38px;
  box-shadow: 0 34px 72px rgba(16, 25, 38, .28);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.phone-top img {
  border-radius: 12px;
}

.phone-top strong,
.phone-top span {
  display: block;
}

.phone-top span {
  margin-top: 4px;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: 700;
}

.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.template-card {
  min-height: 148px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .32), transparent 42%),
    linear-gradient(320deg, #6f86ff, #1f355f);
}

.template-card.image {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .32), transparent 42%),
    linear-gradient(320deg, #49caa8, #183f46);
}

.template-card.face {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .34), transparent 42%),
    linear-gradient(320deg, #b391ff, #2a2449);
}

.template-card.alt {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .32), transparent 42%),
    linear-gradient(320deg, #ff826c, #51271f);
}

.template-card span {
  padding: 7px 10px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.generate-panel {
  margin-top: 18px;
  padding: 18px;
  background: white;
  border-radius: 8px;
  color: var(--ink);
}

.generate-panel span,
.generate-panel strong {
  display: block;
}

.generate-panel span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.generate-panel strong {
  margin-top: 12px;
  padding: 14px;
  text-align: center;
  color: white;
  background: var(--blue);
  border-radius: 8px;
}

.section,
.workflow,
.safety {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.feature-grid article,
.steps div {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, .06);
}

.icon-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: white;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.feature-grid article:nth-child(2) .icon-mark {
  background: var(--mint);
}

.feature-grid article:nth-child(3) .icon-mark {
  background: var(--coral);
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.feature-grid p,
.steps p,
.safety p,
.site-footer span {
  color: var(--muted);
  line-height: 1.65;
  font-weight: 650;
}

.workflow {
  background: var(--soft);
}

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

.steps span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--night);
  background: var(--lime);
  border-radius: 8px;
  font-weight: 900;
}

.steps strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.safety {
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 74px);
  align-items: start;
}

.safety p {
  font-size: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: white;
  background: var(--night);
}

.legal-page {
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 72px);
  background: var(--soft);
}

.legal-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .07);
}

.legal-card h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
}

.legal-card h2 {
  margin-top: 34px;
  font-size: clamp(24px, 3vw, 34px);
}

.legal-card h3 {
  margin-top: 24px;
  font-size: 20px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.75;
  font-weight: 620;
}

.legal-card a {
  color: var(--blue);
  font-weight: 850;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 6px;
  color: rgba(255, 255, 255, .64);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 850;
}

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

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .phone-showcase {
    justify-content: flex-start;
  }

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

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
  }

  .phone {
    border-width: 7px;
    border-radius: 28px;
    padding: 16px;
  }

  .template-card {
    min-height: 112px;
  }

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