/* SmartHomeAI — site styles
   Palette and type follow the grant deck: navy #14213D, amber #FCA311,
   Cambria-style serif headings (Caladea) and Calibri-style body (Carlito). */

/* ---------- Tokens ---------- */
:root {
  --navy: #14213D;
  --navy-2: #1B2B52;
  --navy-3: #25375F;
  --amber: #FCA311;
  --amber-hover: #FFB84A;
  --amber-soft: #FFF3DC;
  --amber-ink: #8F5200;
  --ink: #1F2430;
  --muted: #5B6472;
  --line: #D9DEE7;
  --tint: #E8EDF5;
  --bg: #FFFFFF;
  --bg-alt: #F4F5F7;
  --on-dark: #FFFFFF;
  --on-dark-muted: #CAD3E3;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .05), 0 6px 20px rgba(20, 33, 61, .07);
  --shadow-lg: 0 2px 6px rgba(20, 33, 61, .10), 0 28px 60px rgba(0, 0, 0, .28);

  --font-serif: "Caladea", Cambria, Georgia, "Times New Roman", serif;
  --font-sans: "Carlito", Calibri, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial,
               "Nirmala UI", "Noto Sans Devanagari", "Noto Sans Kannada", sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
svg.i { width: 1em; height: 1em; display: inline-block; flex: none; vertical-align: -0.125em; }
h1, h2, h3 { font-family: var(--font-serif); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--amber-ink); }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--navy); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-hover); color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .55em 1.05em; font-size: .98rem; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 33, 61, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(20, 33, 61, .9); backdrop-filter: saturate(140%) blur(10px); }
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--amber); color: var(--navy);
  display: grid; place-items: center; font-size: 20px; flex: none;
}
.nav-menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav-menu a:not(.btn) {
  position: relative; color: var(--on-dark-muted); text-decoration: none;
  font-weight: 700; font-size: 1.02rem; padding-block: 6px;
}
.nav-menu a:not(.btn):hover, .nav-menu a[aria-current] { color: #fff; }
.nav-menu a[aria-current]::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 5px; height: 5px;
  margin-left: -2.5px; border-radius: 50%; background: var(--amber);
}
.nav-toggle {
  display: none; background: transparent; border: 0; color: #fff; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px; font-size: 26px; place-items: center;
}
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }
.nav-toggle span { line-height: 0; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav-menu {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .25);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.1rem; }
  .nav-menu a[aria-current]::after { display: none; }
  .nav-menu .nav-cta { margin-top: 16px; align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--on-dark);
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px);
}
.hero::before {
  content: ""; position: absolute; border-radius: 50%;
  width: 760px; height: 760px; right: -300px; top: -360px;
  background: var(--navy-2);
}
.hero::after {
  content: ""; position: absolute; border-radius: 50%;
  width: 420px; height: 420px; left: -220px; bottom: -300px;
  background: var(--navy-2); opacity: .7;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { color: #fff; max-width: 20ch; text-wrap: balance; }
.hero-lead { font-size: clamp(1.2rem, 1.7vw, 1.4rem); color: #E9EDF4; max-width: 34ch; margin-bottom: .8em; }
.hero-sub { color: var(--on-dark-muted); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.lang-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lang-label { font-size: .88rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.lang-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.lang-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; font-size: .98rem; font-weight: 700;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
}
.lang-chip [lang] { font-weight: 400; color: var(--amber); }

/* Chat mock-up */
.hero-demo { display: flex; justify-content: center; }
.chat {
  margin: 0; width: 100%; max-width: 410px;
  background: #fff; color: var(--ink);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--navy);
  display: grid; place-items: center; font-size: 21px; flex: none;
}
.chat-id { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.chat-title { font-weight: 700; color: var(--navy); }
.chat-sub { font-size: .86rem; color: var(--muted); }
.chat-clock { margin-left: auto; font-size: .86rem; color: var(--muted); }
.chat-body { background: var(--tint); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg {
  max-width: 90%; padding: 10px 12px 10px; border-radius: 16px;
  box-shadow: 0 1px 1px rgba(20, 33, 61, .08);
}
.msg p { margin: 0; }
.msg--out { align-self: flex-end; background: var(--amber-soft); border-bottom-right-radius: 5px; }
.msg--in { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.voice { display: flex; align-items: center; gap: 10px; }
.voice-play {
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 14px; flex: none; padding-left: 2px;
}
.wave { display: flex; align-items: center; gap: 2px; height: 26px; flex: 1; min-width: 120px; }
.wave i { display: block; flex: 1; max-width: 3px; min-height: 3px; border-radius: 2px; background: var(--navy); opacity: .5; }
.msg--out .wave i { background: var(--amber-ink); opacity: .6; }
.voice-time { font-size: .8rem; color: var(--muted); }
.transcript { margin-top: 8px !important; font-size: 1.02rem; line-height: 1.45; color: var(--ink); }
.gloss { font-size: .88rem; color: var(--muted); font-style: italic; line-height: 1.4; margin-top: 2px !important; }
.msg--agent { width: 90%; }
.agent-label { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); }
.agent-context { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0 10px; }
.agent-context li {
  display: inline-flex; align-items: center; gap: 5px; font-size: .86rem; color: var(--navy);
  background: var(--tint); border-radius: 999px; padding: 3px 10px;
}
.agent-actions { list-style: none; padding: 0; display: grid; gap: 4px; }
.agent-actions li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.agent-actions .i { color: var(--amber-ink); font-size: 1.1em; }
.chat-foot { font-size: .84rem; color: var(--muted); padding: 10px 18px; border-top: 1px solid var(--line); }

.js .wa-grid .chat .msg { opacity: 0; }
.js .wa-grid.is-visible .chat .msg { animation: msg-in .55s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(var(--d, 0s) + .35s); }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 20ch; }
}

/* ---------- Key facts strip ---------- */
.facts { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; padding-block: 28px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact p { margin: 0; font-size: 1rem; line-height: 1.4; color: var(--muted); }
.fact strong { display: block; color: var(--navy); font-size: 1.05rem; }
@media (max-width: 960px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .facts-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8.5vw, 112px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-bottom: .35em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .86rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.hero .eyebrow, .section--dark .eyebrow { color: var(--amber); }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 62ch; margin: 0; }
.section--dark .lead { color: var(--on-dark-muted); }
.fine { font-size: .92rem; color: var(--muted); font-style: italic; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 1.04rem; }
.card p + p { margin-top: 10px; }
.card--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.card--dark h3 { color: #fff; }

.icon-badge {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--amber); color: var(--navy);
  display: inline-grid; place-items: center; font-size: 22px; flex: none;
}
.icon-badge--sm { width: 40px; height: 40px; font-size: 19px; }
.icon-badge--lg { width: 60px; height: 60px; font-size: 28px; }
.icon-badge--navy { background: var(--navy); color: var(--amber); }
.icon-badge--tint { background: var(--tint); color: var(--navy); }

/* ---------- Tables ---------- */
.table-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.table { width: 100%; border-collapse: collapse; font-size: 1.04rem; }
.table thead th {
  background: var(--navy); color: #fff; text-align: left; font-weight: 700;
  padding: 14px 20px; font-size: .95rem; letter-spacing: .02em;
}
.table tbody th, .table tbody td, .table tfoot th, .table tfoot td {
  padding: 14px 20px; border-top: 1px solid var(--line); text-align: left; vertical-align: top;
}
.table tbody th { color: var(--navy); font-weight: 700; white-space: nowrap; }
.table tbody tr:nth-child(even) > * { background: #FAFBFC; }
.compare .no { color: var(--muted); }
.compare td.agentic { color: var(--ink); }
.compare td.agentic .i { color: var(--amber-ink); margin-right: 8px; }
.compare tbody td.agentic { background: var(--amber-soft) !important; font-weight: 700; color: var(--navy); }
.compare thead .col-agentic { background: var(--navy-3); }
.tools tbody th { white-space: normal; min-width: 150px; }
.tools td:last-child { color: var(--muted); }

@media (max-width: 760px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table tbody tr { padding: 16px 18px; border-top: 1px solid var(--line); }
  .table tbody tr:first-child { border-top: 0; }
  .table tbody tr:nth-child(even) > * { background: none; }
  .table tbody th, .table tbody td { border: 0; padding: 0; white-space: normal; }
  .table tbody th { font-family: var(--font-serif); font-size: 1.18rem; margin-bottom: 8px; }
  .table tbody td { padding-top: 6px; }
  .table tbody td::before {
    content: attr(data-label); display: block; font-size: .76rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
  }
  .compare tbody td.agentic { border-radius: 10px; padding: 8px 12px; margin-top: 8px; }
  .compare tbody td.agentic::before { color: var(--amber-ink); }
}

/* ---------- Agent loop ---------- */
.loop-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.loop-step {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 22px 12px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: inherit; cursor: pointer; box-shadow: var(--shadow);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.loop-step:hover { border-color: var(--navy); }
.loop-step strong { font-family: var(--font-serif); font-size: 1.25rem; color: var(--navy); margin-top: 4px; }
.loop-step .desc { font-size: .93rem; color: var(--muted); line-height: 1.35; }
.loop-step:not(:last-child)::after {
  content: "›"; position: absolute; right: -14px; top: 38px; width: 12px; text-align: center;
  color: var(--amber-ink); font-size: 1.8rem; line-height: 1; font-weight: 700; pointer-events: none;
}
.loop-step[aria-selected="true"] { background: var(--navy); border-color: var(--navy); }
.loop-step[aria-selected="true"] strong { color: #fff; }
.loop-step[aria-selected="true"] .desc { color: var(--on-dark-muted); }
.loop-bar {
  position: absolute; left: 16px; right: 16px; bottom: 10px; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, .15); overflow: hidden; opacity: 0;
}
.loop-bar::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.loop.is-playing .loop-step[aria-selected="true"] .loop-bar { opacity: 1; }
.loop.is-playing .loop-step[aria-selected="true"] .loop-bar::after { animation: loop-fill var(--loop-ms, 5000ms) linear forwards; }
@keyframes loop-fill { to { transform: scaleX(1); } }

.loop-panels { display: grid; gap: 16px; }
.loop-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.loop-general, .loop-example { padding: clamp(22px, 3vw, 32px); }
.loop-general h3 { font-size: 1.6rem; margin-bottom: .35em; }
.loop-general p:last-child, .loop-example p:last-child { margin-bottom: 0; }
.step-count { font-size: .84rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.loop-example { background: var(--navy); color: #E9EDF4; font-size: 1.12rem; }
.loop-example strong { color: var(--amber); }
.example-label { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.plan-list { padding-left: 1.3em; margin: 0; }
.plan-list li { margin-bottom: 4px; }
.plan-list li::marker { color: var(--amber); font-weight: 700; }
.loop-controls { display: flex; justify-content: flex-end; margin-top: 12px; }
.loop-toggle {
  display: inline-flex; align-items: center; background: transparent; border: 0; cursor: pointer;
  font: inherit; font-size: .95rem; font-weight: 700; color: var(--muted); padding: 6px 8px; border-radius: 8px;
}
.loop-toggle:hover { color: var(--navy); }
.loop-toggle span { display: inline-flex; align-items: center; gap: 6px; }
.loop-toggle-play { display: none !important; }
.loop-toggle[data-paused="true"] .loop-toggle-pause { display: none !important; }
.loop-toggle[data-paused="true"] .loop-toggle-play { display: inline-flex !important; }

@media (max-width: 860px) {
  .loop-steps { gap: 8px; }
  .loop-step { padding: 14px 4px 18px; gap: 6px; }
  .loop-step .desc { display: none; }
  .loop-step strong { font-size: 1rem; }
  .loop-step .icon-badge { width: 40px; height: 40px; font-size: 19px; }
  .loop-step:not(:last-child)::after { display: none; }
  .loop-bar { left: 10px; right: 10px; bottom: 7px; }
  .loop-panel { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .loop-step strong { font-size: .9rem; }
  .loop-step .icon-badge { width: 34px; height: 34px; font-size: 16px; }
}

/* ---------- WhatsApp flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; }
.flow-step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.flow-step h3 { margin: 18px 0 8px; }
.flow-step p { margin: 0; color: var(--muted); font-size: 1.04rem; }
.flow-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--tint);
}
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .flow { grid-template-columns: 1fr; } }

.autonomy {
  margin-top: 24px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px 40px;
  align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow);
}
.autonomy-copy { display: flex; gap: 16px; align-items: flex-start; }
.autonomy-copy h3 { margin: 4px 0 8px; }
.autonomy-copy p { margin: 0; color: var(--muted); }
.routines { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.routines li {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-alt); font-weight: 700; color: var(--navy); line-height: 1.35; font-size: 1.02rem;
}
.routines .i { color: var(--amber-ink); font-size: 1.25em; margin-top: 1px; }
@media (max-width: 860px) { .autonomy { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .routines { grid-template-columns: 1fr; } }

/* ---------- Architecture ---------- */
.layers { list-style: none; padding: 0; display: grid; gap: 10px; }
.layer {
  display: grid; grid-template-columns: 230px minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center;
  padding: 16px 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.layer-name { display: flex; align-items: center; gap: 12px; }
.layer h3 { margin: 0; font-size: 1.22rem; }
.layer > p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.tags li { font-size: .88rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--tint); color: var(--navy); }
.layer--key { background: var(--navy); border-color: var(--navy); box-shadow: var(--shadow); }
.layer--key h3 { color: #fff; }
.layer--key > p { color: var(--on-dark-muted); }
.layer--key .tags li { background: rgba(252, 163, 17, .16); color: var(--amber); }
.principles { margin-top: 24px; }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--bg-alt); }
.note h3 { margin: 2px 0 6px; font-size: 1.18rem; }
.note p { margin: 0; color: var(--muted); font-size: 1.04rem; }
@media (max-width: 860px) {
  .layer { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
}

/* ---------- Tools approvals ---------- */
.approvals { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.approvals-label { margin: 0; font-size: .86rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.approvals ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.approvals li {
  display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; font-weight: 700; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.approvals li.is-done { background: var(--amber-soft); border-color: #F5D9A6; }
.approvals li.is-done .i { color: var(--amber-ink); }

/* ---------- Progress ---------- */
.progress-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; }
.progress-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.progress-head h3 { margin: 0; }
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.ticks .i { color: var(--amber-ink); margin-top: 3px; font-size: 1.1em; }
.card--dark .ticks .i { color: var(--amber); }
.card--dark .ticks li { color: #E9EDF4; }
@media (max-width: 860px) { .progress-grid { grid-template-columns: 1fr; } }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 64px); }
.why { display: flex; gap: 18px; align-items: flex-start; }
.why h3 { margin: 6px 0 8px; }
.why p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Roadmap ---------- */
.roadmap-now {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  padding: 8px 16px; border-radius: 999px; background: var(--amber-soft); color: var(--navy); font-size: 1rem;
}
.roadmap-now .i { color: var(--amber-ink); font-size: 1.2em; }
.roadmap { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.phase { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.phase-head { display: flex; flex-direction: column; background: var(--navy); padding: 16px 20px; }
.phase-no { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; color: var(--amber); }
.phase-mo { font-size: .92rem; color: var(--on-dark-muted); }
.phase-body { padding: 20px; }
.phase-body h3 { font-size: 1.22rem; margin-bottom: 10px; }
.phase-body ul { padding-left: 1.1em; color: var(--muted); font-size: 1rem; }
.phase-body li { margin-bottom: 6px; }
.phase-body li::marker { color: var(--amber-ink); }
@media (max-width: 1000px) { .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .roadmap { grid-template-columns: 1fr; } }

/* ---------- Impact ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--navy); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px) clamp(20px, 3vw, 36px);
  gap: 24px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 24px; }
.stat-num { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--amber); }
.stat-label { color: var(--on-dark-muted); font-size: 1.02rem; line-height: 1.35; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat + .stat { border-left: 0; padding-left: 0; }
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.founder { background: var(--navy); color: #E9EDF4; border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); }
.founder-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.founder h3 { color: #fff; margin: 0; font-size: 1.5rem; }
.founder-role { margin: 2px 0 0; color: var(--amber); font-weight: 700; }
.founder ul { padding-left: 1.1em; display: grid; gap: 10px; }
.founder li::marker { color: var(--amber); }
.team-build { padding: 8px 4px; }
.team-build h3 { margin-bottom: 16px; }
.roles { list-style: none; padding: 0; display: grid; gap: 16px; }
.roles li { display: flex; gap: 14px; align-items: flex-start; }
.roles strong { display: block; color: var(--navy); }
.roles span:not(.icon-badge) { color: var(--muted); font-size: 1rem; }
.team-cta { margin: 22px 0 0; color: var(--muted); }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 26px; border-radius: var(--radius); text-decoration: none;
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .1); color: #E9EDF4;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.contact-card:hover { color: #E9EDF4; transform: translateY(-3px); border-color: rgba(252, 163, 17, .6); background: var(--navy-3); }
.contact-card h3 { margin: 18px 0 8px; }
.contact-card p { margin: 0 0 18px; color: var(--on-dark-muted); font-size: 1.04rem; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--amber); }
.contact-direct {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.contact-direct p { margin: 0; }
.cd-name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: #fff; }
.cd-meta { color: var(--on-dark-muted); }

/* ---------- Footer ---------- */
.site-footer { background: #0E1830; color: var(--on-dark-muted); padding-block: 36px; font-size: 1rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.footer-brand p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--on-dark-muted); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.footer-fine { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .92rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Grant page ---------- */
.hero--grant { padding-block: clamp(48px, 7vw, 88px); }
.hero--grant h1 { max-width: 20ch; }
.hero--grant .hero-lead { max-width: 58ch; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 36px 0 0; max-width: 860px; }
.hero-stats div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 16px 18px; }
.hero-stats dt { font-size: .84rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-stats dd { margin: 4px 0 0; font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; color: var(--amber); }
@media (max-width: 760px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.summary-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.summary-grid .lead { color: var(--ink); margin-bottom: 18px; }
.pillars { display: grid; gap: 14px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-alt); border-radius: var(--radius); padding: 20px; }
.pillar h3 { margin: 2px 0 6px; font-size: 1.2rem; }
.pillar p { margin: 0; color: var(--muted); font-size: 1.04rem; }
@media (max-width: 860px) { .summary-grid { grid-template-columns: 1fr; } }

.funds { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.donut-wrap { position: relative; margin: 0 auto; width: 100%; max-width: 320px; aspect-ratio: 1; }
.donut { width: 100%; height: 100%; overflow: visible; }
.donut .seg { fill: none; stroke-width: 34; transition: opacity .2s ease, stroke-width .2s ease; cursor: default; }
.funds.is-focus .seg { opacity: .25; }
.funds.is-focus .seg.is-active { opacity: 1; stroke-width: 40; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; padding: 0 22%; }
.dc-value { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.05; color: var(--navy); }
.dc-label { font-size: .95rem; color: var(--muted); line-height: 1.3; margin-top: 4px; }
.funds-table .num { text-align: right; white-space: nowrap; }
.funds-table thead th.num { text-align: right; }
.funds-table tbody tr { transition: background-color .15s ease; }
.funds-table tbody tr.is-active > * { background: var(--amber-soft) !important; }
.funds-table tfoot th, .funds-table tfoot td { font-weight: 700; color: var(--navy); background: var(--bg-alt); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 10px; vertical-align: 0; flex: none; }
.funds + .fine { margin-top: 16px; }
@media (max-width: 860px) { .funds { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .funds-table tfoot { display: block; }
  .funds-table tfoot tr { display: flex; justify-content: space-between; padding: 14px 18px; background: var(--bg-alt); }
  .funds-table tfoot th, .funds-table tfoot td { display: inline; width: auto; border: 0; padding: 0; background: none; }
  .funds-table .num { text-align: left; }
}

.roles--grant { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role-count { font-family: var(--font-serif); color: var(--amber-ink); }
@media (max-width: 640px) { .roles--grant { grid-template-columns: 1fr; } }

.phase0 { margin-top: 20px; }
.phase0 .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 760px) { .phase0 .ticks { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; background: var(--navy); color: #E9EDF4; text-align: center; padding-block: 48px; }
.notfound h1 { color: #fff; margin-top: 24px; }
.notfound .brand-mark { width: 64px; height: 64px; font-size: 34px; margin: 0 auto; }


/* ---------- Hero with hologram background video ---------- */
.hero--video {
  display: flex; align-items: center;
  min-height: clamp(560px, 86vh, 780px);
  padding-block: clamp(56px, 8vw, 104px);
  background: #0B1428;
  isolation: isolate;
}
.hero--video::before, .hero--video::after { display: none; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video {
  width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%;
  display: block; background: #0B1428;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 20, 40, .97) 0%, rgba(11, 20, 40, .9) 30%, rgba(11, 20, 40, .55) 52%, rgba(11, 20, 40, .1) 72%, rgba(11, 20, 40, 0) 100%),
    linear-gradient(180deg, rgba(11, 20, 40, .35) 0%, rgba(11, 20, 40, 0) 22%, rgba(11, 20, 40, 0) 78%, rgba(11, 20, 40, .55) 100%);
}
.hero-inner { position: relative; width: 100%; }
.hero--video .hero-copy { max-width: 580px; }
.hero--video h1 { max-width: 20ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero--video .lang-chip { background: rgba(11, 20, 40, .55); backdrop-filter: blur(6px); }
@media (max-width: 1100px) {
  /* Stacked: the hologram video becomes a banner above the headline */
  .hero--video { display: block; min-height: 0; padding-top: 0; padding-bottom: clamp(44px, 7vw, 72px); }
  .hero-media { position: relative; inset: auto; aspect-ratio: 16 / 9; z-index: 0; overflow: hidden; }
  .hero-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(11, 20, 40, .25) 0%, rgba(11, 20, 40, 0) 30%, rgba(11, 20, 40, 0) 62%, #0B1428 100%);
  }
  .hero-video { object-position: 82% 50%; }
  .hero-shade { display: none; }
  .hero-inner { margin-top: -8px; }
  .hero--video .hero-copy { max-width: 640px; }
}
@media (max-width: 600px) {
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-video { object-position: 86% 50%; }
}

/* ---------- WhatsApp section: steps + chat demo ---------- */
.wa-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.flow--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wa-demo { display: flex; justify-content: center; }
.wa-demo .chat { box-shadow: 0 2px 6px rgba(20, 33, 61, .08), 0 24px 50px rgba(20, 33, 61, .18); }
@media (max-width: 1000px) { .wa-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .flow--pair { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print (grant page → PDF) ---------- */
@media print {
  @page { margin: 14mm; }
  html { font-size: 12px; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .skip-link, .loop-controls, .nav-toggle, [data-print], .footer-links { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .chat .msg { opacity: 1 !important; animation: none !important; }
  .hero-media { display: none !important; }
  .section { padding-block: 28px; }
  .card, .phase, .table-wrap, .pillar, .founder, .stats, .layer, .flow-step, .note, .loop-panel { break-inside: avoid; box-shadow: none !important; }
  .section-head { break-after: avoid; }
  a { text-decoration: none; }
  .hero::before, .hero::after { display: none; }
}
