/* ExportMadhi marketing site — shares the exact brand tokens used in the
   Angular app (webapp/src/assets/scss/custom/_variables.scss) so the
   marketing site and the product never look like two different brands. */

:root {
  --primary: #5e72e4;
  --info: #11cdef;
  --default: #172b4d;
  --success: #2dce89;
  --warning: #fb6340;
  --danger: #f5365c;
  --muted: #8898aa;
  --body-text: #525f7f;
  --bg-soft: #f6f9fc;
  --border: #e9ecf3;
  --brand-gradient: linear-gradient(87deg, var(--primary) 0%, var(--info) 100%);
  --shadow-sm: 0 1px 3px rgba(50, 50, 93, 0.08);
  --shadow-md: 0 8px 24px -8px rgba(50, 50, 93, 0.18), 0 4px 10px -4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(23, 43, 77, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--body-text);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { color: var(--default); font-weight: 700; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(94, 114, 228, 0.09);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-title h2 { font-size: 2.1rem; margin-bottom: 14px; }
.section-title p { font-size: 1.05rem; color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(94, 114, 228, 0.55); }
.btn-outline {
  background: transparent;
  color: var(--default);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-brand img { height: 34px; }
.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-links a.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--default);
}
.navbar-links a.nav-link:hover { color: var(--primary); }
.navbar-actions { display: flex; align-items: center; gap: 14px; }
.navbar-toggle { display: none; }

@media (max-width: 860px) {
  .navbar-links { display: none; }
  .navbar-toggle {
    display: inline-flex;
    background: none; border: none; font-size: 1.4rem; color: var(--default); cursor: pointer;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(17, 205, 239, 0.10), transparent 60%),
    radial-gradient(900px 420px at -5% 10%, rgba(94, 114, 228, 0.10), transparent 60%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: 2.9rem; line-height: 1.18; letter-spacing: -0.5px; margin-bottom: 20px; }
.hero h1 span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.hero-trust .dots { display: flex; gap: -6px; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
}

/* ---------- Product preview mock (stylized — not a live screenshot yet) ---------- */
.preview-frame {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.preview-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #f0f3f9;
  border-bottom: 1px solid var(--border);
}
.preview-chrome span { width: 10px; height: 10px; border-radius: 50%; background: #d7dce5; }
.preview-body { padding: 22px; background: var(--bg-soft); }
.preview-header {
  background: var(--brand-gradient);
  border-radius: 10px;
  padding: 16px 18px;
  color: #fff;
  margin-bottom: 16px;
}
.preview-header .tag { font-size: 0.65rem; letter-spacing: 1px; text-transform: uppercase; opacity: 0.85; }
.preview-header .title { font-size: 1.05rem; font-weight: 700; margin-top: 2px; }
.preview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.preview-card { background: #fff; border-radius: 10px; padding: 12px; box-shadow: var(--shadow-sm); }
.preview-card .k { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); font-weight: 700; }
.preview-card .v { font-size: 1.05rem; font-weight: 700; color: var(--default); margin-top: 4px; }
.preview-gauge-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.preview-gauge { background: #fff; border-radius: 10px; padding: 16px; box-shadow: var(--shadow-sm); text-align: center; }
.gauge-arc {
  width: 110px; height: 55px; margin: 0 auto 8px;
  border-radius: 110px 110px 0 0;
  background: conic-gradient(from 180deg, var(--success) 0deg 30deg, var(--warning) 30deg 55deg, var(--danger) 55deg 90deg, #e9ecf3 90deg 180deg);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 44px, #000 45px);
  mask: radial-gradient(circle at 50% 100%, transparent 44px, #000 45px);
}
.preview-gauge .glabel { font-size: 0.7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.preview-timeline { background: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.preview-timeline .t-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.78rem; }
.preview-timeline .t-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.preview-timeline .t-item b { color: var(--default); }
.preview-caption { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 12px; }

/* ---------- Logo strip ---------- */
.logo-strip { padding: 34px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logo-strip .container { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.logo-strip .pill {
  font-size: 0.82rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px;
}

/* ---------- Compliance risk ---------- */
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 40px; }
.risk-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: 14px;
  padding: 26px 24px;
}
.risk-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: var(--danger); margin-bottom: 16px;
  background: rgba(245, 54, 92, 0.09);
}
.risk-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.risk-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.risk-callout {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px;
}
.risk-callout .risk-callout-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; background: var(--brand-gradient);
}
.risk-callout h4 { font-size: 1.02rem; margin-bottom: 6px; }
.risk-callout p { margin: 0; font-size: 0.92rem; color: var(--body-text); }

@media (max-width: 900px) {
  .risk-grid { grid-template-columns: 1fr; }
  .risk-callout { flex-direction: column; }
}

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; margin-bottom: 18px;
  background: var(--brand-gradient);
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--default); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h4 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.85rem; color: var(--muted); margin: 0; }

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.popular { border-color: var(--primary); box-shadow: var(--shadow-md); }
.price-card .badge-popular {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand-gradient); color: #fff; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.price-card .plan-name { font-size: 1.15rem; font-weight: 700; color: var(--default); margin-bottom: 4px; }
.price-card .plan-turnover { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; min-height: 34px; }
.price-card .plan-price { font-size: 2.1rem; font-weight: 800; color: var(--default); }
.price-card .plan-price span { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.price-card .plan-billed { font-size: 0.78rem; color: var(--muted); margin-top: 2px; margin-bottom: 16px; }
.price-card .plan-features { margin: 22px 0; flex: 1; }
.price-card .plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.87rem; padding: 7px 0; color: var(--body-text);
}
.price-card .plan-features li i { color: var(--success); margin-top: 2px; }

@media (max-width: 1000px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--brand-gradient);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; font-size: 1.9rem; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 28px; font-size: 1.02rem; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.cta-banner .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.cta-banner .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta-banner .btn-primary:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.15); }

/* ---------- Footer ---------- */
.footer { background: var(--default); color: rgba(255,255,255,0.7); padding: 56px 0 28px; }
.footer .footer-top {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 36px; margin-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 30px; filter: brightness(0) invert(1); }
.footer-brand-text { color: #fff; font-weight: 700; font-size: 1.05rem; }
.footer-col h5 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; }

@media (max-width: 700px) {
  .footer .footer-top { flex-direction: column; }
}

/* ---------- About page ---------- */
.about-hero { padding: 70px 0 20px; text-align: center; }
.about-hero .container { max-width: 720px; }
.about-hero h1 { font-size: 2.4rem; line-height: 1.2; margin-bottom: 18px; }
.about-hero p.lead { font-size: 1.08rem; color: var(--muted); margin: 0 auto; }

.founder-card {
  display: flex; align-items: stretch; gap: 44px;
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: 40px; box-shadow: var(--shadow-md); max-width: 900px; margin: 0 auto;
}
.founder-photo {
  width: 300px; height: 400px; border-radius: 20px; object-fit: cover;
  object-position: top center;
  flex-shrink: 0; background: var(--bg-soft); border: 1px solid var(--border);
}
.founder-photo-fallback {
  width: 300px; height: 400px; border-radius: 20px; flex-shrink: 0;
  background: var(--brand-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; font-weight: 800;
}
.founder-card .founder-copy { display: flex; flex-direction: column; justify-content: center; }
.founder-name { font-size: 1.6rem; font-weight: 800; color: var(--default); margin-bottom: 4px; }
.founder-title { font-size: 0.95rem; color: var(--primary); font-weight: 700; margin-bottom: 18px; }
.founder-card p { margin: 0; font-size: 1rem; }
.founder-quote {
  font-style: italic; color: var(--body-text); margin-top: 18px !important;
  border-left: 3px solid var(--primary); padding-left: 16px; font-size: 1.02rem !important;
}

@media (max-width: 760px) {
  .founder-card { flex-direction: column; text-align: center; padding: 28px; max-width: 460px; }
  .founder-photo, .founder-photo-fallback { width: 100%; height: 360px; }
  .founder-quote { text-align: left; }
}

.story-timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 74px; }
.story-timeline::before {
  content: ''; position: absolute; left: 23px; top: 6px; bottom: 6px; width: 2px;
  background: var(--border);
}
.story-item { position: relative; padding-bottom: 44px; }
.story-item:last-child { padding-bottom: 0; }
.story-marker {
  position: absolute; left: -74px; top: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-gradient); color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: var(--shadow-sm);
}
.story-content h3 { font-size: 1.08rem; margin-bottom: 8px; }
.story-content p { margin: 0; font-size: 0.94rem; color: var(--muted); }

@media (max-width: 600px) {
  .story-timeline { padding-left: 56px; }
  .story-marker { left: -56px; width: 40px; height: 40px; font-size: 0.95rem; }
}

/* ---------- Register page ---------- */
.auth-wrap {
  min-height: calc(100vh - 76px);
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(17, 205, 239, 0.10), transparent 60%),
    radial-gradient(900px 420px at -5% 10%, rgba(94, 114, 228, 0.10), transparent 60%);
  padding: 60px 20px;
}
.auth-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 44px 40px; width: 100%; max-width: 480px;
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 8px; text-align: center; }
.auth-card p.sub { text-align: center; color: var(--muted); font-size: 0.92rem; margin-bottom: 30px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--default); margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px; border-radius: 8px; border: 1.5px solid var(--border);
  font-size: 0.92rem; font-family: inherit; color: var(--default); outline: none;
  transition: border-color 0.15s ease;
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-footer-note { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 20px; }
.success-box { text-align: center; padding: 10px 0; }
.success-box .icon { font-size: 3rem; margin-bottom: 14px; }
