/* AI Reveo Automation - robocze podstrony ofertowe ImOmni.
   Lokalna wersja robocza. Jeden system wizualny dla trzech wariantow.
   Branding, paleta, typografia i ton zgodne z aireveoautomation.com. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f7f9fb;
  --raised: #edf2f6;
  --line: #dbe3ea;
  --line-soft: #e7edf2;
  --ink: #17232e;
  --ink-soft: #24323e;
  --muted: #526372;
  --muted-2: #6b7a87;
  --accent: #376986;
  --accent-deep: #24485e;
  --accent-ink: #123246;
  --hero-ink: #0c1b28;
  --hero-ink-2: #122634;
  --signal: #4a86a6;
  --ok: #2f7d6b;
  --radius-lg: 32px;
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1240px;
  --shadow-soft: 0 1px 0 #ffffff80 inset, 0 14px 40px #22384c0d;
  --shadow-raise: 0 20px 60px #22384c14;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Per-environment signal tint, still inside the brand petrol family. */
.env-google { --signal: #4a86a6; --halo: #8fbed7; }
.env-ms { --signal: #5b7fb0; --halo: #9db6d9; }
.env-aifirst { --signal: #3f93a3; --halo: #7fc0cd; }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

::selection { background: #c0d7ea; color: #091019; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px color-mix(in srgb, var(--signal) 60%, transparent);
}
.eyebrow--light { color: #a9c4d6; }
.eyebrow--light .dot { background: #bfe0f3; }

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 5px 0 #ffffff22 inset, 0 12px 28px #273c4d1f;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px #22384c2e; }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 0 #ffffffcc inset, 0 8px 22px #22384c08;
}
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-light {
  background: #eef5fa;
  color: var(--accent-ink);
  border-color: #cfe0ec;
}
.btn-light:hover { background: #fff; transform: translateY(-3px); }
.btn-small { padding: 11px 16px; font-size: 13px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.text-link svg { width: 15px; height: 15px; transition: transform 0.2s; }
.text-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffffd0;
  backdrop-filter: blur(22px);
  border-bottom: 1px solid #e3e9ee;
}
.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 44px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  width: 160px;
  height: auto;
  mix-blend-mode: multiply;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s;
}
.main-nav a:hover { color: var(--ink); }
.header-cta { display: inline-flex; align-items: center; gap: 18px; }
.menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 12px;
}
.mobile-nav a:hover { background: var(--raised); }
.mobile-nav .btn { margin-top: 10px; }

/* ---------- Environment switch ---------- */
.env-switch {
  border-bottom: 1px solid var(--line-soft);
  background: #fbfcfdcc;
  backdrop-filter: blur(10px);
}
.env-switch-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 12px 44px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.env-switch-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.env-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  background: #eef2f6;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.env-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 10px;
  transition: all 0.18s;
}
.env-tabs a .tab-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: 0.55;
}
.env-tabs a:hover { color: var(--ink); background: #ffffff8c; }
.env-tabs a[aria-current="page"] {
  background: #fff;
  color: var(--accent-ink);
  box-shadow: 0 2px 8px #22384c12;
}
.env-tabs a[aria-current="page"] .tab-dot { background: var(--signal); opacity: 1; }

/* ---------- Section rhythm ---------- */
.section { padding: clamp(64px, 8vw, 118px) 0; }
.section-tight { padding: clamp(48px, 6vw, 86px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
}
.section-head p { margin-top: 22px; }
.section-split .section-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  max-width: none;
}
.section-split .section-head p { margin-top: 0; }

/* ---------- Hero (shared base) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #eaf2f8;
  background:
    radial-gradient(ellipse at 88% 14%, var(--accent-deep), transparent 58%),
    radial-gradient(ellipse at 10% 92%, #15303f, transparent 55%),
    var(--hero-ink);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff09 1px, transparent 1px),
    linear-gradient(90deg, #ffffff09 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 72%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
  padding: clamp(58px, 7vw, 104px) 0 clamp(64px, 8vw, 110px);
}
.hero h1 {
  color: #fff;
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.07;
  letter-spacing: -0.045em;
  margin: 24px 0 26px;
}
.hero h1 .accent { color: #9fc8df; }
.hero-copy {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.75;
  color: #b9cbd8;
  max-width: 52ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid #ffffff1f;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #a9c0d0;
}
.hero-meta svg { width: 16px; height: 16px; color: #8fbace; }

/* ---------- Generic panel / glass ---------- */
.panel {
  background: linear-gradient(135deg, #ffffffed, #f4f7faf2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- Problem / result ---------- */
.problem-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pr-card {
  padding: clamp(28px, 3vw, 42px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.pr-card .tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pr-problem { background: #fbfafa; }
.pr-problem .tag { color: #9a6a5e; }
.pr-result {
  background: linear-gradient(145deg, #eef5f9, #f7fbfd);
  border-color: #cfe0ec;
}
.pr-result .tag { color: var(--accent); }
.pr-card h3 { font-size: clamp(21px, 2vw, 27px); margin: 16px 0 14px; line-height: 1.25; }
.pr-card p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.pr-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.pr-card li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}
.pr-card li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.pr-problem li::before { background: #cbb3ac; }
.pr-result li::before { background: var(--signal); }

/* ---------- Use cases (editorial, not floating cards) ---------- */
.usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.usecase {
  padding: 36px 34px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background 0.25s;
}
.usecase:hover { background: #f8fbfc; }
.usecase-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.usecase-icon {
  margin: 20px 0 20px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #eaf2f7;
  color: var(--accent);
  border: 1px solid #d7e6ef;
}
.usecase-icon svg { width: 22px; height: 22px; }
.usecase h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.025em; }
.usecase p { margin-top: 12px; font-size: 15px; line-height: 1.68; color: var(--muted); }

/* ---------- Delivery 4 steps ---------- */
.delivery-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px 34px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #ffffff, #f4f8fb);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.step-index {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.step-index b {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.step h3 { font-size: 18px; margin: 18px 0 12px; line-height: 1.3; }
.step p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.step-arrow {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--line);
}
.step:last-child .step-arrow { display: none; }

/* ---------- Security ---------- */
.security {
  background: radial-gradient(ellipse at 90% 0, #5f7d9628, transparent 62%), #f2f6f9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 70px);
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 30px;
  margin-top: 40px;
}
.sec-item {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: #ffffffbf;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.sec-item .sec-ico {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #e6eef4;
  color: var(--accent);
  border: 1px solid #cfdfea;
}
.sec-item .sec-ico svg { width: 20px; height: 20px; }
.sec-item h3 { font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
.sec-item p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.sec-note {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 26px;
  border-radius: 16px;
  background: #0e2231;
  color: #d6e6f1;
}
.sec-note svg { width: 22px; height: 22px; color: #8fc3dd; flex-shrink: 0; margin-top: 2px; }
.sec-note strong { color: #fff; }
.sec-note p { font-size: 15px; line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 920px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(115deg, #ffffffd9, #f3f7fad9);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open], .faq-item:hover { border-color: #61788b; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid #94a6b4;
  border-radius: 50%;
  transition: transform 0.25s, background 0.2s;
}
.faq-item summary .chev svg { width: 15px; height: 15px; color: var(--accent); }
.faq-item[open] summary .chev { transform: rotate(45deg); background: #eaf2f7; }
.faq-item .faq-body { padding: 0 72px 24px 26px; }
.faq-item .faq-body p { font-size: 15px; line-height: 1.75; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 84px);
  color: #e9f2f8;
  background:
    radial-gradient(ellipse at 88% 10%, var(--accent-deep), transparent 60%),
    var(--hero-ink);
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(#ffffff0a 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 70%);
}
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.1; max-width: 18ch; }
.cta p { margin: 22px 0 0; color: #b9cbd8; font-size: 17px; line-height: 1.7; max-width: 54ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.cta-mail {
  margin-top: 28px;
  font-size: 15px;
  color: #a9c0d0;
}
.cta-mail a { color: #fff; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: #f4f7fa;
  border-top: 1px solid var(--line);
  padding: clamp(52px, 6vw, 80px) 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
}
.footer-brand img {
  width: 168px;
  height: auto;
  aspect-ratio: 818 / 259;
  object-fit: contain;
  mix-blend-mode: multiply;
  margin-bottom: 20px;
}
.footer-brand p { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 38ch; }
.footer-brand .footer-sub { margin-top: 12px; font-size: 13px; color: var(--muted-2); }
.footer-col h3 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  padding: 7px 0;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.18s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted-2);
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-note {
  margin-top: 16px;
  font-size: 12px;
  color: #93a2af;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .delivery-steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .step-arrow { display: none; }
}
@media (max-width: 900px) {
  .main-nav, .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .section-split .section-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .problem-result { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .container, .header-inner, .env-switch-inner { padding-inline: 22px; }
  .usecases { grid-template-columns: 1fr; }
  .delivery-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq-item .faq-body { padding-right: 26px; }
  .env-switch-inner { gap: 10px; }
  .env-tabs { width: 100%; justify-content: space-between; }
  .env-tabs a { padding: 9px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   SYSTEM GRAPHICS - custom CSS/SVG per environment. No stock AI imagery.
   ===================================================================== */

/* Shared in-hero figure frame */
.hero-figure {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: var(--radius-lg);
  background: #ffffff07;
  box-shadow: inset 0 0 0 1px #b4ddf522, 0 30px 80px #00000038;
}
.hero-figure .fig-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #c5dfef;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.hero-figure .fig-head b { color: #fff; font-weight: 600; letter-spacing: -0.01em; }
.hero-figure .fig-head .pill {
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ffffff12;
  color: #bcd6e7;
  border: 1px solid #ffffff1f;
}

/* ---- Page 1: Operational LAYER stack ---- */
.layer-stack { display: grid; gap: 14px; }
.layer-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.layer-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #ffffff0d;
  border: 1px solid #ffffff1c;
  color: #e4eef6;
  font-size: 12.5px;
  font-weight: 500;
  min-width: 0;
}
.layer-chip svg { width: 16px; height: 16px; color: #9fc8df; flex-shrink: 0; }
.layer-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer-core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: linear-gradient(120deg, #c5e6f8, #e3f2fa);
  color: var(--accent-ink);
  box-shadow: 0 0 56px #92d3f522;
}
.layer-core strong { font-size: 17px; letter-spacing: -0.02em; }
.layer-core small { display: block; font-size: 12px; color: #34556a; margin-top: 3px; }
.layer-core .core-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px; background: #ffffffbf; color: var(--accent);
}
.layer-core .core-mark svg { width: 22px; height: 22px; }
.layer-flow {
  height: 26px;
  display: grid;
  grid-auto-flow: column;
  justify-content: space-around;
}
.layer-flow i {
  display: block;
  width: 2px;
  height: 100%;
  background: linear-gradient(#789fb300, #789fb3aa);
  position: relative;
  overflow: hidden;
}
.layer-flow i::after {
  content: "";
  position: absolute; left: 0; top: -40%;
  width: 2px; height: 40%;
  background: #c5edff;
  box-shadow: 0 0 10px #b7e8ff;
  animation: riseSignal 2.4s linear infinite;
}
.layer-flow i:nth-child(2)::after { animation-delay: 0.6s; }
.layer-flow i:nth-child(3)::after { animation-delay: 1.2s; }
.layer-flow i:nth-child(4)::after { animation-delay: 0.3s; }
.layer-flow.down i { background: linear-gradient(#789fb3aa, #789fb300); }
.layer-flow.down i::after { animation: dropSignal 2.4s linear infinite; }
.layer-out { grid-template-columns: repeat(3, 1fr); }
.layer-out .layer-chip {
  background: #ffffff14;
  border-color: #ffffff2b;
  justify-content: center;
  font-weight: 600;
}
@keyframes riseSignal { from { top: 110%; } to { top: -40%; } }
@keyframes dropSignal { from { top: -40%; } to { top: 110%; } }

/* ---- Page 2: Connected mesh with permission gate ---- */
.mesh-canvas { position: relative; display: grid; gap: 18px; }
.mesh-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.mesh-nodes { display: grid; gap: 10px; }
.mesh-node {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 11px;
  background: #ffffff0d;
  border: 1px solid #ffffff1c;
  color: #e4eef6;
  font-size: 12.5px;
  font-weight: 500;
}
.mesh-node svg { width: 15px; height: 15px; color: #9db6d9; flex-shrink: 0; }
.mesh-gate {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 18px;
  border-radius: 18px;
  background: linear-gradient(140deg, #d6e2f3, #eef3fb);
  color: var(--accent-ink);
  box-shadow: 0 0 60px #7fa3dd26;
  min-width: 128px;
}
.mesh-gate .gate-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px; background: #ffffffcc; color: #3a5f86;
}
.mesh-gate .gate-mark svg { width: 24px; height: 24px; }
.mesh-gate strong { font-size: 14px; text-align: center; line-height: 1.3; }
.mesh-gate small { font-size: 11px; color: #4a627f; }
.mesh-out .mesh-node {
  justify-content: space-between;
  background: #ffffff14;
  border-color: #ffffff2b;
  font-weight: 600;
}
.mesh-out .mesh-node svg { color: #bcd6e7; }
.mesh-link-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #a9c0d0;
  padding-top: 10px;
  border-top: 1px solid #ffffff17;
}
.mesh-link-note .state-ok {
  width: 7px; height: 7px; border-radius: 50%;
  background: #8fd3b0; box-shadow: 0 0 10px #8fd3b0aa;
}

/* ---- Page 3: Company operating-system stack ---- */
.os-stack { display: grid; gap: 9px; }
.os-layer {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-radius: 13px;
  background: #ffffff0b;
  border: 1px solid #ffffff18;
}
.os-layer .os-k {
  font-size: 11px;
  font-weight: 700;
  color: #7fc0cd;
  font-variant-numeric: tabular-nums;
}
.os-layer .os-label { color: #eaf2f8; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.os-layer .os-sub { color: #9fb6c5; font-size: 12px; margin-top: 2px; }
.os-layer .os-tick {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; color: #a9c0d0;
}
.os-layer .os-tick .d { width: 7px; height: 7px; border-radius: 50%; background: #3f93a3; box-shadow: 0 0 9px #3f93a3aa; }
.os-layer--accent {
  background: linear-gradient(120deg, #1d4152, #2a5668);
  border-color: #3f93a355;
}
.os-layer--accent .os-label { color: #fff; }
.os-layer--human {
  background: linear-gradient(120deg, #14303f, #1a3d4d);
  border-color: #6f93a455;
}
.os-layer--human .os-tick .d { background: #e7b06a; box-shadow: 0 0 9px #e7b06aaa; }
.os-layer--out {
  background: #ffffff16;
  border-color: #ffffff2e;
}

/* =====================================================================
   ARCHITECTURE FLOW RIBBON (light section, per-page labels)
   ===================================================================== */
.flow-ribbon {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 10px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #eef4f8, #f7fafc);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}
.flow-node {
  flex: 1 0 0;
  min-width: 150px;
  padding: 22px 20px;
  border-radius: 16px;
  background: #ffffffe0;
  border: 1px solid var(--line-soft);
  margin: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-node .fn-ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #e6eef4; color: var(--accent);
  border: 1px solid #d3e2ec;
}
.flow-node .fn-ico svg { width: 19px; height: 19px; }
.flow-node .fn-k { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.flow-node h4 { font-size: 15.5px; line-height: 1.3; letter-spacing: -0.02em; }
.flow-node p { font-size: 13px; line-height: 1.55; color: var(--muted); }
.flow-node--accent { background: linear-gradient(135deg, #e7f1f7, #f4fafd); border-color: #cfe0ec; }
.flow-node--human { background: linear-gradient(135deg, #fbf3e9, #fdf9f3); border-color: #ecdcc6; }
.flow-node--human .fn-ico { background: #f6e7d4; color: #a97636; border-color: #ecd6ba; }
.flow-sep {
  display: grid;
  place-items: center;
  color: #9fb4c2;
  flex: 0 0 26px;
}
.flow-sep svg { width: 20px; height: 20px; }

.flow-feedback {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  padding: 14px 20px;
  border-radius: 14px;
  background: #eef4f8;
  border: 1px dashed #c6d7e2;
}
.flow-feedback svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

@media (max-width: 900px) {
  .layer-row { grid-template-columns: repeat(2, 1fr); }
  .mesh-cols { grid-template-columns: 1fr; }
  .mesh-gate { justify-self: center; }
  .flow-ribbon { flex-direction: column; }
  .flow-sep { flex: 0 0 26px; transform: rotate(90deg); }
}

/* Audience / "for whom" band */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.aud-card {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.aud-card .aud-ico { color: var(--accent); margin-bottom: 16px; }
.aud-card .aud-ico svg { width: 24px; height: 24px; }
.aud-card h3 { font-size: 17px; line-height: 1.3; }
.aud-card p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } }

/* "What it is" definition block */
.definition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.definition .def-list { display: grid; gap: 14px; }
.definition .def-list li {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.definition .def-list li svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.definition .def-list li b { color: var(--ink); }
.definition .def-list li span { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 860px) { .definition { grid-template-columns: 1fr; gap: 28px; } }

/* =====================================================================
   INDEX - environment choice
   ===================================================================== */
.env-choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 32px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #ffffff, #f3f7fa);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.2s;
  overflow: hidden;
}
.choice-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}
.choice-card:hover { transform: translateY(-6px); box-shadow: 0 28px 64px #22384c1c; border-color: #9fb6c6; }
.choice-g { --c1:#4a86a6; --c2:#8fbed7; }
.choice-m { --c1:#5b7fb0; --c2:#9db6d9; }
.choice-a { --c1:#3f93a3; --c2:#7fc0cd; }
.choice-k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.choice-card h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.18;
  margin: 10px 0 14px;
}
.choice-card > p { font-size: 15px; line-height: 1.68; color: var(--muted); }
.choice-card .choice-promise {
  margin: 20px 0 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.choice-card .choice-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.choice-card .choice-scope span {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #e8eff5;
  color: #345a72;
  border: 1px solid #d3e0ea;
}
.choice-card .choice-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.choice-card .choice-go svg { width: 16px; height: 16px; transition: transform 0.2s; }
.choice-card:hover .choice-go svg { transform: translate(3px, -3px); }
.choice-card .stretched { position: absolute; inset: 0; z-index: 1; }
.choice-card .choice-go { position: relative; z-index: 2; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.principle {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.principle .p-ico { color: var(--accent); margin-bottom: 16px; }
.principle .p-ico svg { width: 24px; height: 24px; }
.principle h3 { font-size: 18px; line-height: 1.3; }
.principle p { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

@media (max-width: 960px) {
  .env-choice { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
}
