:root {
  --bg: #fcfcf8;
  --bg-soft: #f4f0ea;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #161616;
  --muted: #666154;
  --border: rgba(22, 22, 22, 0.1);
  --shadow: 0 30px 80px rgba(33, 31, 28, 0.12);
  --shadow-soft: 0 18px 40px rgba(33, 31, 28, 0.1);
  --accent: #111111;
  --accent-soft: #f2f2f2;
  --pink: #f5c4dd;
  --pink-strong: #ff97c1;
  --blue: #c7d8ff;
  --lavender: #dfd9ff;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #101112;
  --bg-soft: #17191b;
  --surface: rgba(24, 26, 29, 0.86);
  --surface-strong: #17191b;
  --text: #f3f1ec;
  --muted: #b4aea2;
  --border: rgba(243, 241, 236, 0.14);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.28);
  --accent: #f4f1e8;
  --accent-soft: #2b2d30;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(0, 0, 0, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.028) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(241, 220, 255, 0.7), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 224, 205, 0.78), transparent 26%),
    var(--bg);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  transition: background-color 180ms ease, color 180ms ease;
}

html[data-theme="dark"] body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(111, 85, 148, 0.34), transparent 34%),
    radial-gradient(circle at bottom right, rgba(126, 94, 70, 0.28), transparent 26%),
    var(--bg);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

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

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

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.legal-shell {
  backdrop-filter: blur(16px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.theme-button.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

html[data-theme="dark"] .theme-button.is-active {
  color: #ffffff;
}

html[data-theme="dark"] .theme-button {
  background: rgba(28, 30, 33, 0.72);
}

.theme-button-label {
  font-size: 0.92rem;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  gap: 48px;
  align-items: center;
  padding: 22px 0 54px;
}

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

.hero-icon {
  width: 84px;
  height: 84px;
  margin-bottom: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

h1,
.legal-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
}

.hero-subtitle {
  margin: 18px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--text);
  font-weight: 600;
}

.hero-description {
  max-width: 500px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--text);
  color: var(--bg);
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.18);
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.app-store-button:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.22);
}

.button-emoji {
  font-size: 1.2rem;
  line-height: 1;
}

.button-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-art {
  position: relative;
  min-height: 720px;
  isolation: isolate;
}

.preview-card {
  position: absolute;
  inset: auto;
}

.preview-front {
  left: -8px;
  top: 200px;
  width: min(100%, 344px);
  transform: rotate(-5deg);
  z-index: 2;
}

.preview-back {
  right: 0;
  top: 22px;
  width: min(100%, 308px);
  transform: rotate(5deg);
  z-index: 1;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.photo-frame-sharp {
  border-radius: 0;
}

.square-frame {
  aspect-ratio: 1;
}

.tall-frame {
  aspect-ratio: 0.561;
}

.photo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-image-full {
  display: block;
}

.floating-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.6;
  z-index: 0;
}

.orb-one {
  top: 56px;
  right: 24px;
  width: 120px;
  height: 120px;
  background: rgba(255, 181, 213, 0.78);
}

.orb-two {
  left: 0;
  bottom: 82px;
  width: 140px;
  height: 140px;
  background: rgba(192, 208, 255, 0.72);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 22px;
  color: var(--muted);
}

.footer-meta p {
  margin: 0;
}

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

.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.legal-shell {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 30px 32px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.legal-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.legal-updated {
  margin: 16px 0 28px;
  color: var(--muted);
}

.legal-content {
  color: var(--text);
  line-height: 1.8;
}

.legal-content h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.legal-content p,
.legal-content ul {
  margin: 0 0 14px;
}

.legal-content ul {
  padding-left: 20px;
}

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

@media (max-width: 980px) {
  .page-shell {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
  }

  .hero-copy {
    max-width: 560px;
    text-align: center;
  }

  .hero-icon {
    margin-inline: auto;
  }

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

  .hero-art {
    min-height: 760px;
    width: min(100%, 560px);
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .theme-toggle {
    gap: 6px;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .hero {
    padding-bottom: 36px;
  }

  .site-header {
    margin-bottom: 26px;
  }

  .hero-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
  }

  .theme-button {
    padding: 9px 12px;
  }

  .theme-button-label {
    display: none;
  }

  .hero-art {
    min-height: 720px;
    width: min(100%, 420px);
  }

  .preview-front {
    left: 0;
    top: 264px;
    width: min(66%, 272px);
  }

  .preview-back {
    right: 0;
    top: 20px;
    width: min(62%, 228px);
  }

  .footer-links {
    gap: 14px;
  }

  .legal-shell {
    padding: 24px 20px 28px;
    border-radius: 24px;
  }
}
