:root {
  --bg: #09090f;
  --surface: #11111a;
  --surface-2: #171722;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f7fb;
  --muted: #a9a9b8;
  --primary: #8b5cf6;
  --primary-2: #6d28d9;
  --accent: #22d3ee;
  --radius: 24px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(139, 92, 246, 0.12), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.08), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header,
.share-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

.nav-button {
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: white;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
  padding: 50px 0 90px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1,
.section-heading h2,
.download-section h2 {
  margin: 0;
  font-family: Manrope, sans-serif;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
}

.hero-copy h1 span {
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 18px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #c4b5fd;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.hero-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 54px;
  min-width: 0;
  border: 0;
  border-radius: 16px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 16px 36px rgba(109, 40, 217, 0.28);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: white;
}

.button-large {
  min-height: 60px;
  padding: 0 26px;
}

.button small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  text-align: left;
  font-weight: 500;
}

.button-icon {
  font-size: 19px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 610px;
  display: grid;
  place-items: center;
}

.glow {
  position: absolute;
  width: 280px;
  height: 280px;
  filter: blur(70px);
  opacity: 0.35;
  border-radius: 50%;
}

.glow-one {
  top: 60px;
  left: 20px;
  background: var(--primary);
}

.glow-two {
  right: 0;
  bottom: 80px;
  background: var(--accent);
}

.phone {
  width: min(320px, 90vw);
  padding: 9px;
  position: relative;
  border-radius: 42px;
  background: linear-gradient(145deg, #2d2d39, #08080c);
  box-shadow: var(--shadow);
  transform: rotate(4deg);
}

.phone-screen {
  min-height: 610px;
  padding: 23px 18px 18px;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(to bottom, rgba(9, 9, 15, 0.25), #0a0a10 52%),
    radial-gradient(circle at 70% 15%, rgba(139, 92, 246, 0.42), transparent 36%),
    #0a0a10;
}

.phone-top {
  width: 110px;
  height: 24px;
  position: absolute;
  z-index: 5;
  top: 9px;
  left: 50%;
  border-radius: 0 0 16px 16px;
  background: #07070b;
  transform: translateX(-50%);
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  font-weight: 800;
  font-size: 13px;
}

.mock-logo {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 11px;
}

.mock-feature {
  min-height: 210px;
  margin-top: 36px;
  padding: 24px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(to top, rgba(5, 5, 10, 0.96), transparent 80%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(34, 211, 238, 0.35));
}

.mock-feature h3 {
  margin: 10px 0 5px;
  font-size: 20px;
}

.mock-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.5;
}

.mock-badge {
  align-self: flex-start;
  color: #ddd6fe;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.mock-section-title {
  margin: 24px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.mock-section-title span {
  color: var(--muted);
}

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

.mock-card {
  min-height: 132px;
  padding: 9px;
  border-radius: 15px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent),
    linear-gradient(145deg, #5b21b6, #0f172a);
}

.mock-card:nth-child(2) {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent),
    linear-gradient(145deg, #0e7490, #111827);
}

.mock-card:nth-child(3) {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent),
    linear-gradient(145deg, #9f1239, #111827);
}

.mock-card span {
  font-size: 9px;
  font-weight: 800;
}

.mock-nav {
  margin-top: 23px;
  display: flex;
  justify-content: space-around;
  color: #d4d4df;
  font-size: 17px;
}

.stats-strip {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.025);
}

.stats-strip > div {
  min-width: 0;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats-strip > div + div {
  border-left: 1px solid var(--line);
}

.stats-strip strong {
  font-size: 15px;
}

.stats-strip span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 130px 0;
}

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

.section-heading h2,
.download-section h2 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
}

.section-heading p,
.download-section p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

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

.feature-card {
  min-width: 0;
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.015)
    );
}

.featured-card {
  background:
    radial-gradient(circle at 90% 0%, rgba(34, 211, 238, 0.13), transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.18), transparent 38%),
    var(--surface);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  font-size: 20px;
}

.feature-card h3 {
  margin: 32px 0 10px;
  font-size: 19px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.download-section {
  margin-bottom: 100px;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background:
    radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.12), transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.22), transparent 40%),
    var(--surface);
}

.download-section > div {
  min-width: 0;
  max-width: 700px;
}

.footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
}

.footer strong {
  color: var(--text);
  font-size: 15px;
}

.footer p {
  margin: 6px 0 0;
}

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

.share-page {
  position: relative;
  isolation: isolate;
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.share-page *,
.share-page *::before,
.share-page *::after {
  box-sizing: border-box;
}

.share-header {
  width: 100%;
  min-height: 76px;
}

.simple-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.share-main {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 0 90px;
}

.share-backdrop {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      to bottom,
      rgba(9, 9, 15, 0.45) 0%,
      rgba(9, 9, 15, 0.82) 45%,
      #09090f 92%
    ),
    var(--share-background);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(26px);
  transform: scale(1.12);
  opacity: 0.48;
}

.share-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.22), transparent 35%),
    radial-gradient(circle at 85% 65%, rgba(34, 211, 238, 0.12), transparent 32%);
}

.share-card {
  width: min(100%, 980px);
  min-width: 0;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 52px);
  background: rgba(13, 13, 20, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.share-cover-column,
.share-info {
  min-width: 0;
  width: 100%;
}

.share-cover-wrap {
  position: relative;
  width: 100%;
  max-width: 310px;
  margin: 0 auto;
}

.share-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: var(--surface-2);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
}

.share-type {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(9, 9, 15, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-title {
  max-width: 100%;
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alternative-title {
  max-width: 100%;
  margin: 14px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.metadata {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.metadata span,
.tag-list span {
  max-width: 100%;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #d5d5df;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-description-wrap {
  width: 100%;
  margin-top: 24px;
}

.share-description {
  width: 100%;
  max-height: 210px;
  margin: 0;
  padding-right: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  color: #c3c3cf;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: break-word;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.55) transparent;
}

.share-description::-webkit-scrollbar {
  width: 5px;
}

.share-description::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.55);
}

.credits {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.credits strong {
  color: var(--text);
}

.tag-list {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-actions {
  width: 100%;
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.share-actions .button {
  min-width: 0;
  flex: 1 1 190px;
}

.fallback-notice {
  margin: 18px 0 0;
  color: #fcd34d;
  font-size: 12px;
  line-height: 1.55;
}

.share-footer {
  width: 100%;
  min-height: 74px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.legal-page {
  max-width: 850px;
  padding: 100px 0 140px;
}

.legal-page h1 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 54px;
  letter-spacing: -0.04em;
}

.legal-date {
  color: var(--muted);
}

.legal-card {
  margin-top: 40px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: #c8c8d2;
  line-height: 1.8;
}

.error-page {
  min-height: 100vh;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  margin-top: 50px;
  font-family: Manrope, sans-serif;
  font-size: clamp(100px, 22vw, 220px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.85;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.3;
}

.error-page h1 {
  margin: 20px 0 10px;
}

.error-page p {
  margin: 0 0 28px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 80px;
    text-align: center;
  }

  .hero-copy > p {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-visual {
    min-height: 560px;
  }

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

  .download-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 800px) {
  .share-page {
    width: min(100% - 24px, 1180px);
  }

  .share-main {
    align-items: flex-start;
    padding: 32px 0 60px;
  }

  .share-card {
    grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
    gap: 26px;
    border-radius: 25px;
  }

  .share-title {
    font-size: clamp(30px, 6vw, 42px);
  }

  .share-description {
    max-height: 170px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 22px, 1240px);
  }

  .menu-button {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(17, 17, 26, 0.98);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding: 70px 0;
  }

  .hero-copy h1 {
    font-size: 50px;
  }

  .phone {
    width: min(280px, 86vw);
  }

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

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stats-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 90px 0;
  }

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

  .download-section {
    padding: 32px 24px;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .share-page {
    width: min(100% - 20px, 1180px);
  }

  .share-header {
    min-height: 68px;
  }

  .share-header .brand-mark {
    width: 34px;
    height: 34px;
  }

  .share-header .brand-name {
    font-size: 18px;
  }

  .simple-link {
    font-size: 12px;
  }

  .share-main {
    padding: 20px 0 44px;
  }

  .share-card {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 18px;
    border-radius: 23px;
  }

  .share-cover-wrap {
    width: min(72vw, 260px);
  }

  .share-info {
    text-align: center;
  }

  .share-info .eyebrow {
    margin-bottom: 12px;
  }

  .share-title {
    font-size: clamp(30px, 10vw, 42px);
  }

  .alternative-title {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .metadata,
  .tag-list,
  .share-actions,
  .credits {
    justify-content: center;
  }

  .share-description-wrap {
    margin-top: 20px;
  }

  .share-description {
    max-height: none;
    padding-right: 0;
    text-align: left;
    font-size: 13px;
  }

  .share-actions {
    flex-direction: column;
  }

  .share-actions .button {
    width: 100%;
    flex: none;
  }

  .share-footer {
    min-height: auto;
    padding: 20px 0;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    text-align: center;
  }

  .legal-page h1 {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 42px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .download-section .button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .share-page {
    width: min(100% - 14px, 1180px);
  }

  .share-header .brand-name {
    display: none;
  }

  .simple-link {
    font-size: 11px;
  }

  .share-card {
    padding: 14px;
    border-radius: 20px;
  }

  .share-cover-wrap {
    width: min(78vw, 230px);
  }

  .share-title {
    font-size: 30px;
  }

  .metadata span,
  .tag-list span {
    font-size: 10px;
  }
}
