/* ========================================
   Scantry — scantry.io
   ======================================== */

/* ---------- TOKENS ---------- */
:root {
  /* Scantry brand green */
  --green:         #66b159;
  --green-dark:    #52a047;
  --green-darker:  #3f8035;
  --green-light:   #e8f6e6;
  --green-faint:   #f2faf1;

  /* Blue — body links only */
  --blue:          #2563EB;
  --blue-light:    #EFF6FF;

  /* Neutrals — slightly warm */
  --navy:          #111f10;
  --text:          #334155;
  --muted:         #64748B;
  --bg:            #fdfcf8;
  --surface:       #f7f5ef;
  --border:        #e4e1d9;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1100px;
  --r: 0.875rem;
  --r-lg: 1.5rem;

  --sh-sm: 0 2px 8px rgba(17,31,16,.07), 0 1px 2px rgba(17,31,16,.05);
  --sh:    0 6px 20px -2px rgba(17,31,16,.10), 0 2px 6px -1px rgba(17,31,16,.06);
  --sh-lg: 0 20px 48px -8px rgba(17,31,16,.15), 0 8px 20px -4px rgba(17,31,16,.08);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font);
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}
.btn-primary:hover {
  background: var(--green-darker);
  border-color: var(--green-darker);
  transform: translateY(-1px);
  box-shadow: var(--sh);
}
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-lg { padding: 0.875rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.825rem; border-radius: calc(var(--r) - 0.2rem); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,252,248,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; color: var(--green-dark); }
.nav-logo img { width: 32px; height: 32px; border-radius: 6px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--text);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r);
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--navy); background: var(--green-faint); text-decoration: none; }
.nav-links .btn { margin-left: 0.5rem; }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; background: var(--green-darker); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ---------- SECTION LABEL ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- HERO ---------- */
.hero {
  padding: 5.5rem 0 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 100% 65% at 50% -5%, rgba(102,177,89,0.18) 0%, transparent 65%),
    linear-gradient(180deg, var(--green-faint) 0%, var(--bg) 100%);
}
.badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-darker);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(82,160,71,0.3);
}
.hero h1 { margin-bottom: 1.25rem; max-width: 780px; margin-left: auto; margin-right: auto; }
.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.75rem;
  line-height: 1.75;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- SECTIONS ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--surface); }
.section-title { margin-bottom: 0.75rem; }
.section-sub {
  font-size: 1.075rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ---------- FEATURE CARDS ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--sh-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
  text-align: center;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: rgba(102,177,89,0.3);
  background: linear-gradient(160deg, var(--green-faint) 0%, var(--bg) 60%);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1.25rem;
}
.feature-card h3 { margin-bottom: 0.6rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.975rem; line-height: 1.65; }

/* ---------- ROADMAP TIMELINE ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin-top: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 1.0625rem;
  top: 2.5rem;
  bottom: 2rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-dark) 0%, var(--border) 100%);
  border-radius: 2px;
}
.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-node {
  flex-shrink: 0;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.7rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
  margin-top: 0.2rem;
}
.node-done     { background: var(--green-dark); color: #fff; box-shadow: 0 0 0 4px var(--green-light); }
.node-progress { background: #fff; color: var(--green-dark); border: 2.5px solid var(--green); box-shadow: 0 0 0 3px var(--green-faint); }
.node-planned  { background: #fff; color: var(--muted); border: 2.5px solid var(--border); }
.node-future   { background: var(--surface); color: var(--muted); border: 2px dashed var(--border); }
.timeline-content { flex: 1; }
.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}
.timeline-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--sh-sm);
}
.timeline-card h3 { margin-bottom: 0.5rem; }
.timeline-card > p { color: var(--muted); font-size: 0.925rem; line-height: 1.65; margin-bottom: 1.25rem; }
.timeline-card.card-active {
  border-color: rgba(102,177,89,0.4);
  box-shadow: var(--sh), 0 0 0 4px var(--green-faint);
}
.timeline-card.card-done {
  background: var(--green-faint);
  border-color: rgba(102,177,89,0.25);
}

/* Shared phase item list (used in timeline cards) */
.phase-items { display: flex; flex-direction: column; gap: 0.55rem; }
.phase-items li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
}
.phase-items li i { flex-shrink: 0; margin-top: 3px; font-size: 0.75rem; }
.phase-items li .fa-check              { color: var(--green-dark); }
.phase-items li .fa-circle-half-stroke { color: var(--green); }
.phase-items li .fa-circle-dot         { color: var(--muted); }
.phase-items li .fa-circle             { color: var(--border); }

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-done     { background: var(--green-light); color: var(--green-darker); border: 1px solid rgba(82,160,71,.3); }
.status-progress { background: #fef9c3; color: #854d0e; border: 1px solid rgba(133,77,14,.25); }
.status-planned  { background: var(--blue-light); color: #1e40af; border: 1px solid rgba(37,99,235,.2); }
.status-future   { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

@media (max-width: 600px) {
  .timeline { padding-left: 0; }
  .timeline::before { left: 0.9375rem; }
  .timeline-item { gap: 1.25rem; }
  .timeline-card { padding: 1.25rem 1.25rem; }
}

/* ---------- LEGAL PAGES ---------- */
.legal-body { max-width: 720px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.legal-body h2 { font-size: 1.2rem; margin: 2.5rem 0 0.75rem; color: var(--navy); }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p { font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; color: var(--text); }
.legal-body ul { margin: 0.5rem 0 1.25rem 1.25rem; list-style: disc; }
.legal-body ul li { font-size: 1rem; line-height: 1.75; color: var(--text); margin-bottom: 0.35rem; }
.legal-body a { color: var(--blue); }
.legal-meta { font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }

/* ---------- STATS ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  background: linear-gradient(160deg, var(--green-faint) 0%, var(--bg) 70%);
  border-radius: var(--r-lg);
  border: 1px solid rgba(102,177,89,0.2);
  box-shadow: var(--sh-sm);
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat-label { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background:
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 18px,
      rgba(255,255,255,0.025) 18px,
      rgba(255,255,255,0.025) 36px
    ),
    linear-gradient(135deg, var(--green-dark) 0%, var(--green-darker) 55%, #2a6022 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 4.5rem 2rem;
  text-align: center;
  box-shadow: var(--sh-lg);
}
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 2rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner p:last-of-type { margin-bottom: 0; }
.cta-banner .badge {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  margin-bottom: 1.5rem;
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--green-darker);
  border-color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.cta-banner .btn-primary:hover {
  background: var(--green-faint);
  border-color: var(--green-faint);
}

/* ---------- BLOG CARDS ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--sh-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
  border-color: rgba(102,177,89,0.25);
}
.post-date {
  font-size: 0.775rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-card h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.post-card h2 { margin-bottom: 0.6rem; font-size: 1.1rem; font-weight: 600; }
.post-card h3 a, .post-card h2 a { color: var(--navy); }
.post-card h3 a:hover, .post-card h2 a:hover { color: var(--green-dark); text-decoration: none; }
.post-card > p { color: var(--muted); flex: 1; font-size: 0.925rem; line-height: 1.65; margin-bottom: 1.25rem; }
.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-top: auto;
  transition: gap 0.15s;
}
.post-read-more:hover { text-decoration: none; gap: 0.6rem; }

/* ---------- ARTICLE ---------- */
.page-header {
  padding: 3.5rem 0 2.5rem;
  background: var(--green-faint);
  border-bottom: 1px solid rgba(102,177,89,0.15);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb-sep { color: var(--border); font-size: 0.9rem; }
.page-header h1 { margin-bottom: 0.75rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.article-meta span { display: flex; align-items: center; gap: 0.35rem; }
.article-wrap {
  display: grid;
  grid-template-columns: 1fr min(680px, 100%) 1fr;
  padding: 3.5rem 1.5rem 4rem;
}
.article-wrap > * { grid-column: 2; }
.article-body p { margin-bottom: 1.3rem; font-size: 1.05rem; line-height: 1.85; color: var(--text); }
.article-body p:last-child { margin-bottom: 0; }
.article-body h2 { margin: 2.5rem 0 1rem; }
.article-body a { color: var(--blue); }
.article-body a:hover { text-decoration: underline; }
.article-sig {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- SHARE / POST NAV ---------- */
.share-section {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 3rem;
}
.share-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.share-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.share-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.15s;
}
.share-link:hover { text-decoration: none; border-color: var(--green-dark); color: var(--green-dark); background: var(--green-faint); }
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}
.post-nav a { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.post-nav a:hover { color: var(--green-dark); text-decoration: none; }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.check-list { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.25rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.975rem;
  color: var(--text);
}
.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  margin-top: 2px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 4rem 0 2.5rem;
  margin-top: 6rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.footer-brand img { width: 30px; border-radius: 6px; }
.footer-desc { font-size: 0.875rem; max-width: 280px; line-height: 1.65; }
.footer-social { display: flex; gap: 0.65rem; align-items: center; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: all 0.15s;
}
.footer-social a:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.footer-bottom {
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: #fff; text-decoration: none; }

/* ---------- 404 ---------- */
.not-found {
  padding: 8rem 0;
  text-align: center;
}
.not-found .big-num {
  font-size: clamp(5rem, 20vw, 10rem);
  font-weight: 800;
  color: var(--green-light);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.not-found h1 { margin-bottom: 1rem; }
.not-found p { color: var(--muted); max-width: 400px; margin: 0 auto 2rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.15rem;
    box-shadow: var(--sh);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.65rem 0.75rem; }
  .nav-links .btn { width: 100%; justify-content: center; margin-left: 0; margin-top: 0.25rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .section { padding: 3.5rem 0; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr; }
  .article-wrap { padding: 2.5rem 1.5rem 3rem; }
  .post-nav { flex-direction: column; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
