/* ==========================================================================
   Mentor AI — Marketing site stylesheet
   Brand: navy #0B2C48 · teal #157993
   ========================================================================== */

:root {
  --navy: #0B2C48;
  --navy-800: #103a5e;
  --navy-900: #071f33;
  --teal: #157993;
  --teal-400: #2ba3c0;
  --teal-100: #e3f3f7;
  --sky: #7fd4ea;
  --gold: #f0b429;
  --ink: #16283a;
  --muted: #55677a;
  --line: #e2eaf1;
  --bg: #f7fafc;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(11, 44, 72, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 44, 72, .28);
  --grad: linear-gradient(120deg, var(--teal) 0%, var(--teal-400) 50%, var(--sky) 100%);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Elements that rely on an animation to become visible must not stay hidden */
  .bubble, .chat-quota { opacity: 1 !important; transform: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 92%); margin-inline: auto; }

section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-100);
  padding: .4rem 1rem; border-radius: 999px; margin-bottom: 1rem;
}

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

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(11, 44, 72, .08);
  padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span em { font-style: normal; color: var(--sky); }
.site-header.scrolled .brand { color: var(--navy); }
.site-header.scrolled .brand span em { color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.site-header.scrolled .nav-links a { color: var(--muted); }
.site-header.scrolled .nav-links a:hover { color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: .8rem; }
.lang-switch {
  font-weight: 700; font-size: .85rem; padding: .45rem .8rem; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .4); color: #fff !important;
}
.lang-switch:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.site-header.scrolled .lang-switch { border-color: var(--line); color: var(--navy) !important; }
.site-header.scrolled .lang-switch:hover { background: var(--teal-100); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--navy); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 0; transition: transform .2s, box-shadow .2s, background .2s;
  text-decoration: none !important;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(21, 121, 147, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(21, 121, 147, .7); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.2rem; font-size: .88rem; }

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

.hero {
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(21, 121, 147, .55), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(43, 163, 192, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, #0e3a56 100%);
  color: #fff;
  padding: clamp(140px, 18vw, 190px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px; padding: .45rem 1.1rem; font-size: .85rem; font-weight: 600;
  backdrop-filter: blur(8px); margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }

.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .grad-text {
  background: linear-gradient(100deg, var(--sky), var(--teal-400) 60%, #9ae6f7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.15rem; color: rgba(255, 255, 255, .82); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3vw, 2.6rem); }
.hero-stat strong { display: block; font-size: 1.55rem; font-weight: 800; color: var(--sky); }
.hero-stat span { font-size: .85rem; color: rgba(255, 255, 255, .65); }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-wrap::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 163, 192, .35), transparent 70%);
  filter: blur(30px); z-index: 0;
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

.phone {
  position: relative; z-index: 1; width: min(330px, 82vw);
  background: #0d1b2a; border-radius: 42px; padding: 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .06);
  animation: floatPhone 7s ease-in-out infinite;
}
@keyframes floatPhone { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

.phone-screen { background: #f2f7fa; border-radius: 30px; overflow: hidden; }
.phone-top { background: var(--navy); color: #fff; padding: 16px 16px 12px; display: flex; align-items: center; gap: .6rem; }
.phone-top .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff;
}
.phone-top .who strong { display: block; font-size: .85rem; }
.phone-top .who span { font-size: .68rem; color: var(--sky); display: inline-flex; align-items: center; gap: .3rem; }
.phone-top .who span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }

.chat { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 330px; }
.bubble {
  max-width: 82%; padding: .6rem .85rem; border-radius: 16px; font-size: .78rem; line-height: 1.45;
  opacity: 0; transform: translateY(8px); animation: bubbleIn .5s forwards;
}
.bubble.user { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 4px; animation-delay: .6s; }
.bubble.ai { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(11,44,72,.06); }
.bubble.ai.b2 { animation-delay: 1.5s; }
.bubble.ai.b3 { animation-delay: 2.4s; }
.bubble .src { display: block; margin-top: .45rem; font-size: .66rem; color: var(--teal); font-weight: 700; }
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }

.chat-quota {
  margin-top: auto; display: flex; justify-content: center;
  font-size: .64rem; color: var(--muted); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: .3rem .8rem; align-self: center;
  opacity: 0; animation: bubbleIn .5s 3.1s forwards;
}

/* Floating chips near phone */
.float-chip {
  position: absolute; z-index: 2; background: rgba(255, 255, 255, .95); color: var(--navy);
  font-size: .74rem; font-weight: 700; padding: .5rem .85rem; border-radius: 12px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: .45rem;
  animation: floatChip 5s ease-in-out infinite;
}
.float-chip svg { width: 16px; height: 16px; }
.chip-1 { top: 12%; left: -4%; animation-delay: .5s; }
.chip-2 { bottom: 18%; right: -6%; animation-delay: 1.6s; }
@keyframes floatChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ------------------------------- Audiences ------------------------------- */

.audiences { background: #fff; border-bottom: 1px solid var(--line); }
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.aud-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.aud-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal-400); }
.aud-card .ico {
  width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 16px;
  background: var(--grad); display: grid; place-items: center; color: #fff;
}
.aud-card .ico svg { width: 26px; height: 26px; }
.aud-card h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.aud-card p { font-size: .86rem; color: var(--muted); margin: 0; }

/* ------------------------------ Features bento --------------------------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.bento-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.bento-card h3 { display: flex; align-items: center; gap: .6rem; }
.bento-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.bento-card .f-ico {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: var(--teal-100); color: var(--teal); display: grid; place-items: center;
}
.bento-card .f-ico svg { width: 22px; height: 22px; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }

.bento-card.dark {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-800) 100%);
  border-color: transparent; color: rgba(255, 255, 255, .85);
}
.bento-card.dark h3 { color: #fff; }
.bento-card.dark p { color: rgba(255, 255, 255, .72); }
.bento-card.dark .f-ico { background: rgba(255, 255, 255, .12); color: var(--sky); }
.bento-card.dark::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(43, 163, 192, .4), transparent 70%);
}

.taglist { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.taglist span {
  font-size: .76rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px;
  background: var(--teal-100); color: var(--teal);
}
.bento-card.dark .taglist span { background: rgba(255, 255, 255, .12); color: var(--sky); }

/* ------------------------------- How it works ---------------------------- */

.how { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step {
  position: relative; padding: 2rem 1.5rem 1.7rem; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -1rem; left: 1.3rem;
  background: var(--grad); color: #fff; font-weight: 800; font-size: .85rem;
  padding: .35rem .8rem; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(21,121,147,.6);
}
.step h3 { font-size: 1.05rem; margin-top: .4rem; }
.step p { font-size: .89rem; color: var(--muted); margin: 0; }

/* ---------------------------------- Roles -------------------------------- */

.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.role-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; transition: transform .25s, box-shadow .25s;
}
.role-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.role-card .r-ico {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: .9rem;
  background: var(--teal-100); color: var(--teal); display: grid; place-items: center;
}
.role-card .r-ico svg { width: 21px; height: 21px; }
.role-card h3 { font-size: .98rem; }
.role-card p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ------------------------------ Split sections --------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split .txt .eyebrow { margin-bottom: .8rem; }
.checks { list-style: none; margin: 1.4rem 0 2rem; padding: 0; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; font-size: .97rem; color: var(--ink); }
.checks li svg { width: 21px; height: 21px; flex: none; color: var(--teal); margin-top: .15rem; }
.checks li strong { color: var(--navy); }

/* White-label visual */
.wl-visual { position: relative; }
.wl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.wl-bar { display: flex; gap: .4rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.wl-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.wl-bar i:first-child { background: #f87171; } .wl-bar i:nth-child(2) { background: var(--gold); } .wl-bar i:nth-child(3) { background: #4ade80; }
.wl-body { padding: 1.6rem; }
.wl-brandrow { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.wl-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; transition: background .4s; }
.wl-brandrow strong { transition: color .4s; }
.wl-brandrow small { display: block; color: var(--muted); font-size: .75rem; }
.wl-swatches { display: flex; gap: .6rem; margin-bottom: 1.2rem; }
.wl-swatches button {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; cursor: pointer;
  box-shadow: 0 0 0 1.5px var(--line); transition: transform .2s;
}
.wl-swatches button:hover, .wl-swatches button.active { transform: scale(1.15); box-shadow: 0 0 0 2px var(--teal); }
.wl-fake-btn { border-radius: 10px; padding: .7rem; text-align: center; color: #fff; font-weight: 700; font-size: .88rem; background: var(--teal); transition: background .4s; }
.wl-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: .8rem; }

/* ------------------------------- Security -------------------------------- */

.security { background: linear-gradient(160deg, var(--navy-900), var(--navy) 70%); color: rgba(255,255,255,.8); }
.security .section-head h2 { color: #fff; }
.security .section-head p { color: rgba(255,255,255,.65); }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.sec-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 1.7rem; backdrop-filter: blur(8px);
}
.sec-card h3 { color: #fff; display: flex; align-items: center; gap: .6rem; font-size: 1.02rem; }
.sec-card p { color: rgba(255, 255, 255, .68); font-size: .9rem; margin: 0; }
.sec-card .s-ico { width: 40px; height: 40px; border-radius: 11px; flex: none; background: rgba(43, 163, 192, .25); color: var(--sky); display: grid; place-items: center; }
.sec-card .s-ico svg { width: 20px; height: 20px; }

/* ---------------------------------- FAQ ----------------------------------- */

.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: .9rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  padding: 1.15rem 1.4rem; font: inherit; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q .chev { flex: none; width: 22px; height: 22px; color: var(--teal); transition: transform .3s; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--muted); font-size: .95rem; }

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

.contact { background: #fff; }
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-800) 100%);
  border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); color: rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.contact-wrap::before {
  content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 163, 192, .35), transparent 70%);
  top: -150px; right: -120px;
}
.contact-info h2 { color: #fff; }
.contact-info p { color: rgba(255, 255, 255, .72); }
.contact-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.contact-points li { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; }
.contact-points svg { width: 20px; height: 20px; flex: none; color: var(--sky); margin-top: .2rem; }

.form { position: relative; z-index: 1; display: grid; gap: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form label { display: grid; gap: .35rem; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.8); }
.form input, .form select, .form textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  background: rgba(255, 255, 255, .95); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(43,163,192,.3); }
.form textarea { resize: vertical; min-height: 110px; }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .92rem; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: rgba(74, 222, 128, .18); color: #bbf7d0; border: 1px solid rgba(74, 222, 128, .4); }
.form-msg.err { display: block; background: rgba(248, 113, 113, .15); color: #fecaca; border: 1px solid rgba(248, 113, 113, .4); }

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

.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .6); padding: 3.5rem 0 2rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer .brand { font-size: 1.05rem; margin-bottom: .8rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .65); }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .82rem; }

/* ------------------------------ Reveal on scroll -------------------------- */

/* Hide-before-reveal only when JS is confirmed running (html.js set inline in <head>),
   so content is never lost if JavaScript fails to load. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

/* ------------------------------- Back to top ------------------------------ */

#toTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; transform: translateY(10px);
  box-shadow: var(--shadow);
}
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }
#toTop svg { width: 20px; height: 20px; }

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

@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-3, .span-2 { grid-column: span 1; }
  .aud-grid, .roles-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .phone-wrap { margin-top: 2rem; }
  .split { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 auto; top: 0; padding: 96px 8% 32px; z-index: -1;
    flex-direction: column; align-items: flex-start; gap: 1.2rem;
    background: #fff; box-shadow: 0 30px 60px rgba(11, 44, 72, .18);
    transform: translateY(-110%); transition: transform .35s ease;
  }
  .nav-open .nav-links { transform: none; }
  .nav-links a { color: var(--navy) !important; font-size: 1.1rem; }
  .nav-open .site-header, .nav-open .brand { color: var(--navy); }
}

@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .aud-grid, .roles-grid, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .chip-1 { left: 2%; } .chip-2 { right: 2%; }
}
