@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --page-padding: clamp(32px, 6vw, 80px);
  --bg-1: #f6f7fb;
  --bg-2: #f1f3f8;
  --ink: #1c1917;
  --muted: #6b7280;
  --accent: #f97316;
  --accent-strong: #111827;
  --accent-soft: #ffe6d5;
  --card: rgba(255, 255, 255, 0.9);
  --border: #e6e9f2;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 20%, rgba(255, 230, 213, 0.7), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(241, 243, 248, 0.9), transparent 40%),
    linear-gradient(120deg, var(--bg-1), var(--bg-2));
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -10% -10% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.08);
  filter: blur(0);
  z-index: -1;
}

body::after {
  inset: auto auto -15% -15%;
  width: 520px;
  height: 520px;
  background: rgba(255, 230, 213, 0.5);
}

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

a:hover {
  color: var(--accent-strong);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px var(--page-padding) 16px;
  padding-left: calc(var(--page-padding) + env(safe-area-inset-left));
  padding-right: calc(var(--page-padding) + env(safe-area-inset-right));
}

.logo {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a.active {
  color: var(--accent-strong);
  font-weight: 600;
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.lang select {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
}

.page {
  padding: 20px var(--page-padding) 40px;
  padding-left: calc(var(--page-padding) + env(safe-area-inset-left));
  padding-right: calc(var(--page-padding) + env(safe-area-inset-right));
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  align-items: center;
  padding: 32px 0 12px;
}

.eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-strong);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2.8rem, 4vw, 4rem);
  margin: 0 0 12px;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.button.primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
}

.button.primary:disabled {
  background: #cbd5e1;
  color: #64748b;
  box-shadow: none;
}

.button.primary:disabled:hover {
  background: #cbd5e1;
  transform: none;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border);
  color: var(--accent-strong);
}

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

.store-button {
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 16px;
  min-width: 228px;
}

.store-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.store-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 50%;
}

.store-icon-ios svg {
  fill: currentColor;
  transform: scale(1.62);
}

.store-icon-play svg {
  transform: scale(1.38);
}

.store-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.store-copy-top {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.88;
}

.store-copy-bottom {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.note {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.preview {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: min(100%, 260px);
  aspect-ratio: 1260 / 2736;
  justify-self: end;
}

.preview-media,
.preview-image {
  display: block;
  width: 100%;
  height: 100%;
}

.preview-image {
  object-fit: contain;
  object-position: center center;
}

.section-title {
  font-size: 1.4rem;
  margin: 40px 0 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

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

.resource-hub {
  margin-top: 36px;
}

.hub-intro {
  margin: 0 0 18px;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.resource-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.resource-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.knowledge-page-main {
  max-width: 900px;
}

.knowledge-article h1 {
  margin-top: 0;
  margin-bottom: 8px;
}

.knowledge-section {
  margin: 22px 0 0;
}

.knowledge-section h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.knowledge-section h3 {
  margin: 14px 0 6px;
  font-size: 1rem;
}

.knowledge-section p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.knowledge-list,
.knowledge-link-list {
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--muted);
  line-height: 1.7;
}

.knowledge-link-list a {
  color: var(--accent-strong);
}

.faq-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.faq-list dt {
  font-weight: 600;
  color: var(--ink);
}

.faq-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.metric-card h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
}

.metric-card p {
  margin: 0;
}

.metric-value {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.dataset-meta {
  margin-top: 10px;
  font-size: 0.95rem;
}

.simple-page {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 24px;
}

.simple-page h1 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.simple-page p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.legal-meta {
  margin: 6px 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-section {
  margin: 20px 0 0;
}

.simple-page h2 {
  margin: 22px 0 10px;
  font-size: 1.15rem;
  color: var(--ink);
}

.simple-page ul {
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--muted);
  line-height: 1.7;
}

.simple-page li {
  margin: 6px 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px var(--page-padding) 32px;
  padding-left: calc(var(--page-padding) + env(safe-area-inset-left));
  padding-right: calc(var(--page-padding) + env(safe-area-inset-right));
  color: var(--muted);
  font-size: 0.9rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

body.loaded .reveal {
  opacity: 1;
  transform: translateY(0);
}

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

  .nav {
    flex-wrap: wrap;
  }

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

  .preview {
    justify-self: center;
    width: min(100%, 340px);
    aspect-ratio: 1260 / 2736;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    width: 100%;
  }

  .store-button {
    width: 100%;
    max-width: 320px;
  }
}
