/* ============================================================================
   SwaDharma DMS — Landing page styles
   "Sacred enterprise" — warm terracotta & saffron on deep teal, temple-rooted,
   editorial serif headings (Fraunces) + clean grotesk body (Plus Jakarta Sans).
   ========================================================================== */

:root {
  /* surfaces */
  --cream: #fffdfb;
  --cream-2: #fff7f2;
  --sand: #f7ede5;
  --sand-2: #f1e1d6;
  /* ink */
  --ink: #211714;
  --ink-soft: #4a3730;
  --muted: #786059;
  --line: #ead8cf;
  --line-soft: #f0e2d9;
  /* brand */
  --terra: #c4472d;
  --terra-dark: #a93b28;
  --terra-deep: #8a3120;
  --terra-soft: #fff0ea;
  --teal: #173436;
  --teal-2: #21494a;
  --teal-3: #0f2526;
  --gold: #d99a2b;
  --gold-soft: #f7e6c4;
  --green: #0f7359;
  --green-soft: #dcfae6;
  --amber: #9a6500;
  --red: #b23b2c;
  /* system */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(90, 45, 30, .06), 0 4px 12px rgba(90, 45, 30, .05);
  --shadow-md: 0 8px 24px rgba(90, 45, 30, .09), 0 24px 48px rgba(90, 45, 30, .08);
  --shadow-lg: 0 20px 50px rgba(50, 25, 15, .18), 0 40px 90px rgba(50, 25, 15, .12);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--teal); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 16px; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(196, 71, 45, .35);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --bw: 1px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em;
  padding: 12px 20px; border-radius: 999px; border: var(--bw) solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-solid { background: var(--terra); color: #fff; box-shadow: 0 6px 16px rgba(196, 71, 45, .28); }
.btn-solid:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(196, 71, 45, .34); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--sand); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong, #d6b8a8); border-width: 1.5px; }
.btn-outline:hover { border-color: var(--terra); color: var(--terra-dark); transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============================================================ NAV */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 251, .78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(90, 45, 30, .06); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav-brand img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--sand); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================ HERO */
.hero { position: relative; padding: 78px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 520px at 78% -8%, var(--terra-soft) 0%, transparent 55%),
    radial-gradient(900px 600px at 0% 100%, #fff4ec 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.hero-glow {
  position: absolute; z-index: -1; top: -120px; right: -80px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(217, 154, 43, .22), transparent 62%);
  filter: blur(8px); pointer-events: none;
}
.hero-chakra {
  position: absolute; z-index: -1; width: 560px; height: 560px; top: -110px; right: -150px;
  color: var(--terra); opacity: .06; pointer-events: none;
  animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  color: var(--terra-dark); background: var(--terra-soft);
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(196, 71, 45, .16);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 4px rgba(196, 71, 45, .16); }

.hero h1 {
  font-size: clamp(2.15rem, 5.4vw, 4rem); margin: 22px 0 0;
  letter-spacing: -0.03em;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); margin-top: 22px; max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.hero-trust svg { width: 1.1em; height: 1.1em; color: var(--green); }

/* hero product preview */
.hero-preview { position: relative; perspective: 1600px; }
.preview-window {
  display: grid; grid-template-columns: 64px 1fr; min-height: 340px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotateY(-9deg) rotateX(3deg) translateZ(0);
  transition: transform .6s var(--ease);
}
.hero-preview:hover .preview-window { transform: rotateY(-3deg) rotateX(1deg); }
.preview-rail {
  background: linear-gradient(180deg, var(--teal-2), var(--teal)); color: #cfe3e4;
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 16px 0;
}
.rail-brand {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px;
  background: linear-gradient(145deg, var(--gold-soft), #fff); color: var(--terra-dark);
  font-weight: 800; font-size: 1rem;
}
.rail-item { width: 30px; height: 9px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.rail-item.is-active { background: var(--terra); width: 34px; }
.preview-body { padding: 18px 18px 20px; background: linear-gradient(180deg, #fff, var(--cream-2)); }
.preview-head { display: flex; align-items: flex-start; justify-content: space-between; }
.ph-kicker { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--terra-dark); }
.ph-title { display: block; font-family: "Fraunces", serif; font-size: 1.15rem; margin-top: 3px; color: var(--ink); }
.ph-bell { position: relative; color: var(--teal-2); }
.ph-bell svg { width: 20px; height: 20px; }
.ph-bell i { position: absolute; top: -5px; right: -6px; background: var(--terra); color: #fff; font-size: .6rem; font-weight: 700; font-style: normal; min-width: 15px; height: 15px; border-radius: 8px; display: grid; place-items: center; padding: 0 3px; }
.preview-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.kpi { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 11px 13px; }
.kpi-label { font-size: .68rem; font-weight: 600; color: var(--muted); display: block; }
.kpi-value { font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 600; color: var(--ink); display: block; line-height: 1.1; margin-top: 2px; }
.kpi-value.warn { color: var(--amber); }
.kpi-value.crit { color: var(--red); }
.kpi-foot { font-size: .64rem; font-weight: 600; color: var(--muted); }
.kpi-foot.up { color: var(--green); }
.kpi-foot.warn { color: var(--amber); }
.kpi-foot.crit { color: var(--red); }
.preview-list { margin-top: 12px; display: grid; gap: 7px; }
.pl-row { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line-soft); border-radius: 9px; padding: 8px 10px; font-size: .72rem; font-weight: 600; color: var(--ink-soft); }
.pl-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.pl-dot.crit { background: var(--red); }
.pl-dot.warn { background: var(--gold); }
.pl-dot.ok { background: var(--green); }
.pl-main { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-tag { font-size: .62rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pl-tag.crit { background: var(--red-soft, #fee4e2); color: var(--red); }
.pl-tag.warn { background: var(--gold-soft); color: var(--amber); }
.pl-tag.ok { background: var(--green-soft); color: var(--green); }

.preview-badge {
  position: absolute; bottom: -22px; left: -26px; z-index: 2;
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-md); animation: floaty 5s var(--ease) infinite;
}
.preview-badge svg { width: 22px; height: 22px; color: var(--terra); }
.preview-badge strong { display: block; font-size: .82rem; font-family: "Fraunces", serif; }
.preview-badge span { font-size: .72rem; color: var(--muted); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ============================================================ STATS */
.stats { padding: 8px 0 12px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: var(--teal); color: #eaf6f6; border-radius: var(--radius-lg);
  padding: 34px 28px; box-shadow: var(--shadow-md);
  background-image: radial-gradient(700px 240px at 100% 0%, rgba(217, 154, 43, .14), transparent 60%);
}
.stat { text-align: center; border-right: 1px solid rgba(255, 255, 255, .12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: "Fraunces", serif; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.stat span { font-size: 0.85rem; font-weight: 600; color: #b9d2d2; letter-spacing: .01em; }

/* ============================================================ section headings */
section { position: relative; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-dark); margin-bottom: 14px; }
.section-eyebrow.on-dark { color: var(--gold); }
.section-head h2, .problem-copy h2, .cap-copy h2, .security-copy h2, .contact-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); letter-spacing: -0.025em; }
.section-sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ============================================================ PROBLEM / SOLUTION */
.problem { padding: 100px 0; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.problem-copy h2 { margin-bottom: 18px; }
.problem-copy > p { color: var(--ink-soft); font-size: 1.08rem; }
.pain-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.pain-list li { display: flex; gap: 13px; align-items: flex-start; font-weight: 600; color: var(--ink-soft); }
.pain-list li::before {
  content: ""; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px;
  background: var(--terra-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c4472d'%3E%3Cpath d='M12 3 2 21h20L12 3Zm1 14h-2v2h2v-2Zm0-7h-2v6h2v-6Z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.solution-card {
  background: linear-gradient(160deg, var(--teal-2), var(--teal) 70%, var(--teal-3));
  color: #eaf6f6; border-radius: var(--radius-lg); padding: 40px 36px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.solution-card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(217, 154, 43, .2), transparent 65%);
}
.solution-card h3 { color: #fff; font-size: 1.55rem; margin: 14px 0 12px; }
.solution-card > p { color: #c3dadb; }
.solution-points { display: grid; gap: 16px; margin-top: 26px; }
.solution-points > div { display: flex; gap: 13px; align-items: center; }
.solution-points svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--gold); }
.solution-points span { font-weight: 600; font-size: .96rem; color: #e7f3f3; }

/* ============================================================ MODULES */
.modules { padding: 100px 0; background: linear-gradient(180deg, var(--cream-2), var(--cream)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.module-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
  background: linear-gradient(var(--terra), var(--gold)); opacity: 0; transition: opacity .3s;
}
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong, #d6b8a8); }
.module-card:hover::before { opacity: 1; }
.module-ico {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px;
  background: var(--terra-soft); color: var(--terra-dark); margin-bottom: 18px;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.module-ico svg { width: 25px; height: 25px; }
.module-card:hover .module-ico { background: var(--terra); color: #fff; transform: rotate(-6deg) scale(1.06); }
.module-card h3 { font-size: 1.28rem; margin-bottom: 9px; }
.module-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.58; }

/* ============================================================ CAPABILITIES */
.capabilities { padding: 100px 0; }
.cap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 90px; }
.cap-row:last-child { margin-bottom: 0; }
.cap-row.reverse .cap-copy { order: 2; }
.cap-copy h2 { margin: 12px 0 14px; }
.cap-copy > p { color: var(--ink-soft); font-size: 1.06rem; }
.cap-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 13px; }
.cap-list li { position: relative; padding-left: 32px; font-weight: 600; color: var(--ink-soft); }
.cap-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f7359'%3E%3Cpath d='m9.2 16.6-4-4 1.4-1.4 2.6 2.6 8.2-8.2L18.8 7l-9.6 9.6Z'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.cap-visual { display: grid; }
.chips-card, .reminder-card, .report-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-md);
}
.chips-card { display: flex; flex-wrap: wrap; gap: 11px; background: linear-gradient(150deg, #fff, var(--cream-2)); }
.chip {
  font-size: 0.86rem; font-weight: 600; padding: 9px 15px; border-radius: 999px;
  background: var(--sand); color: var(--ink-soft); border: 1px solid var(--line);
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.chip:hover { background: var(--terra-soft); color: var(--terra-dark); transform: translateY(-2px); }

.reminder-card { display: grid; gap: 12px; }
.rc-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--cream); }
.rc-row.crit { border-left: 4px solid var(--red); }
.rc-row.warn { border-left: 4px solid var(--gold); }
.rc-row.info { border-left: 4px solid var(--blue, #2b5f8f); }
.rc-row.ok { border-left: 4px solid var(--green); }
.rc-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line); flex: 0 0 auto; }
.rc-row.crit .rc-ic { color: var(--red); }
.rc-row.warn .rc-ic { color: var(--amber); }
.rc-row.info .rc-ic { color: #2b5f8f; }
.rc-row.ok .rc-ic { color: var(--green); }
.rc-ic svg { width: 19px; height: 19px; }
.rc-row strong { display: block; font-size: .95rem; font-family: "Fraunces", serif; }
.rc-row span { font-size: .82rem; color: var(--muted); }

.report-card { display: grid; gap: 16px; }
.rep-head { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rep-head span:last-child { color: var(--terra-dark); }
.rep-bar { display: flex; flex-direction: column-reverse; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.rep-bar i {
  display: block; height: 12px; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, var(--terra), var(--terra-dark));
  transition: width 1.1s var(--ease);
}
.rep-bar i.ok { background: linear-gradient(90deg, var(--green), #0a5a45); }
.rep-bar i.warn { background: linear-gradient(90deg, var(--gold), #b97e16); }
.cap-row.in .rep-bar i { width: var(--w); }
.rep-export { align-self: flex-start; margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--terra-dark); background: var(--terra-soft); border: 1px solid rgba(196,71,45,.18); padding: 9px 15px; border-radius: 999px; }
.rep-export svg { width: 16px; height: 16px; }

/* ============================================================ AUDIENCE */
.audience { padding: 100px 0; background: linear-gradient(165deg, var(--teal) 0%, var(--teal-3) 100%); color: #eaf6f6; overflow: hidden; }
.audience .section-head h2 { color: #fff; }
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aud-card {
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 28px 24px; transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.aud-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .08); border-color: rgba(217, 154, 43, .4); }
.aud-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: rgba(217, 154, 43, .16); color: var(--gold); margin-bottom: 18px; }
.aud-ico svg { width: 26px; height: 26px; }
.aud-card h3 { color: #fff; font-size: 1.22rem; margin-bottom: 8px; }
.aud-card p { color: #b9d2d2; font-size: 0.92rem; }

/* ============================================================ SECURITY */
.security { padding: 100px 0; }
.security-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 60px; align-items: center; }
.security-copy h2 { margin: 12px 0 16px; }
.security-copy > p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 28px; }
.security-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sec-item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.sec-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sec-item svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--terra); }
.sec-item strong { display: block; font-family: "Fraunces", serif; font-size: 1rem; margin-bottom: 3px; }
.sec-item span { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

/* ============================================================ CONTACT */
.contact { padding: 100px 0 110px; background: linear-gradient(180deg, var(--cream-2), var(--sand)); border-top: 1px solid var(--line-soft); }
.contact-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 64px; align-items: start; }
.contact-copy { position: relative; padding-top: 8px; }
.contact-chakra { position: absolute; top: -40px; left: -60px; width: 240px; height: 240px; color: var(--terra); opacity: .07; z-index: 0; }
.contact-copy > * { position: relative; z-index: 1; }
.contact-copy h2 { margin: 12px 0 16px; }
.contact-copy > p { color: var(--ink-soft); font-size: 1.06rem; }
.contact-assure { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-assure li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-soft); }
.contact-assure svg { width: 20px; height: 20px; color: var(--green); flex: 0 0 auto; }
.contact-assure a { color: var(--terra-dark); text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-lg);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 7px; }
.field > span i { color: var(--terra); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.97rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #b09a91; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terra); background: #fff; box-shadow: 0 0 0 4px rgba(196, 71, 45, .12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(178, 59, 44, .12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form .btn-block { margin-top: 6px; }
.form-status { margin-top: 14px; font-weight: 600; font-size: 0.92rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.form-fineprint { margin-top: 14px; font-size: 0.78rem; color: var(--muted); text-align: center; line-height: 1.5; }

/* ============================================================ FOOTER */
.site-footer { background: var(--teal-3); color: #b9d2d2; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand img { height: 50px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { margin-top: 16px; max-width: 38ch; font-size: 0.92rem; line-height: 1.6; color: #9bb6b6; }
.footer-col h4 { color: #fff; font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.94rem; color: #b9d2d2; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 0.84rem; color: #87a3a3; }

/* ============================================================ reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.module-grid .reveal.in:nth-child(2) { transition-delay: .05s; }
.module-grid .reveal.in:nth-child(3) { transition-delay: .1s; }
.module-grid .reveal.in:nth-child(5) { transition-delay: .05s; }
.module-grid .reveal.in:nth-child(6) { transition-delay: .1s; }
.audience-grid .reveal.in:nth-child(2) { transition-delay: .07s; }
.audience-grid .reveal.in:nth-child(3) { transition-delay: .14s; }
.audience-grid .reveal.in:nth-child(4) { transition-delay: .21s; }

/* ============================================================ RESPONSIVE */
@media (max-width: 960px) {
  .hero-grid, .problem-grid, .cap-row, .cap-row.reverse, .security-grid, .contact-grid { grid-template-columns: 1fr; }
  .cap-row { gap: 36px; margin-bottom: 64px; }
  .cap-row.reverse .cap-copy { order: 0; }
  .cap-visual { max-width: 520px; }
  .hero-preview { margin-top: 20px; max-width: 520px; }
  .preview-window { transform: none; }
  .hero-preview:hover .preview-window { transform: none; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .security-points { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .3s;
    box-shadow: var(--shadow-md); margin: 0;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 70px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px 8px; padding: 28px 18px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat { border-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .12); }
  .module-grid, .audience-grid, .security-points, .field-row { grid-template-columns: 1fr; }
  .problem, .modules, .capabilities, .audience, .security, .contact { padding: 64px 0; }
  .solution-card, .contact-form { padding: 26px 22px; }
  .preview-badge { left: 0; bottom: -18px; }
  .hero-cta .btn { flex: 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ============================================================ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-chakra { animation: none; }
}
