@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Vazirmatn:wght@400;500;600;700&display=swap");

:root {
  --paper: #f7f7f2;
  --ink: #17211d;
  --muted: #68736d;
  --line: #dfe3db;
  --white: #ffffff;
  --green: #186049;
  --green-deep: #104f3b;
  --green-dark: #0b3a2c;
  --dark-surface: #0b211d;
  --dark-surface-2: #071813;
  --dark-card: rgba(13, 52, 45, 0.72);
  --dark-line: rgba(200, 238, 125, 0.14);
  --dark-muted: #b8c8be;
  --lime: #c8ee7d;
  --soft: #edf3e8;
  --cyan: #05dbe7;
  --blue: #238cf4;
  --violet: #9345f5;
  --shadow: 0 20px 60px rgba(34, 53, 44, 0.09);
  --shadow-lg: 0 40px 100px rgba(15, 40, 30, 0.14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Vazirmatn", sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
  position: fixed; top: 8px; left: 10px; z-index: 99;
  background: var(--ink); color: white; padding: 10px 16px;
  transform: translateY(-150%); border-radius: 8px;
}
.skip-link:focus { transform: none; }

/* ------------- Top navigation ------------- */
.topbar {
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 4.5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 242, 0.86);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(24, 96, 73, 0.04);
}
.product-mark {
  display: flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none; width: max-content;
}
.product-mark > span:last-child { display: grid; line-height: 1.05; }
.product-mark strong {
  font-family: Manrope, sans-serif;
  font-size: 23px; letter-spacing: -0.055em; color: #124b3a;
}
.product-mark small {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.17em; color: #748078; margin-top: 4px;
}
.brand-logo-compact {
  width: 44px; height: 44px; border-radius: 13px;
  overflow: hidden; background: #04070a;
  border: 1px solid rgba(0, 220, 232, 0.35);
  box-shadow: 0 8px 22px rgba(20, 116, 139, 0.22);
  display: grid; place-items: center;
}
.brand-logo-compact img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}

.top-nav {
  display: flex; align-items: center; gap: 28px; height: 100%;
}
.nav-link {
  border: 0; background: none;
  color: var(--muted); font-size: 14px; cursor: pointer;
  text-decoration: none; padding: 0; position: relative;
  transition: color 0.18s;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--ink); outline: none; }
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-link.active::after {
  content: ""; position: absolute; height: 2px;
  background: var(--green); left: 0; right: 0; bottom: -28px;
}

.top-actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.studio-link {
  height: 40px; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 16px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 58%, var(--violet));
  color: white; text-decoration: none;
  font: 700 12px Manrope, sans-serif; letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(35, 140, 244, 0.22);
  transition: transform 0.18s, filter 0.18s;
}
.studio-link:hover { filter: brightness(1.06); transform: translateY(-1px); }
.studio-link small {
  background: rgba(255, 255, 255, 0.18); padding: 3px 7px;
  border-radius: 6px; font-size: 10px; font-weight: 700;
}
.demo-link {
  height: 40px; display: inline-flex; align-items: center;
  padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--green);
  color: var(--green); background: transparent;
  font: 700 12px Manrope, sans-serif; text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.demo-link:hover, .demo-link:focus-visible {
  background: var(--green); color: white; outline: none;
}

/* ------------- Shared internal page layouts ------------- */
.subpage-hero {
  min-height: auto;
  padding-block: clamp(76px, 9vw, 118px);
  align-items: center;
}
.subpage-hero .hero-copy { max-width: 760px; }
.subpage-hero h1 { font-size: clamp(48px, 7vw, 86px); }
.subpage-visual {
  min-height: 420px;
  border-radius: 34px;
  border: 1px solid rgba(24, 96, 73, 0.14);
  background:
    radial-gradient(circle at 20% 20%, rgba(5, 219, 231, 0.18), transparent 30%),
    linear-gradient(145deg, #ffffff, #edf3e8);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
}
.subpage-visual img {
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(16, 79, 59, 0.16);
}
.architecture-mini {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.architecture-mini span {
  min-width: 112px;
  min-height: 78px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(24, 96, 73, 0.18);
  color: var(--ink);
  font: 800 13px Manrope, sans-serif;
  box-shadow: 0 18px 45px rgba(24, 96, 73, 0.08);
}
.architecture-mini i {
  color: var(--green);
  font: 900 22px Manrope, sans-serif;
  font-style: normal;
}
.mission-card,
.contact-card {
  width: min(420px, 100%);
  border-radius: 28px;
  padding: 34px;
  color: white;
  background:
    radial-gradient(circle at 12% 0%, rgba(5, 219, 231, 0.12), transparent 38%),
    linear-gradient(145deg, var(--dark-surface), var(--green-dark));
  box-shadow: 0 30px 80px rgba(8, 35, 28, 0.18);
}
.mission-card strong,
.contact-card strong {
  display: block;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  margin-bottom: 14px;
}
.mission-card p,
.contact-card small {
  color: rgba(255,255,255,0.76);
  line-height: 1.65;
}
.contact-card a {
  display: block;
  color: white;
  font: 800 28px Manrope, sans-serif;
  text-decoration: none;
  margin: 8px 0 16px;
  overflow-wrap: anywhere;
}
.demo-start-hero .brand-film-frame {
  width: min(680px, 100%);
}
.demo-start-hero .hero-visual {
  align-self: stretch;
  display: grid;
  align-items: center;
}

.mobile-toggle { display: none; }

/* ------------- Hero ------------- */
.hero {
  position: relative;
  max-width: 1320px;
  min-height: 620px;
  margin: 0 auto;
  padding: 60px 38px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero::before {
  content: ""; position: absolute;
  width: 520px; height: 520px;
  left: -280px; top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 238, 125, 0.22), transparent 68%);
  pointer-events: none; z-index: 0;
}
.hero::after {
  content: ""; position: absolute;
  width: 500px; height: 500px;
  right: -260px; bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 140, 244, 0.14), transparent 68%);
  pointer-events: none; z-index: 0;
}

.hero-copy { position: relative; z-index: 3; }

.overline {
  display: inline-flex; align-items: center; gap: 9px;
  background: #edf5e9; border: 1px solid #dce9d8;
  border-radius: 99px; padding: 8px 14px;
  color: #1d674e; font-size: 11px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
}
.overline::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%; background: #84bd3f;
}

.hero h1 {
  font: 500 clamp(44px, 5.4vw, 72px) / 0.99 Manrope, sans-serif;
  letter-spacing: -0.055em;
  margin: 22px 0 20px;
  max-width: 680px;
}
.hero h1 em {
  display: inline-block;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(90deg, #176149, #448262);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 17px; line-height: 1.65;
  color: var(--muted); max-width: 560px;
  margin: 0 0 24px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 14px;
  font: 700 13px Manrope, sans-serif; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.18s, filter 0.18s, box-shadow 0.18s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue) 58%, var(--violet));
  color: white;
  box-shadow: 0 14px 32px rgba(35, 140, 244, 0.28);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn-secondary {
  background: white; color: var(--green);
  border: 1px solid #cad9cf;
  box-shadow: 0 10px 24px rgba(15, 60, 45, 0.06);
}
.btn-secondary:hover { background: #f0f6ef; transform: translateY(-1px); }
.btn-arrow { font-size: 16px; line-height: 1; }

.hero-capabilities {
  display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px;
}
.hero-capabilities span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid #dde5dc;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 9px;
  color: #526159; font-size: 11px; font-weight: 600;
}
.hero-capabilities i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #71a937;
}

/* Hero video */
.hero-visual {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  min-height: 460px;
  padding: 40px 20px;
}
.hero-visual .brand-film-frame { position: relative; z-index: 2; }
.brand-film-frame {
  position: relative; width: 100%; max-width: 620px;
  aspect-ratio: 16 / 9; border-radius: 28px;
  overflow: hidden; isolation: isolate;
  background: #04070a;
  border: 1px solid rgba(27, 213, 228, 0.35);
  box-shadow:
    0 40px 100px rgba(15, 40, 55, 0.35),
    0 0 60px rgba(101, 50, 220, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transform: perspective(1400px) rotateX(2deg);
  animation: film-float 8s ease-in-out infinite;
}
@keyframes film-float {
  0%, 100% { transform: perspective(1400px) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1400px) rotateX(2deg) translateY(-10px); }
}
.brand-film-frame video {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  background: #04070a;
}
.brand-film-frame::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 216, 231, 0.14);
  border-radius: inherit; pointer-events: none;
}
/* Tiny hover-only sound toggle */
.sound-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  width: 30px; height: 30px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(2, 8, 14, 0.55);
  color: #eefbff;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s, border-color 0.15s;
}
.brand-film-frame:hover .sound-toggle,
.brand-film-frame:focus-within .sound-toggle,
.sound-toggle:focus-visible,
.sound-toggle[aria-pressed="true"] { opacity: 1; transform: none; }
.sound-toggle:hover { background: rgba(9, 42, 60, 0.85); border-color: rgba(108, 216, 226, 0.7); }
.sound-toggle svg { width: 14px; height: 14px; display: block; }
.sound-toggle .icon-sound { display: none; }
.sound-toggle[aria-pressed="true"] .icon-muted { display: none; }
.sound-toggle[aria-pressed="true"] .icon-sound { display: block; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Hero orbit — floating around the film */
.hero-orbit {
  position: absolute; inset: -10px; pointer-events: none; z-index: 1;
  opacity: 0.85;
}
.hero-orbit svg { width: 100%; height: 100%; overflow: visible; }
.hero-orbit .link {
  stroke: url(#heroLink); stroke-width: 1.1;
  fill: none; opacity: 0.55;
}
.hero-orbit .link.thin { stroke-dasharray: 4 6; opacity: 0.28; }
.hero-orbit .pulse circle { fill: #b9e66c; filter: drop-shadow(0 0 6px #9fd34d); }
.hero-orbit .node {
  fill: white; stroke: #cad9cf; stroke-width: 1.2;
  filter: drop-shadow(0 8px 18px rgba(24, 96, 73, 0.14));
}
.hero-orbit .node.accent { fill: var(--green); stroke: #0b4936; }
.hero-orbit .label {
  font: 700 11px Manrope, sans-serif; fill: #1a674e;
  text-anchor: middle;
}
.hero-orbit .label.dark { fill: white; }

.hero-orbit .float-a { animation: node-drift 6s ease-in-out infinite; }
.hero-orbit .float-b { animation: node-drift 7.5s -1.2s ease-in-out infinite; }
.hero-orbit .float-c { animation: node-drift 8.3s -2.6s ease-in-out infinite; }
.hero-orbit .float-d { animation: node-drift 6.8s -3.4s ease-in-out infinite; }
@keyframes node-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Marquee logos strip */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f2f3ec;
  padding: 22px 0;
}
.trust-strip-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; padding: 0 4.5vw; flex-wrap: wrap;
  color: var(--muted); font-size: 12px;
}
.trust-strip-inner strong {
  color: var(--ink); font-family: Manrope, sans-serif;
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px;
}
.trust-badges { display: flex; gap: 26px; flex-wrap: wrap; }
.trust-badges span {
  font-family: Manrope, sans-serif; font-weight: 700;
  color: #3c4c43; letter-spacing: 0.04em;
  font-size: 13px;
}
.demo-how-strip .trust-strip-inner {
  align-items: stretch;
}
.studio-how-note {
  flex: 1 1 100%;
  display: grid;
  gap: 10px;
  margin-top: 4px;
  border: 1px solid rgba(35, 140, 244, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(5, 219, 231, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.62);
  padding: 18px 20px;
  box-shadow: 0 18px 44px rgba(35, 140, 244, 0.08);
}
.studio-how-note strong {
  color: var(--ink);
  font-size: 12px;
}
.studio-how-note p {
  max-width: 920px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.studio-how-note div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.studio-how-note div span {
  border: 1px solid rgba(35, 140, 244, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #175fb8;
  font: 800 11px Manrope, sans-serif;
  letter-spacing: 0.04em;
  padding: 7px 10px;
}

/* ------------- Section scaffolding ------------- */
.section {
  padding: 90px max(4.5vw, 20px);
  position: relative;
}
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-heading {
  display: flex; justify-content: space-between; align-items: end;
  gap: 30px; margin-bottom: 40px; flex-wrap: wrap;
}
.section-heading h2 {
  font: 600 clamp(30px, 3.5vw, 44px) Manrope, sans-serif;
  letter-spacing: -0.04em; margin: 8px 0 0; max-width: 620px; line-height: 1.05;
}
.section-heading p { color: var(--muted); font-size: 14px; max-width: 400px; margin: 0; }

.section-dark {
  background:
    radial-gradient(circle at 16% 12%, rgba(5, 219, 231, 0.08), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(200, 238, 125, 0.08), transparent 34%),
    linear-gradient(180deg, var(--dark-surface) 0%, var(--dark-surface-2) 100%);
  color: #edf7f2;
}
.section-dark .overline {
  background: rgba(5, 219, 231, 0.08);
  color: #6cd8e2; border-color: rgba(108, 216, 226, 0.24);
}
.section-dark .overline::before { background: var(--cyan); }
.section-dark h2 { color: white; }
.section-dark .section-heading p { color: var(--dark-muted); }

.section-tint { background: #eef0e9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ------------- Pain section ------------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pain-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px;
  min-height: 220px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.22s, box-shadow 0.22s;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pain-card .glyph {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: #fef4ea; color: #b6621a;
  border-radius: 14px; font: 700 20px Manrope;
}
.pain-card h3 {
  font: 600 17px Manrope; margin: 0;
  color: var(--ink); line-height: 1.35;
}
.pain-card p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.6; }

/* ------------- Capabilities ------------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.capability-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  min-height: 260px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  position: relative; overflow: hidden;
}
.capability-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5, 219, 231, 0.06), transparent 60%);
  pointer-events: none; opacity: 0; transition: opacity 0.22s;
}
.capability-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c6d1c7; }
.capability-card:hover::before { opacity: 1; }
.capability-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), #21775b);
  color: white; font: 700 20px Manrope;
  box-shadow: 0 10px 22px rgba(24, 96, 73, 0.22);
  transition: transform 0.32s cubic-bezier(.2,.9,.2,1.2), box-shadow 0.32s;
}
.capability-card:hover .capability-icon {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 16px 32px rgba(24, 96, 73, 0.28);
}
.capability-card h3 { font: 600 20px Manrope; margin: 0; letter-spacing: -0.02em; }
.capability-card > p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.capability-list { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 8px; }
.capability-list li {
  display: flex; gap: 8px; align-items: flex-start;
  color: #3f4d47; font-size: 12px; font-weight: 500;
}
.capability-list li::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green);
  margin-top: 7px; flex: none;
}

/* ------------- Positioning banner ------------- */
.positioning {
  padding: 110px max(4.5vw, 20px);
  background:
    radial-gradient(circle at 15% 20%, rgba(5, 219, 231, 0.12), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(200, 238, 125, 0.1), transparent 55%),
    linear-gradient(180deg, var(--dark-surface), var(--dark-surface-2));
  color: #edf7f2;
  position: relative; overflow: hidden;
}
.bg-graph {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.55;
}
.bg-graph svg { width: 100%; height: 100%; }
.bg-graph .edge {
  stroke: url(#graphGradient); stroke-width: 1; fill: none; opacity: 0.45;
}
.bg-graph .edge.thin { opacity: 0.2; stroke-dasharray: 4 8; }
.bg-graph .node { fill: rgba(11, 27, 44, 0.9); stroke: rgba(108, 216, 226, 0.4); stroke-width: 1.2; }
.bg-graph .node.hot { fill: rgba(5, 219, 231, 0.28); stroke: rgba(108, 216, 226, 0.9); }
.bg-graph .node.warm { fill: rgba(147, 69, 245, 0.24); stroke: rgba(180, 140, 255, 0.8); }
.bg-graph .pulse circle { fill: #6cd8e2; filter: drop-shadow(0 0 8px #6cd8e2); }
.bg-graph.dark .edge { opacity: 0.32; }
.bg-graph.light .edge { stroke: url(#graphGradientLight); opacity: 0.55; }
.bg-graph.light .node { fill: white; stroke: rgba(24, 96, 73, 0.28); }
.bg-graph.light .node.hot { fill: rgba(200, 238, 125, 0.5); stroke: var(--green); }
.bg-graph.light .pulse circle { fill: var(--lime); filter: drop-shadow(0 0 6px var(--lime)); }

/* Document-node graph in the positioning banner */
.doc-graph .doc-node rect {
  fill: rgba(11, 27, 44, 0.85);
  stroke: rgba(108, 216, 226, 0.4);
  stroke-width: 1.2;
  filter: drop-shadow(0 6px 16px rgba(5, 16, 30, 0.4));
}
.doc-graph .doc-node.hot rect {
  fill: rgba(9, 42, 60, 0.9);
  stroke: rgba(108, 216, 226, 0.85);
  stroke-width: 1.6;
}
.doc-graph .doc-node text {
  fill: #cdeaef;
  font: 700 12px "DM Sans", "Manrope", sans-serif;
  text-anchor: middle;
  letter-spacing: 0.02em;
}
.doc-graph .doc-node.hot text { fill: #eefbff; }
.doc-graph .doc-node { transform-box: fill-box; transform-origin: center; }
.doc-graph .float-a { animation: doc-float 7s ease-in-out infinite; }
.doc-graph .float-b { animation: doc-float 8.4s -1.2s ease-in-out infinite; }
.doc-graph .float-c { animation: doc-float 6.6s -2.6s ease-in-out infinite; }
.doc-graph .float-d { animation: doc-float 9.2s -3.8s ease-in-out infinite; }
@keyframes doc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.doc-graph .doc-edges path { animation: edge-fade 6s ease-in-out infinite; }
@keyframes edge-fade {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.5; }
}

/* Richer 3D document graph — text lines inside each node */
.doc-graph .doc-node rect.paper {
  fill: rgba(9, 20, 34, 0.94);
  stroke: rgba(108, 216, 226, 0.32);
  stroke-width: 1;
}
.doc-graph .doc-node .paper-line {
  stroke: rgba(150, 200, 220, 0.32);
  stroke-width: 1; stroke-linecap: round;
  animation: paper-scan 3.6s ease-in-out infinite;
}
.doc-graph .doc-node .paper-line.a { animation-delay: -0.3s; }
.doc-graph .doc-node .paper-line.b { animation-delay: -0.9s; }
.doc-graph .doc-node .paper-line.c { animation-delay: -1.5s; }
.doc-graph .doc-node .paper-line.d { animation-delay: -2.1s; }
@keyframes paper-scan {
  0%, 100% { stroke-opacity: 0.18; }
  50% { stroke-opacity: 0.62; }
}
.doc-graph .doc-node.hot rect.paper { stroke: rgba(108, 216, 226, 0.8); stroke-width: 1.4; }
.doc-graph .doc-node .paper-label {
  fill: #cdeaef; font: 700 11px "DM Sans", "Manrope", sans-serif;
  text-anchor: start; letter-spacing: 0.02em;
}
.doc-graph .doc-node.hot .paper-label { fill: #eefbff; }
.doc-graph .doc-node .paper-tag {
  fill: rgba(108, 216, 226, 0.75); font: 700 7px "DM Sans", sans-serif;
  text-anchor: start; letter-spacing: 0.16em; text-transform: uppercase;
}

/* =================================================================
   WHAT LEYLI DOES — pipeline visual (sources → knowledge graph → outputs)
   ================================================================= */
.leyli-does { padding-block: 96px; }
.leyli-does-header { text-align: center; max-width: 900px; margin: 0 auto 44px; }
.leyli-does-header .overline { justify-self: center; }
.leyli-does-header h2 {
  font: 500 clamp(30px, 3.6vw, 46px) Manrope, sans-serif;
  letter-spacing: -0.035em; color: white;
  margin: 18px auto 0; line-height: 1.15;
}
.leyli-does-header h2 em {
  font-style: normal;
  color: #6cd8e2;
  background: linear-gradient(90deg, #05dbe7, #6cd8e2 55%, #a4dee5);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.pipeline-stage {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  aspect-ratio: 1440 / 620;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(5, 219, 231, 0.10), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(200, 238, 125, 0.08), transparent 50%),
    var(--dark-surface-2);
  border: 1px solid var(--dark-line);
  box-shadow: inset 0 0 80px rgba(7, 24, 19, 0.72);
}
.pipeline-particles, .pipeline-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
}
.pipeline-particles circle { animation: star-twinkle 4s ease-in-out infinite; }
.pipeline-particles circle:nth-child(3n)   { animation-delay: -1s; }
.pipeline-particles circle:nth-child(3n+1) { animation-delay: -2s; }
.pipeline-particles circle:nth-child(3n+2) { animation-delay: -3s; }
@keyframes star-twinkle { 0%,100% { opacity: 0.35; } 50% { opacity: 0.85; } }

/* Source / output cards */
.pipe-card rect {
  fill: rgba(11, 33, 29, 0.9);
  stroke: rgba(200, 238, 125, 0.18);
  stroke-width: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  transition: stroke 0.24s, stroke-width 0.24s;
}
.pipe-card:hover rect { stroke: rgba(108, 216, 226, 0.85); stroke-width: 1.4; }
.pipe-card text {
  fill: #eefbff;
  font: 700 15px "DM Sans", "Manrope", sans-serif;
  letter-spacing: 0.02em;
}
.pipe-card .dot.cyan   { fill: #6cd8e2; filter: drop-shadow(0 0 6px #6cd8e2); }

/* Flow curves */
.flows path { transition: opacity 0.2s; }
.pulse circle.dot.cyan   { fill: #6cd8e2; filter: drop-shadow(0 0 6px #6cd8e2); }
.pulse circle.dot.yellow { fill: #ffc247; filter: drop-shadow(0 0 6px #ffc247); }
.pulse circle.dot.violet { fill: #b48cff; filter: drop-shadow(0 0 6px #b48cff); }

/* Central graph cluster */
.cluster-node .core {
  fill: white;
}
.cluster-node.cyan circle:first-child   { fill: #6cd8e2; opacity: 0.85; }
.cluster-node.yellow circle:first-child { fill: #ffc247; opacity: 0.85; }
.cluster-node.violet circle:first-child { fill: #b48cff; opacity: 0.85; }
.cluster-node.cyan .core   { fill: #eafdff; }
.cluster-node.yellow .core { fill: #fff5da; }
.cluster-node.violet .core { fill: #eee0ff; }
.cluster-node {
  transform-box: fill-box;
  animation: cluster-pulse 3.4s ease-in-out infinite;
}
@keyframes cluster-pulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

/* Pills over the graph */
.pipeline-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pipeline-badges .pill {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(11, 33, 29, 0.84);
  border: 1px solid rgba(200, 238, 125, 0.18);
  color: #cdeaef;
  font: 700 10px Manrope, sans-serif;
  letter-spacing: 0.14em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.pipeline-badges .pill i.dot {
  width: 6px; height: 6px; border-radius: 50%; display: inline-block;
}
.pipeline-badges .pill i.cyan   { background: #6cd8e2; box-shadow: 0 0 6px #6cd8e2; }
.pipeline-badges .pill i.yellow { background: #ffc247; box-shadow: 0 0 6px #ffc247; }
.pipeline-badges .pill i.violet { background: #b48cff; box-shadow: 0 0 6px #b48cff; }
.pipeline-badges .pill-top { top: 12%; left: 50%; transform: translateX(-50%); }
.pipeline-badges .pill-l   { bottom: 12%; left: 42%; transform: translateX(-50%); }
.pipeline-badges .pill-r   { bottom: 12%; left: 58%; transform: translateX(-50%); }

.pipeline-caption {
  text-align: center;
  max-width: 940px;
  margin: 32px auto 0;
  color: #94a3b3;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .pipeline-badges .pill-l { left: 30%; }
  .pipeline-badges .pill-r { left: 70%; }
}
@media (max-width: 780px) {
  .pipeline-stage { aspect-ratio: auto; height: 640px; }
  .pipeline-badges .pill { font-size: 9px; padding: 6px 10px; }
  .pipeline-badges .pill-top { top: 8%; }
  .pipeline-badges .pill-l { bottom: 8%; left: 22%; }
  .pipeline-badges .pill-r { bottom: 8%; left: 78%; }
}

.positioning-inner { max-width: 1080px; margin: 0 auto; text-align: center; position: relative; z-index: 3; }
.positioning h2 {
  font: 500 clamp(34px, 4.4vw, 56px) Manrope, sans-serif;
  letter-spacing: -0.045em; color: white; margin: 20px 0 22px; line-height: 1.06;
}
.positioning h2 em {
  font-family: Georgia, serif; font-style: italic; font-weight: 400;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.positioning-lead {
  max-width: 700px; margin: 0 auto 30px;
  font-size: 16px; line-height: 1.65; color: var(--dark-muted);
}
.positioning-tags {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.positioning-tags span {
  padding: 9px 14px; border-radius: 99px;
  border: 1px solid rgba(108, 216, 226, 0.28);
  background: rgba(5, 219, 231, 0.05);
  color: #cfe9ee; font: 700 11px Manrope;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ------------- Architecture / technology ------------- */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.tech-copy h3 {
  font: 600 24px Manrope; margin: 12px 0 12px; letter-spacing: -0.02em;
}
.tech-copy p {
  color: var(--muted); line-height: 1.7; margin: 0 0 18px; font-size: 14px;
}
.tech-copy ul {
  list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px;
}
.tech-copy li {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
}
.tech-copy li .step {
  width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green), #21775b);
  color: white; display: grid; place-items: center;
  font: 700 12px Manrope;
}
.tech-copy li strong { display: block; font: 600 14px Manrope; margin-bottom: 4px; color: var(--ink); }
.tech-copy li span { color: var(--muted); font-size: 13px; line-height: 1.55; }

.tech-diagram {
  background:
    radial-gradient(circle at 15% 0%, rgba(5, 219, 231, 0.1), transparent 38%),
    linear-gradient(180deg, var(--dark-surface) 0%, var(--dark-surface-2) 100%);
  border-radius: 32px;
  padding: 34px 30px;
  color: #dbe6ef;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(8, 35, 28, 0.24);
  border: 1px solid var(--dark-line);
}
.tech-diagram::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(5, 219, 231, 0.14), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(147, 69, 245, 0.14), transparent 50%);
  pointer-events: none;
}
.tech-diagram-inner { position: relative; z-index: 2; display: grid; gap: 14px; }
.diagram-node {
  padding: 16px 20px;
  border: 1px solid rgba(200, 238, 125, 0.14);
  background: var(--dark-card);
  border-radius: 16px;
  display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(8px);
}
.diagram-node strong {
  font: 700 14px Manrope; color: white; letter-spacing: 0.02em;
}
.diagram-node span { font-size: 11px; color: #9ccfc5; letter-spacing: 0.1em; text-transform: uppercase; }
.diagram-arrow {
  height: 22px; display: grid; place-items: center;
  color: rgba(108, 216, 226, 0.5); font-size: 18px;
}
.diagram-node.accent {
  background: linear-gradient(135deg, rgba(5, 219, 231, 0.15), rgba(147, 69, 245, 0.15));
  border-color: rgba(108, 216, 226, 0.45);
  position: relative; overflow: hidden;
}
.diagram-node.accent::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(108, 216, 226, 0.25) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: sweep 3.6s ease-in-out infinite;
}
@keyframes sweep {
  0%, 100% { background-position: 220% 0; }
  50% { background-position: -20% 0; }
}
.diagram-node { transition: transform 0.25s, border-color 0.25s; }
.diagram-node:hover { transform: translateX(4px); border-color: rgba(108, 216, 226, 0.4); }
.tech-diagram .diagram-arrow { animation: arrow-pulse 2.4s ease-in-out infinite; }
@keyframes arrow-pulse { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 0.9; transform: translateY(2px); } }

/* ------------- Differentiation table ------------- */
.diff-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.diff-table th, .diff-table td {
  text-align: left; padding: 20px 22px; vertical-align: top;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.diff-table thead th {
  background: #f4f6ef; font: 700 12px Manrope;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.diff-table thead th.leyli-col {
  background: linear-gradient(135deg, rgba(5, 219, 231, 0.14), rgba(147, 69, 245, 0.14));
  color: var(--green);
}
.diff-table tbody th {
  background: #fafbf7; font: 600 14px Manrope; color: var(--ink);
  border-right: 1px solid var(--line); width: 220px;
}
.diff-table td { color: var(--muted); line-height: 1.55; }
.diff-table td.leyli-col { color: var(--ink); font-weight: 500; background: rgba(200, 238, 125, 0.08); }
.diff-table tr:last-child th, .diff-table tr:last-child td { border-bottom: 0; }

/* ------------- Industries ------------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.industry-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  display: grid; gap: 18px;
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative; overflow: hidden;
}
.industry-card::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--tint, rgba(200, 238, 125, 0.14));
  pointer-events: none;
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.industry-card .header {
  display: flex; gap: 16px; align-items: center; position: relative; z-index: 2;
}
.industry-icon {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), #21775b);
  color: white; font: 700 22px Manrope;
}
.industry-card h3 { font: 600 22px Manrope; letter-spacing: -0.02em; margin: 0; }
.industry-card p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0; position: relative; z-index: 2; }
.industry-flow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  position: relative; z-index: 2;
}
.industry-flow span {
  padding: 8px 12px; border: 1px dashed #c8d3ca; border-radius: 10px;
  background: white; font: 600 11px Manrope; color: #3f4d47;
  letter-spacing: 0.02em;
}
.industry-flow i {
  color: var(--green); font-style: normal; font-weight: 700;
}
.industry-card.healthcare { --tint: rgba(88, 190, 224, 0.12); }
.industry-card.legal { --tint: rgba(147, 69, 245, 0.1); }
.industry-card.manufacturing { --tint: rgba(232, 158, 61, 0.14); }
.industry-card.research { --tint: rgba(24, 96, 73, 0.12); }

/* ------------- Evidence ------------- */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.evidence-card {
  border: 1px solid var(--dark-line);
  background: var(--dark-card);
  border-radius: 20px; padding: 24px;
  transition: transform 0.22s, border-color 0.22s;
}
.evidence-card:hover { transform: translateY(-3px); border-color: rgba(108, 216, 226, 0.4); }
.evidence-card h3 { font: 600 17px Manrope; color: white; margin: 0 0 8px; }
.evidence-card p { color: var(--dark-muted); font-size: 13px; line-height: 1.6; margin: 0 0 12px; }
.evidence-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.evidence-tags span {
  padding: 5px 10px; border-radius: 999px;
  background: rgba(5, 219, 231, 0.1); color: #a4dee5;
  font: 600 10px Manrope; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ------------- Demo strip ------------- */
.demo-strip {
  background: white; border: 1px solid var(--line);
  border-radius: 32px; padding: 40px;
  box-shadow: var(--shadow); overflow: hidden;
}
.demo-flow {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; margin-top: 30px; flex-wrap: wrap;
}
.demo-step {
  flex: 1; min-width: 130px;
  padding: 20px 16px; border-radius: 16px;
  background: #f8faf6; border: 1px solid var(--line);
  display: grid; gap: 6px; text-align: center;
  transition: transform 0.2s, background 0.2s;
}
.demo-step:hover { transform: translateY(-2px); background: white; }
.demo-step .num {
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--green); color: white;
  display: grid; place-items: center; margin: 0 auto 4px;
  font: 700 12px Manrope;
}
.demo-step strong { font: 600 13px Manrope; color: var(--ink); }
.demo-step small { font-size: 11px; color: var(--muted); line-height: 1.4; }
.demo-arrow {
  color: var(--green); font-size: 22px; opacity: 0.4;
  display: grid; place-items: center;
}

/* ------------- Trust signals ------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-card {
  background: white; border: 1px solid var(--line);
  border-radius: 20px; padding: 26px;
  display: grid; gap: 12px;
}
.trust-card .metric {
  font: 500 42px Manrope; letter-spacing: -0.04em;
  color: var(--green); line-height: 1;
}
.trust-card h4 { font: 600 15px Manrope; margin: 0; }
.trust-card p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }

/* ------------- CTA / Grant messaging ------------- */
.cta-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  background: linear-gradient(135deg, #0c4b38 0%, #1d6b51 100%);
  border-radius: 36px;
  padding: 60px;
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: ""; position: absolute;
  width: 400px; height: 400px;
  right: -100px; bottom: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 238, 125, 0.16), transparent 65%);
  pointer-events: none;
}
.cta-copy { position: relative; z-index: 2; }
.cta-copy .overline {
  background: rgba(200, 238, 125, 0.14);
  border-color: rgba(200, 238, 125, 0.3);
  color: var(--lime);
}
.cta-copy .overline::before { background: var(--lime); }
.cta-copy h2 {
  font: 500 clamp(32px, 3.6vw, 44px) Manrope, sans-serif;
  letter-spacing: -0.04em; color: white; margin: 18px 0 16px; line-height: 1.06;
}
.cta-copy p { color: #cfe2d9; line-height: 1.65; font-size: 15px; max-width: 460px; margin: 0 0 28px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-actions .btn-primary {
  background: white; color: var(--green);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.cta-actions .btn-primary:hover { background: #f4f9ef; }
.cta-actions .btn-secondary {
  background: transparent; color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cta-actions .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }

.cta-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px; padding: 28px;
  backdrop-filter: blur(12px);
  position: relative; z-index: 2;
}
.cta-form h3 { font: 600 18px Manrope; margin: 0 0 16px; color: white; }
.cta-form .field { display: grid; gap: 6px; margin-bottom: 14px; }
.cta-form label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #cfe2d9; font-weight: 700; }
.cta-form input, .cta-form textarea, .cta-form select {
  width: 100%; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid transparent; border-radius: 10px;
  font: 500 14px "DM Sans", sans-serif; color: var(--ink);
  transition: border-color 0.18s, background 0.18s;
}
.cta-form input:focus, .cta-form textarea:focus, .cta-form select:focus {
  outline: none; background: white;
  border-color: var(--lime);
}
.cta-form textarea { min-height: 90px; resize: vertical; }
.cta-form .btn { width: 100%; justify-content: center; margin-top: 4px; }

/* ------------- Footer ------------- */
.site-footer {
  padding: 60px max(4.5vw, 20px) 30px;
  background: #081a16; color: var(--dark-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-brand p { font-size: 13px; line-height: 1.7; margin: 16px 0; }
.footer-brand .product-mark strong { color: white; }
.footer-brand .product-mark small { color: #8fa39a; }
.footer-col h5 {
  font: 700 11px Manrope; text-transform: uppercase; letter-spacing: 0.12em;
  color: white; margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--dark-muted); text-decoration: none; font-size: 13px; transition: color 0.16s; }
.footer-col a:hover { color: white; }
.footer-legal {
  max-width: 1240px; margin: 24px auto 0;
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 12px; flex-wrap: wrap;
}
.footer-legal span { color: #8fa39a; }

/* ------------- Reveal animation ------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ------------- Responsive ------------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding: 50px 30px; gap: 30px; }
  .hero-visual { min-height: 380px; }
  .brand-film-frame { max-width: 460px; margin: 0 auto; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-layout { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; padding: 44px; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .topbar { grid-template-columns: 1fr auto; height: 66px; padding: 0 22px; }
  .top-nav {
    position: fixed; top: 66px; left: 0; right: 0;
    background: rgba(247, 247, 242, 0.98); backdrop-filter: blur(16px);
    padding: 20px 22px; flex-direction: column; align-items: flex-start;
    gap: 18px; border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform 0.24s;
    box-shadow: var(--shadow); z-index: 30;
  }
  .top-nav.open { transform: none; }
  .top-actions .studio-link, .top-actions .demo-link { display: none; }
  .mobile-toggle {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--line); background: white;
    cursor: pointer;
  }
  .mobile-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
  .mobile-toggle span::before, .mobile-toggle span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
  }
  .mobile-toggle span::before { top: -6px; }
  .mobile-toggle span::after { top: 6px; }
  .section { padding: 60px 22px; }
  .hero h1 { font-size: 44px; }
  .pain-grid, .capabilities-grid, .evidence-grid, .trust-grid, .industry-grid {
    grid-template-columns: 1fr;
  }
  .cta-panel { padding: 34px 24px; border-radius: 26px; }
  .demo-strip { padding: 28px 22px; border-radius: 24px; }
  .demo-arrow { transform: rotate(90deg); }
  .diff-table { font-size: 12px; }
  .diff-table th, .diff-table td { padding: 14px; }
  .diff-table tbody th { width: 140px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

/* Mobile/tablet refinement layer. Desktop layouts above 1100px are untouched. */
@media (max-width: 1100px) {
  html,
  body {
    overflow-x: hidden;
  }

  .topbar {
    max-width: 100vw;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2,
  .section-heading p {
    max-width: min(100%, 760px);
  }

  .positioning {
    padding-block: 76px;
  }

  .leyli-does {
    padding-block: 72px;
  }

  .tech-diagram {
    padding: 28px 24px;
  }

  .industry-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .product-mark {
    min-width: 0;
  }

  .product-mark strong {
    font-size: 18px;
  }

  .product-mark small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 38px 20px 46px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1.03;
  }

  .hero-lead {
    max-width: 100%;
    font-size: 15px;
  }

  .hero-ctas .btn,
  .cta-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .hero-capabilities {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
    padding-top: 10px;
  }

  .hero-orbit {
    display: none;
  }

  .brand-film-frame {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
  }

  .section {
    padding: 48px 18px;
  }

  .section-heading {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
  }

  .section-heading h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .trust-strip-inner {
    align-items: flex-start;
    gap: 14px;
  }

  .trust-badges {
    gap: 10px;
  }

  .trust-badges span,
  .studio-how-note div span {
    flex: 1 1 150px;
  }

  .studio-how-note {
    padding: 16px;
  }

  .pain-card,
  .capability-card,
  .industry-card,
  .trust-card,
  .evidence-card {
    min-height: 0;
    padding: 22px;
  }

  .positioning {
    padding: 58px 18px;
  }

  .positioning h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .bg-graph {
    opacity: 0.32;
  }

  .pipeline-stage {
    height: auto;
    min-height: 420px;
    border-radius: 20px;
  }

  .pipeline-svg {
    width: 170%;
    left: -35%;
  }

  .pipeline-badges .pill {
    max-width: 44vw;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .tech-copy li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
  }

  .tech-diagram {
    border-radius: 22px;
    padding: 22px 18px;
  }

  .diagram-node {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .diff-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-radius: 18px;
  }

  .diff-table table,
  .diff-table thead,
  .diff-table tbody,
  .diff-table tr {
    min-width: 620px;
  }

  .industry-flow {
    align-items: stretch;
  }

  .industry-flow span {
    flex: 1 1 140px;
  }

  .cta-panel {
    gap: 26px;
    padding: 30px 22px;
    border-radius: 24px;
  }

  .cta-form {
    padding: 22px;
    border-radius: 18px;
  }

  .footer {
    padding-inline: 20px;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-inline: 16px;
  }

  .section {
    padding-inline: 16px;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .overline {
    font-size: 10px;
  }

  .pain-grid,
  .capabilities-grid,
  .evidence-grid,
  .trust-grid,
  .industry-grid,
  .demo-value-cards {
    grid-template-columns: 1fr;
  }

  .demo-flow {
    display: grid;
    grid-template-columns: 1fr;
  }

  .demo-arrow {
    transform: rotate(90deg);
    min-height: 18px;
  }

  .pipeline-stage {
    min-height: 360px;
  }

  .pipeline-badges .pill {
    max-width: 58vw;
    font-size: 8px;
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .film-caption i { animation: none; }
}

/* Header/first-section mobile hardening: prevents mixed header and hero text. */
@media (max-width: 780px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) 44px;
    height: auto;
    min-height: 64px;
    align-items: center;
    padding: 9px 16px;
    background: rgba(247, 247, 242, 0.97);
  }

  .product-mark {
    width: auto;
    max-width: calc(100vw - 92px);
    gap: 10px;
  }

  .brand-logo-compact {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex: 0 0 38px;
  }

  .product-mark strong {
    font-size: 18px;
    line-height: 1;
  }

  .top-actions {
    justify-self: end;
    min-width: 44px;
    gap: 0;
  }

  .mobile-toggle {
    position: relative;
    z-index: 70;
    width: 40px;
    height: 40px;
  }

  .top-nav {
    top: 64px;
    z-index: 60;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 30px 16px 42px;
    overflow: hidden;
  }

  .hero::before {
    left: -340px;
    top: -180px;
    opacity: 0.55;
  }

  .hero::after {
    right: -360px;
    bottom: -220px;
    opacity: 0.5;
  }

  .overline {
    max-width: 100%;
    align-items: flex-start;
    white-space: normal;
    line-height: 1.35;
  }

  .hero h1 {
    clear: both;
    max-width: 100%;
    margin-top: 18px;
    margin-bottom: 16px;
  }

  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-capabilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
  }

  .hero-capabilities span {
    min-width: 0;
    justify-content: flex-start;
    line-height: 1.25;
  }

  .hero-visual {
    display: block;
    min-height: 0;
    padding: 24px 0 0;
  }

  .brand-film-frame {
    transform: none;
    animation: none;
    border-radius: 18px;
    box-shadow: 0 22px 52px rgba(15, 40, 55, 0.22);
  }
}

@media (max-width: 440px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-capabilities {
    grid-template-columns: 1fr;
  }

  .top-nav {
    padding-inline: 16px;
  }
}
