/* ================================================================
   Mumtaz — Page Layout & Section Styles
   tokens.css + components.css must be loaded first.
   ================================================================ */

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-dotgrid {
  position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: radial-gradient(circle, var(--border-color) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 1.1rem; color: var(--fg2); margin-bottom: 2rem;
  max-width: 520px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 2.5rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }

/* Hero visual — dashboard mockup card */
.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-hover);
}
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.dash-title { font-size: .82rem; font-weight: 500; color: var(--fg3); font-family: var(--font-body); }
.dash-kpis { display: grid; grid-template-columns: repeat(2,1fr); gap: .65rem; margin-bottom: 1rem; }
.dash-kpi {
  background: var(--bg2); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: .8rem 1rem;
}
.dash-kpi-label { font-size: .7rem; color: var(--fg3); margin-bottom: .2rem; font-family: var(--font-body); }
.dash-kpi-val { font-size: 1.15rem; font-weight: 400; color: var(--fg); font-family: var(--font-display); }
.dash-kpi-trend { font-size: .7rem; font-family: var(--font-body); }
.trend-up   { color: var(--teal2); }
.trend-warn { color: var(--gold2); }
.trend-err  { color: var(--coral); }
.dash-chart {
  background: var(--bg2); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: .9rem;
  margin-bottom: .75rem;
}
.dash-chart-label { font-size: .7rem; color: var(--fg3); margin-bottom: .5rem; font-family: var(--font-body); }
.dash-bars { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.dash-bar {
  flex: 1; border-radius: 3px 3px 0 0;
  background: var(--bg3);
  animation: barGrow .8s ease forwards;
}
.dash-bar.active { background: var(--grad-gold); }
@keyframes barGrow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); } }
.dash-alerts { display: flex; flex-direction: column; gap: .45rem; }
.dash-alert {
  display: flex; align-items: center; gap: .6rem;
  background: var(--bg2); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: .55rem .8rem;
  font-size: .76rem; color: var(--fg2); font-family: var(--font-body);
}

/* ── Free modules strip ─────────────────────────────────────────── */
.free-modules-strip {
  background: var(--teal);
  padding: .6rem 0;
}
.free-modules-strip .container {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  font-size: .81rem; font-family: var(--font-body);
}
.free-strip-label { color: rgba(255,255,255,.7); font-weight: 500; flex-shrink: 0; }
.free-strip-item  { color: #fff; font-weight: 500; }
.free-strip-sep   { color: rgba(255,255,255,.4); }
.free-strip-cta   {
  margin-left: auto; color: #fff; font-weight: 500;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  padding: .2rem .8rem; transition: background .2s;
}
.free-strip-cta:hover { background: rgba(255,255,255,.15); }

/* ── Trust bar ──────────────────────────────────────────────────── */
.trust-bar {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--surface);
}
.trust-label {
  text-align: center; font-size: .78rem; color: var(--fg3);
  margin-bottom: 1.25rem; letter-spacing: .07em; text-transform: uppercase;
  font-family: var(--font-body);
}
.trust-logos { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.trust-pill {
  background: var(--bg2); border: 1px solid var(--border-color);
  border-radius: var(--radius-badge);
  padding: .3rem .9rem; font-size: .78rem; font-family: var(--font-body);
  color: var(--fg2); white-space: nowrap; transition: border-color .2s;
}
.trust-pill:hover { border-color: var(--gold-border); color: var(--fg); }

/* ── Products section ───────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.product-card { position: relative; overflow: hidden; }

/* ERP spans both right-column rows */
.product-card--featured {
  grid-row: span 2;
  background: var(--ink2);
  border-color: rgba(255,255,255,.06);
}
.product-card--featured h3 { color: #F0EDE8; }
.product-card--featured p  { color: rgba(240,237,232,.65); }
.product-card--featured .product-features li { color: rgba(240,237,232,.65); }
.product-card--featured .product-features li::before { color: var(--teal2); }
.product-card--featured .btn-primary { margin-top: .5rem; }

.product-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: grid; place-items: center;
  margin-bottom: 1.25rem; font-size: 1.35rem;
}
.icon-teal  { background: var(--teal-bg); color: var(--teal); }
.icon-gold  { background: var(--gold-bg); color: var(--gold); }
.icon-blue  { background: var(--blue-bg); color: var(--blue); }
.icon-coral { background: var(--coral-bg); color: var(--coral); }

.product-features {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: flex; flex-direction: column; gap: .45rem;
}
.product-features li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .88rem; color: var(--fg2); font-family: var(--font-body);
}
.product-features li::before { content: '✓'; color: var(--teal2); font-weight: 600; flex-shrink: 0; }

/* ZAKI query bubbles */
.zaki-queries { display: flex; flex-direction: column; gap: .45rem; margin-bottom: .5rem; }
.zaki-query {
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-radius: var(--radius-md); padding: .5rem .85rem;
  font-size: .82rem; color: var(--gold); font-family: var(--font-body); font-style: italic;
}

/* ── Organizations section (dark strip) ─────────────────────────── */
.orgs-section {
  background: var(--ink2);
  color: #F0EDE8;
}
.orgs-section .section-header h2 { color: #F0EDE8; }
.orgs-section .section-header p,
.orgs-sub { color: rgba(240,237,232,.65); }

.orgs-steps {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: start; gap: 0; margin: 2.5rem 0 2rem;
}
.orgs-step {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-card); padding: 1.75rem 1.5rem; text-align: center;
}
.orgs-step-num {
  width: 34px; height: 34px; background: var(--grad-gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; color: #fff; margin: 0 auto 1rem; font-family: var(--font-body);
}
.orgs-step h4 { color: #F0EDE8; margin-bottom: .4rem; }
.orgs-step p  { color: rgba(240,237,232,.6); font-size: .88rem; margin: 0; font-family: var(--font-body); }
.orgs-connector {
  display: flex; align-items: center; justify-content: center;
  padding-top: 2.5rem; color: rgba(255,255,255,.3); font-size: 1.2rem;
}
.orgs-highlight {
  background: rgba(184,134,42,.12); border: 1px solid rgba(184,134,42,.22);
  border-radius: var(--radius-card); padding: 1.25rem 2rem;
  text-align: center; margin-bottom: 2rem;
}
.orgs-highlight p { color: rgba(240,237,232,.75); margin: 0; font-family: var(--font-body); }
.orgs-highlight strong { color: var(--gold3); }
.orgs-cta { text-align: center; }

/* ── E-Invoicing section ────────────────────────────────────────── */
.einv-section {
  background: var(--teal-bg);
  border-top: 1px solid rgba(11,122,100,.12);
  border-bottom: 1px solid rgba(11,122,100,.12);
}
.einv-countries {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2.5rem;
}
.einv-card {
  background: var(--surface); border: 1px solid rgba(11,122,100,.15);
  border-radius: var(--radius-card); padding: 1.75rem; text-align: center;
  box-shadow: var(--shadow-card); transition: var(--transition);
}
.einv-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 4px 24px rgba(11,122,100,.1); }
.einv-flag { font-size: 2.5rem; margin-bottom: 1rem; }
.einv-card h4 { margin-bottom: .4rem; }
.einv-card p  { font-size: .88rem; color: var(--fg2); margin: 0; }
.einv-cta { text-align: center; }

/* ── Industries ─────────────────────────────────────────────────── */
.industries-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1rem; }
.industry-card {
  background: var(--surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-card); padding: 1.5rem 1.25rem;
  text-align: center; transition: var(--transition);
}
.industry-card:hover { border-color: var(--gold-border); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.industry-icon { font-size: 1.8rem; margin-bottom: .75rem; }
.industry-name { font-size: .88rem; font-weight: 500; color: var(--fg); margin-bottom: .25rem; font-family: var(--font-body); }
.industry-desc { font-size: .78rem; color: var(--fg3); font-family: var(--font-body); }

/* ── Pricing ────────────────────────────────────────────────────── */
.pricing-tabs {
  display: flex; gap: .4rem; justify-content: center; margin-bottom: 2.5rem;
  background: var(--bg2); border: 1px solid var(--border-color);
  border-radius: var(--radius-btn); padding: .3rem;
  width: fit-content; margin-left: auto; margin-right: auto;
}
.pricing-tab {
  background: none; border: none; cursor: pointer;
  padding: .5rem 1.4rem; border-radius: 8px;
  font-family: var(--font-body); font-size: .88rem; font-weight: 500;
  color: var(--fg2); transition: var(--transition);
}
.pricing-tab.active {
  background: var(--surface); color: var(--fg); box-shadow: var(--shadow-card);
}
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; align-items: start; }
.pricing-card {
  background: var(--surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-card); padding: 2rem; position: relative;
}
.pricing-card--popular {
  border-color: var(--gold-border);
  box-shadow: 0 4px 24px rgba(184,134,42,.12);
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad-gold); color: #fff;
  font-size: .72rem; font-weight: 500; font-family: var(--font-body);
  padding: .25rem .9rem; border-radius: 100px; white-space: nowrap;
}
.pricing-plan   { font-size: .78rem; font-weight: 500; color: var(--fg3); margin-bottom: .4rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-body); }
.pricing-price  { font-size: 2.2rem; font-weight: 400; color: var(--fg); font-family: var(--font-display); line-height: 1; margin-bottom: .2rem; }
.pricing-price span { font-size: 1rem; color: var(--fg3); font-family: var(--font-body); }
.pricing-period { font-size: .8rem; color: var(--fg3); margin-bottom: 1.25rem; font-family: var(--font-body); }
.pricing-divider { border: none; border-top: 1px solid var(--border-color); margin: 1rem 0; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-direction: column; gap: .55rem; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .86rem; color: var(--fg2); font-family: var(--font-body);
}
.pricing-features li::before { content: '✓'; color: var(--teal2); font-weight: 600; flex-shrink: 0; }
.pricing-features li.muted::before { content: '–'; color: var(--fg3); }
.pricing-features li.muted { color: var(--fg3); }
.pricing-features li.free-item::before { content: '★'; color: var(--gold2); }
.pricing-features li.free-item { color: var(--gold); font-weight: 500; }

/* ── How It Works ────────────────────────────────────────────────── */
.hiw-section { background: var(--bg2); }
.hiw-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: start; gap: 0; margin-top: 2rem;
}
.hiw-card {
  background: var(--surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-card); padding: 2rem 1.5rem;
  text-align: center; position: relative; box-shadow: var(--shadow-card);
}
.hiw-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; background: var(--grad-gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: #fff; font-family: var(--font-body);
}
.hiw-icon { font-size: 2rem; margin-bottom: 1rem; }
.hiw-card h4 { margin-bottom: .5rem; }
.hiw-card p  { font-size: .88rem; color: var(--fg2); margin: 0; font-family: var(--font-body); }
.hiw-connector {
  display: flex; align-items: center; justify-content: center;
  padding-top: 3rem; color: var(--fg3); font-size: 1.2rem;
}
.hiw-connector::before { content: '→'; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-section { background: var(--surface); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.1rem 0; font-size: .95rem; font-weight: 500;
  color: var(--fg); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-body);
}
.faq-q:hover { color: var(--gold); }
.faq-chevron { font-size: 1rem; transition: transform .25s; flex-shrink: 0; color: var(--fg3); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  font-size: .875rem; color: var(--fg2); line-height: 1.75;
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .25s; padding-bottom: 0;
  font-family: var(--font-body);
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.1rem; }

/* ── Final CTA ──────────────────────────────────────────────────── */
.cta-box {
  background: var(--ink2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem; text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,134,42,.15), transparent 70%);
  pointer-events: none;
}
.cta-box h2 { color: #F0EDE8; margin-bottom: .75rem; position: relative; }
.cta-box p  { color: rgba(240,237,232,.65); margin-bottom: 2rem; position: relative; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-note { font-size: .82rem; color: rgba(240,237,232,.4); margin: 1rem 0 0; position: relative; }
.cta-ghost { border-color: rgba(255,255,255,.2) !important; color: rgba(240,237,232,.8) !important; }
.cta-ghost:hover { border-color: rgba(255,255,255,.4) !important; color: #fff !important; background: rgba(255,255,255,.06) !important; }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2.5rem;
}
.footer-brand-name { font-family: var(--font-display); color: #F0EDE8; font-size: 1.2rem; }
.footer-domain { font-size: .78rem; color: rgba(255,255,255,.3); margin: .25rem 0 0; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.4); margin-top: .75rem; max-width: 240px; }
.footer-col h5 { font-size: .78rem; font-weight: 500; color: rgba(255,255,255,.5); margin-bottom: 1rem; letter-spacing: .05em; text-transform: uppercase; font-family: var(--font-body); }
.footer-col a  { display: block; font-size: .85rem; color: rgba(255,255,255,.38); margin-bottom: .55rem; transition: color .2s; font-family: var(--font-body); }
.footer-col a:hover { color: rgba(255,255,255,.8); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.06);
  font-size: .8rem; color: rgba(255,255,255,.28); font-family: var(--font-body);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,.28); }
.footer-legal a:hover { color: rgba(255,255,255,.6); }

/* ── Animations ─────────────────────────────────────────────────── */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.js-ready .reveal.in-view { opacity: 1; transform: none; }

/* ── Divider ─────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border-color); margin: 0; }

/* ── Gradient text helper ────────────────────────────────────────── */
.grad-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Theme toggle icon visibility ────────────────────────────────── */
.theme-icon { line-height: 1; }
[data-theme="dark"]  .theme-icon-light  { display: none; }
[data-theme="dark"]  .theme-icon-dark   { display: block; }
[data-theme="light"] .theme-icon-dark   { display: none; }
[data-theme="light"] .theme-icon-light  { display: block; }

/* Theme-aware transition list */
body, .site-header, .platform-bar, .footer,
.hero-visual, .dash-kpi, .dash-chart, .dash-alert,
.product-card, .industry-card, .pricing-card,
.einv-card, .hiw-card, .interlink-card, .interlink-strip,
.cta-box, .nav-menu, .stat-pill, .trust-pill, .badge {
  transition: background .28s ease, border-color .28s ease, color .28s ease;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card--featured { grid-row: span 1; }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .orgs-steps { grid-template-columns: 1fr; }
  .orgs-connector { display: none; }
  .hiw-grid { grid-template-columns: 1fr; }
  .hiw-connector { display: none; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .einv-countries { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 2.5rem 1.5rem; }
  .platform-bar-label { display: none; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}
