﻿/* ============================================================
 * AssetMint — Marketing site stylesheet
 * Palette: indigo lead, slate neutrals, amber accent
 * ============================================================ */

:root {
  /* Brand */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;   /* primary */
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;
  --brand-900: #312e81;

  --accent-400: #fbbf24;
  --accent-500: #f59e0b;

  --success: #10b981;
  --danger:  #ef4444;

  /* Light theme neutrals */
  --bg:           #ffffff;
  --bg-soft:      #f8fafc;
  --bg-elevated:  #ffffff;
  --surface:      #ffffff;
  --border:       #e2e8f0;
  --border-soft:  #f1f5f9;
  --text:         #0f172a;
  --text-muted:   #475569;
  --text-faint:   #94a3b8;
  --shadow-sm:    0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:       0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg:    0 16px 48px rgba(15, 23, 42, 0.08);
  --shadow-glow:  0 0 0 1px var(--brand-200), 0 12px 40px rgba(99, 102, 241, 0.15);

  /* Typography */
  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container:   1200px;
  --container-lg: 1320px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme */
html[data-theme="dark"] {
  --bg:           #0a0e1a;
  --bg-soft:      #0f1424;
  --bg-elevated:  #131a2e;
  --surface:      #1a2238;
  --border:       #2a3456;
  --border-soft:  #1f2845;
  --text:         #e2e8f0;
  --text-muted:   #94a3b8;
  --text-faint:   #64748b;
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow:       0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg:    0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow:  0 0 0 1px var(--brand-700), 0 12px 40px rgba(99, 102, 241, 0.25);
}

/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Lock horizontal overflow at the document root so any single oversized
     child (a long code block, a wide table, an ill-fitted nav) can't make
     the entire page scroll horizontally. Each scrollable region inside the
     page handles its own overflow locally. */
  overflow-x: hidden;
}
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
html[data-theme="dark"] a { color: var(--brand-400); }
html[data-theme="dark"] a:hover { color: var(--brand-300); }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
code { font-family: var(--font-mono); font-size: 0.92em; padding: 0.15em 0.4em; background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: 4px; }

/* ============ Container ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: var(--container-lg); margin: 0 auto; padding: 0 24px; }

/* ============ Top navigation ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.2s var(--ease);
}
html[data-theme="dark"] .nav {
  background: rgba(10, 14, 26, 0.85);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  /* Keep "AssetMint" on one line — without this it wraps inside the
     wordmark whenever the nav is space-constrained. */
  white-space: nowrap;
}
.nav-brand:hover { color: var(--text); }
.nav-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.05em;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s var(--ease);
  /* Keep multi-word labels (e.g. "Live preview") on a single line so they don't
     wrap mid-link when the nav gets crowded. */
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-soft);
}
.nav-links a.active {
  color: var(--brand-600);
  background: var(--brand-50);
}
html[data-theme="dark"] .nav-links a.active {
  color: var(--brand-300);
  background: rgba(99, 102, 241, 0.12);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.15s var(--ease);
}
.theme-toggle:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-mobile-toggle { display: none; }

/* The "Get started" CTA in the nav disappears at the same breakpoint where the
   hamburger menu kicks in. Brand wordmark + language picker + theme toggle +
   hamburger + CTA together start to overflow under ~1100 px. The hero section
   shows prominent CTAs the moment visitors scroll, so nothing's lost. */
@media (max-width: 1100px) {
  .nav-cta { display: none !important; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
  color: #fff;
}
.btn-ghost {
  color: var(--text);
  background: var(--bg-soft);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--brand-300);
  color: var(--text);
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.10), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
html[data-theme="dark"] .hero::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.22), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.12), transparent 50%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
  margin-bottom: 24px;
}
html[data-theme="dark"] .hero-pill {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--brand-300);
}
.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700) 60%, var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-faint);
}
.hero-visual {
  position: relative;
  aspect-ratio: 1.1 / 1;
}
.hero-visual-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.hero-visual-card.card-1 {
  top: 0;
  left: 0;
  width: 280px;
  transform: rotate(-3deg);
}
.hero-visual-card.card-2 {
  top: 30%;
  right: 0;
  width: 240px;
  transform: rotate(4deg);
  z-index: 2;
}
.hero-visual-card.card-3 {
  bottom: 0;
  left: 25%;
  width: 280px;
  transform: rotate(-1deg);
  z-index: 1;
}
.hero-visual-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 500;
}
.hero-visual-card-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}
.tag-active { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.tag-loan   { background: rgba(99, 102, 241, 0.12); color: var(--brand-600); }
.tag-maint  { background: rgba(245, 158, 11, 0.12); color: var(--accent-500); }
.hero-visual-card-title { font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; }
.hero-visual-card-meta { font-size: 0.78rem; color: var(--text-faint); font-family: var(--font-mono); }

/* ============ Sections ============ */
.section { padding: 80px 0; }
.section-tight { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }

.section-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-600);
  margin-bottom: 12px;
}
html[data-theme="dark"] .section-eyebrow { color: var(--brand-400); }
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}
.section-sub {
  text-align: center;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 56px;
}

/* ============ Feature bento grid ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.bento-tile:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.bento-tile-1 { grid-column: span 4; }
.bento-tile-2 { grid-column: span 2; }
.bento-tile-3 { grid-column: span 2; }
.bento-tile-4 { grid-column: span 2; }
.bento-tile-5 { grid-column: span 2; }
.bento-tile-6 { grid-column: span 3; }
.bento-tile-7 { grid-column: span 3; }
.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-200));
  color: var(--brand-700);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
html[data-theme="dark"] .bento-icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.08));
  color: var(--brand-300);
}
.bento-icon svg { width: 22px; height: 22px; }
.bento-tile h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bento-tile p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ============ Two-shell story ============ */
.shells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.shell-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.shell-card.is-mobile {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  color: #fff;
  border-color: transparent;
}
.shell-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
html[data-theme="dark"] .shell-icon { background: rgba(99, 102, 241, 0.15); color: var(--brand-300); }
.shell-card.is-mobile .shell-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.shell-card h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.shell-card p {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.92;
}
.shell-card.is-mobile p { color: rgba(255, 255, 255, 0.88); }
.shell-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.shell-features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.94rem;
}
.shell-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234f46e5'%3E%3Cpath d='M6.5 11l-3-3 1.4-1.4L6.5 8.2l5-5L13 4.6 6.5 11z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.shell-card.is-mobile .shell-features li::before {
  background-color: rgba(255, 255, 255, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M6.5 11l-3-3 1.4-1.4L6.5 8.2l5-5L13 4.6 6.5 11z'/%3E%3C/svg%3E");
}

/* ============ Roles ribbon ============ */
.roles-ribbon {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.roles-ribbon::before, .roles-ribbon::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
}
.roles-ribbon::before { top: -150px; right: -100px; }
.roles-ribbon::after  { bottom: -200px; left: -150px; }
.roles-ribbon-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.roles-ribbon h2 {
  font-size: 2rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.roles-ribbon p {
  margin: 0;
  opacity: 0.92;
  font-size: 1.05rem;
  line-height: 1.6;
}
.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.role-chip {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ============ Bilingual + RTL preview ============ */
.bilingual {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.bilingual-content h2 { margin: 0 0 16px; font-size: 2rem; letter-spacing: -0.02em; }
.bilingual-content p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; }
.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.lang-tag {
  padding: 6px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.lang-tag.lang-rtl {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: var(--brand-200);
}
html[data-theme="dark"] .lang-tag.lang-rtl {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--brand-300);
}
.bilingual-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow);
}
.bilingual-preview-tabs {
  display: flex;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 12px;
}
.bilingual-preview-tab {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.bilingual-preview-tab.active {
  background: var(--surface);
  color: var(--brand-600);
  box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .bilingual-preview-tab.active { color: var(--brand-300); }
.bilingual-preview-pane {
  padding: 20px;
  font-size: 0.94rem;
}
.bilingual-preview-pane.rtl { direction: rtl; text-align: right; font-family: "Segoe UI", "Tahoma", sans-serif; }
.bilingual-preview-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.bilingual-preview-row:last-child { border: none; }
.bilingual-preview-row .label { color: var(--text-muted); font-size: 0.85rem; }
.bilingual-preview-row .value { font-weight: 500; }

/* ============ Reports preview ============ */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s var(--ease);
}
.report-card:hover {
  border-color: var(--brand-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.report-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
html[data-theme="dark"] .report-card-icon { background: rgba(99, 102, 241, 0.15); color: var(--brand-300); }
.report-card-icon svg { width: 18px; height: 18px; }
.report-card h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.report-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* ============ Tech stack badge row ============ */
.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
.stack-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.15s var(--ease);
}
.stack-badge:hover {
  border-color: var(--brand-300);
  color: var(--text);
}
.stack-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); }

/* ============ CTA strip ============ */
.cta-strip {
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.25), transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(245, 158, 11, 0.15), transparent 60%),
    var(--bg-soft);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  border: 1px solid var(--border);
}
.cta-strip h2 {
  font-size: 2.2rem;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.cta-strip p {
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
}
.cta-strip-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.footer-brand p { color: var(--text-muted); margin-top: 12px; max-width: 360px; font-size: 0.94rem; }
.footer-col h4 {
  font-size: 0.88rem;
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--brand-600); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-faint);
  font-size: 0.88rem;
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Collapse the inline nav to the hamburger menu earlier than the rest of the
   layout — with the wordmark, language picker, theme toggle, and "Get started"
   button, the inline link list starts to overflow under ~1100px even though the
   content sections still look fine in a wider grid. */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--text-muted); }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    align-items: stretch;
    gap: 4px;
    z-index: 60;
  }
}

/* ============ Mobile ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-tile-1, .bento-tile-2, .bento-tile-3, .bento-tile-4,
  .bento-tile-5, .bento-tile-6, .bento-tile-7 { grid-column: span 2; }
  .shells { grid-template-columns: 1fr; }
  .roles-ribbon-grid { grid-template-columns: 1fr; }
  .bilingual { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .roles-ribbon, .cta-strip { padding: 40px 24px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-tile-1, .bento-tile-2, .bento-tile-3, .bento-tile-4,
  .bento-tile-5, .bento-tile-6, .bento-tile-7 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
 * Language switcher (mounted into nav by main.js)
 * ============================================================ */
.lang-switcher {
  position: relative;
}
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.lang-switcher-btn:hover {
  border-color: var(--brand-300);
  background: var(--bg-soft);
}
.lang-switcher-btn svg {
  flex: none;
  color: var(--text-muted);
}
.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0.15s;
}
.lang-switcher.open .lang-switcher-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switcher-menu li { padding: 0; }
.lang-switcher-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
}
.lang-switcher-menu button:hover {
  background: var(--bg-soft);
}
.lang-switcher-meta {
  color: var(--text-faint);
  font-size: 0.78rem;
  margin-left: 12px;
}

/* RTL flip — when html[dir="rtl"] applies, mirror the menu anchor and
 * flip the language-switcher meta gap so the secondary text sits on the left. */
html[dir="rtl"] .lang-switcher-menu {
  right: auto;
  left: 0;
}
html[dir="rtl"] .lang-switcher-menu button {
  text-align: right;
}
html[dir="rtl"] .lang-switcher-meta {
  margin-left: 0;
  margin-right: 12px;
}
html[dir="rtl"] .nav-links { padding-right: 0; }
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .roles-ribbon-grid,
html[dir="rtl"] .bilingual,
html[dir="rtl"] .footer-grid {
  direction: rtl;
}
html[dir="rtl"] .hero-inner > div:first-child { text-align: right; }
html[dir="rtl"] .section-eyebrow,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-sub { text-align: center; }

/* Doc-page banner: an "available in English" notice stands above the article body */
.doc-english-notice {
  max-width: 920px;
  margin: 16px auto 0;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}
html[dir="rtl"] .doc-english-notice { text-align: right; }

/* ============================================================
 * Live demo section
 * ============================================================ */
.demo-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.demo-points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.demo-points .check {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--brand-100);
  color: var(--brand-700);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.demo-points .check::before {
  content: "✓";
  font-size: 12px;
  font-weight: 700;
}
html[data-theme="dark"] .demo-points .check {
  background: rgba(99, 102, 241, 0.18);
  color: var(--brand-300);
}
.demo-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.demo-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.demo-card-visual {
  display: flex;
  justify-content: center;
}
.demo-screen {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  border-radius: var(--radius);
  padding: 4px;
  box-shadow: var(--shadow-lg);
}
.demo-screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) - 4px) calc(var(--radius) - 4px) 0 0;
}
.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.demo-screen-url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}
.demo-screen-body {
  background: var(--surface);
  border-radius: 0 0 calc(var(--radius) - 4px) calc(var(--radius) - 4px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-screen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}
.demo-screen-pill {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.demo-screen-num {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--brand-600);
}
html[data-theme="dark"] .demo-screen-num { color: var(--brand-400); }

/* RTL: flip the demo card layout so the visual sits on the left and points on the right. */
html[dir="rtl"] .demo-card { direction: rtl; }
html[dir="rtl"] .demo-screen-url { margin-left: 0; margin-right: 12px; }

@media (max-width: 880px) {
  .demo-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
  }
  .demo-card-visual { order: -1; }
}

/* ============================================================
 * Permissions section — granular RBAC story
 * ============================================================ */
.perm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 32px;
}
.perm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 0.84rem;
}
.perm-chip code {
  font-family: var(--font-mono);
  color: var(--text);
  background: transparent;
}
.perm-chip.more {
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  border-color: var(--brand-200);
  color: var(--brand-700);
  font-weight: 600;
}
html[data-theme="dark"] .perm-chip.more {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--brand-300);
}
.perm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.perm-mod-assets    { background: #6366f1; }
.perm-mod-transfers { background: #f59e0b; }
.perm-mod-audits    { background: #10b981; }
.perm-mod-maint     { background: #ef4444; }
.perm-mod-custody   { background: #06b6d4; }
.perm-mod-reports   { background: #8b5cf6; }
.perm-mod-identity  { background: #64748b; }

.perm-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.perm-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.perm-point-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex: none;
}
.perm-point strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.perm-point p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .perm-card { padding: 24px; }
  .perm-points { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
 * Translations section — admin-editable i18n story
 * ============================================================ */
.trans-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
.trans-preview {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.88rem;
}
.trans-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.trans-row:last-child { border-bottom: none; }
.trans-row > span { display: block; padding: 0 6px; }
.trans-row-head {
  background: var(--bg-elevated);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.trans-key code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brand-600);
  background: transparent;
}
html[data-theme="dark"] .trans-key code { color: var(--brand-300); }
.trans-rtl {
  direction: rtl;
  text-align: right;
  font-feature-settings: "ss01";
}
.trans-row-edited {
  background: rgba(245, 158, 11, 0.08);
}
.trans-edited-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--accent-100);
  color: var(--accent-700);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
html[data-theme="dark"] .trans-edited-tag {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}
html[dir="rtl"] .trans-edited-tag { margin-left: 0; margin-right: 8px; }

.trans-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.trans-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.trans-point-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
}
.trans-point strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.trans-point p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 880px) {
  .trans-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}
@media (max-width: 560px) {
  .trans-row { grid-template-columns: 1fr; gap: 4px; }
  .trans-row-head { display: none; }
  .trans-row > span { padding: 0; }
}

/* ============================================================
 * Excel integration section
 * ============================================================ */
.excel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
.excel-sheet {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
html[data-theme="dark"] .excel-sheet { background: #0f172a; }
.excel-sheet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(180deg, #21a366, #185c37);
  color: #fff;
}
.excel-sheet-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.excel-sheet-rows {
  font-size: 0.72rem;
  opacity: 0.85;
}
.excel-sheet-body {
  display: flex;
  flex-direction: column;
}
.excel-row {
  display: grid;
  grid-template-columns: 0.6fr 1fr 1.4fr 1.4fr 0.8fr;
  gap: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.excel-row > span {
  padding: 0 8px;
  border-right: 1px dotted rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-theme="dark"] .excel-row > span { border-right-color: rgba(255, 255, 255, 0.06); }
.excel-row > span:last-child { border-right: none; }
.excel-row-head {
  background: var(--bg-elevated);
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.excel-row-error { background: rgba(239, 68, 68, 0.06); }
html[data-theme="dark"] .excel-row-error { background: rgba(239, 68, 68, 0.12); }
.excel-err-tag {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 8px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.excel-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.excel-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.excel-point-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
}
.excel-point strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.excel-point p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 880px) {
  .excel-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}
@media (max-width: 560px) {
  .excel-row { grid-template-columns: 0.6fr 1fr 1.6fr; gap: 0; }
  .excel-row > span:nth-child(4),
  .excel-row > span:nth-child(5) { display: none; }
}

/* ============================================================
 * Mobile auditor section — two paths to complete an audit
 * ============================================================ */
.mobile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.mobile-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.mobile-path {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-path-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-path-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex: none;
}
.mobile-path-header h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* Phone mockup */
.mobile-phone {
  align-self: center;
  width: 220px;
  aspect-ratio: 9 / 19;
  background: #1f2937;
  border-radius: 24px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.mobile-phone-screen {
  width: 100%;
  height: 100%;
  background: #0f172a;
  border-radius: 18px;
  padding: 16px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.mobile-phone-bar {
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
.mobile-phone-viewfinder {
  position: relative;
  width: 75%;
  aspect-ratio: 1;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 8px;
}
.mobile-vf-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--brand-400);
}
.mobile-vf-tl { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.mobile-vf-tr { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 6px; }
.mobile-vf-bl { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 6px; }
.mobile-vf-br { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 6px; }
.mobile-vf-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-400), transparent);
  animation: mobile-scan 2s ease-in-out infinite alternate;
}
@keyframes mobile-scan {
  from { transform: translateY(-40%); }
  to   { transform: translateY( 40%); }
}
.mobile-phone-pill {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  white-space: nowrap;
}

/* Excel offline path mock */
.mobile-excel {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-excel-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 0.88rem;
  position: relative;
}
.mobile-excel-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -14px;
  width: 1px;
  height: 14px;
  background: var(--border);
}
.mobile-excel-icon {
  font-size: 1.25rem;
  flex: none;
}

.mobile-path-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-path-points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.mobile-path-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-600);
  font-weight: 700;
}
html[data-theme="dark"] .mobile-path-points li::before { color: var(--brand-400); }
html[dir="rtl"] .mobile-path-points li { padding-left: 0; padding-right: 22px; }
html[dir="rtl"] .mobile-path-points li::before { left: auto; right: 0; }

.mobile-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.mobile-cta-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 880px) {
  .mobile-card { padding: 24px; }
  .mobile-paths { grid-template-columns: 1fr; gap: 32px; }
  .mobile-phone { width: 200px; }
}

