/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== Variables ===== */
:root {
  --primary: #2d8f2d;
  --primary-dark: #1e6b1e;
  --primary-light: #edf7ed;
  --text: #1c1c1c;
  --text-muted: #5a6672;
  --bg: #ffffff;
  --bg-alt: #f5f8f5;
  --border: #dce8dc;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1120px;
  --transition: 0.2s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }
ul { list-style: none; }

/* ===== Layout ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(45,143,45,0.35); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: #f0f8f0; color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.btn-white-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.75); }
.btn-white-outline:hover { background: rgba(255,255,255,0.15); color: white; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; border-radius: 10px; }

/* ===== Navbar ===== */
.navbar {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.navbar-brand {
  display: flex;
  flex-direction: column;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.navbar-brand:hover { color: rgba(255,255,255,0.9); }
.navbar-brand-sub {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.navbar-menu { display: flex; gap: 4px; }
.navbar-menu a {
  color: rgba(255,255,255,0.88);
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition);
}
.navbar-menu a:hover, .navbar-menu a.active {
  background: rgba(255,255,255,0.18);
  color: white;
}
.nav-toggle {
  display: none;
  border: none;
  background: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  line-height: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.15); }

@media (max-width: 780px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .navbar-menu {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { padding: 12px 16px; border-radius: 8px; font-size: 0.95rem; }
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 52px 0;
  text-align: center;
}
.page-header h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 10px; }
.page-header p { font-size: 1.05rem; opacity: 0.88; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #195219 100%);
  color: white;
  padding: 96px 0;
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; }
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Cards ===== */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-body { padding: 24px; }
.card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.card-title { font-size: 1.12rem; margin-bottom: 10px; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-excerpt { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; margin-bottom: 16px; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
}

/* ===== Blog Grid ===== */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }

/* ===== App Card ===== */
.app-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.app-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.app-icon { width: 72px; height: 72px; border-radius: 16px; flex-shrink: 0; overflow: hidden; background: var(--bg-alt); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-info { flex: 1; min-width: 0; }
.app-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.app-developer { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 8px; }
.app-desc { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.app-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.app-badge-free { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; padding: 4px 10px; border: 1px solid var(--border); border-radius: 20px; }

/* ===== Features Grid ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.feature-item { text-align: center; padding: 32px 24px; background: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.4rem; margin-bottom: 16px; }
.feature-item h3 { margin-bottom: 10px; font-size: 1.05rem; }
.feature-item p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ===== Article ===== */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.article-header { margin-bottom: 32px; }
.article-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}
.article-title { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 0; }
.article-body p { margin-bottom: 20px; line-height: 1.75; }
.article-body h2 { font-size: 1.5rem; margin: 36px 0 14px; }
.article-body h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { font-weight: 600; }
.article-body ul { margin: 0 0 20px 20px; list-style: disc; }
.article-body ul li { margin-bottom: 6px; }
.disclaimer {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== Sidebar ===== */
.sidebar-widget {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h3 { font-size: 1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sidebar-app { display: flex; gap: 14px; align-items: center; }
.sidebar-app-icon { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--bg-alt); }
.sidebar-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-app-info h4 { font-size: 0.93rem; margin-bottom: 4px; }
.sidebar-app-info p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.support-widget { text-align: center; }
.support-widget p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }

/* ===== Newsletter ===== */
.newsletter-box { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; text-align: center; max-width: 580px; margin: 0 auto; }
.newsletter-box h2 { margin-bottom: 10px; }
.newsletter-box p { color: var(--text-muted); margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input[type="email"]:focus { border-color: var(--primary); }
.newsletter-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

/* ===== Prose (Privacy/Text pages) ===== */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin: 40px 0 14px; color: var(--primary-dark); padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.prose p { margin-bottom: 18px; line-height: 1.75; }
.prose ul { margin: 0 0 18px 22px; list-style: disc; }
.prose ul li { margin-bottom: 8px; line-height: 1.65; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { font-weight: 600; }
.prose .updated { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 32px; padding: 10px 16px; background: var(--bg-alt); border-radius: var(--radius-sm); display: inline-block; }

/* ===== CTA Section ===== */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, #195219 100%); color: white; padding: 72px 0; text-align: center; }
.cta-section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 14px; }
.cta-section p { font-size: 1.05rem; opacity: 0.88; max-width: 520px; margin: 0 auto 32px; }

/* ===== Dividers & Misc ===== */
.section-title { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 12px; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 40px; }
.text-center { text-align: center; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--text-muted); }
.separator { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ===== Store Buttons ===== */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: #1c1c1c;
  color: white;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.store-btn:hover { background: #333; color: white; transform: translateY(-1px); }
.store-btn svg { flex-shrink: 0; }
.store-btn-label { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn-sub { font-size: 0.72rem; font-weight: 400; opacity: 0.8; }

/* ===== Footer ===== */
.footer { background: #141a14; color: #b0bdb0; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { font-size: 1.25rem; font-weight: 800; color: white; margin-bottom: 6px; }
.footer-tagline { font-size: 0.75rem; color: #6a866a; margin-bottom: 14px; letter-spacing: 0.7px; text-transform: uppercase; }
.footer-desc { font-size: 0.88rem; line-height: 1.65; max-width: 280px; }
.footer h4 { color: rgba(255,255,255,0.9); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.7px; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: #b0bdb0; font-size: 0.88rem; transition: color var(--transition); }
.footer ul a:hover { color: #72c572; }
.footer-support p { font-size: 0.88rem; margin-bottom: 16px; line-height: 1.6; }
.footer hr { border: none; border-top: 1px solid #222e22; margin-bottom: 24px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.83rem; }
.footer-bottom a { color: #b0bdb0; }
.footer-bottom a:hover { color: #72c572; }
.footer-bottom-links { display: flex; gap: 20px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero { padding: 64px 0; }
  .app-card { flex-direction: column; }
  .page-header h1 { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
}
