/* =========================================
   FUSIONNINE — MAIN STYLESHEET
   Dark Navy + Electric Cyan aesthetic
   ========================================= */

:root {
  --bg: #060a06;
  --bg2: #090e09;
  --bg3: #0d140d;
  --surface: #111811;
  --surface2: #172017;
  --border: rgba(122, 201, 67, 0.12);
  --border2: rgba(122, 201, 67, 0.25);
  --accent: #7ac943;
  --accent2: #5aad1e;
  --accent-glow: rgba(122, 201, 67, 0.15);
  --accent-glow2: rgba(122, 201, 67, 0.3);
  --green: #4ade80;
  --text: #e8f0e8;
  --text2: #9ab89a;
  --text3: #5a7a5a;
  --white: #ffffff;
  --radius: 12px;
  --radius2: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow2: 0 8px 48px rgba(0,0,0,0.7);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--text2); line-height: 1.75; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }
ul { list-style: none; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- LAYOUT ---- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 56ch; margin: 0 auto; font-size: 1.05rem; }

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(122, 201, 67, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #5aad1e, #2d8a4e);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px rgba(90, 173, 30, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(90, 173, 30, 0.45); color: #fff; opacity: 0.95; }
.btn-primary.large { padding: 1.1rem 2.5rem; font-size: 1.05rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--text2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.5rem;
  border-radius: 99px;
  border: 1px solid var(--border2);
  transition: all 0.2s;
  background: transparent;
}
.btn-ghost:hover { color: var(--white); border-color: var(--accent); background: rgba(56, 189, 248, 0.05); }

/* ---- NAVBAR ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 7, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
#navbar.scrolled { background: rgba(5, 7, 15, 0.97); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

/* Image logo */
.logo-img-link { display: flex; align-items: center; text-decoration: none; }
.nav-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(1.05);
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }
.footer-logo {
  height: 38px;
  margin-bottom: 0.75rem;
}

/* reCAPTCHA badge styling */
.grecaptcha-badge {
  opacity: 0.6;
  transition: opacity 0.2s;
}
.grecaptcha-badge:hover { opacity: 1; }
.recaptcha-note {
  font-size: 0.72rem;
  color: var(--text3);
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.5;
}
.recaptcha-note a { color: var(--text3); text-decoration: underline; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text2);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.btn-nav {
  background: linear-gradient(135deg, #5aad1e, #2d8a4e) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 99px;
  font-weight: 600 !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem 1.5rem;
  gap: 1rem;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text2);
}
.mobile-menu.open { display: flex; }

/* ---- HERO BACKGROUND ---- */
.hero-bg, .blog-hero .hero-bg, .post-hero .hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122,201,67,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,201,67,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
}
.orb1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(90,173,30,0.2), transparent 70%); top: -100px; right: -100px; animation-delay: 0s; }
.orb2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(45,138,78,0.15), transparent 70%); bottom: -50px; left: -100px; animation-delay: 3s; }
.orb3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(74,222,128,0.1), transparent 70%); top: 40%; left: 40%; animation-delay: 6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 600px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(122, 201, 67, 0.08);
  border: 1px solid rgba(122, 201, 67, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.25rem; color: var(--white); }
.hero-sub { font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 50ch; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--white); }
.stat span { font-size: 0.78rem; color: var(--text3); }
.stat-div { width: 1px; height: 40px; background: var(--border); }

/* ---- HERO VISUAL ---- */
.hero-visual {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.flow-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  padding: 2rem;
  width: 300px;
  box-shadow: var(--shadow2), 0 0 40px rgba(122,201,67,0.08);
  animation: float 6s ease-in-out infinite;
}

.flow-node {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.3s;
}
.flow-node.ai { border-color: rgba(122,201,67,0.4); color: var(--accent); background: rgba(122,201,67,0.05); }
.flow-node.trigger { border-color: rgba(99,102,241,0.4); color: #86efac; background: rgba(45,138,78,0.05); }
.flow-node.action { border-color: rgba(52,211,153,0.4); color: var(--green); background: rgba(52,211,153,0.05); }
.flow-node.notify { border-color: rgba(251,191,36,0.3); color: #fbbf24; background: rgba(251,191,36,0.05); }

.flow-arrow {
  text-align: center;
  color: var(--text3);
  font-size: 1.2rem;
  padding: 0.4rem 0;
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}
.trust-bar p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 1.2rem; font-family: var(--font-display); font-weight: 600; }
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 900px;
  margin: 0 auto;
}
.logo-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  transition: all 0.2s;
}
.logo-tag:hover { color: var(--accent); border-color: var(--border2); }

/* ---- SERVICES ---- */
.services {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 2rem;
  transition: all 0.3s;
}
.service-card:hover { border-color: var(--border2); box-shadow: 0 4px 32px rgba(122,201,67,0.1); transform: translateY(-2px); }
.service-card.featured { border-color: rgba(122,201,67,0.3); background: linear-gradient(135deg, var(--surface) 0%, rgba(90,173,30,0.05) 100%); }
.featured-badge {
  position: absolute;
  top: -1px; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 8px 8px;
}
.service-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.service-card h3 { color: var(--white); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.92rem; margin-bottom: 1.25rem; }
.service-card ul { display: flex; flex-direction: column; gap: 0.4rem; }
.service-card li {
  font-size: 0.85rem;
  color: var(--text3);
  padding-left: 0;
}
.service-card li::before { content: ''; }

/* ---- HOW IT WORKS ---- */
.how {
  padding: 6rem 2rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how .section-header { max-width: 1200px; margin: 0 auto 3.5rem; }
.steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 72px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent2), transparent);
  opacity: 0.3;
}
.step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
}
.step-content h3 { color: var(--white); margin-bottom: 0.5rem; }
.step-content p { font-size: 0.95rem; }

/* ---- PRICING ---- */
.pricing {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 2rem;
  transition: all 0.3s;
}
.price-card:hover { border-color: var(--border2); box-shadow: 0 4px 32px rgba(122,201,67,0.08); }
.price-card.popular {
  border-color: rgba(122,201,67,0.4);
  background: linear-gradient(145deg, var(--surface), rgba(90,173,30,0.06));
  box-shadow: 0 8px 40px rgba(90,173,30,0.15);
}
.popular-badge {
  position: absolute;
  top: -1px; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 8px 8px;
}
.plan-name { font-family: var(--font-display); font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 0.5rem; }
.plan-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--white); margin-bottom: 0.5rem; }
.plan-price span { font-size: 1rem; color: var(--text3); font-weight: 400; }
.plan-desc { font-size: 0.88rem; color: var(--text3); margin-bottom: 1.5rem; }
.plan-features { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.plan-features li { font-size: 0.88rem; color: var(--text2); }
.plan-features li.muted { color: var(--text3); opacity: 0.5; }
.btn-plan {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem;
  border-radius: 99px;
  border: 1px solid var(--border2);
  color: var(--text2);
  transition: all 0.2s;
}
.btn-plan:hover { color: var(--white); border-color: var(--accent); background: rgba(122,201,67,0.08); }
.btn-plan.primary {
  background: linear-gradient(135deg, #5aad1e, #2d8a4e);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(90,173,30,0.3);
}
.btn-plan.primary:hover { opacity: 0.9; box-shadow: 0 8px 32px rgba(90,173,30,0.4); }

/* ---- TESTIMONIALS ---- */
.testimonials {
  padding: 6rem 2rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testimonials .section-header { max-width: 1200px; margin: 0 auto 3.5rem; }
.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 2rem;
}
.stars { color: #fbbf24; font-size: 1rem; margin-bottom: 1rem; }
.testi-card p { font-size: 0.92rem; font-style: italic; margin-bottom: 1.5rem; color: var(--text2); }
.testi-author { display: flex; align-items: center; gap: 0.85rem; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5aad1e, #2d8a4e);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: var(--white);
  flex-shrink: 0;
}
.testi-author strong { display: block; font-family: var(--font-display); font-size: 0.9rem; color: var(--white); }
.testi-author span { font-size: 0.8rem; color: var(--text3); }

/* ---- FAQ ---- */
.faq {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border2); }
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent); font-size: 1.2rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.5rem 1.25rem; font-size: 0.92rem; }

/* ---- CONTACT ---- */
.contact {
  padding: 6rem 2rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-left .tag { margin-bottom: 1rem; }
.contact-left h2 { color: var(--white); margin-bottom: 1rem; }
.contact-left > p { margin-bottom: 2rem; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.info-item { display: flex; align-items: center; gap: 0.85rem; }
.info-icon { font-size: 1.1rem; }
.info-item a, .info-item span { font-size: 0.95rem; color: var(--text2); }
.info-item a:hover { color: var(--accent); }

.inquiry-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent2); }
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--surface); }
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #5aad1e, #2d8a4e);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(90,173,30,0.3);
  margin-top: 0.5rem;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(90,173,30,0.45); }
.form-note { text-align: center; font-size: 0.78rem; color: var(--text3); margin-top: 0.75rem; }

/* ---- CTA BANNER ---- */
.cta-banner {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(90,173,30,0.08) 0%, rgba(45,138,78,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-content h2 { color: var(--white); margin-bottom: 1rem; }
.cta-content p { margin-bottom: 2rem; font-size: 1.05rem; }

/* ---- FOOTER ---- */
.footer { padding: 4rem 2rem 0; background: var(--bg2); border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
}
.footer-brand .logo { font-size: 1.5rem; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.88rem; max-width: 28ch; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); margin-bottom: 0.25rem; }
.footer-col a, .footer-col span { font-size: 0.88rem; color: var(--text3); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p { font-size: 0.8rem; }
.footer-bottom a { color: var(--text3); }
.footer-bottom a:hover { color: var(--accent); }

/* ---- BLOG PAGES ---- */
.blog-hero {
  position: relative;
  padding: 8rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
}
.blog-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.blog-hero-content h1 { margin-bottom: 1rem; }
.blog-hero-content p { font-size: 1.05rem; }

.featured-post {
  padding: 0 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  overflow: hidden;
  padding: 2.5rem;
  transition: all 0.3s;
  color: inherit;
}
.featured-card:hover { border-color: rgba(122,201,67,0.4); box-shadow: 0 8px 40px rgba(122,201,67,0.08); }
.featured-image { display: flex; align-items: center; justify-content: center; }
.featured-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg3), var(--surface2));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
.feat-emoji { font-size: 3rem; }
.feat-lines { width: 60%; display: flex; flex-direction: column; gap: 0.5rem; }
.feat-line { height: 8px; background: var(--border); border-radius: 4px; }
.feat-line.short { width: 60%; }

.post-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.category-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(122,201,67,0.1);
  border: 1px solid rgba(122,201,67,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.read-time { font-size: 0.8rem; color: var(--text3); }
.post-date { font-size: 0.8rem; color: var(--text3); }
.featured-text h2 { color: var(--white); font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 0.75rem; }
.featured-text p { font-size: 0.92rem; margin-bottom: 1.5rem; }
.read-more { color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }

.blog-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}
.blog-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { color: var(--accent); border-color: rgba(122,201,67,0.3); background: rgba(122,201,67,0.06); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  overflow: hidden;
  transition: all 0.3s;
}
.blog-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.blog-img {
  background: linear-gradient(135deg, var(--bg3), var(--surface2));
  padding: 2rem;
  font-size: 2.5rem;
  text-align: center;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-body { padding: 1.5rem; }
.blog-body h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 0.6rem; }
.blog-body h3 a { color: var(--white); transition: color 0.2s; }
.blog-body h3 a:hover { color: var(--accent); }
.blog-body p { font-size: 0.88rem; margin-bottom: 1.2rem; }
.blog-footer { display: flex; align-items: center; justify-content: space-between; }
.read-link { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; color: var(--accent); }

.newsletter-box {
  background: linear-gradient(135deg, rgba(90,173,30,0.08), rgba(45,138,78,0.08));
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  padding: 3rem;
  text-align: center;
}
.newsletter-content h3 { color: var(--white); margin-bottom: 0.75rem; font-size: 1.5rem; }
.newsletter-content p { margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 420px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
}
.newsletter-form input:focus { border-color: var(--accent2); }
.newsletter-form button {
  background: linear-gradient(135deg, #5aad1e, #2d8a4e);
  color: var(--white);
  border: none;
  border-radius: 99px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.newsletter-form button:hover { opacity: 0.9; }

/* ---- BLOG POST ---- */
.post-hero {
  position: relative;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}
.post-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.back-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text3);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.post-hero-inner h1 { color: var(--white); margin: 1rem 0; }
.post-lead { font-size: 1.1rem; color: var(--text2); }

.post-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

.post-content {
  max-width: 700px;
}
.post-content h2 { color: var(--white); font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.post-content h3 { color: var(--white); font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.post-content p { margin-bottom: 1.2rem; }
.post-content em { color: var(--accent); font-style: italic; }

.post-highlight {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}
.post-highlight li { padding: 0.3rem 0; font-size: 0.92rem; color: var(--text2); }

.post-blockquote {
  background: var(--surface);
  border-left: 3px solid rgba(99,102,241,0.5);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text2);
}
.post-blockquote cite { display: block; margin-top: 0.75rem; font-size: 0.82rem; font-style: normal; color: var(--text3); }

.post-list { padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0 1.2rem; }
.post-list li { font-size: 0.92rem; color: var(--text2); list-style: decimal; }
.post-list-plain { display: flex; flex-direction: column; gap: 0.4rem; margin: 1rem 0 1.2rem; }
.post-list-plain li { font-size: 0.92rem; color: var(--text2); padding-left: 1rem; position: relative; }
.post-list-plain li::before { content: '→'; position: absolute; left: -0.2rem; color: var(--accent); font-size: 0.8rem; }

.post-cta-box {
  background: linear-gradient(135deg, rgba(90,173,30,0.1), rgba(45,138,78,0.1));
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}
.post-cta-box h3 { color: var(--white); margin-bottom: 0.75rem; }
.post-cta-box p { margin-bottom: 1.5rem; }

/* ---- SIDEBAR ---- */
.post-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 100px; }
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 1.5rem;
}
.sidebar-widget h4 { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.sidebar-widget p { font-size: 0.85rem; margin-bottom: 1rem; }
.sidebar-post {
  display: block;
  font-size: 0.85rem;
  color: var(--text2);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { color: var(--accent); }
.newsletter-sidebar form { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.newsletter-sidebar input {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
}
.newsletter-sidebar button {
  background: linear-gradient(135deg, #5aad1e, #2d8a4e);
  color: var(--white);
  border: none;
  border-radius: 99px;
  padding: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ---- HERO ILLUSTRATION ---- */
.hero-illustration {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.hero-photo {
  width: 340px;
  height: 240px;
  border-radius: var(--radius2);
  object-fit: cover;
  border: 1px solid var(--border2);
  box-shadow: 0 8px 48px rgba(90,173,30,0.18), 0 0 0 1px rgba(122,201,67,0.1);
  display: block;
}
.hero-photo-overlay {
  position: relative;
  display: inline-block;
}
.hero-photo-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius2);
  background: linear-gradient(135deg, rgba(90,173,30,0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* ---- SERVICE SVG ICONS ---- */
.service-svg {
  width: 52px;
  height: 52px;
  margin-bottom: 1.2rem;
  display: block;
}

/* ---- BLOG CARD IMAGES ---- */
.blog-img-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-img-photo { transform: scale(1.04); }
.blog-img-wrap {
  overflow: hidden;
  height: 180px;
  background: var(--surface2);
}

/* ---- FEATURED POST IMAGE ---- */
.featured-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  border: 1px solid var(--border);
}

/* ---- TEAM / ABOUT PHOTO ---- */
.about-photo {
  width: 100%;
  border-radius: var(--radius2);
  object-fit: cover;
  border: 1px solid var(--border2);
  box-shadow: var(--shadow2);
}

/* ---- HOW IT WORKS ILLUSTRATION ---- */
.how-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}
.how-illustration svg {
  max-width: 600px;
  width: 100%;
  opacity: 0.85;
}

/* ---- STATS SECTION VISUAL ---- */
.stats-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

/* ---- BLOG POST HERO IMAGE ---- */
.post-hero-img {
  width: 100%;
  max-width: 800px;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius2);
  border: 1px solid var(--border2);
  margin: 2rem auto 0;
  display: block;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 7rem 1.5rem 3rem; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 100%; display: flex; justify-content: center; }
  .flow-card { width: 280px; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .featured-card { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-div { display: none; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ---- FORM VALIDATION STYLES ---- */
.form-validation-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  color: #fca5a5;
  font-size: 0.88rem;
}
.form-validation-error strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #f87171;
  font-family: var(--font-display);
}
.form-validation-error ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.form-validation-error li {
  list-style: disc;
  color: #fca5a5;
}
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(248, 113, 113, 0.5) !important;
}
.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: rgba(122, 201, 67, 0.4) !important;
}