* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #4fa66a;
  --accent-dark: #357a4c;
  --accent-soft: #7fd497;
  --leaf-900: #213327;
  --leaf-700: #3f6f4d;
  --leaf-100: #e4f1e7;
  --paper: #fbf7ee;
  --paper-warm: #f3ead9;
  --surface: rgba(255, 252, 245, 0.86);
  --surface-strong: #fffdf8;
  --text: #243126;
  --muted: #69776d;
  --line: rgba(58, 83, 62, 0.16);
  --brass: #bd8f43;
  --brass-soft: #e6c483;
  --shadow: 0 24px 70px rgba(58, 76, 54, 0.14);
  --shadow-strong: 0 36px 90px rgba(48, 64, 47, 0.2);
  --radius: 28px;
  --primary-blue: var(--accent-soft);
  --primary-cyan: var(--accent);
  --dark-bg: var(--paper);
  --dark-surface: var(--surface-strong);
  --text-primary: var(--text);
  --text-secondary: var(--muted);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(79, 166, 106, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 166, 106, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 8% 4%, rgba(127, 212, 151, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 22%, rgba(189, 143, 67, 0.12), transparent 30rem),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 42%, #f6efe1 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    radial-gradient(rgba(36, 49, 38, 0.08) 0.6px, transparent 0.8px),
    radial-gradient(rgba(189, 143, 67, 0.07) 0.5px, transparent 0.8px);
  background-position: 0 0, 18px 22px;
  background-size: 34px 34px, 38px 38px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  position: relative;
  min-height: 94vh;
  padding: 24px 0 74px;
  overflow: hidden;
}

header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11rem;
  width: min(80vw, 920px);
  height: 22rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(79, 166, 106, 0.12);
  filter: blur(70px);
  z-index: -1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--leaf-900);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(47, 65, 45, 0.14);
}

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

.language-selector-label {
  font-size: 18px;
  line-height: 1;
}

.language-selector select {
  min-height: 40px;
  padding: 0 34px 0 13px;
  border: 1px solid rgba(79, 166, 106, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--leaf-900);
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  box-shadow: 0 12px 36px rgba(51, 72, 49, 0.08);
  cursor: pointer;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding-top: clamp(64px, 11vh, 120px);
}

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

header h1 {
  color: var(--leaf-900);
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.96;
}

.tagline {
  margin-top: 20px;
  color: var(--leaf-700);
  font-size: clamp(24px, 3vw, 39px);
  font-weight: 700;
  line-height: 1.14;
}

.hero-description {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.75;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  margin-top: 34px;
  border-radius: 14px;
  background: #111;
  box-shadow: 0 16px 40px rgba(33, 51, 39, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(33, 51, 39, 0.2);
}

.app-store-button img {
  display: block;
  height: 58px;
  width: auto;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 44px;
}

.stat-item {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.66);
  box-shadow: 0 14px 34px rgba(33, 51, 39, 0.06);
}

.stat-value {
  color: var(--accent-dark);
  font-size: clamp(20px, 2.4vw, 29px);
  font-weight: 800;
  line-height: 1.1;
}

.stat-label {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.icon-stage {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1;
  border-radius: 31%;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.92), rgba(242, 233, 216, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    var(--shadow-strong);
}

.icon-stage::before,
.icon-stage::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.icon-stage::before {
  inset: 9%;
  border: 1px solid rgba(79, 166, 106, 0.14);
}

.icon-stage::after {
  right: 12%;
  bottom: 10%;
  width: 21%;
  height: 21%;
  background: radial-gradient(circle, rgba(189, 143, 67, 0.2), transparent 70%);
  filter: blur(10px);
}

.hero-icon {
  position: absolute;
  inset: 5%;
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 28%;
  filter: drop-shadow(0 36px 34px rgba(36, 49, 38, 0.19));
}

main {
  position: relative;
}

section {
  padding: 92px 0;
}

.hero {
  padding-top: 52px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.features h2,
.pro-features h2,
.description h2,
.subscription h2,
.section-heading h2 {
  color: var(--leaf-900);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  text-align: center;
}

.section-subtitle {
  max-width: 690px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  text-align: center;
}

.app-preview {
  position: relative;
}

.screenshot-stack {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  grid-template-rows: auto auto;
  gap: 18px;
  align-items: stretch;
}

.screenshot-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(79, 166, 106, 0.18);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: top center;
}

.screenshot-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(33, 51, 39, 0.72);
  color: #fffdf8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  backdrop-filter: blur(14px);
}

.mac-screenshot {
  grid-row: span 2;
}

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

.feature-card {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(247, 239, 225, 0.76));
  box-shadow: 0 18px 48px rgba(33, 51, 39, 0.08);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 15px;
  background: var(--leaf-100);
  color: var(--accent-dark);
  font-size: 25px;
}

.feature-card h3 {
  color: var(--leaf-900);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.24;
}

.feature-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.pro-features {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(228, 241, 231, 0.74), rgba(255, 253, 248, 0.88));
}

.pro-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 42px auto 0;
  list-style: none;
}

.pro-list li {
  position: relative;
  min-height: 132px;
  padding: 28px 28px 28px 70px;
  border: 1px solid rgba(79, 166, 106, 0.18);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
  box-shadow: 0 18px 48px rgba(33, 51, 39, 0.08);
}

.pro-list li::before {
  content: "✓";
  position: absolute;
  top: 30px;
  left: 28px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(79, 166, 106, 0.28);
}

.pro-list strong {
  color: var(--leaf-900);
}

.cta-section {
  padding: 98px 0;
}

.cta-content {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 74px);
  overflow: hidden;
  border: 1px solid rgba(77, 109, 72, 0.25);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(79, 166, 106, 0.95), rgba(60, 126, 80, 0.96)),
    var(--accent);
  color: #fffdf8;
  text-align: center;
  box-shadow: var(--shadow-strong);
}

.cta-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 15%;
  width: 16px;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent),
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(33, 51, 39, 0.18) 3px 5px);
}

.cta-content::after {
  content: "";
  position: absolute;
  right: clamp(24px, 7vw, 88px);
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f5dca6, var(--brass) 62%, #8a642f 100%);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.38), 0 12px 26px rgba(36, 49, 38, 0.2);
}

.cta-content h2 {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  color: #fffdf8;
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 800;
  line-height: 1.08;
}

.cta-content p {
  position: relative;
  max-width: 640px;
  margin: 18px auto 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

.description {
  padding-top: 70px;
}

.description p,
.subscription p {
  max-width: 860px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  text-align: center;
}

.subscription {
  padding-top: 54px;
}

.subscription h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

footer {
  padding: 54px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  margin-bottom: 22px;
}

.footer-links a {
  color: var(--leaf-700);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.copyright {
  color: rgba(105, 119, 109, 0.72);
  font-size: 13px;
}

.screenshot-preview {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(24, 31, 26, 0.86);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.screenshot-preview.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.screenshot-preview-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 88vh;
}

.screenshot-preview-img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 22px;
  object-fit: contain;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.38);
}

.screenshot-preview-img.fade {
  opacity: 0.55;
}

.screenshot-preview-nav,
.screenshot-preview-close {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 253, 248, 0.92);
  color: var(--leaf-900);
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.screenshot-preview-nav {
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 28px;
  transform: translateY(-50%);
}

.screenshot-preview-nav.prev {
  left: -64px;
}

.screenshot-preview-nav.next {
  right: -64px;
}

.screenshot-preview-close {
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
}

.screenshot-preview-label,
.screenshot-preview-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--leaf-900);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.screenshot-preview-label {
  bottom: -44px;
  padding: 8px 14px;
}

.screenshot-preview-hint {
  top: 20px;
  padding: 7px 12px;
}

[dir="rtl"] .hero-layout {
  direction: rtl;
}

[dir="rtl"] .hero-copy {
  text-align: right;
}

[dir="rtl"] .pro-list li {
  padding-right: 70px;
  padding-left: 28px;
}

[dir="rtl"] .pro-list li::before {
  right: 28px;
  left: auto;
}

.fade-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  header {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

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

  .hero-description {
    margin-right: auto;
    margin-left: auto;
  }

  .stats-bar {
    margin-right: auto;
    margin-left: auto;
  }

  .icon-stage {
    max-width: 420px;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  header {
    padding-top: 14px;
    padding-bottom: 34px;
  }

  .site-nav {
    align-items: flex-start;
  }

  .language-selector select {
    max-width: 145px;
  }

  .hero-layout {
    gap: 22px;
    padding-top: 28px;
  }

  header h1 {
    font-size: 42px;
  }

  .tagline {
    margin-top: 8px;
    font-size: 18px;
  }

  .hero-description {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.55;
  }

  .app-store-button {
    margin-top: 16px;
  }

  .stats-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 18px;
  }

  .stat-item {
    padding: 9px 5px;
    border-radius: 12px;
  }

  .stat-value {
    font-size: 15px;
  }

  .stat-label {
    margin-top: 4px;
    font-size: 8px;
  }

  .icon-stage {
    width: min(100%, 236px);
  }

  section,
  .cta-section {
    padding: 64px 0;
  }

  .screenshot-stack {
    grid-template-columns: 1fr;
  }

  .screenshot-card img {
    min-height: 220px;
  }

  .feature-grid,
  .pro-list {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
    padding: 24px;
  }

  .pro-list li {
    min-height: auto;
  }

  .cta-content::before,
  .cta-content::after {
    display: none;
  }

  .app-store-button img {
    height: 42px;
  }

  .screenshot-preview-nav.prev {
    left: 8px;
  }

  .screenshot-preview-nav.next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
