:root {
  --bg: #f4efe7;
  --bg-strong: #e7dccd;
  --surface: rgba(255, 255, 255, 0.64);
  --surface-strong: #fffaf2;
  --text: #1f2722;
  --muted: #5a635e;
  --line: rgba(31, 39, 34, 0.12);
  --accent: #c95f33;
  --accent-deep: #833618;
  --forest: #27453b;
  --shadow: 0 18px 50px rgba(61, 44, 22, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 95, 51, 0.18), transparent 28rem),
    radial-gradient(circle at top right, rgba(39, 69, 59, 0.12), transparent 24rem),
    linear-gradient(180deg, #f8f3ec 0%, var(--bg) 42%, #efe6d8 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

input,
textarea,
button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--text);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), 760px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(244, 239, 231, 0.76);
  border-bottom: 1px solid rgba(31, 39, 34, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.85;
}

.site-logo-footer {
  height: 44px;
  /* The logo has a white bg, give it slight breathing room on dark bg */
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--text);
  margin: 0.32rem auto;
}

/* ============================================================
   HERO — New MSME-focused design
   ============================================================ */
.hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

/* Ambient background glow blobs */
.hero-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 20%, rgba(201, 95, 51, 0.13), transparent),
    radial-gradient(ellipse 50% 60% at 100% 10%, rgba(39, 69, 59, 0.10), transparent),
    radial-gradient(ellipse 40% 40% at 55% 90%, rgba(131, 54, 24, 0.08), transparent);
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 95, 51, 0.10);
  border: 1px solid rgba(201, 95, 51, 0.22);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Headline */
.hero-headline {
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.06;
  margin: 0 0 1.2rem;
  max-width: 14ch;
}

.hero-headline-accent {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 60%, var(--forest) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sub-copy */
.hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.65;
  margin: 0 0 2rem;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 700;
}

/* Trust checklist */
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.hero-trust li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--accent));
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Supporting micro line */
.hero-support-line {
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

/* CTA button with icon */
.hero-cta-primary {
  gap: 0.55rem;
}

/* =============================================
   DASHBOARD PANEL (hero right column)
   ============================================= */
.hero-panel {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(61, 44, 22, 0.14), 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* macOS-style titlebar */
.dash-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem;
  background: rgba(244, 239, 231, 0.85);
  border-bottom: 1px solid rgba(31, 39, 34, 0.08);
}

.dash-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-dot--red    { background: #ff5f57; }
.dash-dot--yellow { background: #febc2e; }
.dash-dot--green  { background: #28c840; }

.dash-title {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Metrics strip */
.dash-metrics {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.dash-metric {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.1rem;
  transition: background 0.2s;
}

.dash-metric:hover {
  background: rgba(39, 69, 59, 0.04);
}

.dash-metric + .dash-metric {
  border-top: 1px solid rgba(31, 39, 34, 0.06);
}

.dash-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.dash-metric > div {
  flex: 1;
  min-width: 0;
}

.dash-val {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.18rem;
  color: var(--text);
  line-height: 1.1;
}

.dash-lbl {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}

.dash-badge {
  font-size: 0.73rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-badge--up {
  background: rgba(40, 200, 64, 0.12);
  color: #1a8432;
}

.dash-badge--ok {
  background: rgba(39, 69, 59, 0.10);
  color: var(--forest);
}

/* Task list */
.dash-tasks {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.dash-tasks .mini-label {
  margin-bottom: 0.7rem;
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(31, 39, 34, 0.07);
}

.task-done {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(90, 99, 94, 0.4);
}

.task-active {
  background: rgba(201, 95, 51, 0.06);
  border-color: rgba(201, 95, 51, 0.18);
  color: var(--accent-deep);
  text-decoration: none;
}

.task-check {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), #1a5c47);
  color: white;
  font-size: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 900;
}

.task-ring {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
}

/* Spinning loader for active task */
.task-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid rgba(201, 95, 51, 0.25);
  border-top-color: var(--accent);
  flex-shrink: 0;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Live sync footer bar */
.dash-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(39, 69, 59, 0.04);
}

.dash-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28c840;
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* Page hero for inner pages */
.page-hero {
  padding: 5rem 0 2rem;
}


.hero-layout,
.split,
.contact-layout,
.footer-grid,
.cta-box {
  display: grid;
  gap: 2rem;
}

.hero-layout {
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-copy-col {
  /* Left column of hero */
}

.eyebrow,
.mini-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent-deep);
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  max-width: 11ch;
  margin-top: 0.5rem;
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.5rem;
}

.hero-copy,
.lead,
.section-intro p,
.footer-copy,
.contact-panel p,
.info-card p,
.service-card p,
.module-card p,
.feature-row p,
.case-card p,
.post-card p,
.pricing-card p {
  color: var(--muted);
}

.hero-actions,
.inline-points,
.metric-band,
.pricing-grid,
.card-grid,
.signal-grid {
  display: grid;
  gap: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
  margin: 0 0 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

.button-small {
  min-height: 2.75rem;
  padding-inline: 1rem;
}

.inline-points {
  grid-auto-flow: column;
  justify-content: flex-start;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 600;
  flex-wrap: wrap;
}

.inline-points li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.45rem;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 1rem;
}

.hero-card,
.info-card,
.module-card,
.service-card,
.case-card,
.post-card,
.pricing-card,
.contact-form,
.contact-panel,
.cta-box,
.metric-band,
.feature-row {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.pricing-card,
.case-card,
.service-card,
.contact-form,
.contact-panel,
.cta-box {
  padding: 1.6rem;
}

.hero-card-main {
  background: linear-gradient(135deg, rgba(39, 69, 59, 0.96), rgba(23, 33, 28, 0.96));
  color: white;
}

.hero-card-main .mini-label,
.hero-card-main h2,
.hero-card-main span {
  color: rgba(255, 255, 255, 0.82);
}

.hero-card-accent {
  margin-left: 2rem;
}

.signal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.signal-grid div,
.metric-band div {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
}

.signal-grid strong,
.metric-band strong {
  display: block;
  font-size: 1rem;
}

.section {
  padding: 2rem 0 4.5rem;
}

.section-contrast {
  background: linear-gradient(180deg, rgba(39, 69, 59, 0.04), rgba(39, 69, 59, 0));
}

.section-intro {
  margin-bottom: 1.8rem;
}

.card-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two-up,
.pricing-grid,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.module-card,
.post-card {
  padding: 1.5rem;
}

.split {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
}

.stack,
.stack-lg,
.timeline {
  display: grid;
  gap: 1rem;
}

.feature-row {
  padding: 1.3rem 1.4rem;
}

.metric-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1rem;
}

.timeline article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.timeline article:first-child {
  border-top: 0;
}

.timeline span {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  color: var(--accent);
}

.case-card,
.service-card {
  display: grid;
  gap: 0.8rem;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(201, 95, 51, 0.16), rgba(255, 250, 242, 0.96));
  border-color: rgba(201, 95, 51, 0.24);
}

.price-label {
  font-weight: 700;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--forest) 100%);
}

.cta-section {
  padding-bottom: 5rem;
}

.cta-box {
  grid-template-columns: 1fr auto;
  align-items: center;
  background: linear-gradient(135deg, rgba(39, 69, 59, 0.92), rgba(21, 28, 24, 0.96));
  color: white;
}

.cta-box .eyebrow,
.cta-box p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-layout {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.95rem 1rem;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus,
.button:focus,
.button-ghost:focus,
.site-nav a:focus {
  outline: 3px solid rgba(201, 95, 51, 0.22);
  outline-offset: 2px;
}

.form-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-block + .contact-block {
  margin-top: 1.5rem;
}

.site-footer {
  border-top: 1px solid rgba(31, 39, 34, 0.08);
  padding: 2rem 0 3rem;
}

.footer-grid {
  align-items: start;
}

.site-footer h2 {
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero-layout,
  .split,
  .contact-layout,
  .card-grid.three-up,
  .card-grid.two-up,
  .pricing-grid,
  .metric-band,
  .footer-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .inline-points {
    grid-auto-flow: row;
  }

  .hero-card-accent {
    margin-left: 0;
  }

  .site-nav {
    position: absolute;
    top: 84px;
    right: 1rem;
    left: 1rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 250, 242, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  /* Hero mobile tweaks */
  .hero-copy-col { order: 1; }
  .hero-panel    { order: 2; }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem);
    max-width: 100%;
  }

  .hero-badge { font-size: 0.75rem; }

  .hero-sub { font-size: 1rem; max-width: 100%; }

  .hero-actions {
    grid-auto-flow: row;
    justify-content: stretch;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .dash-metrics { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
