@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #111214;
  --surface-2: #17181b;
  --surface-3: #0a0b0d;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --subtle: rgba(255, 255, 255, 0.44);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(227, 255, 64, 0.55);
  --accent: #e3ff40;
  --accent-2: #efff80;
  --ink: #090909;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.54);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 22%, rgba(227, 255, 64, 0.08), transparent 22rem),
    linear-gradient(180deg, #000 0%, #060607 58%, #0c0d0f 100%);
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.legal-page {
  background:
    radial-gradient(circle at 82% 18%, rgba(227, 255, 64, 0.06), transparent 20rem),
    #000;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

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

.nav-shell {
  width: min(var(--max), calc(100% - 56px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(227, 255, 64, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  padding: 31px 0 27px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  padding: 0 24px;
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(227, 255, 64, 0.18);
  white-space: nowrap;
}

.app-store-button .apple {
  font-size: 21px;
  line-height: 1;
}

.section-shell {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

.hero {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 54px;
  align-items: center;
  padding: 36px 0 12px;
}

.hero-copy {
  padding: 0 0 38px;
  transform: translateY(-38px);
}

.hero h1 {
  margin: 0 0 22px;
  color: var(--text);
  font-size: clamp(54px, 7.2vw, 92px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h2 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(24px, 2.15vw, 30px);
  line-height: 1.17;
  font-weight: 820;
  letter-spacing: 0;
}

.hero p {
  max-width: 520px;
  margin: 0 0 42px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.56;
  font-weight: 450;
}

.hero .app-store-button {
  min-width: 354px;
  min-height: 62px;
  border-radius: 10px;
  font-size: 18px;
}

.phone-stage {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.phone {
  width: min(510px, 100%);
  min-height: 500px;
  padding: 16px 22px 20px;
  border: 6px solid rgba(255, 255, 255, 0.28);
  border-radius: 52px 52px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    #090a0c;
  box-shadow: var(--shadow);
}

.phone-notch {
  width: 168px;
  height: 18px;
  margin: -2px auto 10px;
  border-radius: 0 0 18px 18px;
  background: #000;
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.phone-title {
  font-size: 21px;
  font-weight: 820;
}

.gear {
  width: 20px;
  height: 20px;
  color: #fff;
}

.preview-label {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.template-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.template-tabs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 650;
}

.template-tabs span:first-child {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent);
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.phone-card {
  position: relative;
  min-height: 125px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  background: var(--surface-2);
}

.phone-card video {
  width: 100%;
  height: 100%;
  min-height: 125px;
  object-fit: cover;
  opacity: 0.92;
}

.phone-card span {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 10px;
  z-index: 1;
  font-size: 12px;
  font-weight: 750;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.phone-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.phone-card .play-dot {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 34px;
  height: 34px;
  margin: auto;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
}

.phone-card .play-dot::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.upload-box {
  min-height: 64px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1.5px dashed var(--accent);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
}

.face-thumb {
  height: 64px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 221, 178, 0.95) 0 17%, transparent 18%),
    linear-gradient(160deg, #f1d0a5, #211d1e 70%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ready-note {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.35;
}

.ready-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
}

.create-preview {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-family: inherit;
  font-size: 15px;
  font-weight: 850;
}

.content-band {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

.section-title {
  margin: 0 0 20px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 850;
}

.categories {
  padding: 28px 0 26px;
}

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

.category-card {
  min-height: 150px;
  display: grid;
  grid-template-columns: 46% 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.category-card video {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.category-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px;
}

.category-copy h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 820;
}

.category-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.arrow-circle {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  align-self: flex-end;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
}

.arrow-circle svg {
  width: 18px;
  height: 18px;
}

.how {
  padding: 0 0 28px;
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) 72px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.step {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.step-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 14px;
  color: var(--accent);
}

.step-icon svg {
  width: 48px;
  height: 48px;
}

.step-number {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 850;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 760;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.step-connector {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.58));
  position: relative;
}

.step-connector::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.58);
  border-right: 1px solid rgba(255, 255, 255, 0.58);
  transform: rotate(45deg);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.84);
}

.footer-shell {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  font-weight: 550;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--accent);
}

.copyright {
  justify-self: end;
  align-self: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.legal-main {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(260px, 320px);
  gap: 72px;
  align-items: start;
  padding: 52px 0 68px;
}

.legal-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(42px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 900;
}

.legal-hero p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.source-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 620px;
  margin: 0 0 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.source-note a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.info-mark {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 850;
}

.legal-article {
  counter-reset: section;
}

.legal-article h2 {
  counter-increment: section;
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 34px 0 12px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 23px;
  line-height: 1.2;
  font-weight: 850;
}

.legal-article h2::before {
  content: counter(section);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 850;
}

.legal-article h3,
.legal-article h4 {
  margin: 22px 0 10px 64px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 17px;
  font-weight: 760;
}

.legal-article h4 {
  color: rgba(227, 255, 64, 0.92);
  font-size: 15px;
}

.legal-article > p,
.legal-article > ul {
  margin: 0 0 12px 64px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.66;
}

.legal-article li {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.66;
}

.legal-article li p {
  margin: 0;
}

.legal-article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal-article strong {
  color: rgba(255, 255, 255, 0.94);
}

.legal-sidebar {
  position: sticky;
  top: 112px;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.legal-sidebar h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.legal-sidebar ol {
  margin: 0;
  padding-left: 22px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 750;
}

.legal-sidebar li {
  margin: 16px 0;
  padding-left: 8px;
}

.legal-sidebar a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.legal-sidebar a:hover {
  color: var(--accent);
}

.legal-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0 0 64px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.5;
}

.legal-callout svg {
  flex: 0 0 auto;
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1040px) {
  .nav-shell,
  .section-shell,
  .footer-shell,
  .legal-main {
    width: min(100% - 36px, var(--max));
  }

  .nav-links {
    gap: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .hero-copy {
    padding-bottom: 0;
    transform: none;
  }

  .phone-stage {
    min-height: 540px;
  }

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

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

  .step-connector {
    display: none;
  }

  .legal-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-sidebar {
    position: static;
    order: -1;
  }

  .legal-sidebar ol {
    columns: 2;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .nav-shell {
    min-height: auto;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 0;
  }

  .brand {
    font-size: 20px;
  }

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

  .nav-links {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    font-size: 12px;
  }

  .nav-links a {
    min-width: 0;
    padding: 8px 0 11px;
    text-align: center;
  }

  .nav-links a::after {
    bottom: 3px;
  }

  .nav-shell .app-store-button {
    order: 2;
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    gap: 24px;
    padding: 34px 0 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero h2 {
    font-size: 21px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero .app-store-button {
    width: 100%;
    min-width: 0;
  }

  .phone-stage {
    min-height: 0;
    align-items: center;
  }

  .phone {
    width: 100%;
    max-width: calc(100vw - 36px);
    min-height: auto;
    border-width: 4px;
    border-radius: 34px 34px 0 0;
    padding: 18px 16px 24px;
  }

  .template-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }

  .template-tabs span {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding: 0 8px;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .upload-row {
    grid-template-columns: 1fr;
  }

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

  .category-card {
    grid-template-columns: 42% 1fr;
  }

  .step {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
  }

  .step-icon {
    width: 66px;
    height: 66px;
  }

  .step-icon svg {
    width: 38px;
    height: 38px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 18px;
  }

  .copyright {
    justify-self: start;
  }

  .legal-main {
    padding: 36px 0 52px;
  }

  .legal-hero h1 {
    font-size: 42px;
  }

  .legal-sidebar ol {
    columns: 1;
  }

  .legal-article h2 {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    font-size: 21px;
  }

  .legal-article h3,
  .legal-article h4,
  .legal-article > p,
  .legal-article > ul,
  .legal-callout {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .brand {
    width: 100%;
  }

  .nav-links {
    gap: 4px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero h2 {
    font-size: 20px;
    line-height: 1.22;
  }

  .hero p {
    font-size: 15px;
  }

  .hero .app-store-button {
    font-size: 15px;
    padding: 0 10px;
  }
}
