/* NavAse Technologies — shared design system */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f7f5f0;
  --bg-alt: #eef1f6;
  --card: #ffffff;
  --card-hover: #fdfcfa;
  --border: rgba(19, 25, 45, 0.10);
  --border-strong: rgba(19, 25, 45, 0.18);
  --text: #13192d;
  --text-muted: #5a6278;
  --text-faint: #8991a4;
  --accent: #2f6fed;
  --accent-ink: #1d4fc4;
  --accent-2: #1c7ed6;
  --accent-warm: #c1631f;
  --accent-gradient: var(--accent);
  --success: #1e8e5a;
  --amber: #a8690a;
  --danger: #c1432e;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 20px 45px -26px rgba(19, 25, 45, 0.28);
  --max-width: 1180px;
  --font: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  /* The page has ~42px of horizontal overflow from somewhere at
     narrow widths (pre-existing, found while testing this redesign)
     - without this, opening the mobile nav auto-scrolls to it and
     visually shifts every position:fixed element sideways. */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 420px at 88% -8%, rgba(47, 111, 237, 0.07), transparent 62%),
    radial-gradient(520px 360px at -6% 18%, rgba(193, 99, 31, 0.06), transparent 60%),
    var(--bg);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-wrap: balance;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: rgba(47, 111, 237, 0.08);
  border: 1px solid rgba(47, 111, 237, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}

.brand img { height: 34px; width: auto; }

.brand-word {
  color: var(--text);
}

.brand-word .accent { color: var(--accent-ink); }

.footer-brand .brand-word { font-size: 18px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover { color: var(--text); background: rgba(19, 25, 45, 0.05); }
.nav-links a.active { color: var(--accent-ink); background: rgba(47, 111, 237, 0.12); }

.pill-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(19, 25, 45, 0.07);
  color: var(--text-faint);
}

.pill-tag.pill-integrated {
  background: rgba(30, 142, 90, 0.13);
  color: var(--success);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(47, 111, 237, 0.55);
}

.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 14px 32px -10px rgba(29, 79, 196, 0.6); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(19, 25, 45, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover { background: rgba(19, 25, 45, 0.06); border-color: rgba(19, 25, 45, 0.28); }

.btn-ghost {
  color: var(--text-muted);
}

.btn-ghost:hover { color: var(--text); }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  padding: 86px 0 60px;
}

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

.hero h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 20px 0 18px;
  font-weight: 600;
}

.hero h1 .grad {
  color: var(--accent-warm);
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}

.hero-visual img { width: 100%; height: auto; }

.hero-visual iframe {
  width: 100%;
  /* Matches the embedded card's own sizing (aspect-[1.05/1] at the
     width this iframe actually renders at, plus its p-1.5 padding) -
     computed from its Tailwind classes rather than guessed, so the
     card fills the frame with no dead space and no scroll overflow. */
  aspect-ratio: 1.1 / 1;
  border: 0;
  display: block;
  overflow: hidden;
}

/* Ambient logo animation, not a product screenshot - no card frame,
   just the video dissolving into the page's own background via a
   soft radial mask, so there's never a hard rectangular edge no
   matter how close the video's own corner color is to --bg. */
.hero-visual.hero-video {
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  align-self: start;
  margin-top: -18px;
}

.hero-visual.hero-video video {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 85%, transparent 105%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 85%, transparent 105%);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.trust-row .item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.trust-row .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- Section shells ---------- */

section { padding: 84px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }

.section-head h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -0.01em;
  margin: 16px 0 14px;
  font-weight: 600;
}

.section-head p { color: var(--text-muted); font-size: 17px; margin: 0; }

.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- USP grid ---------- */

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.usp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.usp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 111, 237, 0.32);
  background: var(--card-hover);
}

.usp-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(47, 111, 237, 0.10);
  border: 1px solid rgba(47, 111, 237, 0.24);
  font-size: 20px;
  margin-bottom: 18px;
}

.usp-card h3 { font-size: 18px; margin: 0 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.usp-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ---------- Video block ---------- */

.video-block {
  max-width: 900px;
  margin: 0 auto;
}

.video-block.wide { max-width: 1080px; }

.demo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
  background: #0b1220;
}

.demo-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-shell {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  background: #0b1220;
}

.video-shell img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.4s ease;
}

.video-shell:hover img { opacity: 0.72; transform: scale(1.02); }

.play-btn {
  position: absolute; inset: 0;
  margin: auto;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  cursor: pointer;
  box-shadow: 0 0 0 14px rgba(47, 111, 237, 0.16), 0 14px 40px -10px rgba(47, 111, 237, 0.7);
  transition: transform 0.15s ease;
}

.video-shell:hover .play-btn { transform: scale(1.06); }

.video-badge {
  position: absolute;
  left: 20px; bottom: 18px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(5, 8, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d8dde8;
  backdrop-filter: blur(6px);
}

.video-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 20px;
}

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 13, 22, 0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  width: 100%; max-width: 920px;
  background: #0b0e16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 100px -20px rgba(10, 13, 22, 0.55);
}

.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}

.modal-close:hover { background: rgba(255,255,255,0.18); }

.modal-box video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }

.video-fallback {
  padding: 44px 40px;
  text-align: center;
  color: #aab1c2;
  font-size: 15px;
}

.video-fallback strong { color: #fff; display: block; font-size: 19px; margin-bottom: 10px; }

.video-fallback code {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: #7fb4f0;
}

/* ---------- Products grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease;
  position: relative;
}

.product-card:hover { transform: translateY(-4px); border-color: rgba(47, 111, 237, 0.32); }

.product-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: rgba(47, 111, 237, 0.10);
  border: 1px solid rgba(47, 111, 237, 0.24);
}

.product-card h3 { margin: 0; font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

.product-card p { margin: 0; color: var(--text-muted); font-size: 14px; flex: 1; }

.status-chip {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-live { background: rgba(30, 142, 90, 0.13); color: var(--success); border: 1px solid rgba(30, 142, 90, 0.3); }
.status-integrated { background: rgba(28, 126, 214, 0.12); color: var(--accent-2); border: 1px solid rgba(28, 126, 214, 0.28); }
.status-soon { background: rgba(168, 105, 10, 0.12); color: var(--amber); border: 1px solid rgba(168, 105, 10, 0.28); }

.product-card .card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- CTA band ---------- */

.cta-band {
  border-radius: var(--radius-lg);
  padding: 56px;
  background: linear-gradient(135deg, rgba(47,111,237,0.09), rgba(193,99,31,0.06));
  border: 1px solid rgba(47, 111, 237, 0.20);
  text-align: center;
}

.cta-band h2 { margin: 0 0 12px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; letter-spacing: -0.01em; }
.cta-band p { margin: 0 0 28px; color: var(--text-muted); font-size: 16px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { padding: 56px 0 36px; border-top: 1px solid var(--border); }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}

.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 320px; margin: 0; }
.footer-brand p.footer-founder { margin-top: 10px; color: var(--text-faint); }

.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin: 0 0 14px; font-family: var(--font); font-weight: 700; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-col span.footer-text { display: block; color: var(--text-muted); font-size: 14.5px; margin-bottom: 10px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Module pillars (ERP page) ---------- */

.pillar {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  padding: 54px 0;
  border-bottom: 1px solid var(--border);
}

.pillar:last-child { border-bottom: none; }
.pillar:nth-child(even) { direction: rtl; }
.pillar:nth-child(even) > * { direction: ltr; }

.pillar-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: rgba(47, 111, 237, 0.10);
  border: 1px solid rgba(47, 111, 237, 0.24);
  margin-bottom: 20px;
}

.pillar h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 12px; }
.pillar > div > p.desc { color: var(--text-muted); font-size: 15.5px; margin: 0 0 22px; }

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text);
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.feature-list li:first-child { border-top: none; }

.feature-list .check {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(30, 142, 90, 0.14);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  margin-top: 1px;
}

.pillar-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

/* mock app chrome used for stylised dashboard previews (sample data only) */

.mock-window {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mock-titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  background: rgba(19, 25, 45, 0.025);
  border-bottom: 1px solid var(--border);
}

.mock-titlebar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(19, 25, 45, 0.16); }
.mock-titlebar .label { margin-left: 8px; font-size: 12px; color: var(--text-faint); font-weight: 600; }

.mock-body { padding: 16px; }

.mock-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }

.mock-stat {
  background: rgba(19, 25, 45, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.mock-stat .num { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mock-stat .lbl { font-size: 11px; color: var(--text-faint); margin-top: 2px; }

.mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: rgba(19, 25, 45, 0.015);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

.mock-row .tag { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.tag-green { background: rgba(30,142,90,0.14); color: var(--success); }
.tag-amber { background: rgba(168,105,10,0.13); color: var(--amber); }
.tag-blue { background: rgba(28,126,214,0.13); color: var(--accent-2); }

/* ---------- Preview gallery (ERP page) ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.gallery-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gallery-card .frame { padding: 18px; }

.gallery-card .caption {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.gallery-card .caption h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; font-family: var(--font-display); }
.gallery-card .caption p { margin: 0; font-size: 13px; color: var(--text-muted); }

.gallery-card.wide { grid-column: 1 / -1; }
.gallery-card.wide img { width: 100%; height: auto; display: block; }

/* ---------- Coming soon page ---------- */

.soon-shell {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.soon-shell .icon-big {
  width: 84px; height: 84px;
  margin: 0 auto 26px;
  border-radius: 22px;
  background: rgba(47, 111, 237, 0.10);
  border: 1px solid rgba(47, 111, 237, 0.24);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}

.soon-shell h1 { font-size: clamp(32px, 4.2vw, 46px); margin: 0 0 16px; font-weight: 600; letter-spacing: -0.01em; }
.soon-shell p { color: var(--text-muted); font-size: 17px; max-width: 480px; margin: 0 auto 32px; }
.soon-shell .hero-actions { justify-content: center; }

.roadmap-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.roadmap-pill {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar, .pillar:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  /* Sign In + the primary CTA + the hamburger together overflow a
     narrow header - Sign In moves into the mobile nav drawer below
     instead (found while testing this redesign on mobile). */
  .header-actions .btn-secondary { display: none; }
  .usp-grid, .product-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .mock-stat-row { grid-template-columns: 1fr; }
}

/* mobile nav drawer */

.mobile-nav {
  position: fixed;
  top: 76px; left: 0; right: 0;
  /* Explicit height, not inset's implied top+bottom-derived auto -
     a position:fixed + display:flex box doesn't reliably resolve
     "auto" height from top+bottom alone (pre-existing quirk, found
     while testing this redesign - unrelated to the color/theme work
     itself, but broke mobile nav entirely so worth fixing here). */
  height: calc(100vh - 76px);
  overflow-y: auto;
  background: var(--bg);
  z-index: 99;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  padding: 16px 6px;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: #fbfaf7;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  transition: border-color 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row textarea { resize: vertical; min-height: 120px; }

.form-error {
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}

.form-row.has-error input,
.form-row.has-error textarea { border-color: var(--danger); }

.form-row.has-error .form-error { display: block; }

/* Honeypot field - present in the DOM for bots to fill in, invisible
   and unreachable by keyboard for real visitors. Never use display:none
   for this - some bots skip fields hidden that way. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.form-status {
  font-size: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  display: none;
  margin-top: 18px;
}

.form-status.show { display: block; }

.form-status.success {
  background: rgba(30, 142, 90, 0.08);
  border: 1px solid rgba(30, 142, 90, 0.26);
  color: var(--success);
}

.form-status.error {
  background: rgba(193, 67, 46, 0.08);
  border: 1px solid rgba(193, 67, 46, 0.26);
  color: var(--danger);
}

.otp-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 4px;
}

.otp-block input#cf-otp {
  max-width: 180px;
  letter-spacing: 0.3em;
  font-size: 18px;
  text-align: center;
}

.otp-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

#resendOtp {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
}

#resendOtp.disabled {
  color: var(--text-faint);
  pointer-events: none;
}

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.contact-info-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.contact-info-card > p { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.contact-method:first-of-type { border-top: none; padding-top: 0; }

.contact-method .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(47, 111, 237, 0.10);
  border: 1px solid rgba(47, 111, 237, 0.24);
  display: flex; align-items: center; justify-content: center;
  flex: none;
  font-size: 16px;
}

.contact-method .label { display: block; font-size: 12px; color: var(--text-faint); margin-bottom: 2px; }
.contact-method a, .contact-method span.value { color: var(--text); font-size: 14px; font-weight: 700; }
.contact-method a:hover { color: var(--accent-ink); }

/* ---------- WhatsApp floating button ---------- */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.55);
  z-index: 200;
  transition: transform 0.15s ease;
}

.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ---------- AI chat widget ---------- */

.ai-chat-float {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(47, 111, 237, 0.55);
  z-index: 200;
  cursor: pointer;
  color: #fff;
  font-size: 24px;
  transition: transform 0.15s ease;
}

.ai-chat-float:hover { transform: scale(1.08); }
.ai-chat-float svg { width: 26px; height: 26px; }

.ai-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: 360px;
  max-width: calc(100vw - 44px);
  height: 480px;
  max-height: calc(100vh - 120px);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -20px rgba(19, 25, 45, 0.35);
  z-index: 201;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-chat-panel[hidden] { display: none; }

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  flex: none;
}

.ai-chat-header .title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; }
.ai-chat-header .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none; }
.ai-chat-header .subtitle { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-faint); margin-top: 2px; }

.ai-chat-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 18px; cursor: pointer; line-height: 1; padding: 4px;
}

.ai-chat-close:hover { color: var(--text); }

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.ai-msg.bot {
  align-self: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.ai-msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ai-msg.typing { color: var(--text-faint); font-style: italic; }

.ai-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--border);
  flex: none;
}

.ai-chat-input-row input {
  flex: 1;
  min-width: 0;
  background: #fbfaf7;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 13.5px;
}

.ai-chat-input-row input:focus { outline: none; border-color: var(--accent); }

.ai-chat-input-row button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  flex: none;
  display: flex; align-items: center; justify-content: center;
}

.ai-chat-input-row button:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 480px) {
  .ai-chat-float { right: 14px; bottom: 78px; width: 52px; height: 52px; }
  .ai-chat-float svg { width: 23px; height: 23px; }
  .ai-chat-panel { right: 10px; bottom: 78px; width: calc(100vw - 20px); }
}

/* ---------- Scroll reveal (visual only - see js/reveal.js) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 0.7, 0.24, 1), transform 0.65s cubic-bezier(0.16, 0.7, 0.24, 1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-hero {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-hero.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-hero {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
