:root {
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-soft: #f8fafc;
  --color-text: #111827;
  --color-text-soft: #4b5563;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;

  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-soft: #eff6ff;

  --color-green: #059669;
  --color-green-soft: #ecfdf5;

  --color-shadow: rgba(15, 23, 42, 0.08);
  --color-shadow-strong: rgba(15, 23, 42, 0.14);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

a {
  color: inherit;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.header-inner {
  width: min(var(--container), calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #111827, #2563eb);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.brand-text strong {
  display: block;
  color: var(--color-text);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
}

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

.hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.14), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.hero-inner {
  width: min(var(--container), calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 58px;
}

.section-kicker {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  color: var(--color-text);
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
  color: var(--color-primary);
}

.hero-description {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--color-text-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

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

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  box-shadow: 0 14px 28px var(--color-shadow);
}

.store-preview {
  display: flex;
  justify-content: center;
}

.preview-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.12);
}

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

.preview-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--color-green-soft);
  color: var(--color-green);
  font-size: 0.78rem;
  font-weight: 800;
}

.preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--color-green);
  box-shadow: 0 0 0 7px rgba(5, 150, 105, 0.12);
}

.preview-app {
  display: flex;
  align-items: center;
  gap: 18px;
}

.preview-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #111827, #2563eb);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 900;
}

.preview-app strong {
  display: block;
  font-size: 1.34rem;
  letter-spacing: -0.04em;
}

.preview-app small {
  display: block;
  margin-top: 4px;
  color: var(--color-text-muted);
}

.preview-rating {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.preview-rating div {
  padding: 16px 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  text-align: center;
}

.preview-rating strong {
  display: block;
  font-size: 0.96rem;
}

.preview-rating span {
  display: block;
  margin-top: 3px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.preview-lines {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.preview-lines span {
  height: 13px;
  border-radius: 999px;
  background: #e5e7eb;
}

.preview-lines span:nth-child(2) {
  width: 78%;
}

.preview-lines span:nth-child(3) {
  width: 58%;
}

.apps-section {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 42px;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2,
.privacy-card h2 {
  margin: 0 0 12px;
  color: var(--color-text);
  font-size: clamp(2rem, 4.4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-header p,
.privacy-card p {
  max-width: 760px;
  margin: 0;
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.app-card {
  position: relative;
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: 0 22px 48px var(--color-shadow);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
  box-shadow: 0 30px 70px var(--color-shadow-strong);
}

.app-card::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
}

.app-card.accent-green::after {
  background: rgba(5, 150, 105, 0.11);
}

.app-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 20px;
  background: linear-gradient(135deg, #111827, #2563eb);
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
}

.app-card.accent-green .app-icon {
  background: linear-gradient(135deg, #064e3b, #059669);
}

.app-name {
  display: block;
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.app-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--color-surface-soft);
  color: var(--color-text-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.app-description {
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  color: var(--color-text-soft);
  line-height: 1.75;
}

.app-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-status {
  color: var(--color-green);
  font-size: 0.88rem;
  font-weight: 800;
}

.app-link-label {
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 900;
}

.app-card-loading {
  min-height: 300px;
  background: linear-gradient(90deg, #eef2ff, #ffffff, #eef2ff);
  background-size: 200% 100%;
  animation: loading 1.2s infinite linear;
}

@keyframes loading {
  to {
    background-position: -200% 0;
  }
}

.privacy-section {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 96px;
}

.privacy-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 1));
  box-shadow: 0 24px 60px var(--color-shadow);
}

.footer {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.footer strong {
  display: block;
  color: var(--color-text);
}

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

.footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 800;
}

/* LEGAL PAGES */

.legal-body {
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 360px, #f5f7fb 100%);
}

.legal-layout {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal-hero {
  margin-bottom: 40px;
}

.legal-hero h1 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.legal-hero > p {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--color-text-soft);
  font-size: 1.14rem;
  line-height: 1.78;
}

.legal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.legal-summary div {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 16px 34px var(--color-shadow);
}

.legal-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-summary strong {
  display: block;
  color: var(--color-text);
  font-size: 1rem;
}

.legal-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 98px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 18px 42px var(--color-shadow);
}

.legal-toc strong {
  display: block;
  margin-bottom: 16px;
  color: var(--color-text);
}

.legal-toc a {
  display: block;
  padding: 9px 0;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid #f1f5f9;
}

.legal-toc a:hover {
  color: var(--color-primary);
}

.legal-document {
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: 0 22px 60px var(--color-shadow);
}

.legal-document section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--color-border);
}

.legal-document h2 {
  margin: 0 0 14px;
  color: var(--color-text);
  font-size: 1.34rem;
  letter-spacing: -0.025em;
}

.legal-document p,
.legal-document li {
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.86;
}

.legal-document p {
  margin: 0 0 16px;
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.legal-document ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-document a {
  color: var(--color-primary);
  font-weight: 800;
}

/* RESPONSIVE */

@media screen and (max-width: 940px) {
  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 58px 0 70px;
  }

  .store-preview {
    justify-content: flex-start;
  }

  .privacy-card {
    grid-template-columns: 1fr;
  }

  .legal-summary {
    grid-template-columns: 1fr;
  }

  .legal-content {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}

@media screen and (max-width: 680px) {
  .header-inner {
    width: min(100% - 24px, var(--container));
  }

  .nav a:not(:first-child) {
    display: none;
  }

  .hero-inner,
  .apps-section,
  .privacy-section,
  .legal-layout,
  .footer {
    width: min(100% - 24px, var(--container));
  }

  .hero h1 {
    font-size: 3.05rem;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .preview-rating {
    grid-template-columns: 1fr;
  }

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

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

  .legal-hero h1 {
    font-size: 3rem;
  }
}