/* =========================================================
   SOFTWARE.CSS  (v2.4)
   Page-specific styles that mirror home.css aesthetics,
   following guest-posting.css as the reference.
   Only overrides/additions unique to the software page.
   ========================================================= */

/* ---------------------------------------------------------
   HERO (same gradient + decor as homepage)
--------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #009933 0%, #003300 100%);
  color: #FFFFFF;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -120px;
  inset-block-start: -120px;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 42px solid rgba(255,255,255,.12);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-18deg);
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  inset-block-end: -120px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 30px solid rgba(255,255,255,.1);
  border-right-color: transparent;
  border-top-color: transparent;
  transform: rotate(24deg);
}

.hero-inner { padding-block: 96px; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .75rem; margin-bottom: 1.25rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: rgba(15,23,42,.65);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
}
.hero-rating { font-size: .78rem; opacity: .9; }

.text-gradient,
.text-accent {
  background: linear-gradient(135deg, #E3FFEF 0%, #C9FFD6 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero-subtitle { font-size: 1.05rem; margin: .75rem 0 1rem; opacity: .95; }

.hero-trust-layer { display: flex; flex-wrap: wrap; gap: 1.1rem; margin: .75rem 0 1.25rem; }
.trust-item { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.92); }
.icon-check { color: #0AA86A; font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 1rem; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .82rem; opacity: .9; }
.hero-meta-item { display: inline-flex; align-items: center; gap: .35rem; }

/* Illustration card */
.hero-illustration { position: relative; }
.hero-illustration-card {
  background: #fff; color: var(--color-text-main);
  border-radius: 28px; padding: 1.4rem;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
}
.hero-illustration-card img { width: 100%; height: auto; border-radius: 12px; }
.hero-illustration-metrics {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem; margin-top: 1rem;
}
.metric-pill {
  padding: .7rem .9rem; border-radius: 12px;
  background: #F5F7FA; font-size: .8rem;
}
.metric-pill strong { display: block; font-size: 1rem; color: #006600; }
.metric-pill span { display: block; margin-top: .15rem; color: #4A4A4A; }

/* ---------------------------------------------------------
   SECTION HEADER (center option)
--------------------------------------------------------- */
.section-header.align-center { text-align: center; }
.section-header.align-center .section-description { max-width: 68ch; margin-inline: auto; }

/* ---------------------------------------------------------
   CARDS & ICONS
--------------------------------------------------------- */
.card--highlight {
  border: 2px solid rgba(0,102,0,.15);
  background: linear-gradient(135deg, rgba(0,102,0,.03) 0%, rgba(10,168,106,.03) 100%);
}

.grid-3 { align-items: stretch; } /* ensure equal height */

.card-header {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem;
}

/* SVG icons embedded inline */
.card-icon .icon {
  width: 22px;
  height: 22px;
  stroke: #0A0A0A;
  fill: none;
  stroke-width: 2;
}
.card-icon .icon path,
.card-icon .icon circle,
.card-icon .icon rect {
  stroke: #0F5132; /* deep green stroke */
}

.card-icon {
  background: #F5F7FA;
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid #E5E7EB;
}

.card-tag {
  font-size: .75rem; font-weight: 700; color: #0AA86A;
  background: rgba(10,168,106,.1); padding: .25rem .6rem; border-radius: 999px;
}

/* ---------------------------------------------------------
   PROCESS (timeline)
--------------------------------------------------------- */
.process-section-layout { align-items: start; gap: 4rem; }
.process-timeline { display: grid; gap: 1rem; }

.process-step {
  display: grid; grid-template-columns: 42px 1fr; gap: 1rem;
  padding: 1rem; border: 1px solid #E5E7EB; border-radius: 16px; background: #fff;
}
.step-number {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,102,0,.08); color: #006600; font-weight: 700;
}
.step-content h3 { margin: .15rem 0 .25rem; }
.process-sidebar-card { position: sticky; top: 120px; }

/* ---------------------------------------------------------
   TECH / PLATFORMS LISTS (subtle polish)
--------------------------------------------------------- */
ul.text-muted { color: #4A4A4A; }
ul.text-muted li { margin: .35rem 0; }

/* ---------------------------------------------------------
   PORTFOLIO / PROJECT THUMBS
--------------------------------------------------------- */
.portfolio-thumb {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  background: #F5F7FA;
  margin-bottom: .75rem;
}
.portfolio-thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* ---------------------------------------------------------
   PRICING / ENGAGEMENT CARDS
--------------------------------------------------------- */
.pricing-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.pricing-card .pricing-header { text-align: center; margin-bottom: .75rem; }
.pricing-card .price-main { font-size: 1.75rem; font-weight: 700; color: #006600; line-height: 1; }
.pricing-card .price-alt { font-size: .9rem; color: #4A4A4A; }
.pricing-features { margin: .75rem 0 1rem; }
.pricing-footer { margin-top: auto; }

.pricing-card.featured {
  border: 2px solid #006600;
  background: linear-gradient(135deg, rgba(0,102,0,.03) 0%, rgba(10,168,106,.03) 100%);
  transform: translateY(-2px);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #FF7A3C; color: #fff; padding: .25rem 1rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700;
}

/* ---------------------------------------------------------
   FAQ (minor polish)
--------------------------------------------------------- */
.faq-item { border-bottom: 1px solid #E5E7EB; padding: .75rem 0; }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600;
}
.faq-item[open] summary { color: #006600; }

/* ---------------------------------------------------------
   FORMS (CTA block polish)
--------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.form-grid .textarea { min-height: 120px; }
.form-grid .form-control:nth-last-child(2) { grid-column: 1 / -1; } /* message full width on desktop */

.form-label { font-weight: 600; }

/* ---------------------------------------------------------
   UTILITIES
--------------------------------------------------------- */
.section--tight { padding-block: 28px; }
.text-muted { color: #4A4A4A; }

/* ---------------------------------------------------------
   RESPONSIVE OVERRIDES
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: 2.5rem; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-section-layout { grid-template-columns: 1fr; gap: 2rem; }
  .process-sidebar-card { position: static; }
  .pricing-card.featured { transform: none; }
}

@media (max-width: 768px) {
  .hero-inner { padding-block: 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-illustration { order: -1; margin-bottom: 2rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-badge-row { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .metric-pill { padding: .55rem .7rem; font-size: .75rem; }
  .pricing-card .price-main { font-size: 1.55rem; }
}
