:root {
  --green: #2d8a4e;
  --green-light: #3cb371;
  --green-dark: #1a5c32;
  --burgundy: #6b1d3a;
  --burgundy-light: #8b2948;
  --burgundy-dark: #4a1128;
  --bg: #1a211c;
  --bg-deep: #222a24;
  --card-bg: rgba(107, 29, 58, 0.08);
  --border: rgba(45, 138, 78, 0.18);
  --border-strong: rgba(45, 138, 78, 0.32);
  --border-burgundy: rgba(107, 29, 58, 0.35);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.5);
  --text-faint: rgba(255, 255, 255, 0.3);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-green: 0 10px 40px rgba(45, 138, 78, 0.28);
  --shadow-brand:
    0 0 40px rgba(45, 138, 78, 0.2), inset 0 0 20px rgba(107, 29, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* ---------- Background screens ---------- */

.bg-screens {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-screen {
  position: absolute;
  top: 50%;
  width: min(42vw, 320px);
  aspect-ratio: 9 / 16;
  transform: translateY(-50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 28px;
  opacity: 0.55;
  filter: blur(0.5px) saturate(1.15);
}

.bg-screen--left {
  left: max(2vw, 12px);
  background-image: url('../01.webp');
  transform: translateY(-50%) rotate(-4deg);
}

.bg-screen--right {
  right: max(2vw, 12px);
  background-image: url('../02.webp');
  transform: translateY(-50%) rotate(4deg);
}

.bg-screens-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(45, 138, 78, 0.22), transparent 55%),
    radial-gradient(
      ellipse at bottom right,
      rgba(107, 29, 58, 0.16),
      transparent 50%
    ),
    linear-gradient(
      90deg,
      rgba(26, 33, 28, 0.55) 0%,
      rgba(26, 33, 28, 0.18) 28%,
      rgba(26, 33, 28, 0.08) 50%,
      rgba(26, 33, 28, 0.18) 72%,
      rgba(26, 33, 28, 0.55) 100%
    ),
    rgba(34, 42, 36, 0.35);
}

/* ---------- Layout ---------- */

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 36px 16px 48px;
}

.app-shell--legal {
  align-items: flex-start;
  padding-top: 28px;
}

.content-panel {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  padding: 20px 18px 8px;
  border-radius: var(--radius-lg);
  background: rgba(40, 50, 43, 0.42);
  border: 1px solid rgba(45, 138, 78, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

/* ---------- Brand ---------- */

.brand-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.brand-mark {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--burgundy-dark), var(--bg-deep));
  border: 1px solid var(--border-burgundy);
  box-shadow: var(--shadow-brand);
}

.brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Hero ---------- */

.hero-header {
  text-align: center;
  margin-bottom: 20px;
}

.hero-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
}

.hero-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(107, 29, 58, 0.35);
  border: 1px solid var(--border-burgundy);
  color: var(--green-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
}

/* ---------- Metrics ---------- */

.metrics-row {
  display: flex;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(107, 29, 58, 0.12),
    rgba(45, 138, 78, 0.06)
  );
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.metric-item {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
}

.metric-value {
  color: var(--green-light);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.metric-label {
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 4px;
}

.metric-separator {
  width: 1px;
  background: var(--border);
}

/* ---------- Description ---------- */

.hero-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 18px;
}

/* ---------- Download CTA ---------- */

.download-wrap {
  margin-bottom: 14px;
}

.download-label {
  text-align: center;
  color: var(--burgundy-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.download-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(45, 138, 78, 0.4);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #f5f5f5;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-green);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.download-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 48px rgba(45, 138, 78, 0.38);
}

.download-btn:active {
  transform: scale(0.99);
}

.download-btn:focus-visible {
  outline: 2px solid var(--burgundy-light);
  outline-offset: 3px;
}

.download-btn-icon {
  font-size: 18px;
}

.download-btn-dot {
  opacity: 1;
  font-size: 10px;
  color: var(--burgundy-light);
}

/* ---------- Feature list ---------- */

.feature-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-list li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(107, 29, 58, 0.2);
  border: 1px solid var(--border-burgundy);
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

/* ---------- Feedback / reviews ---------- */

.feedback-title {
  text-align: center;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-card {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-burgundy);
  border-left: 3px solid var(--green);
}

.feedback-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
  color: #f5f5f5;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.user-name {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.user-rating {
  color: var(--green-light);
  font-size: 11px;
  letter-spacing: 2px;
}

.user-comment {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
}

.site-footer--legal {
  padding-top: 36px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
}

.site-nav a {
  color: var(--text-dim);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current='page'] {
  color: var(--green-light);
  outline: none;
}

.copyright {
  color: var(--text-faint);
  font-size: 11px;
}

/* ---------- Legal page ---------- */

.legal-panel {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 28px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--green-light);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--burgundy-light);
  outline: none;
}

.legal-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.legal-meta {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--green-light);
}

.legal-section p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.legal-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.legal-section a {
  color: var(--green-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal-section a:hover,
.legal-section a:focus-visible {
  color: var(--burgundy-light);
  outline: none;
}

/* ---------- Small-screen tuning ---------- */

@media (max-width: 720px) {
  .bg-screen {
    width: min(58vw, 240px);
    opacity: 0.5;
    filter: blur(0.5px) saturate(1.12);
    top: auto;
    bottom: auto;
  }

  .bg-screen--left {
    top: 64px;
    left: max(-14vw, -52px);
    right: auto;
    transform: rotate(-9deg);
  }

  .bg-screen--right {
    top: auto;
    bottom: 72px;
    right: max(-14vw, -52px);
    left: auto;
    transform: rotate(9deg);
  }

  .bg-screens-overlay {
    background:
      radial-gradient(ellipse at top left, rgba(45, 138, 78, 0.2), transparent 45%),
      radial-gradient(
        ellipse at bottom right,
        rgba(107, 29, 58, 0.16),
        transparent 45%
      ),
      linear-gradient(
        180deg,
        rgba(26, 33, 28, 0.42) 0%,
        rgba(26, 33, 28, 0.1) 18%,
        rgba(26, 33, 28, 0.06) 50%,
        rgba(26, 33, 28, 0.1) 82%,
        rgba(26, 33, 28, 0.42) 100%
      ),
      rgba(34, 42, 36, 0.22);
  }

  .content-panel {
    padding: 16px 14px 4px;
    background: rgba(40, 50, 43, 0.36);
  }
}

@media (max-width: 480px) {
  .bg-screen {
    width: min(62vw, 210px);
    opacity: 0.46;
  }

  .bg-screen--left {
    top: 48px;
    left: max(-16vw, -60px);
    transform: rotate(-11deg);
  }

  .bg-screen--right {
    bottom: 56px;
    right: max(-16vw, -60px);
    transform: rotate(11deg);
  }

  .content-panel {
    background: rgba(40, 50, 43, 0.34);
  }
}

@media (max-width: 360px) {
  .brand-mark {
    width: 100px;
    height: 100px;
  }

  .hero-title {
    font-size: 26px;
  }

  .metric-value {
    font-size: 18px;
  }

  .feature-list {
    gap: 8px;
  }
}

@media (max-width: 300px) {
  .app-shell {
    padding: 24px 10px 36px;
  }

  .brand-mark {
    width: 88px;
    height: 88px;
  }

  .hero-title {
    font-size: 22px;
  }

  .metric-item {
    padding: 10px 6px;
  }

  .metric-value {
    font-size: 16px;
  }

  .metric-label {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .download-btn {
    gap: 8px;
    padding: 14px 12px;
    font-size: 13px;
  }

  .download-btn-icon {
    font-size: 14px;
  }

  .site-nav {
    gap: 14px;
  }
}

/* ---------- Entrance animations ---------- */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: fadeSlideUp 0.65s cubic-bezier(0.22, 0.9, 0.36, 1) var(--delay, 0s)
    both;
}

@media (prefers-reduced-motion: reduce) {
  .download-btn,
  .site-nav a,
  .legal-back {
    transition: none;
  }

  .download-btn:hover {
    transform: none;
  }

  .reveal {
    animation: none;
    opacity: 1;
  }
}
