/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Sampled from appicon.png background rgb(26, 64, 41) */
  --color-brand:     #1a4029;
  --color-bg:        #0d1f14;
  --color-surface:   #142e1f;
  --color-surface-2: #1a4029;
  --color-border:    #2f6648;
  --color-text:      #ecf5ef;
  --color-muted:     #8fb8a0;
  --color-accent:    #4ec99a;
  --color-accent-2:  #66bd99;
  --color-accent-glow: rgba(78, 201, 154, 0.22);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --transition: 0.2s ease;
  --container-max: 1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #7ddfb3;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 31, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo:hover {
  color: var(--color-text);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.lang-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: none;
}

@media (min-width: 480px) {
  .lang-label {
    display: block;
  }
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238fb8a0' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 4rem 0 5rem;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(78, 201, 154, 0.14) 0%, transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-glow);
  border: 1px solid rgba(78, 201, 154, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-app-icon {
  width: clamp(56px, 12vw, 72px);
  height: clamp(56px, 12vw, 72px);
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-muted);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.btn-app-store {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #0d1f14;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--color-accent-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-app-store:hover {
  color: #0d1f14;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(78, 201, 154, 0.4);
}

.btn-app-store::before {
  content: "";
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230d1f14'%3E%3Cpath d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

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

.hero-screenshot {
  width: min(280px, 80vw);
  aspect-ratio: 9 / 19.5;
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section:nth-child(even) {
  background: var(--color-surface);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 3rem;
}

/* ── Screenshot Placeholders ──────────────────────────────── */
.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-surface-2);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-muted);
  font-size: 0.85rem;
  transition: border-color var(--transition);
}

.screenshot-placeholder:hover {
  border-color: rgba(78, 201, 154, 0.45);
}

.placeholder-icon {
  font-size: 2rem;
  opacity: 0.6;
}

.placeholder-text {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* ── Features ─────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(78, 201, 154, 0.4);
}

.feature-screenshot {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: var(--color-muted);
  font-size: 0.925rem;
}

/* ── How to Use ───────────────────────────────────────────── */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #0d1f14;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step-desc {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.step-screenshot {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9;
}

/* ── Privacy Policy ───────────────────────────────────────── */
.privacy-updated {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.privacy-content {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.privacy-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.privacy-content h3:first-child {
  margin-top: 0;
}

.privacy-content p {
  color: var(--color-muted);
  font-size: 0.925rem;
  line-height: 1.7;
}

.privacy-content a {
  word-break: break-all;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.footer-nav a {
  color: var(--color-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-text);
}

/* ── RTL Support ──────────────────────────────────────────── */
[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .logo {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-brand {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-select {
  padding: 0.45rem 0.75rem 0.45rem 2rem;
  background-position: left 0.6rem center;
}

[dir="rtl"] .step-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-tagline,
[dir="rtl"] .section-lead {
  text-align: right;
}
