:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-alt: #f0f2f7;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e4e7ee;
  --primary: #0a0a0a;
  --primary-contrast: #ffffff;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15,23,42,.03);
  --shadow: 0 8px 24px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .04);
  --max: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--text); }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; color: var(--text); display: flex; align-items: center; gap: .6rem; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #0f172a, #334155);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .75rem;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { padding: 8px 14px; color: var(--text); font-weight: 500; border-radius: 8px; font-size: .95rem; }
.nav-links a:hover { background: var(--surface-alt); color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--primary); color: var(--primary-contrast); }
.btn-primary:hover { background: #1f2937; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* ---------- HERO ---------- */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(1000px 400px at 90% -10%, rgba(37,99,235,.12), transparent 70%),
    radial-gradient(900px 500px at -10% 20%, rgba(16,185,129,.08), transparent 70%),
    var(--bg);
}
.hero h1 { margin-bottom: .4em; }
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 0 2rem; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.kicker {
  display: inline-block; padding: 5px 12px; font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--muted); margin-bottom: 1.25rem;
}

/* ---------- SECTIONS ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .lead { margin-top: .6rem; }

/* ---------- GRIDS / CARDS ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--border); padding: 12px; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
}

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d6dae3; }
.card h3 { margin-top: 12px; }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--surface-alt);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* ---------- BLOG ---------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .cover { aspect-ratio: 16/9; background: var(--surface-alt); overflow: hidden; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 24px; }
.post-card h3 { margin: 6px 0 8px; }
.post-card .meta { color: var(--muted); font-size: .85rem; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose ul, .prose ol { font-size: 1.05rem; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }

/* ---------- FORMS ---------- */
.form { display: grid; gap: 14px; max-width: 560px; }
.input, input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=tel], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem;
  background: #fff; color: var(--text); transition: border-color .12s, box-shadow .12s;
}
.input:focus, input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
textarea { min-height: 110px; resize: vertical; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .help, .helptext, .form small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--danger); font-size: .85rem; }

/* ---------- MESSAGES ---------- */
.messages { margin: 18px 0; display: grid; gap: 8px; }
.msg { padding: 10px 14px; border-radius: var(--radius-sm); font-size: .92rem; border: 1px solid; }
.msg.success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.msg.error, .msg.warning { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.msg.info, .msg.debug { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ---------- FOOTER ---------- */
.footer { background: #0a0a0a; color: #d4d4d8; margin-top: 80px; padding: 56px 0 28px; }
.footer a { color: #d4d4d8; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer .grid { gap: 40px; }
.footer .bottom { border-top: 1px solid #262626; margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #a1a1aa; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- PORTAL / CMS LAYOUT ---------- */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: #0a0a0a; color: #e5e7eb; padding: 24px 16px; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { color: #fff; margin-bottom: 28px; padding: 0 8px; }
.sidebar .brand-mark { background: linear-gradient(135deg, #fff, #cbd5e1); color: #0a0a0a; }
.sidebar-section { color: #6b7280; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 14px 10px 6px; }
.sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  color: #d4d4d8; font-size: .92rem; font-weight: 500;
}
.sidebar a:hover { background: #171717; color: #fff; }
.sidebar a.active { background: #262626; color: #fff; }
.sidebar .logout { margin-top: auto; }

.app-main { padding: 28px 40px 80px; min-width: 0; }
.app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.app-header h1 { font-size: 1.75rem; margin: 0; }
.app-header .sub { color: var(--muted); margin-top: 2px; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .sidebar-section { display: none; }
  .app-main { padding: 20px; }
}

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat .label { color: var(--muted); font-size: .82rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 1.75rem; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }

/* ---------- TABLE ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.panel-head h2 { font-size: 1.05rem; margin: 0; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 22px; font-size: .92rem; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-alt); }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fafbfc; }
.empty { padding: 40px 22px; text-align: center; color: var(--muted); }

.actions { display: flex; gap: 8px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-muted { background: var(--surface-alt); color: var(--muted); }

/* reveal toggle for credentials */
.reveal { cursor: pointer; user-select: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.reveal[data-hidden="true"] { letter-spacing: .15em; }

/* ============================================================
   LANDING v2 — refined minimal design (inspired by Linear/Vercel/Stripe)
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --line: #eaecef;
  --line-2: #f1f2f4;
  --soft: #fafafa;
}

/* Announcement bar */
.annc {
  background: #0a0a0a; color: #fff; text-align: center;
  padding: 10px 16px; font-size: .85rem; letter-spacing: .01em;
}
.annc a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.annc .pill {
  display: inline-block; padding: 2px 8px; margin-right: 8px;
  background: #fff; color: #0a0a0a; border-radius: 999px; font-weight: 700; font-size: .7rem;
}

/* Navigation refinement */
.nav.nav-v2 { background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(10,10,10,.06); }
.nav-v2 .nav-links a { font-size: .9rem; color: #444; }
.nav-v2 .nav-links a:hover { color: #0a0a0a; background: transparent; }

/* Hero v2 — oversized type with subtle grid */
.hero-v2 {
  position: relative; overflow: hidden;
  padding: 120px 0 96px;
  background: #fff;
}
.hero-v2::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,10,10,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 40%, transparent 75%);
  pointer-events: none;
}
.hero-v2 .container { position: relative; text-align: center; }
.hero-v2 .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04);
  font-size: .82rem; font-weight: 500; color: #444; margin-bottom: 28px;
}
.hero-v2 .eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.hero-v2 h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  letter-spacing: -0.035em; font-weight: 700; line-height: 1.02;
  max-width: 18ch; margin: 0 auto .35em;
  background: linear-gradient(180deg, #0a0a0a 0%, #343434 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-v2 .sub {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: #525252;
  max-width: 620px; margin: 0 auto 36px; line-height: 1.55;
}
.hero-v2 .ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-v2 .ctas .btn { padding: 13px 22px; border-radius: 10px; }
.hero-v2 .ctas .btn-primary { background: #0a0a0a; }
.hero-v2 .ctas .btn-ghost {
  background: transparent; color: #0a0a0a; border: 1px solid var(--line);
}
.hero-v2 .ctas .btn-ghost:hover { border-color: #0a0a0a; background: #fff; }

/* Trust bar */
.trust {
  padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust .label { text-align: center; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #888; margin-bottom: 22px; }
.trust .logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust .logo { font-weight: 700; letter-spacing: -.02em; color: #a3a3a3; font-size: 1.1rem; }

/* Section container */
.sec { padding: 104px 0; background: #fff; }
.sec.alt { background: var(--soft); }
.sec .sec-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.sec .sec-head .tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: #f1f2f4; color: #0a0a0a; font-size: .75rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px;
}
.sec h2.title {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  letter-spacing: -0.025em; font-weight: 700; line-height: 1.1; margin: 0 0 .4em;
  color: #0a0a0a;
}
.sec .sub { font-size: 1.1rem; color: #525252; }

/* Feature grid v2 */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.feature {
  background: #fff; padding: 32px; display: flex; flex-direction: column; gap: 14px;
  transition: background .2s ease;
}
.feature:hover { background: #fafafa; }
.feature .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #0a0a0a; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; color: #0a0a0a; }
.feature p { margin: 0; color: #525252; font-size: .95rem; line-height: 1.55; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

/* Product preview mockup */
.preview-wrap {
  margin-top: 56px; padding: 24px; border-radius: 20px;
  background: linear-gradient(180deg, #f7f7f7, #ebebeb);
  border: 1px solid var(--line);
}
.preview {
  border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(10,10,10,.18), 0 10px 20px -10px rgba(10,10,10,.1);
}
.preview .chrome {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: #fafafa;
}
.preview .chrome .dot { width: 11px; height: 11px; border-radius: 999px; background: #e5e5e5; }
.preview .chrome .bar {
  flex: 1; height: 22px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  text-align: center; font-size: .75rem; color: #888; line-height: 22px;
}
.preview .app-ui { display: grid; grid-template-columns: 220px 1fr; min-height: 420px; }
.preview .app-ui aside { background: #0a0a0a; color: #fafafa; padding: 20px; }
.preview .app-ui aside .brand-m { font-weight: 700; margin-bottom: 24px; }
.preview .app-ui aside .nav-item {
  padding: 8px 10px; border-radius: 6px; font-size: .86rem; color: #d4d4d4; margin-bottom: 2px;
}
.preview .app-ui aside .nav-item.active { background: #1f1f1f; color: #fff; }
.preview .app-ui .pane { padding: 28px; }
.preview .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.preview .stat { padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.preview .stat .k { font-size: .72rem; text-transform: uppercase; color: #888; letter-spacing: .08em; }
.preview .stat .v { font-size: 1.4rem; font-weight: 700; color: #0a0a0a; margin-top: 4px; }
.preview .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.preview .row:last-child { border: 0; }
.preview .bdg { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .7rem; font-weight: 600; }
.preview .bdg.ok { background: #ecfdf5; color: #047857; }
.preview .bdg.warn { background: #fef3c7; color: #92400e; }
@media (max-width: 780px) { .preview .app-ui { grid-template-columns: 1fr; } .preview .app-ui aside { display: none; } }

/* Two-column "how" */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.how .step { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.how .step .n {
  width: 32px; height: 32px; border-radius: 8px; background: #0a0a0a; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px;
}
.how .step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.how .step p { margin: 0; color: #525252; font-size: .95rem; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } }

/* Testimonial */
.quote {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: 48px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
}
.quote p { font-size: 1.35rem; line-height: 1.5; letter-spacing: -0.01em; color: #0a0a0a; margin: 0 0 20px; }
.quote .who { color: #525252; font-size: .95rem; }

/* CTA v2 */
.cta-v2 {
  margin: 0 24px 80px;
  max-width: 1160px; margin-left: auto; margin-right: auto;
  padding: 72px 32px; border-radius: 20px;
  background: #0a0a0a; color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.cta-v2::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background: radial-gradient(600px 260px at 20% 0%, rgba(37,99,235,.5), transparent 60%),
              radial-gradient(600px 260px at 80% 100%, rgba(16,185,129,.35), transparent 60%);
}
.cta-v2 h2 { position: relative; color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 .4em; letter-spacing: -0.02em; }
.cta-v2 p { position: relative; color: #cfcfcf; max-width: 560px; margin: 0 auto 28px; }
.cta-v2 .btn { position: relative; background: #fff; color: #0a0a0a; padding: 13px 24px; }
.cta-v2 .btn:hover { background: #e5e5e5; color: #0a0a0a; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; position: relative; padding-right: 30px; color: #0a0a0a; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: #888; transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: #525252; font-size: .98rem; line-height: 1.6; }

/* =====================================================================
   LANDING v3 — Tanzania / navy + gold (DM Serif Display + Jost)
   ===================================================================== */
:root{
  --ink:#0C1C38;
  --ink-2:#193561;
  --gold:#B8882A;
  --gold-2:#9b7320;
  --gold-lt:#F5EDDA;
  --cream:#F8F9FC;
  --muted-v3:#6b7280;
  --border-v3:rgba(12,28,56,.08);
}

body{ font-family:'Jost','Inter',-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif; color:var(--ink); background:var(--cream); }
.nav-v3 em, .brand-v3 em, .hero-v3 em, .sec-v3 em, .cta-band em, .eyebrow-v3 em{
  font-family:'DM Serif Display', Georgia, serif; font-style:italic; color:var(--gold);
}

/* topbar */
.topbar{ background:var(--ink); color:#cbd5e1; font-size:12.5px; letter-spacing:.3px; }
.topbar-inner{ display:flex; justify-content:space-between; align-items:center; padding:10px 0; gap:16px; flex-wrap:wrap; }
.pulse-dot{ display:inline-flex; align-items:center; gap:10px; }
.pulse-dot .dot{ width:8px; height:8px; border-radius:50%; background:#35d16a; box-shadow:0 0 0 0 rgba(53,209,106,.55); animation:pulse-v3 2s infinite; }
@keyframes pulse-v3{ 0%{ box-shadow:0 0 0 0 rgba(53,209,106,.55);} 70%{ box-shadow:0 0 0 10px rgba(53,209,106,0);} 100%{ box-shadow:0 0 0 0 rgba(53,209,106,0);} }
.topbar-links{ display:flex; gap:22px; }
.topbar-links a{ color:#cbd5e1; text-decoration:none; }
.topbar-links a:hover{ color:#fff; }
.topbar-links i{ color:var(--gold); margin-right:6px; }

/* nav v3 */
.nav-v3{ background:#fff; border-bottom:1px solid var(--border-v3); position:sticky; top:0; z-index:50; }
.nav-v3-inner{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:32px; padding:18px 0; }
.brand-v3{ display:inline-flex; align-items:center; gap:12px; font-size:19px; color:var(--ink); text-decoration:none; letter-spacing:.2px; }
.brand-v3 .brand-icon{ width:38px; height:38px; border-radius:10px; background:var(--ink); color:var(--gold); display:inline-flex; align-items:center; justify-content:center; font-size:16px; }
.brand-v3 .brand-text{ font-family:'DM Serif Display', Georgia, serif; font-size:22px; line-height:1; }
.brand-v3 .brand-text em{ color:var(--gold); }
.nav-links-v3{ display:flex; gap:32px; justify-content:center; }
.nav-links-v3 a{ color:var(--ink); text-decoration:none; font-weight:500; font-size:14.5px; position:relative; padding:6px 0; }
.nav-links-v3 a:hover{ color:var(--gold); }
.nav-links-v3 a:hover::after{ content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background:var(--gold); border-radius:2px; }
.nav-action-v3{ display:flex; justify-content:flex-end; }
.btn-v3{ background:var(--ink); color:#fff; padding:12px 22px; border-radius:6px; font-weight:600; font-size:14px; text-decoration:none; display:inline-flex; align-items:center; gap:8px; transition:.2s; border:none; cursor:pointer; font-family:inherit; letter-spacing:.3px; }
.btn-v3:hover{ background:var(--ink-2); transform:translateY(-1px); }
.btn-v3.ghost{ background:transparent; color:var(--ink); border:1.5px solid var(--ink); }
.btn-v3.ghost:hover{ background:var(--ink); color:#fff; }
.nav-toggle{ display:none; background:transparent; border:none; font-size:22px; color:var(--ink); cursor:pointer; }

/* hero v3 */
.hero-v3{ position:relative; background:var(--ink); color:#fff; padding:80px 0 110px; overflow:hidden; }
.hero-grid-bg{ position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size:56px 56px; mask-image:radial-gradient(ellipse at center, black 40%, transparent 85%); pointer-events:none; }
.hero-v3::before{ content:""; position:absolute; width:500px; height:500px; border-radius:50%; background:radial-gradient(circle, rgba(184,136,42,.25), transparent 65%); top:-150px; right:-150px; pointer-events:none; }
.hero-v3-inner{ position:relative; display:grid; grid-template-columns:1.2fr 1fr; gap:60px; align-items:center; }
.eyebrow-v3{ display:inline-block; font-size:11px; letter-spacing:3px; text-transform:uppercase; color:var(--gold); margin-bottom:18px; padding:6px 12px; border:1px solid rgba(184,136,42,.35); border-radius:20px; }
.hero-copy h1{ font-family:'DM Serif Display', Georgia, serif; font-size:clamp(36px, 5.2vw, 64px); line-height:1.08; font-weight:400; margin:0 0 22px; letter-spacing:-.5px; }
.hero-sub{ font-size:17px; line-height:1.7; color:rgba(255,255,255,.72); max-width:560px; margin:0 0 32px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px; }
.hero-ctas .btn-v3{ background:var(--gold); color:var(--ink); font-weight:700; padding:14px 26px; }
.hero-ctas .btn-v3:hover{ background:#d9a338; }
.hero-ctas .btn-v3.ghost{ background:transparent; border-color:rgba(255,255,255,.3); color:#fff; }
.hero-ctas .btn-v3.ghost:hover{ background:rgba(255,255,255,.08); border-color:#fff; }
.hero-stats{ display:flex; gap:40px; padding-top:28px; border-top:1px solid rgba(255,255,255,.12); }
.hero-stats div{ display:flex; flex-direction:column; }
.hero-stats strong{ font-family:'DM Serif Display',Georgia,serif; font-size:34px; color:var(--gold); line-height:1; }
.hero-stats span{ font-size:12px; color:rgba(255,255,255,.6); letter-spacing:1px; text-transform:uppercase; margin-top:6px; }

/* capability card */
.capability-card{ background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); border-radius:14px; padding:22px; backdrop-filter:blur(8px); }
.cap-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; padding-bottom:14px; border-bottom:1px solid rgba(255,255,255,.1); }
.cap-title{ font-size:11px; letter-spacing:2px; color:var(--gold); text-transform:uppercase; font-weight:600; }
.cap-pulse{ display:inline-flex; align-items:center; gap:6px; font-size:11px; color:#35d16a; }
.cap-pulse .dot{ width:6px; height:6px; border-radius:50%; background:#35d16a; animation:pulse-v3 2s infinite; }
.cap-list{ list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.cap-list li{ display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:center; padding:12px; border-radius:10px; transition:background .2s; }
.cap-list li:hover{ background:rgba(255,255,255,.04); }
.cap-list li > i{ width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; background:rgba(184,136,42,.15); color:var(--gold); border-radius:8px; font-size:14px; }
.cap-list li strong{ display:block; font-size:14px; color:#fff; font-weight:500; }
.cap-list li span{ display:block; font-size:12px; color:rgba(255,255,255,.55); }
.bdg{ font-size:10px; padding:3px 9px; border-radius:20px; font-weight:600; text-transform:uppercase; letter-spacing:.8px; }
.bdg.on{ background:rgba(53,209,106,.15); color:#35d16a; }
.bdg.new{ background:var(--gold); color:var(--ink); }

/* trust bar */
.trust-bar{ background:#fff; border-bottom:1px solid var(--border-v3); }
.trust-bar-inner{ display:flex; justify-content:space-between; align-items:center; gap:24px; padding:22px 0; flex-wrap:wrap; }
.trust-bar div{ display:inline-flex; align-items:center; gap:10px; color:var(--muted-v3); font-size:13.5px; font-weight:500; }
.trust-bar i{ color:var(--gold); font-size:16px; }

/* section v3 */
.sec-v3{ padding:90px 0; background:var(--cream); }
.sec-v3.alt{ background:#fff; }
.sec-v3-head{ text-align:center; max-width:720px; margin:0 auto 60px; }
.sec-v3-head.light{ color:#fff; }
.sec-tag{ display:inline-block; font-size:11px; letter-spacing:3px; text-transform:uppercase; color:var(--gold); margin-bottom:14px; font-weight:600; }
.sec-v3-head h2{ font-family:'DM Serif Display',Georgia,serif; font-size:clamp(32px, 4vw, 48px); line-height:1.15; font-weight:400; margin:0 0 16px; letter-spacing:-.3px; }
.sec-v3-head p{ font-size:16px; line-height:1.7; color:var(--muted-v3); margin:0; }
.sec-v3-head.light h2{ color:#fff; }
.sec-v3-head.light p{ color:rgba(255,255,255,.7); }

/* services grid */
.svc-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
.svc-card{ background:#fff; border:1px solid var(--border-v3); border-radius:14px; padding:34px 28px; transition:.25s; position:relative; overflow:hidden; }
.svc-card::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--gold); transform:scaleY(0); transform-origin:top; transition:.3s; }
.svc-card:hover{ transform:translateY(-4px); box-shadow:0 20px 50px -20px rgba(12,28,56,.2); border-color:transparent; }
.svc-card:hover::before{ transform:scaleY(1); }
.svc-card.featured{ background:linear-gradient(180deg,#fff, var(--gold-lt)); border-color:var(--gold); }
.svc-icon{ width:52px; height:52px; border-radius:12px; background:var(--gold-lt); color:var(--gold); display:inline-flex; align-items:center; justify-content:center; font-size:20px; margin-bottom:20px; }
.svc-card h3{ font-family:'DM Serif Display',Georgia,serif; font-size:22px; font-weight:400; margin:0 0 10px; color:var(--ink); }
.svc-card p{ color:var(--muted-v3); font-size:14.5px; line-height:1.7; margin:0 0 20px; }
.svc-link{ color:var(--gold); text-decoration:none; font-weight:600; font-size:13px; letter-spacing:.5px; display:inline-flex; align-items:center; gap:6px; transition:gap .2s; }
.svc-link:hover{ gap:10px; }

/* process section (dark) */
.proc-sec{ background:var(--ink); color:#fff; padding:90px 0; position:relative; overflow:hidden; }
.proc-sec::before{ content:""; position:absolute; width:400px; height:400px; border-radius:50%; background:radial-gradient(circle, rgba(184,136,42,.2), transparent 60%); top:30%; left:-150px; }
.proc-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:28px; position:relative; }
.proc-step{ padding:30px 22px; border-left:2px solid rgba(184,136,42,.3); }
.proc-num{ font-family:'DM Serif Display',Georgia,serif; font-size:56px; color:var(--gold); line-height:1; display:block; margin-bottom:14px; }
.proc-step h3{ font-family:'DM Serif Display',Georgia,serif; font-size:24px; font-weight:400; color:#fff; margin:0 0 10px; }
.proc-step p{ color:rgba(255,255,255,.65); font-size:14.5px; line-height:1.7; margin:0; }

/* projects */
.proj-grid{ display:grid; grid-template-columns:2fr 1fr 1fr; gap:24px; }
.proj-card{ display:block; text-decoration:none; color:inherit; background:#fff; border-radius:14px; overflow:hidden; border:1px solid var(--border-v3); transition:.25s; }
.proj-card.wide{ grid-row:span 2; }
.proj-card:hover{ transform:translateY(-4px); box-shadow:0 20px 50px -20px rgba(12,28,56,.2); }
.proj-img{ aspect-ratio:16/10; background:#ddd; }
.proj-card.wide .proj-img{ aspect-ratio:16/11; }
.proj-body{ padding:24px; }
.proj-tag{ font-size:10.5px; letter-spacing:2px; text-transform:uppercase; color:var(--gold); font-weight:600; }
.proj-body h3{ font-family:'DM Serif Display',Georgia,serif; font-size:20px; font-weight:400; margin:8px 0 8px; line-height:1.25; }
.proj-card.wide .proj-body h3{ font-size:26px; }
.proj-body p{ color:var(--muted-v3); font-size:14px; margin:0 0 14px; line-height:1.65; }
.proj-view{ font-size:12.5px; letter-spacing:.5px; color:var(--gold); font-weight:600; opacity:0; transition:.25s; display:inline-flex; gap:6px; align-items:center; }
.proj-card:hover .proj-view{ opacity:1; }

/* blog cards */
.blog-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:26px; }
.blog-card{ display:block; text-decoration:none; color:inherit; background:#fff; border-radius:14px; overflow:hidden; border:1px solid var(--border-v3); transition:.25s; }
.blog-card:hover{ transform:translateY(-4px); box-shadow:0 20px 50px -20px rgba(12,28,56,.2); }
.blog-cover{ aspect-ratio:16/10; background:var(--gold-lt); display:flex; align-items:center; justify-content:center; }
.blog-cover img{ width:100%; height:100%; object-fit:cover; }
.blog-cover-fallback{ font-size:38px; color:var(--gold); }
.blog-body{ padding:24px; }
.blog-meta{ font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color:var(--gold); font-weight:600; }
.blog-body h3{ font-family:'DM Serif Display',Georgia,serif; font-size:20px; font-weight:400; margin:8px 0 10px; line-height:1.3; }
.blog-body p{ color:var(--muted-v3); font-size:14px; margin:0 0 14px; line-height:1.65; }
.blog-link{ font-size:12.5px; color:var(--gold); font-weight:600; display:inline-flex; gap:6px; align-items:center; }

/* CTA band */
.cta-band{ background:var(--gold); padding:70px 0; }
.cta-band-inner{ display:flex; justify-content:space-between; align-items:center; gap:30px; flex-wrap:wrap; }
.cta-band h2{ font-family:'DM Serif Display',Georgia,serif; font-size:clamp(28px, 3.5vw, 42px); font-weight:400; color:var(--ink); margin:0 0 8px; line-height:1.2; }
.cta-band h2 em{ color:#fff; }
.cta-band p{ color:rgba(12,28,56,.8); margin:0; font-size:16px; }
.cta-band-btn{ background:var(--ink); color:#fff; padding:16px 28px; border-radius:8px; font-weight:600; text-decoration:none; display:inline-flex; align-items:center; gap:10px; font-size:15px; transition:.2s; }
.cta-band-btn:hover{ background:#000; transform:translateY(-2px); }

/* footer v3 */
.footer-v3{ background:var(--ink); color:#a3adc2; padding:70px 0 30px; }
.footer-top{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.08); }
.footer-v3 .brand-v3{ color:#fff; }
.footer-v3 .brand-v3 .brand-icon{ background:var(--gold); color:var(--ink); }
.footer-tagline{ margin:16px 0 20px; font-size:14px; line-height:1.7; max-width:380px; color:#a3adc2; }
.footer-social{ display:flex; gap:12px; }
.footer-social a{ width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.06); color:#fff; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; transition:.2s; }
.footer-social a:hover{ background:var(--gold); color:var(--ink); }
.footer-top h4{ color:#fff; font-size:13px; letter-spacing:2px; text-transform:uppercase; margin:0 0 18px; font-weight:600; }
.footer-top a, .footer-top span{ display:block; color:#a3adc2; text-decoration:none; font-size:14px; padding:5px 0; }
.footer-top a:hover{ color:var(--gold); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:24px; font-size:12.5px; flex-wrap:wrap; gap:14px; }
.iso-badge{ color:var(--gold); font-weight:600; letter-spacing:1px; }
.iso-badge i{ margin-right:6px; }

/* FAB */
.fab{ position:fixed; bottom:28px; right:28px; width:60px; height:60px; border-radius:50%; background:var(--gold); color:var(--ink); border:none; cursor:pointer; font-size:22px; z-index:90; box-shadow:0 10px 30px rgba(184,136,42,.4); display:inline-flex; align-items:center; justify-content:center; transition:.25s; }
.fab:hover{ transform:scale(1.08); background:#d9a338; }
.fab-ring{ position:absolute; inset:0; border-radius:50%; border:2px solid var(--gold); animation:fabring 2s infinite; }
@keyframes fabring{ 0%{ transform:scale(1); opacity:.8; } 100%{ transform:scale(1.5); opacity:0; } }

/* chat overlay */
.chat-overlay{ position:fixed; inset:0; background:var(--cream); z-index:100; display:flex; flex-direction:column; animation:fadeIn .2s; }
.chat-overlay[hidden]{ display:none !important; }
@keyframes fadeIn{ from{ opacity:0; } to{ opacity:1; } }
.chat-topbar{ background:var(--ink); color:#fff; padding:14px 20px; display:flex; align-items:center; gap:16px; }
.chat-back, .chat-new{ background:transparent; border:1px solid rgba(255,255,255,.2); color:#fff; width:38px; height:38px; border-radius:8px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:14px; }
.chat-new{ width:auto; padding:0 14px; gap:8px; font-family:inherit; font-size:13px; font-weight:600; }
.chat-brand{ flex:1; font-family:'DM Serif Display',Georgia,serif; font-size:18px; }
.chat-brand i{ color:var(--gold); margin-right:6px; }
.chat-muted{ font-family:'Jost',sans-serif; font-size:12px; color:rgba(255,255,255,.5); font-weight:400; }
.chat-body{ flex:1; display:grid; grid-template-columns:280px 1fr; overflow:hidden; }
.chat-side{ background:#fff; border-right:1px solid var(--border-v3); padding:20px; overflow-y:auto; }
.chat-side-title{ font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--muted-v3); font-weight:600; margin-bottom:14px; }
.chat-history{ list-style:none; padding:0; margin:0; }
.chat-history li{ padding:10px 12px; border-radius:8px; font-size:14px; color:var(--ink); cursor:pointer; }
.chat-history li:hover{ background:var(--cream); }
.chat-hist-empty{ color:var(--muted-v3); font-size:13px; font-style:italic; cursor:default !important; }
.chat-main{ display:flex; flex-direction:column; overflow:hidden; }
.chat-welcome{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:40px; text-align:center; overflow-y:auto; }
.chat-welcome-icon{ width:72px; height:72px; border-radius:50%; background:var(--gold-lt); color:var(--gold); display:inline-flex; align-items:center; justify-content:center; font-size:32px; margin-bottom:18px; }
.chat-welcome h2{ font-family:'DM Serif Display',Georgia,serif; font-size:32px; font-weight:400; margin:0 0 8px; }
.chat-welcome p{ color:var(--muted-v3); font-size:15px; margin:0 0 30px; }
.chat-starters{ display:grid; grid-template-columns:repeat(2, minmax(0, 260px)); gap:10px; }
.starter{ background:#fff; border:1px solid var(--border-v3); border-radius:10px; padding:14px 16px; font-family:inherit; font-size:13.5px; color:var(--ink); text-align:left; cursor:pointer; transition:.2s; }
.starter:hover{ border-color:var(--gold); background:var(--gold-lt); }
.chat-thread{ flex:1; padding:24px; overflow-y:auto; display:flex; flex-direction:column; gap:14px; }
.chat-thread[hidden]{ display:none !important; }
.chat-msg{ max-width:720px; padding:14px 18px; border-radius:14px; font-size:14.5px; line-height:1.6; }
.chat-msg.user{ align-self:flex-end; background:var(--ink); color:#fff; border-bottom-right-radius:4px; }
.chat-msg.bot{ align-self:flex-start; background:#fff; border:1px solid var(--border-v3); border-bottom-left-radius:4px; }
.chat-composer{ padding:16px 24px; border-top:1px solid var(--border-v3); background:#fff; display:flex; gap:10px; align-items:flex-end; }
.chat-composer textarea{ flex:1; border:1px solid var(--border-v3); border-radius:10px; padding:12px 14px; font-family:inherit; font-size:14.5px; resize:none; max-height:180px; outline:none; }
.chat-composer textarea:focus{ border-color:var(--gold); }
.chat-composer button{ background:var(--ink); color:#fff; border:none; width:44px; height:44px; border-radius:10px; cursor:pointer; font-size:15px; }
.chat-composer button:hover{ background:var(--ink-2); }
.chat-footnote{ padding:8px 24px 14px; font-size:11.5px; color:var(--muted-v3); text-align:center; background:#fff; }
.chat-footnote a{ color:var(--gold); }

/* responsive */
@media (max-width:900px){
  .hero-v3-inner{ grid-template-columns:1fr; gap:40px; }
  .svc-grid{ grid-template-columns:repeat(2, 1fr); }
  .proc-grid{ grid-template-columns:repeat(2, 1fr); }
  .proj-grid{ grid-template-columns:1fr; }
  .proj-card.wide{ grid-row:auto; }
  .blog-grid{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .chat-body{ grid-template-columns:1fr; }
  .chat-side{ display:none; }
  .nav-links-v3{ display:none; position:absolute; top:100%; left:0; right:0; background:#fff; flex-direction:column; gap:0; padding:12px 20px; border-bottom:1px solid var(--border-v3); box-shadow:0 20px 40px -20px rgba(0,0,0,.1); }
  .nav-links-v3.open{ display:flex; }
  .nav-links-v3 a{ padding:12px 0; border-bottom:1px solid var(--border-v3); }
  .nav-toggle{ display:inline-flex; order:3; }
  .nav-v3-inner{ grid-template-columns:auto auto auto; }
  .nav-action-v3{ grid-column:2; }
}
@media (max-width:560px){
  .svc-grid{ grid-template-columns:1fr; }
  .proc-grid{ grid-template-columns:1fr; }
  .hero-stats{ gap:22px; flex-wrap:wrap; }
  .trust-bar-inner{ justify-content:flex-start; }
  .chat-starters{ grid-template-columns:1fr; }
  .fab{ bottom:18px; right:18px; width:54px; height:54px; }
}
