/* ============================================================
   FNR AI — Landing page (light mode only)
   ============================================================ */

:root {
  --bg-0: #ffffff;
  --bg-1: #ffffff;
  --bg-2: #ffffff;
  --bg-3: #ffffff;

  --fg: #0a0a0a;
  --fg-muted: rgba(0, 0, 0, 0.62);
  --fg-subtle: rgba(0, 0, 0, 0.42);
  --fg-faint: rgba(0, 0, 0, 0.18);

  --surface-1: rgba(0, 0, 0, 0.04);
  --surface-2: rgba(0, 0, 0, 0.08);
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.18);

  --accent: #1a7431;
  --accent-2: #25a04d;
  --accent-dark: #004109;
  --accent-green: #1a7431;
  --accent-green-2: #25a04d;

  --btn-lime: #92ff00;
  --btn-lime-dark: #0a2600;
  --btn-secondary-bg: #f1f1ef;

  --accent-tint-soft: rgba(26, 116, 49, 0.08);
  --accent-tint: rgba(26, 116, 49, 0.15);
  --accent-tint-strong: rgba(26, 116, 49, 0.3);

  --chrome-bg: linear-gradient(180deg, #fafafa, #f0f0f0);
  --hero-glow: rgba(26, 116, 49, 0.08);

  --max-w: 1200px;
  --radius: 14px;
  --radius-lg: 20px;

  color-scheme: light;
}

* { box-sizing: border-box; }

html.gs-ready .gs-fade-up,
html.gs-ready .gs-reveal,
html.gs-ready .gs-stagger > * { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html.gs-ready .gs-fade-up,
  html.gs-ready .gs-reveal,
  html.gs-ready .gs-stagger > * { opacity: 1 !important; }
}

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--hero-glow), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(26, 116, 49, 0.04), transparent 70%),
    #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }

.mono {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--fg-muted);
}

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .25s ease, border-color .25s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: block;
}

.brand-mark { font-size: 15px; }
.brand-accent { color: var(--accent); margin: 0 2px; }

/* Minimal single-button language toggle */
.lang-toggle {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--fg-muted);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  cursor: pointer;
  transition: color .15s ease;
}
.lang-toggle:hover { color: var(--fg); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--fg-muted);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--fg); }

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-toggle {
  display: none;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--fg);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  place-items: center;
  cursor: pointer;
}
.nav-toggle i, .nav-toggle [data-lucide] { width: 16px; height: 16px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: inline-block; }

.site-nav.is-scrolled {
  background: color-mix(in oklab, #ffffff 80%, transparent);
  border-bottom: 1px solid var(--border);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition:
    filter 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.btn i, .btn [data-lucide] { width: 16px; height: 16px; }
.btn:has(> i, > [data-lucide]) { padding-left: 12px; padding-right: 12px; }

.btn-primary {
  background: var(--btn-lime);
  color: var(--btn-lime-dark);
  border-color: var(--btn-lime);
}
.btn-primary:hover {
  filter: contrast(1.12) brightness(1.03);
  transform: translateY(-1px);
  box-shadow:
    0 4px 16px rgba(146, 255, 0, 0.38),
    0 2px 6px rgba(10, 38, 0, 0.1);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(146, 255, 0, 0.22);
  filter: contrast(1.08);
}
.btn-primary .btn-dots {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  grid-template-rows: repeat(3, 5px);
  gap: 1px;
  margin-left: 4px;
}
.btn-primary .btn-dots span {
  display: block;
  width: 5px;
  height: 5px;
  background: transparent;
  transition: background-color .2s ease;
}
.btn-primary .btn-dots span.on { background: var(--btn-lime-dark); }
.btn-primary:hover .btn-dots span.glow { background: var(--btn-lime-dark); }

.btn-ghost {
  background: var(--btn-secondary-bg);
  color: var(--fg-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--fg) 12%, transparent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}
.btn-ghost:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  filter: brightness(0.96);
}

.btn-lg { height: 44px; padding: 8px 16px; font-size: 18px; border-radius: 12px; }
.btn-lg:has(> i, > [data-lucide]) { padding-left: 12px; padding-right: 12px; }
.btn-lg i, .btn-lg [data-lucide] { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: filter 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
  .btn:hover,
  .btn:active {
    transform: none;
  }
}

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

.hero {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 60px 28px 40px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  margin-bottom: 28px;
}
.dot { width: 6px; height: 6px; border-radius: 999px; }
.dot-green { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.hero-title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(40px, 7vw, 85px);
  line-height: 1;
  letter-spacing: -0.07em;
  font-weight: 500;
  color: var(--fg);
  margin: 0 0 22px;
}

.title-accent {
  color: inherit;
  background: none;
  -webkit-background-clip: initial;
          background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

/* ---------- Hero verb slider ---------- */

.verb-host {
  display: inline-block;
  vertical-align: baseline;
  text-align: left;
  white-space: nowrap;
}
.verb-slider {
  display: inline-block;
  color: inherit;
  font-weight: inherit;
  white-space: nowrap;
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}
.verb-slider.is-leaving {
  transform: translateY(-0.45em);
  opacity: 0;
}
.verb-slider.is-entering {
  transform: translateY(0.45em);
  opacity: 0;
}
.verb-slider.no-transition {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .verb-slider {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.hero-sub {
  max-width: 720px;
  margin: 0 auto 34px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

/* ---------- Hero video (MacBook) ---------- */

.macbook-stage {
  position: relative;
  margin: 60px auto 0;
  max-width: 1200px;
  padding-bottom: 80px;
}

.macbook {
  --bezel: clamp(9px, 1.15%, 13px);
  --outer-radius: clamp(22px, 2.8%, 32px);
  position: relative;
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 2228 / 1350;
  z-index: 2;
  background: #000;
  padding: var(--bezel);
  border: 1px solid #8a8a8c;
  border-radius: var(--outer-radius);
  box-sizing: border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 0 2px #1a1a1a,
    0 30px 50px rgba(0, 0, 0, 0.22),
    0 10px 20px rgba(0, 0, 0, 0.12);
  /* Only ~70% of macbook visible, rest dissolves into fog */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 96%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 96%);
}

/* Notch — kept within the top bezel so it doesn't add visual thickness */
.macbook::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 11%;
  height: var(--bezel);
  background: #000;
  border-radius: 0 0 8px 8px;
  z-index: 2;
  pointer-events: none;
}

.macbook-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: calc(var(--outer-radius) - var(--bezel));
  overflow: hidden;
  z-index: 1;
}
.macbook-screen video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Fog / cloud rising from beneath the macbook */
.macbook-fog {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -40px;
  top: 45%;
  pointer-events: none;
  z-index: 1;
  filter: blur(34px);
}
.fog-puff {
  position: absolute;
  border-radius: 50%;
  animation: fog-drift 16s ease-in-out infinite alternate;
}
/* Soft white fog */
.fog-puff-1 {
  left: -2%;
  bottom: 8%;
  width: 55%;
  height: 72%;
  background: radial-gradient(closest-side,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.6) 45%,
    rgba(245, 247, 250, 0.22) 70%,
    transparent 85%);
  opacity: 0.95;
  animation-delay: 0s;
}
.fog-puff-2 {
  left: 22%;
  bottom: -6%;
  width: 62%;
  height: 95%;
  background: radial-gradient(closest-side,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0.68) 40%,
    rgba(240, 244, 248, 0.24) 68%,
    transparent 85%);
  opacity: 1;
  animation-delay: -4s;
}
.fog-puff-3 {
  right: -4%;
  bottom: 4%;
  width: 52%;
  height: 78%;
  background: radial-gradient(closest-side,
    rgba(255, 255, 255, 0.96),
    rgba(252, 253, 254, 0.58) 45%,
    rgba(240, 244, 248, 0.2) 70%,
    transparent 85%);
  opacity: 0.92;
  animation-delay: -7s;
}
.fog-puff-4 {
  left: 18%;
  bottom: 28%;
  width: 36%;
  height: 48%;
  background: radial-gradient(closest-side,
    rgba(255, 255, 255, 0.95),
    rgba(252, 253, 254, 0.45) 55%,
    transparent 80%);
  opacity: 0.75;
  animation-delay: -10s;
}
.fog-puff-5 {
  right: 14%;
  bottom: 30%;
  width: 38%;
  height: 50%;
  background: radial-gradient(closest-side,
    rgba(255, 255, 255, 0.92),
    rgba(250, 252, 254, 0.42) 55%,
    transparent 80%);
  opacity: 0.7;
  animation-delay: -13s;
}

@keyframes fog-drift {
  0%   { transform: translate3d(-2%, 4px, 0) scale(1);    }
  50%  { transform: translate3d(2%, -6px, 0) scale(1.04); }
  100% { transform: translate3d(3%, 2px, 0) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .fog-puff { animation: none; }
}

@media (max-width: 760px) {
  .macbook-stage { padding-bottom: 40px; margin-top: 40px; }
  .macbook { width: 100%; }
  .macbook-fog { top: 50%; }
}

/* ---------- Section shared ---------- */

.section {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 28px 40px;
}

.section-head {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 960px;
}
.section-head > p { max-width: 680px; margin-left: auto; margin-right: auto; }
.section-label { color: var(--accent); }
.section h2 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 14px 0 14px;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .section h2 { white-space: normal; }
}
.section p { color: var(--fg-muted); line-height: 1.55; }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-tint-strong);
  background: var(--accent-tint-soft);
}

.feature-media {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
  background:
    radial-gradient(circle at 20% 20%, var(--accent-tint) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, var(--accent-tint-soft) 0%, transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border);
  overflow: hidden;
}
.feature-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.feature-media-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-tint-soft);
  border: 1px solid var(--accent-tint-strong);
  padding: 4px 8px;
  border-radius: 999px;
}
.feature-media > video,
.feature-media > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-body {
  display: flex;
  flex-direction: column;
  padding: 22px 10px 8px;
}
.feature-card h3 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.feature-card p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}

.feature-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.45;
}
.feature-checks li i,
.feature-checks li [data-lucide] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent);
  stroke-width: 2.5;
}

/* ---------- Project Management section (scrollytelling) ---------- */

.section-pm {
  padding-top: 120px;
}
.pm-head {
  max-width: 720px;
  margin: 0 0 56px;
}
.pm-head h2 { margin-top: 14px; font-size: clamp(28px, 3.4vw, 42px); }
.pm-head p { color: var(--fg-muted); margin: 0; line-height: 1.6; }

.pm-scrolly {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: start;
  position: relative;
}

.pm-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pm-step-item {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  opacity: 0.35;
  transition: opacity .5s ease, transform .5s ease;
  transform: translateY(8px);
}
.pm-step-item.is-active {
  opacity: 1;
  transform: translateY(0);
}
.pm-step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-strong);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  transition: background .4s ease, transform .4s ease;
}
.pm-step-item.is-active .pm-step-num {
  background: var(--lime);
  border-color: var(--lime-border);
  color: #0a2600;
  transform: scale(1.04);
  box-shadow: 0 0 0 4px var(--lime-soft), 0 10px 24px -8px var(--lime-glow-strong);
}
.pm-step-item h3 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0 0 14px;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.pm-step-item p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 460px;
}

/* Sticky visual column */
.pm-visual {
  position: sticky;
  top: 96px;
  align-self: start;
  height: calc(100vh - 120px);
  min-height: 520px;
  max-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-visual-sticky {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fafafa, #f2f2ef);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 30px 60px -30px rgba(0, 0, 0, 0.18),
    0 10px 30px -18px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* Frames — overlaid, only one visible */
.pm-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.985);
  transition: opacity .55s ease, transform .55s ease;
}
.pm-frame.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.pm-frame-chrome {
  display: none;
}
.pm-frame-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Shared: lime glow variables */
:root {
  --lime: #d4ff4d;
  --lime-soft: rgba(212, 255, 77, 0.18);
  --lime-glow: rgba(212, 255, 77, 0.6);
  --lime-glow-strong: rgba(212, 255, 77, 0.85);
  --lime-border: rgba(212, 255, 77, 0.55);
}

/* --- Frame 1: Download & install --- */
.pm-frame-download {
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
}
.pm-dl-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f4f4f1);
  border: 1px solid var(--lime-border);
  box-shadow:
    0 0 0 4px var(--lime-soft),
    0 18px 36px -10px var(--lime-glow);
  animation: pm-dl-float 3.2s ease-in-out infinite;
}
.pm-dl-icon img { width: 48px; height: 48px; }
.pm-dl-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.pm-dl-meta {
  font-size: 11px;
  color: var(--fg-subtle);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.pm-dl-bar {
  width: min(320px, 70%);
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin: 0 auto 14px;
}
.pm-dl-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), #a8e020);
  box-shadow: 0 0 10px var(--lime-glow);
}
.pm-frame[data-frame="1"].is-active .pm-dl-fill {
  animation: pm-dl-fill 2.6s ease-out forwards;
}
.pm-dl-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 1;
  transition: opacity .4s ease;
}
.pm-dl-status i { width: 14px; height: 14px; }
.pm-frame[data-frame="1"].is-active .pm-dl-status {
  animation: pm-dl-status 2.6s ease-out forwards;
}
.pm-dl-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0a2600;
  background: var(--lime);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  transition: opacity .4s ease, transform .4s ease;
  box-shadow: 0 6px 18px -4px var(--lime-glow);
}
.pm-dl-check i { width: 14px; height: 14px; }
.pm-frame[data-frame="1"].is-active .pm-dl-check {
  animation: pm-dl-check 2.6s ease-out forwards;
}
@keyframes pm-dl-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pm-dl-fill {
  0% { width: 0%; }
  85% { width: 100%; }
  100% { width: 100%; }
}
@keyframes pm-dl-status {
  0%, 80% { opacity: 1; }
  85%, 100% { opacity: 0; }
}
@keyframes pm-dl-check {
  0%, 80% { opacity: 0; transform: translateX(-50%) translateY(6px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --- Frame 2: Connect tools & team --- */
.pm-frame-connect {
  display: grid;
  place-items: center;
  padding: 20px;
}
.pm-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid var(--lime-border);
  box-shadow:
    0 0 0 4px var(--lime-soft),
    0 14px 36px -10px var(--lime-glow-strong);
  z-index: 4;
}
.pm-hub img { width: 44px; height: 44px; }
.pm-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(212, 255, 77, 0.55);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pm-orbit-1 { width: 200px; height: 200px; }
.pm-orbit-2 { width: 360px; height: 360px; }
.pm-frame[data-frame="2"].is-active .pm-orbit-1 {
  animation: pm-spin 22s linear infinite;
}
.pm-frame[data-frame="2"].is-active .pm-orbit-2 {
  animation: pm-spin-rev 34s linear infinite;
}
@keyframes pm-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes pm-spin-rev {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}
.pm-node {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  padding: 6px;
  z-index: 3;
  opacity: 0;
  transform: scale(0.6);
  overflow: hidden;
}
.pm-node img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.pm-frame[data-frame="2"].is-active .pm-node {
  animation: pm-node-in .5s ease forwards;
}
/* Inner ring delays */
.pm-frame[data-frame="2"].is-active .pm-node-1 { animation-delay: .05s; }
.pm-frame[data-frame="2"].is-active .pm-node-2 { animation-delay: .12s; }
.pm-frame[data-frame="2"].is-active .pm-node-3 { animation-delay: .19s; }
.pm-frame[data-frame="2"].is-active .pm-node-4 { animation-delay: .26s; }
.pm-frame[data-frame="2"].is-active .pm-node-5 { animation-delay: .33s; }
.pm-frame[data-frame="2"].is-active .pm-node-6 { animation-delay: .40s; }
/* Outer ring delays */
.pm-frame[data-frame="2"].is-active .pm-node-7  { animation-delay: .47s; }
.pm-frame[data-frame="2"].is-active .pm-node-8  { animation-delay: .52s; }
.pm-frame[data-frame="2"].is-active .pm-node-9  { animation-delay: .57s; }
.pm-frame[data-frame="2"].is-active .pm-node-10 { animation-delay: .62s; }
.pm-frame[data-frame="2"].is-active .pm-node-11 { animation-delay: .67s; }
.pm-frame[data-frame="2"].is-active .pm-node-12 { animation-delay: .72s; }
.pm-frame[data-frame="2"].is-active .pm-node-13 { animation-delay: .77s; }
.pm-frame[data-frame="2"].is-active .pm-node-14 { animation-delay: .82s; }
.pm-frame[data-frame="2"].is-active .pm-node-15 { animation-delay: .87s; }
@keyframes pm-node-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
/* Inner ring — 6 tools at radius ~100px */
.pm-node-1 { left: calc(50% - 22px); top: calc(50% - 122px); }
.pm-node-2 { left: calc(50% + 64px); top: calc(50% - 72px); }
.pm-node-3 { left: calc(50% + 64px); top: calc(50% + 28px); }
.pm-node-4 { left: calc(50% - 22px); top: calc(50% + 78px); }
.pm-node-5 { left: calc(50% - 108px); top: calc(50% + 28px); }
.pm-node-6 { left: calc(50% - 108px); top: calc(50% - 72px); }
/* Outer ring — 9 tools evenly distributed at 40° (offset 0°) around radius 180px */
.pm-node-7  { left: calc(50% - 22px);  top: calc(50% - 202px); }
.pm-node-8  { left: calc(50% + 94px);  top: calc(50% - 160px); }
.pm-node-9  { left: calc(50% + 155px); top: calc(50% - 53px);  }
.pm-node-10 { left: calc(50% + 132px); top: calc(50% + 73px);  }
.pm-node-11 { left: calc(50% + 40px);  top: calc(50% + 147px); }
.pm-node-12 { left: calc(50% - 84px);  top: calc(50% + 147px); }
.pm-node-13 { left: calc(50% - 176px); top: calc(50% + 73px);  }
.pm-node-14 { left: calc(50% - 199px); top: calc(50% - 53px);  }
.pm-node-15 { left: calc(50% - 138px); top: calc(50% - 160px); }

/* --- Frame 3: Projects (3 stages — FNR design language) --- */
.pm-frame-projects {
  padding: 18px 20px 30px;
  position: relative;
  overflow: hidden;
}
.pm-stage {
  position: absolute;
  inset: 18px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  overflow: hidden;
}
.pm-frame[data-frame="3"].is-active .pm-stage {
  animation: pm-stage-cycle 15s ease-in-out infinite;
}
.pm-frame[data-frame="3"].is-active .pm-stage-1 { animation-delay: 0s; }
.pm-frame[data-frame="3"].is-active .pm-stage-2 { animation-delay: 5s; }
.pm-frame[data-frame="3"].is-active .pm-stage-3 { animation-delay: 10s; }
@keyframes pm-stage-cycle {
  0% { opacity: 0; transform: translateX(16px); }
  3% { opacity: 1; transform: translateX(0); }
  30% { opacity: 1; transform: translateX(0); }
  33% { opacity: 0; transform: translateX(-16px); }
  100% { opacity: 0; transform: translateX(16px); }
}

/* Stage eyebrow + shared card shell */
.pm-stage-eye {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-subtle);
  padding: 2px 0;
  flex-shrink: 0;
}
.pm-stage-eye-num {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--lime);
  color: #0a2600;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 0 10px var(--lime-glow);
}
.pm-stage-eye-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fg-faint);
}
.pm-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}
.pm-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pm-card-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.pm-card-badge {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--fg);
  background: var(--lime);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 0 10px var(--lime-glow);
  white-space: nowrap;
  flex-shrink: 0;
}
.pm-card-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg-muted);
}
.pm-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.pm-card-foot-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
}
.pm-card-foot-meta i { width: 12px; height: 12px; }
.pm-card-cta {
  height: 34px;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 10px;
}
.pm-card-cta i { width: 14px; height: 14px; }

/* ---- Stage A: Blueprint task list ---- */
.pm-bp-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}
.pm-bp-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  opacity: 0;
  transform: translateY(6px);
  transition: border-color .2s ease, background .2s ease;
}
.pm-bp-row.is-open {
  border-color: var(--lime-border);
  background: linear-gradient(180deg, rgba(212, 255, 77, 0.08), rgba(212, 255, 77, 0.02));
}
.pm-bp-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-1);
  color: var(--fg-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.pm-bp-row.is-open .pm-bp-num {
  background: var(--lime);
  color: #0a2600;
  box-shadow: 0 0 8px var(--lime-glow);
}
.pm-bp-main { min-width: 0; }
.pm-bp-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-bp-note {
  margin-top: 2px;
  font-size: 11px;
  color: var(--fg-subtle);
  line-height: 1.4;
}
.pm-bp-days {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  background: var(--surface-1);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.pm-bp-row.is-open .pm-bp-days {
  background: rgba(212, 255, 77, 0.25);
  border-color: var(--lime-border);
  color: #2a3b00;
}
.pm-frame[data-frame="3"].is-active .pm-bp-row {
  animation: pm-bp-reveal .45s ease forwards;
}
.pm-frame[data-frame="3"].is-active .pm-bp-row-1 { animation-delay: .3s; }
.pm-frame[data-frame="3"].is-active .pm-bp-row-2 { animation-delay: .45s; }
.pm-frame[data-frame="3"].is-active .pm-bp-row-3 { animation-delay: .6s; }
.pm-frame[data-frame="3"].is-active .pm-bp-row-4 { animation-delay: .75s; }
.pm-frame[data-frame="3"].is-active .pm-bp-row-5 { animation-delay: .9s; }
@keyframes pm-bp-reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Stage B: Assignments ---- */
.pm-as-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  padding: 6px 10px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  align-self: flex-start;
}
.pm-as-group i { width: 12px; height: 12px; }
.pm-as-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}
.pm-as-row {
  display: grid;
  grid-template-columns: 20px 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  opacity: 0;
  transform: translateX(-8px);
  transition: border-color .2s ease;
}
.pm-as-row.is-checked { border-color: var(--lime-border); }
.pm-as-check {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: #0a2600;
  transition: background .2s ease, border-color .2s ease;
}
.pm-as-row.is-checked .pm-as-check {
  background: var(--lime);
  border-color: var(--lime-border);
  box-shadow: 0 0 8px var(--lime-glow);
}
.pm-as-check i,
.pm-as-check svg { width: 12px; height: 12px; }
.pm-as-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--fg);
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  overflow: hidden;
}
.pm-as-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pm-as-avatar.is-agent {
  background: #0a0a0a;
  border-color: var(--lime-border);
  color: var(--lime);
  box-shadow: 0 0 0 2px var(--lime-soft);
}
.pm-as-avatar.is-agent i,
.pm-as-avatar.is-agent svg { width: 14px; height: 14px; }
.pm-as-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pm-as-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-as-role {
  font-size: 10px;
  color: var(--fg-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-as-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--fg-subtle);
  border: 1px solid var(--border);
}
.pm-as-tag.is-agent {
  background: #0a0a0a;
  color: var(--lime);
  border-color: var(--lime-border);
}
.pm-frame[data-frame="3"].is-active .pm-as-row {
  animation: pm-as-in .45s ease forwards;
}
.pm-frame[data-frame="3"].is-active .pm-as-row-1 { animation-delay: 5.3s; }
.pm-frame[data-frame="3"].is-active .pm-as-row-2 { animation-delay: 5.45s; }
.pm-frame[data-frame="3"].is-active .pm-as-row-3 { animation-delay: 5.6s; }
.pm-frame[data-frame="3"].is-active .pm-as-row-4 { animation-delay: 5.75s; }
.pm-frame[data-frame="3"].is-active .pm-as-row-5 { animation-delay: 5.9s; }
@keyframes pm-as-in {
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Stage C: Timeline ---- */
.pm-tl-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.pm-tl-axis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-left: 104px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--fg-subtle);
}
.pm-tl-axis span { text-align: left; }
.pm-tl-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}
.pm-tl-rows::before {
  content: "";
  position: absolute;
  left: 104px;
  right: 0;
  top: 0;
  bottom: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: 0.55;
  pointer-events: none;
}
.pm-tl-row {
  display: grid;
  grid-template-columns: 94px 1fr;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.pm-tl-label {
  font-size: 11px;
  color: var(--fg);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-tl-track {
  position: relative;
  height: 14px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.pm-tl-bar {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), #a8e020);
  box-shadow: 0 0 10px var(--lime-glow);
  width: 0;
}
.pm-tl-bar-1 { left: 2%; }
.pm-tl-bar-2 { left: 14%; }
.pm-tl-bar-3 { left: 38%; }
.pm-tl-bar-4 { left: 44%; }
.pm-tl-bar-5 { left: 66%; }
.pm-tl-bar-6 { left: 84%; }
.pm-frame[data-frame="3"].is-active .pm-tl-bar-1 { animation: pm-tl-grow-1 .7s ease forwards; animation-delay: 10.3s; }
.pm-frame[data-frame="3"].is-active .pm-tl-bar-2 { animation: pm-tl-grow-2 .8s ease forwards; animation-delay: 10.45s; }
.pm-frame[data-frame="3"].is-active .pm-tl-bar-3 { animation: pm-tl-grow-3 .7s ease forwards; animation-delay: 10.6s; }
.pm-frame[data-frame="3"].is-active .pm-tl-bar-4 { animation: pm-tl-grow-4 .7s ease forwards; animation-delay: 10.75s; }
.pm-frame[data-frame="3"].is-active .pm-tl-bar-5 { animation: pm-tl-grow-5 .7s ease forwards; animation-delay: 10.9s; }
.pm-frame[data-frame="3"].is-active .pm-tl-bar-6 { animation: pm-tl-grow-6 .6s ease forwards; animation-delay: 11.05s; }
@keyframes pm-tl-grow-1 { to { width: 12%; } }
@keyframes pm-tl-grow-2 { to { width: 24%; } }
@keyframes pm-tl-grow-3 { to { width: 20%; } }
@keyframes pm-tl-grow-4 { to { width: 22%; } }
@keyframes pm-tl-grow-5 { to { width: 18%; } }
@keyframes pm-tl-grow-6 { to { width: 14%; } }
.pm-tl-flag {
  position: absolute;
  right: -4px;
  top: -8px;
  color: var(--lime);
  opacity: 0;
  transform: scale(0.6);
  filter: drop-shadow(0 0 4px var(--lime-glow));
}
.pm-tl-flag i { width: 18px; height: 18px; }
.pm-frame[data-frame="3"].is-active .pm-tl-flag {
  animation: pm-tl-flag .5s ease forwards;
  animation-delay: 11.65s;
}
@keyframes pm-tl-flag {
  to { opacity: 1; transform: scale(1); }
}

/* Stage progress dots */
.pm-stage-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.pm-stage-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--surface-2);
  transition: background .3s ease, box-shadow .3s ease;
}
.pm-frame[data-frame="3"].is-active .pm-stage-dot {
  animation: pm-stage-dot 15s ease-in-out infinite;
}
.pm-frame[data-frame="3"].is-active .pm-stage-dot-1 { animation-delay: 0s; }
.pm-frame[data-frame="3"].is-active .pm-stage-dot-2 { animation-delay: 5s; }
.pm-frame[data-frame="3"].is-active .pm-stage-dot-3 { animation-delay: 10s; }
@keyframes pm-stage-dot {
  0%, 3% { background: var(--surface-2); box-shadow: none; }
  3%, 30% { background: var(--lime); box-shadow: 0 0 8px var(--lime-glow); }
  33%, 100% { background: var(--surface-2); box-shadow: none; }
}
.pm-memory-core .pm-memory-logo { pointer-events: none; }

/* --- Frame 4: CogniMemo memory --- */
.pm-frame-memory {
  display: grid;
  place-items: center;
  padding: 14px;
}
.pm-memory-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.pm-memory-link {
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.pm-memory-link-hub {
  stroke: url(#pm-memory-line);
  stroke-width: 1.15;
  opacity: 0.95;
  will-change: opacity, filter;
}
.pm-memory-link-mesh {
  stroke: rgba(165, 205, 95, 0.9);
  stroke-width: 0.52;
  opacity: 0.82;
  will-change: opacity, stroke-width;
}
.pm-frame[data-frame="4"].is-active .pm-memory-link-hub {
  animation: pm-synapse-line 2.2s ease-in-out infinite;
}
.pm-frame[data-frame="4"].is-active .pm-memory-link-mesh {
  animation: pm-synapse-mesh 2.8s ease-in-out infinite;
}
/* Hub lines are the last 12 <line> children (after defs + 66 mesh lines). */
.pm-frame[data-frame="4"].is-active .pm-memory-graph > line.pm-memory-link-hub:nth-child(68) { animation-delay: 0s; }
.pm-frame[data-frame="4"].is-active .pm-memory-graph > line.pm-memory-link-hub:nth-child(69) { animation-delay: 0.12s; }
.pm-frame[data-frame="4"].is-active .pm-memory-graph > line.pm-memory-link-hub:nth-child(70) { animation-delay: 0.24s; }
.pm-frame[data-frame="4"].is-active .pm-memory-graph > line.pm-memory-link-hub:nth-child(71) { animation-delay: 0.36s; }
.pm-frame[data-frame="4"].is-active .pm-memory-graph > line.pm-memory-link-hub:nth-child(72) { animation-delay: 0.48s; }
.pm-frame[data-frame="4"].is-active .pm-memory-graph > line.pm-memory-link-hub:nth-child(73) { animation-delay: 0.6s; }
.pm-frame[data-frame="4"].is-active .pm-memory-graph > line.pm-memory-link-hub:nth-child(74) { animation-delay: 0.72s; }
.pm-frame[data-frame="4"].is-active .pm-memory-graph > line.pm-memory-link-hub:nth-child(75) { animation-delay: 0.84s; }
.pm-frame[data-frame="4"].is-active .pm-memory-graph > line.pm-memory-link-hub:nth-child(76) { animation-delay: 0.96s; }
.pm-frame[data-frame="4"].is-active .pm-memory-graph > line.pm-memory-link-hub:nth-child(77) { animation-delay: 1.08s; }
.pm-frame[data-frame="4"].is-active .pm-memory-graph > line.pm-memory-link-hub:nth-child(78) { animation-delay: 1.2s; }
.pm-frame[data-frame="4"].is-active .pm-memory-graph > line.pm-memory-link-hub:nth-child(79) { animation-delay: 1.32s; }
@keyframes pm-synapse-line {
  0%, 100% {
    opacity: 0.88;
    filter: drop-shadow(0 0 3px rgba(212, 255, 77, 0.55));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(212, 255, 77, 1)) drop-shadow(0 0 3px rgba(212, 255, 77, 0.75));
  }
}
@keyframes pm-synapse-mesh {
  0%, 100% {
    opacity: 0.72;
    stroke: rgba(145, 185, 80, 0.78);
    stroke-width: 0.44;
  }
  50% {
    opacity: 1;
    stroke: rgba(215, 255, 120, 1);
    stroke-width: 0.65;
  }
}
.pm-memory-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 4;
}
.pm-memory-core::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.94) 0%, rgba(250, 250, 248, 0.72) 45%, rgba(250, 250, 248, 0) 72%);
  z-index: -1;
  pointer-events: none;
}
.pm-memory-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.pm-memory-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0a0a0a;
}

/* Memory type chips (neural nodes) */
.pm-memory-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  line-height: 12px;
  font-weight: 600;
  color: var(--fg);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) translateY(6px);
  z-index: 2;
}
.pm-memory-chip svg,
.pm-memory-chip [data-lucide],
.pm-memory-chip i {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  flex-shrink: 0;
  color: #0a2600;
}
.pm-memory-chip::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px var(--lime-glow);
  opacity: 0;
}
.pm-frame[data-frame="4"].is-active .pm-memory-chip {
  animation: pm-chip-in 0.5s ease forwards, pm-chip-float 4.5s ease-in-out infinite;
}
.pm-frame[data-frame="4"].is-active .pm-memory-chip-1 { animation-delay: 0.45s, 1s; }
.pm-frame[data-frame="4"].is-active .pm-memory-chip-2 { animation-delay: 0.52s, 1.08s; }
.pm-frame[data-frame="4"].is-active .pm-memory-chip-3 { animation-delay: 0.59s, 1.16s; }
.pm-frame[data-frame="4"].is-active .pm-memory-chip-4 { animation-delay: 0.66s, 1.24s; }
.pm-frame[data-frame="4"].is-active .pm-memory-chip-5 { animation-delay: 0.73s, 1.32s; }
.pm-frame[data-frame="4"].is-active .pm-memory-chip-6 { animation-delay: 0.8s, 1.4s; }
.pm-frame[data-frame="4"].is-active .pm-memory-chip-7 { animation-delay: 0.87s, 1.48s; }
.pm-frame[data-frame="4"].is-active .pm-memory-chip-8 { animation-delay: 0.94s, 1.56s; }
.pm-frame[data-frame="4"].is-active .pm-memory-chip-9 { animation-delay: 1.01s, 1.64s; }
.pm-frame[data-frame="4"].is-active .pm-memory-chip-10 { animation-delay: 1.08s, 1.72s; }
.pm-frame[data-frame="4"].is-active .pm-memory-chip-11 { animation-delay: 1.15s, 1.8s; }
.pm-frame[data-frame="4"].is-active .pm-memory-chip-12 { animation-delay: 1.22s, 1.88s; }
@keyframes pm-chip-in {
  to { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
}
@keyframes pm-chip-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-3px); }
}
.pm-memory-chip-1 { left: 50%; top: 12%; }
.pm-memory-chip-2 { left: 69%; top: 17.1%; }
.pm-memory-chip-3 { left: 82.9%; top: 31%; }
.pm-memory-chip-4 { left: 88%; top: 50%; }
.pm-memory-chip-5 { left: 82.9%; top: 69%; }
.pm-memory-chip-6 { left: 69%; top: 82.9%; }
.pm-memory-chip-7 { left: 50%; top: 88%; }
.pm-memory-chip-8 { left: 31%; top: 82.9%; }
.pm-memory-chip-9 { left: 17.1%; top: 69%; }
.pm-memory-chip-10 { left: 12%; top: 50%; }
.pm-memory-chip-11 { left: 17.1%; top: 31%; }
.pm-memory-chip-12 { left: 31%; top: 17.1%; }

.pm-cta {
  margin-top: 80px;
  display: flex;
  justify-content: center;
}

/* ---------- Integrations ---------- */

.section-integrations {
  padding-top: 120px;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.integration-card {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.integration-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-tint-strong);
  background: var(--accent-tint-soft);
  box-shadow: 0 10px 30px -16px rgba(26, 116, 49, 0.2);
}

.integration-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 50%;
  transition: transform .25s ease;
}

.integration-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.integration-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  padding: 0 8px;
}

.integration-card:hover .integration-logo {
  transform: translateY(-10%) scale(0.9);
}
.integration-card:hover span {
  opacity: 1;
  transform: translateY(0);
}

.integrations-note {
  text-align: center;
  margin: 40px 0 0;
  color: var(--accent);
}

@media (max-width: 900px) {
  .integrations-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 680px) {
  .integrations-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .integration-card span { font-size: 12px; bottom: 10px; }
}
@media (max-width: 400px) {
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cognimemo (corporate memory) ---------- */

.section-cognimemo {
  padding-top: 108px;
}

.section-cognimemo .section-head {
  margin-bottom: 36px;
}

.section-cognimemo .section-head p {
  max-width: 42rem;
}

.section-cognimemo .section-head h2 {
  white-space: normal;
}

/* Brand badge row */
.cog-brand-row {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.cog-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px 12px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.1);
}

.cog-badge-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.cog-badge-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 14px;
  border-right: 1px solid var(--border);
}

.cog-badge-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.cog-badge-sub {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--fg-subtle);
}

.cog-brand-cta.btn {
  font-size: 13px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface-1);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cog-brand-cta.btn:hover {
  border-color: var(--accent-tint-strong);
  background: var(--accent-tint-soft);
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 116, 49, 0.12);
}
.cog-brand-cta.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(26, 116, 49, 0.08);
}
.cog-brand-cta.btn [data-lucide] {
  width: 14px;
  height: 14px;
}

/* Cards grid — 3 columns */
.cog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cog-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.cog-card:hover {
  border-color: var(--accent-tint-strong);
  box-shadow: 0 16px 48px -32px rgba(26, 116, 49, 0.22);
  transform: translateY(-2px);
}

.cog-card-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-tint-soft);
  border: 1px solid var(--accent-tint);
  margin-bottom: 20px;
}

.cog-card:nth-child(2) .cog-card-icon {
  background: color-mix(in oklab, var(--accent-green-2) 12%, transparent);
  border-color: color-mix(in oklab, var(--accent-green-2) 28%, transparent);
}

.cog-card:nth-child(3) .cog-card-icon {
  background: rgba(146, 255, 0, 0.1);
  border-color: rgba(146, 255, 0, 0.35);
}

.cog-card-icon [data-lucide] {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.cog-card:nth-child(2) .cog-card-icon [data-lucide] {
  color: var(--accent-green-2);
}

.cog-card:nth-child(3) .cog-card-icon [data-lucide] {
  color: var(--accent-dark);
}

.cog-card-body {
  flex: 1;
  min-width: 0;
}

.cog-card-num {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.cog-card-title {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: var(--fg);
}

.section-cognimemo .cog-card-desc {
  margin: 0;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.58;
}

@media (max-width: 900px) {
  .cog-cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
  .cog-card {
    flex-direction: row;
    gap: 18px;
    align-items: flex-start;
  }
  .cog-card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .cog-brand-badge {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .cog-badge-meta {
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 10px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .cog-cards {
    max-width: 100%;
  }
  .cog-card {
    flex-direction: column;
    gap: 0;
  }
  .cog-card-icon {
    margin-bottom: 16px;
  }
}

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

.section-security {
  padding: 120px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.security-inner {
  position: relative;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(26, 116, 49, 0.1), transparent 70%),
    linear-gradient(180deg, #fafafa, #f4f4f4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  overflow: hidden;
}
.security-inner h2 {
  max-width: 700px;
  margin: 14px auto 44px;
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.sec-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.sec-item i, .sec-item [data-lucide] {
  width: 22px; height: 22px;
  color: var(--accent);
  margin-bottom: 14px;
}
.sec-item:nth-child(2) i, .sec-item:nth-child(2) [data-lucide] { color: var(--accent-green-2); }
.sec-item:nth-child(3) i, .sec-item:nth-child(3) [data-lucide] { color: var(--accent-green); }
.sec-item h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.sec-item p { margin: 0; font-size: 13px; color: var(--fg-muted); line-height: 1.55; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.price-card:hover {
  border-color: var(--accent-tint-strong);
  transform: translateY(-2px);
}

.price-card-featured {
  border-color: rgba(26, 116, 49, 0.45);
  background:
    radial-gradient(400px 200px at 50% -20%, rgba(26, 116, 49, 0.12), transparent 70%),
    var(--surface-1);
  box-shadow: 0 20px 60px -20px rgba(26, 116, 49, 0.25);
}

.price-ribbon {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--btn-lime);
  color: var(--btn-lime-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 6px 16px -4px rgba(212, 255, 77, 0.45);
}

.price-head { display: flex; flex-direction: column; gap: 8px; }
.price-tag { color: var(--accent); font-size: 11px; }
.price-card h3 { font-family: 'Inter', system-ui, -apple-system, sans-serif; margin: 4px 0 0; font-size: 22px; font-weight: 500; letter-spacing: -0.04em; }
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}
.price-amount { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.price-period { color: var(--fg-muted); font-size: 11px; }
.price-head > p { margin: 4px 0 0; font-size: 13px; color: var(--fg-muted); }

.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}
.price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
}
.price-list li i, .price-list li [data-lucide] {
  width: 16px; height: 16px; color: var(--accent-green-2); flex: 0 0 16px;
}

.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
}

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

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq-item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--accent-tint-strong); }
.faq-item summary {
  list-style: none;
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i, .faq-item summary [data-lucide] {
  width: 18px; height: 18px;
  color: var(--fg-muted);
  transition: transform .2s ease, color .2s ease;
  flex: 0 0 18px;
}
.faq-item[open] summary i, .faq-item[open] summary [data-lucide] {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- CTA ---------- */

.cta {
  max-width: var(--max-w);
  margin: 60px auto 120px;
  padding: 0 28px;
}
.cta-inner {
  position: relative;
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(26, 116, 49, 0.14), transparent 60%),
    linear-gradient(180deg, #fbfbfb, #f2f2f2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 28px;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(26, 116, 49, 0.35), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.cta-inner h2 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1.05;
  font-weight: 500;
  margin: 0 0 14px;
}
.cta-inner p {
  color: var(--fg-muted);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 32px;
}

/* ---------- Demo / Book a Demo page ---------- */

.demo-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 28px 28px;
  text-align: center;
}
.demo-hero .section-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--fg-subtle);
}
.demo-hero-title {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 16px;
}
.demo-hero-title .title-accent { color: inherit; }
.demo-hero-sub {
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

.demo-grid-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 28px 64px;
}
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.demo-cal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px -22px rgba(0, 0, 0, 0.18);
}
.demo-cal-head {
  padding: 24px 28px 12px;
  border-bottom: 1px solid var(--border);
}
.demo-cal-eyebrow { color: var(--fg-subtle); }
.demo-cal-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 8px 0 6px;
}
.demo-cal-sub {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
}
.demo-cal-frame {
  width: 100%;
  background: #fff;
}
.demo-cal-frame > div {
  width: 100%;
}
.demo-cal-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}
.demo-cal-note {
  padding: 14px 28px 18px;
  margin: 0;
  border-top: 1px solid var(--border);
  background: #fff;
}
.demo-cal-note a { color: var(--fg-muted); }
.demo-cal-note a:hover { color: var(--fg); }

.demo-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px;
}
.demo-side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.demo-side-card h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
}
.demo-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-side-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}
.demo-side-list li i,
.demo-side-list li [data-lucide] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--fg-subtle);
}
.demo-side-list strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}
.demo-side-list p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.5;
}
.demo-side-meta { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px; }
.demo-side-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-muted);
  font-size: 13px;
}
.demo-side-row i,
.demo-side-row [data-lucide] {
  width: 16px;
  height: 16px;
  color: var(--fg-subtle);
}

/* Demo placeholder window */
.demo-preview-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 28px 80px;
}
.demo-preview-section .section-head { text-align: center; margin-bottom: 28px; }
.demo-preview-section .section-head .section-label { color: var(--fg-subtle); }
.demo-preview-section .section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 6px 0 10px;
}
.demo-preview-section .section-head p {
  color: var(--fg-muted);
  margin: 0 auto;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
}

/* Demo page — agents background */
.demo-agents-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 28px 64px;
}
.demo-agents-section .section-head {
  text-align: center;
  margin-bottom: 28px;
}
.demo-agents-section .section-head .section-label { color: var(--fg-subtle); }
.demo-agents-section .section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 6px 0 10px;
}
.demo-agents-section .section-head p {
  color: var(--fg-muted);
  margin: 0 auto;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.6;
}
.demo-agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.demo-agent-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.demo-agent-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-tint-strong);
  background: var(--accent-tint-soft);
}
.demo-agent-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-tint) 0%, transparent 55%),
    var(--surface-2);
  border: 1px solid var(--border);
}
.demo-agent-icon i,
.demo-agent-icon [data-lucide] {
  width: 22px;
  height: 22px;
  color: var(--fg-subtle);
}
.demo-agent-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.demo-agent-card p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}

.demo-placeholder {
  margin-top: 8px;
}
.demo-placeholder-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.3);
}
.demo-placeholder-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.demo-placeholder-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
}
.demo-placeholder-dot:nth-child(1) { background: #ff5f57; }
.demo-placeholder-dot:nth-child(2) { background: #febc2e; }
.demo-placeholder-dot:nth-child(3) { background: #28c840; }
.demo-placeholder-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fg-subtle);
}
.demo-placeholder-body {
  min-height: 460px;
  display: grid;
  place-items: center;
  background: #fff;
  padding: 40px 28px;
}
.demo-placeholder-skeleton {
  text-align: center;
  max-width: 480px;
}
.dps-orb {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #0a0a0a;
  color: #fff;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.35);
}
.dps-orb i, .dps-orb [data-lucide] { width: 28px; height: 28px; }
.demo-placeholder-skeleton h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.demo-placeholder-skeleton p {
  margin: 0 0 22px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
}
.dps-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.dps-row {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.03));
  position: relative;
  overflow: hidden;
}
.dps-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: translateX(-100%);
  animation: dpsShimmer 2.4s infinite;
}
.dps-row-1 { width: 92%; }
.dps-row-2 { width: 78%; }
.dps-row-3 { width: 64%; }
.dps-row-4 { width: 48%; }
@keyframes dpsShimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 1000px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-side { position: static; }
  .demo-agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .demo-hero { padding: 36px 18px 18px; }
  .demo-grid-section { padding: 24px 18px 48px; }
  .demo-agents-section { padding: 8px 18px 48px; }
  .demo-agent-grid { grid-template-columns: 1fr; }
  .demo-preview-section { padding: 24px 18px 60px; }
  .demo-cal-frame { min-height: 640px; }
  .demo-placeholder-body { min-height: 360px; padding: 28px 18px; }
}

/* ---------- Footer (Caretta-style) ---------- */

.site-footer {
  margin-top: 80px;
  display: block;
  max-width: none;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: 16px;
}

/* Top: deep green CTA */
.footer-cta {
  background: var(--accent-dark);
  color: #fff;
  padding: 96px 28px 110px;
  scroll-margin-top: 0;
}
.footer-cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-cta-title {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  max-width: 1100px;
  color: #ffffff;
}
.footer-cta-accent {
  color: var(--btn-lime);
}

/* Bottom: black columns + wordmark */
.footer-bottom {
  background: #000;
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 28px 0;
  overflow: hidden;
}
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 56px;
}
.footer-col h4 {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.01em;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  color: #ffffff;
  font-size: 16px;
  transition: opacity .2s ease;
}
.footer-col a:hover { opacity: 0.7; }

.footer-brand {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}
.footer-mark img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  transition: opacity .2s ease;
}
.footer-mark:hover img { opacity: 0.8; }

/* Huge wordmark */
.footer-wordmark {
  margin: 0;
  padding: 0;
  line-height: 0;
}
.footer-wordmark-text {
  display: block;
  font-size: clamp(96px, 28vw, 360px);
  line-height: 0.78;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #ffffff;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}
.footer-copy {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
  transition: color .2s ease;
}
.footer-copy:hover { color: rgba(255, 255, 255, 0.75); }

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

@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-scrolly {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* Masaüstü sağ sütundaki tek sticky görsel mobilde kullanılmıyor; adım metninin altındaki klonlar kullanılır */
  .pm-scrolly > .pm-visual {
    display: none !important;
  }
  .pm-step-inline-visual:not(:empty) {
    margin-top: 28px;
  }
  /* Metin altındaki klonlanmış kutular */
  .pm-visual-inline {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    height: auto;
    max-height: none;
    align-self: stretch;
  }
  .pm-visual-inline .pm-visual-sticky {
    position: relative;
    width: 100%;
    height: clamp(340px, 58vh, 480px);
    min-height: 300px;
  }
  .pm-visual-inline .pm-frame {
    position: absolute !important;
    inset: 0 !important;
    opacity: 1 !important;
    pointer-events: none;
    transform: none !important;
  }
  .pm-step-item { min-height: 0; padding: 24px 0; opacity: 1; transform: none; }
  .security-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  /* Mobil header: İndir gizli, blur arka plan, hamburger sağ ucunda */
  .site-nav {
    gap: 10px;
  }
  .site-nav .nav-cta > a.btn-primary {
    display: none !important;
  }
  .site-nav-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  .site-nav > .nav-cta {
    order: 2;
    margin-left: auto;
  }
  .site-nav > .nav-toggle {
    order: 3;
    flex-shrink: 0;
  }

  .nav-toggle {
    display: inline-grid;
    border-radius: 8px;
  }
  .nav-links {
    position: fixed;
    inset: var(--site-nav-panel-top, 72px) 0 0 0;
    flex-direction: column;
    text-align: center;
    gap: 0;
    padding: 20px 28px;
    background: color-mix(in oklab, #ffffff 94%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 15;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links > a {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .site-nav .nav-links .nav-links-mobile-cta {
    border-top: none;
  }
  body.nav-open { overflow: hidden; }

  /* Footer: dar ekran — linkler 2 sütun; logo + Enortic alt alta, sağa hizalı (masaüstüyle aynı) */
  .footer-bottom { padding: 56px 18px 0; }
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    padding-bottom: 36px;
  }
  .footer-col h4 { margin-bottom: 14px; }
  .footer-brand {
    grid-column: 1 / -1;
    justify-self: end;
    align-items: flex-end;
  }
  .footer-wordmark-text { font-size: clamp(72px, 30vw, 240px); line-height: 0.82; }
}

/* Menü açıkken sayfa üzeri blur + hafif karartma (header üstte kalır); legal/demo #nav-backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 14;
  background: color-mix(in oklab, var(--fg) 8%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .nav-backdrop {
    transition: none;
  }
}

@media (max-width: 760px) {
  .site-nav { padding: 14px 18px; }
  .hero { margin-top: 20px; padding: 24px 18px 20px; }
  .hero-title { font-size: clamp(32px, 9vw, 48px); line-height: 1.08; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .section { padding: 72px 18px 20px; }
  .section-pm { padding-top: 72px; }
  .section-security { padding: 72px 18px; }
  .section-cognimemo { padding-top: 72px; }
  .section-cognimemo .section-head { margin-bottom: 32px; }
  .security-inner { padding: 40px 22px; }
  .cta { margin: 40px auto 80px; padding: 0 18px; }
  .cta-inner { padding: 48px 22px; }

  .feature-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 14px; }
  .feature-body { padding: 20px 8px 6px; }
  .price-card { padding: 26px 22px; }

  .pm-step-num { width: 38px; height: 38px; margin-bottom: 14px; }
  .pm-step-item h3 { font-size: 22px; }
  .pm-visual-inline .pm-visual-sticky {
    height: clamp(300px, 52vh, 420px);
    min-height: 280px;
  }
  .pm-orbit-1 { width: 180px; height: 180px; }
  .pm-orbit-2 { width: 270px; height: 270px; }
  .pm-node-1 { left: calc(50% - 23px); top: calc(50% - 120px); }
  .pm-node-2 { left: calc(50% + 80px); top: calc(50% - 60px); }
  .pm-node-3 { left: calc(50% + 80px); top: calc(50% + 20px); }
  .pm-node-4 { left: calc(50% - 23px); top: calc(50% + 80px); }
  .pm-node-5 { left: calc(50% - 126px); top: calc(50% + 20px); }
  .pm-node-6 { left: calc(50% - 126px); top: calc(50% - 60px); }


  .footer-cta { padding: 64px 18px 72px; }
  .footer-cta-title { margin-bottom: 28px; }
  .footer-bottom { padding: 48px 18px 0; }

  .lang-toggle { padding: 6px 8px; font-size: 10px; }
}

@media (max-width: 420px) {
  .brand-mark { font-size: 14px; }
  .nav-cta .btn { padding: 8px 12px; font-size: 13px; }
  .nav-cta .btn span { display: none; }
  .hero-title { font-size: clamp(30px, 10vw, 42px); }
  .section h2 { font-size: clamp(24px, 6vw, 32px); }
  .cta-inner h2 { font-size: clamp(28px, 8vw, 40px); }
}
