:root {
  --brand-primary: #6B8E23;        /* olive green */
  --brand-primary-hover: #7da12d;
  --brand-primary-dark: #4a6418;
  --brand-accent: #C9D6A0;          /* light olive */
  --on-brand: #FFFFFF;

  --bg: #0F1410;                    /* near-black with green tint */
  --bg-elevated: #1A211C;
  --surface: #232B25;
  --surface-2: #2D3730;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #F5F6F3;
  --text-secondary: #B7BEB6;
  --text-tertiary: #80877F;

  --success: #65B36C;
  --warning: #E0A33A;
  --danger: #D14343;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);

  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 800px; }

.text-center { text-align: center; }
.justify-center { justify-content: center; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
h3 { font-size: 20px; margin-bottom: 8px; }
p  { color: var(--text-secondary); }

.display {
  font-size: clamp(38px, 6.5vw, 72px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.display .accent {
  display: block;
  color: var(--brand-primary);
  background: linear-gradient(90deg, #8DAE3C, #6B8E23);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.display-sm { font-size: clamp(28px, 5vw, 48px); margin-bottom: 16px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-secondary); max-width: 56ch; margin-bottom: 32px; }

.eyebrow {
  display: inline-block;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex; align-items: center;
  background: rgba(107, 142, 35, 0.15);
  color: var(--brand-accent);
  border: 1px solid rgba(107, 142, 35, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  white-space: nowrap;
  user-select: none;
  font-family: inherit;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary { background: var(--brand-primary); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-primary-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--brand-primary); }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 20, 16, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 18px;
}
.logo-word { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--border);
}
.lang-btn {
  background: transparent; border: 0; color: var(--text-tertiary);
  padding: 5px 10px; font-size: 12px; font-weight: 600; border-radius: 999px;
  cursor: pointer; font-family: inherit;
  transition: color var(--transition), background var(--transition);
}
.lang-btn[aria-pressed="true"] { background: var(--brand-primary); color: var(--on-brand); }
.lang-btn:hover:not([aria-pressed="true"]) { color: var(--text); }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ===== HERO ===== */
.hero { padding: 80px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-tertiary); font-size: 14px; }
.trust-item { display: inline-flex; gap: 6px; align-items: center; }

.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 280px; height: 560px;
  background: linear-gradient(165deg, #2A332B, #1A211C);
  border-radius: 38px;
  padding: 14px;
  border: 2px solid #3a4738;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 24px;
  background: #0c100d; border-radius: 999px;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 28px;
  padding: 50px 18px 18px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.app-bar {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); padding-bottom: 12px;
}
.app-back { color: var(--text-tertiary); font-size: 22px; }
.app-title { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.app-dot { width: 8px; height: 8px; background: var(--brand-primary); border-radius: 50%; }
.app-ai-badge {
  display: inline-block; align-self: flex-start;
  background: rgba(107, 142, 35, 0.2);
  color: var(--brand-accent);
  border: 1px solid rgba(107, 142, 35, 0.4);
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.app-listing-title { font-size: 18px; color: var(--text); }
.app-listing-body { font-size: 13px; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.app-copy-btn {
  background: var(--brand-primary); color: var(--on-brand);
  padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 600; text-align: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .phone { width: 240px; height: 480px; }
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-intro { color: var(--text-secondary); max-width: 56ch; margin: 12px auto 0; }

/* ===== STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition);
}
.step:hover { transform: translateY(-4px); border-color: var(--brand-primary); }
.step-num {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-primary);
  background: rgba(107, 142, 35, 0.12);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 16px;
  letter-spacing: 0.05em;
}
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--transition), border-color var(--transition);
}
.feature:hover { transform: translateY(-4px); border-color: var(--brand-primary); }
.feature-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(107, 142, 35, 0.15);
  border-radius: 12px; font-size: 22px;
  margin-bottom: 16px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.pricing-loading {
  grid-column: 1 / -1; text-align: center; color: var(--text-tertiary); padding: 60px 0;
}
.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex; flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
}
.tier:hover { transform: translateY(-4px); }
.tier.featured { border-color: var(--brand-primary); border-width: 2px; box-shadow: var(--shadow-md); }
.tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand-primary); color: var(--on-brand);
  padding: 4px 14px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.tier-sale-badge {
  position: absolute; top: -12px; right: 16px;
  background: var(--danger); color: white;
  padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.tier-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.tier-tagline { font-size: 13px; color: var(--text-tertiary); margin-bottom: 20px; min-height: 32px; }
.tier-price-row {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px;
  flex-wrap: wrap;
}
.tier-price { font-size: 36px; font-weight: 800; color: var(--text); line-height: 1; }
.tier-price-was { font-size: 16px; color: var(--text-tertiary); text-decoration: line-through; }
.tier-price-sub { font-size: 13px; color: var(--text-tertiary); margin-left: -4px; }
.tier-vat-note { font-size: 11px; color: var(--text-tertiary); margin-top: -8px; margin-bottom: 8px; opacity: 0.8; }
.tier-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.tier-features li {
  font-size: 14px; color: var(--text-secondary);
  padding: 6px 0 6px 24px;
  position: relative;
}
.tier-features li::before {
  content: "✓"; color: var(--brand-primary); font-weight: 800;
  position: absolute; left: 0; top: 6px;
}
.tier-counter {
  font-size: 12px; color: var(--warning); font-weight: 600; margin-bottom: 16px;
  background: rgba(224, 163, 58, 0.1); padding: 8px 12px; border-radius: 8px;
  text-align: center;
}
.tier-cta { margin-top: auto; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--brand-primary); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  font-family: inherit;
}
.faq-q::after {
  content: "+"; font-size: 22px; color: var(--brand-primary); font-weight: 400;
  transition: transform var(--transition);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 15px;
  transition: max-height var(--transition), padding var(--transition);
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }

/* ===== FINAL CTA ===== */
.final-cta { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%); }
.store-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.store-badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: white;
  padding: 12px 20px; border-radius: 10px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  font-family: inherit;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.store-badge:hover { opacity: 1; }
.store-icon { font-size: 24px; }
.store-text { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.store-text small { font-size: 10px; color: rgba(255, 255, 255, 0.7); }
.store-text strong { font-size: 16px; font-weight: 700; }
.store-tag {
  position: absolute; top: -8px; right: -8px;
  background: var(--warning); color: #1a1a1a;
  padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em;
}

/* ===== FOOTER ===== */
.footer { background: var(--bg-elevated); padding: 56px 0 24px; border-top: 1px solid var(--border); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-tagline { color: var(--text-tertiary); margin-top: 12px; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--brand-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--text-tertiary);
  font-size: 13px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-vat { font-size: 11px; opacity: 0.7; }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== A11Y ===== */
.btn:focus-visible, .lang-btn:focus-visible, .faq-q:focus-visible, .store-badge:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
