:root {
  --bg: #0f172a;
  --surface: #111827;
  --surface-2: #172033;
  --card: #1e293b;
  --card-soft: #263449;
  --line: #334155;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --brand: #22d3ee;
  --brand-dark: #0891b2;
  --green: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --shadow: 0 18px 48px rgba(2, 6, 23, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(140deg, rgba(14, 165, 233, 0.18), transparent 34%),
    linear-gradient(320deg, rgba(52, 211, 153, 0.13), transparent 36%),
    var(--bg);
}

main {
  flex: 1;
}

a {
  color: inherit;
}

.hero {
  background: linear-gradient(135deg, #075985 0%, #0f766e 58%, #166534 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.menu {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  flex-wrap: wrap;
}

.menu.dark {
  background: rgba(2, 6, 23, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu a:hover,
.menu a.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 36px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 58px 20px 46px;
}

.hero-content,
.page-header {
  text-align: center;
  padding: 32px 16px 16px;
}

.hero-layout .hero-content {
  text-align: left;
  padding: 0;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-content h1,
.page-header h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
}

.page-header h1 {
  font-size: 34px;
}

.hero-content p,
.page-header p {
  font-size: 17px;
  margin: 12px auto 0;
  max-width: 780px;
  color: var(--muted);
}

.hero-layout .hero-content p {
  margin-left: 0;
  color: #e0f2fe;
}

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

.hero-actions .btn {
  margin-top: 0;
}

.store-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.96), rgba(20, 83, 45, 0.92));
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 22px;
}

.android-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1120px;
  margin: 8px auto 0;
  padding: 10px 16px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(187, 247, 208, 0.42);
  border-radius: 10px;
  color: #e0f2fe;
  font-size: 14px;
}

.android-notice-label {
  display: inline-block;
  margin-right: 8px;
  color: #bbf7d0;
  font-weight: 800;
}

.android-notice-link {
  flex: 0 0 auto;
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.store-strip h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.store-strip p {
  color: #dbeafe;
  margin: 0;
}

.store-strip .btn {
  margin-top: 0;
}

.store-badge {
  margin-bottom: 10px;
}

.container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 16px 34px;
}

.compact-main {
  padding-top: 20px;
}

.privacy-main {
  max-width: 960px;
  padding-bottom: 24px;
}

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

.intro-card,
.feature-strip,
.privacy-summary {
  background: linear-gradient(180deg, rgba(23, 37, 84, 0.95), rgba(30, 41, 59, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.intro-card h2,
.feature-strip h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.intro-card p,
.feature-strip p,
.privacy-summary p {
  margin: 0;
  color: var(--muted);
}

.intro-card p + p,
.feature-strip p + p {
  margin-top: 10px;
}

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

.three-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(30, 41, 59, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.24);
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}

.card h2 {
  font-size: 22px;
}

.card h3 {
  font-size: 19px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card p + p {
  margin-top: 10px;
}

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

.stat {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.app-panel {
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(226, 232, 240, 0.24);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero-media,
.page-figure {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.hero-media img,
.page-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-media {
  align-self: center;
}

.hero-media img {
  height: auto;
  object-fit: contain;
  object-position: center;
}

.page-figure {
  margin-bottom: 18px;
}

.figure-medium {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.page-figure figcaption {
  color: var(--muted);
  font-size: 14px;
  padding: 10px 14px 12px;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.app-window {
  background: #e2e8f0;
  color: #0f172a;
  border-radius: 12px;
  overflow: hidden;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #0f172a;
  padding: 10px 12px;
}

.app-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
}

.app-bar span:nth-child(2) {
  background: var(--amber);
}

.app-bar span:nth-child(3) {
  background: var(--green);
}

.app-screen {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 14px;
  padding: 16px;
  min-height: 280px;
}

.app-sidebar,
.app-main {
  display: grid;
  gap: 10px;
  align-content: start;
}

.app-pill,
.app-row,
.app-book {
  border-radius: 8px;
}

.app-pill {
  height: 34px;
  background: #cbd5e1;
}

.app-pill.active {
  background: var(--brand);
}

.app-row {
  height: 42px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.app-book {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  padding: 10px;
  border: 1px solid #cbd5e1;
}

.book-cover {
  height: 58px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0ea5e9, #16a34a);
}

.book-lines span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #94a3b8;
}

.book-lines span + span {
  width: 68%;
  margin-top: 8px;
  background: #cbd5e1;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.timeline-step {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: #082f49;
  font-weight: 800;
}

.list-clean {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.list-clean li {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--muted);
  padding: 9px 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-list span {
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 999px;
  color: #cffafe;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}

.score-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding-bottom: 8px;
}

.score-list p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.download-card {
  max-width: 680px;
  margin: 0 auto 18px;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #082f49;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 800;
  margin-top: 12px;
  font-size: 15px;
}

.play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.play-icon {
  position: relative;
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn:hover {
  filter: brightness(1.05);
}

.center {
  text-align: center;
}

.space-top {
  margin-top: 18px !important;
}

.lower-gap {
  margin-top: 8px;
}

.privacy-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.privacy-index a {
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 10px;
  text-decoration: none;
}

.privacy-index a:hover {
  border-color: #22d3ee;
  color: #22d3ee;
}

.legal-section {
  border-radius: 10px;
  margin-bottom: 14px;
}

.legal-section h2 {
  font-size: 21px;
  margin: 0 0 10px;
}

.legal-section p {
  margin: 0;
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p {
  margin-top: 10px;
}

.legal-section ul {
  margin-bottom: 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-section a {
  color: #67e8f9;
}

footer {
  position: relative;
  text-align: left;
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 16px;
  font-size: 14px;
}

footer p {
  margin: 0;
}

.footer-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  white-space: nowrap;
}

.footer-right {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-layout,
  .app-screen,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout .hero-content {
    text-align: center;
  }

  .hero-layout .hero-content p {
    margin-left: auto;
  }

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

  .store-strip {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .android-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin: 8px 14px 0;
  }

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

@media (max-width: 760px) {
  .menu {
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 10px;
  }

  .menu a {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .hero-layout {
    padding: 34px 14px 28px;
  }

  .hero-content,
  .page-header {
    padding: 24px 12px 12px;
  }

  .hero-content h1,
  .page-header h1 {
    font-size: 29px;
  }

  .grid,
  .three-cards,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card,
  .intro-card,
  .feature-strip,
  .privacy-summary {
    padding: 16px;
  }

  footer {
    text-align: center;
    padding: 14px 12px;
  }

  .footer-center,
  .footer-right {
    position: static;
    display: block;
    transform: none;
    margin-top: 6px;
    text-align: center;
  }
}
