/* ============================================================
   SilkenOps — Design System
   Graphite / Emerald — Big-4 gravitas, modern execution
   ============================================================ */

:root {
  --ink: #0b100e;
  --ink-2: #101714;
  --ink-3: #16201c;
  --line-dark: rgba(255, 255, 255, 0.08);
  --paper: #f7f8f7;
  --paper-2: #eef1ef;
  --line-light: rgba(11, 16, 14, 0.1);
  --emerald: #2f9e7d;
  --emerald-deep: #1f7c60;
  --emerald-bright: #43cfa2;
  --silver: #c9d1ce;
  --text-dark: #e9edeb;
  --text-dark-muted: #97a49e;
  --text-light: #131a17;
  --text-light-muted: #5b6661;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-lift: 0 24px 60px -24px rgba(11, 16, 14, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: rgba(47, 158, 125, 0.25); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

.container { width: min(1200px, 92vw); margin: 0 auto; }
.container-wide { width: min(1360px, 94vw); margin: 0 auto; }

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 380;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.h-hero { font-size: clamp(2.6rem, 6vw, 4.9rem); }
.h-section { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.h-card { font-size: clamp(1.3rem, 2vw, 1.65rem); font-family: var(--font-display); font-weight: 450; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--emerald);
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-light-muted);
  max-width: 60ch;
}
.dark .lede, .lede.on-dark { color: var(--text-dark-muted); }

.accent-italic { font-style: italic; color: var(--emerald); }
.dark .accent-italic { color: var(--emerald-bright); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn svg { transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(47, 158, 125, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(47, 158, 125, 0.7); }

.btn-ghost { border-color: var(--line-light); color: var(--text-light); background: transparent; }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald-deep); transform: translateY(-2px); }
.dark .btn-ghost, .btn-ghost.on-dark { border-color: rgba(255,255,255,0.22); color: var(--text-dark); }
.dark .btn-ghost:hover, .btn-ghost.on-dark:hover { border-color: var(--emerald-bright); color: var(--emerald-bright); }

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 16, 14, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line-dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  transition: padding 0.4s var(--ease-out);
}
.nav.scrolled .nav-inner { padding: 0.7rem 0; }

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}
.brand-name em { font-style: normal; color: var(--emerald-bright); }

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark-muted);
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 1.5px;
  background: var(--emerald-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-dark); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta { padding: 0.65rem 1.4rem; font-size: 0.88rem; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
  z-index: 110;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-dark);
  margin: 5px auto;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(11, 16, 14, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-dark);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.25s;
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu a:hover { color: var(--emerald-bright); }
.mobile-menu a.btn {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #fff;
  margin-top: 1rem;
}

/* ---------- Sections ---------- */

.section { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head .h-section { margin-bottom: 1.1rem; }

.dark { background: var(--ink); color: var(--text-dark); }
.dark-2 { background: var(--ink-2); color: var(--text-dark); }
.paper-2 { background: var(--paper-2); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(47, 158, 125, 0.16), transparent 65%),
    radial-gradient(900px 600px at -10% 110%, rgba(47, 158, 125, 0.08), transparent 60%),
    var(--ink);
  color: var(--text-dark);
  overflow: hidden;
  padding: 9rem 0 6rem;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.hero-copy .eyebrow { color: var(--emerald-bright); }
.hero-copy .h-hero { margin-bottom: 1.6rem; }
.hero-copy .lede { margin-bottom: 2.4rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.8rem; }
.chip {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dark-muted);
  border: 1px solid var(--line-dark);
  padding: 0.42rem 0.95rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-bright); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual { position: relative; }
.weave-hero { width: 100%; max-width: 480px; margin: 0 auto; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45)); }

/* weave line-draw animation */
.weave-hero .draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw 1.6s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.weave-float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dark-muted);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--emerald-bright), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Stats band ---------- */

.stats-band { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3.2rem 0;
}
.stat { text-align: left; border-left: 1px solid var(--line-dark); padding-left: 1.6rem; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-value span.unit { color: var(--emerald-bright); }
.stat-label { font-size: 0.85rem; color: var(--text-dark-muted); max-width: 22ch; }

/* ---------- Cards ---------- */

.card-grid { display: grid; gap: 1.4rem; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--emerald-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(47, 158, 125, 0.35); }
.card:hover::before { transform: scaleX(1); }

.card .h-card { margin: 1.2rem 0 0.7rem; }
.card p { color: var(--text-light-muted); font-size: 0.95rem; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(47,158,125,0.12), rgba(47,158,125,0.04));
  border: 1px solid rgba(47,158,125,0.25);
  color: var(--emerald-deep);
  transition: transform 0.45s var(--ease-out), background 0.3s;
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }

.card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--emerald-deep);
  background: rgba(47, 158, 125, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.dark .card, .dark-2 .card {
  background: var(--ink-3);
  border-color: var(--line-dark);
}
.dark .card p, .dark-2 .card p { color: var(--text-dark-muted); }
.dark .card-icon, .dark-2 .card-icon { color: var(--emerald-bright); }

/* feature list inside cards */
.feature-list { margin-top: 1.4rem; display: grid; gap: 0.65rem; }
.feature-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-light-muted);
}
.dark .feature-list li, .dark-2 .feature-list li { color: var(--text-dark-muted); }
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 17px; height: 17px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f9e7d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/10px no-repeat,
    rgba(47, 158, 125, 0.12);
}

/* ---------- Process timeline ---------- */

.process { counter-reset: step; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
.process-step {
  position: relative;
  padding: 2rem 1.6rem 0;
  border-top: 1px solid var(--line-dark);
}
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.22);
  display: block;
  line-height: 1;
  margin-bottom: 1.1rem;
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
.process-step::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--emerald-bright), var(--emerald));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.process-step:hover::after, .process-step.in::after { transform: scaleX(1); }
.process-step:hover::before { color: var(--emerald-bright); -webkit-text-stroke-color: transparent; }
.process-step h3 { font-size: 1.25rem; font-weight: 480; margin-bottom: 0.7rem; }
.process-step p { font-size: 0.92rem; color: var(--text-dark-muted); }

/* staggered reveal delays inside groups */
.reveal-group > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Pipeline (operating model) ---------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-3);
}
.pipe-node {
  padding: 2.2rem 1.8rem;
  position: relative;
  border-right: 1px solid var(--line-dark);
}
.pipe-node:last-child { border-right: none; }
.pipe-node .pipe-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--emerald-bright);
  border: 1px solid rgba(67, 207, 162, 0.35);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  display: inline-block;
  margin-bottom: 1.2rem;
}
.pipe-node h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.5rem; font-family: var(--font-body); }
.pipe-node p { font-size: 0.85rem; color: var(--text-dark-muted); }
.pipe-node::after {
  content: "";
  position: absolute;
  top: 50%; right: -7px;
  width: 12px; height: 12px;
  border-top: 2px solid var(--emerald-bright);
  border-right: 2px solid var(--emerald-bright);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}
.pipe-node:last-child::after { display: none; }

.pipe-flow {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  overflow: hidden;
}
.pipe-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--emerald-bright), transparent);
  animation: flow 2.8s linear infinite;
}
@keyframes flow {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  padding: 0.5rem 0;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 420;
  color: var(--text-light-muted);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee-item:hover { color: var(--emerald-deep); }
.marquee-item .diamond { width: 7px; height: 7px; background: var(--emerald); transform: rotate(45deg); opacity: 0.5; }

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split.rev > .split-visual { order: -1; }

.split-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* terminal / console mock */
.console {
  background: #0d1412;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  font-size: 0.83rem;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line-dark);
}
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3833; display: block; }
.console-bar i:first-child { background: rgba(67,207,162,0.8); }
.console-bar span { margin-left: 0.6rem; color: var(--text-dark-muted); font-size: 0.72rem; letter-spacing: 0.08em; }
.console-body { padding: 1.4rem 1.5rem 1.7rem; font-family: "SF Mono", ui-monospace, Menlo, monospace; line-height: 1.9; }
.console-body .ln { display: block; color: var(--text-dark-muted); white-space: nowrap; overflow: hidden; }
.console-body .ok { color: var(--emerald-bright); }
.console-body .hl { color: var(--text-dark); }
.console-body .dim { opacity: 0.55; }

/* enclave visual */
.enclave-visual {
  background:
    radial-gradient(420px 300px at 50% 40%, rgba(47,158,125,0.18), transparent 70%),
    var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  place-items: center;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
.enclave-ring {
  position: absolute;
  border: 1px dashed rgba(67, 207, 162, 0.28);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.enclave-ring.r1 { width: 300px; height: 300px; }
.enclave-ring.r2 { width: 420px; height: 420px; animation-direction: reverse; animation-duration: 60s; }
@keyframes spin { to { transform: rotate(360deg); } }
.enclave-core {
  position: relative;
  width: 150px; height: 150px;
  border-radius: 32px;
  background: linear-gradient(145deg, var(--ink-3), var(--ink));
  border: 1px solid rgba(67, 207, 162, 0.4);
  display: grid;
  place-items: center;
  color: var(--emerald-bright);
  box-shadow: 0 0 60px rgba(47, 158, 125, 0.25);
}

.split-copy .h-section { margin-bottom: 1.2rem; }
.split-copy .lede { margin-bottom: 1.8rem; }

/* ---------- Comparison table ---------- */

.compare {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lift);
}
.compare table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.compare th, .compare td { padding: 1.1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--line-light); }
.compare tr:last-child td { border-bottom: none; }
.compare thead th {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  font-weight: 600;
  background: var(--paper-2);
}
.compare thead th.silken-col { color: #fff; background: linear-gradient(135deg, var(--emerald), var(--emerald-deep)); }
.compare td.silken-col { background: rgba(47, 158, 125, 0.06); font-weight: 500; }
.compare td:first-child { color: var(--text-light-muted); font-weight: 500; }
.compare .yes { color: var(--emerald-deep); font-weight: 600; }
.compare .no { color: #b0665a; }
.compare-scroll { overflow-x: auto; }

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

.price-hero-card {
  background: var(--ink-2);
  color: var(--text-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.price-hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--emerald-bright), var(--emerald));
}
.price-figure {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 380;
  line-height: 1;
}
.price-figure .per { font-size: 1.05rem; color: var(--text-dark-muted); font-family: var(--font-body); }
.price-note { font-size: 0.85rem; color: var(--text-dark-muted); margin-top: 0.5rem; }

.price-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(47,158,125,0.35); }
.price-card .h-card { margin-bottom: 0.6rem; }
.price-card > p { color: var(--text-light-muted); font-size: 0.94rem; }
.price-card .price-figure { font-size: 2.2rem; margin-top: 1.6rem; }
.price-card .btn { margin-top: auto; justify-content: center; }
.price-card .feature-list { margin-bottom: 2rem; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line-light);
  padding: 1.3rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-weight: 550;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--emerald);
  transition: transform 0.35s var(--ease-out);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-top: 0.9rem; color: var(--text-light-muted); max-width: 62ch; }

/* ---------- Values / About ---------- */

.value-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line-light);
}
.value-row:last-child { border-bottom: 1px solid var(--line-light); }
.value-row .num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--emerald);
  letter-spacing: 0.1em;
}
.value-row h3 { font-size: 1.5rem; font-weight: 450; margin-bottom: 0.6rem; }
.value-row p { color: var(--text-light-muted); max-width: 58ch; }

.logo-showcase {
  background:
    radial-gradient(600px 360px at 50% 45%, rgba(47,158,125,0.14), transparent 70%),
    var(--ink);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  padding: 3.5rem;
}
.logo-showcase img { max-width: 380px; width: 100%; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact-info-card {
  display: grid;
  gap: 1rem;
}
.info-tile {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  border: 1px solid var(--line-light);
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
}
.info-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(47,158,125,0.35); }
.info-tile .card-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.info-tile h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 0.25rem; }
.info-tile p, .info-tile a { color: var(--text-light-muted); font-size: 0.93rem; }
.info-tile a:hover { color: var(--emerald-deep); }

.form-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  box-shadow: var(--shadow-lift);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.82rem; font-weight: 600; color: var(--text-light); }
.form-field input, .form-field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  background: var(--paper);
  color: var(--text-light);
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(47, 158, 125, 0.12);
}
.form-success {
  display: none;
  margin-top: 1.2rem;
  padding: 1rem 1.3rem;
  border-radius: 12px;
  background: rgba(47, 158, 125, 0.1);
  border: 1px solid rgba(47, 158, 125, 0.3);
  color: var(--emerald-deep);
  font-size: 0.92rem;
  font-weight: 500;
}
.form-success.show { display: block; }

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

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 50% 120%, rgba(47, 158, 125, 0.28), transparent 70%),
    var(--ink);
  color: var(--text-dark);
  text-align: center;
}
.cta-band .h-section { max-width: 18ch; margin: 0 auto 1.2rem; }
.cta-band .lede { margin: 0 auto 2.4rem; }

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

.footer {
  background: var(--ink);
  color: var(--text-dark-muted);
  border-top: 1px solid var(--line-dark);
  padding: 4.5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand p { font-size: 0.92rem; max-width: 32ch; margin-top: 1.2rem; }
.footer h4 {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.footer ul { display: grid; gap: 0.7rem; }
.footer a { font-size: 0.92rem; transition: color 0.25s; }
.footer a:hover { color: var(--emerald-bright); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}
.footer-bottom .sec-badge { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-bottom .sec-badge svg { color: var(--emerald-bright); }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background:
    radial-gradient(900px 420px at 80% -20%, rgba(47, 158, 125, 0.16), transparent 65%),
    var(--ink);
  color: var(--text-dark);
  padding: 11rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero .h-hero { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 22ch; }
.page-hero .lede { margin-top: 1.4rem; }

/* ---------- Insights / posts ---------- */

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(47, 158, 125, 0.35); }
.post-card .post-cat {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-deep);
  background: rgba(47, 158, 125, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}
.post-card h3 {
  font-size: 1.28rem;
  font-weight: 480;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  transition: color 0.25s;
}
.post-card:hover h3 { color: var(--emerald-deep); }
.post-card p { font-size: 0.92rem; color: var(--text-light-muted); }
.post-meta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1.3rem;
  font-size: 0.8rem;
  color: var(--text-light-muted);
}
.post-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--emerald); }

.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  background: var(--ink-2);
  color: var(--text-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.featured-post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.featured-post::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--emerald-bright));
}
.featured-post h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 420; line-height: 1.15; margin: 0.9rem 0; }
.featured-post p { color: var(--text-dark-muted); }
.featured-post .post-meta { color: var(--text-dark-muted); }
.featured-post .post-cat { background: rgba(67, 207, 162, 0.14); color: var(--emerald-bright); }

/* ---------- Article page ---------- */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--text-dark-muted);
}
.article-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--emerald-bright); }

.article-body {
  max-width: 720px;
  font-size: 1.02rem;
  line-height: 1.78;
  color: #2e3835;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 480;
  margin: 2.4rem 0 0.9rem;
  letter-spacing: -0.01em;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 0;
  padding-left: 1.3rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.45rem; }
.article-body li::marker { color: var(--emerald); }
.article-body blockquote {
  border-left: 3px solid var(--emerald);
  padding: 0.4rem 0 0.4rem 1.3rem;
  margin: 1.6rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-light);
}
.article-body strong { color: var(--text-light); }
.article-body a { color: var(--emerald-deep); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--emerald); }

.article-cta {
  margin-top: 3rem;
  padding: 2rem 2.2rem;
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  color: var(--text-dark);
  border: 1px solid var(--line-dark);
}
.article-cta h3 { font-size: 1.35rem; font-weight: 450; margin-bottom: 0.5rem; }
.article-cta p { color: var(--text-dark-muted); font-size: 0.95rem; margin-bottom: 1.4rem; }

/* ---------- Quote band ---------- */

.quote-band { text-align: center; }
.quote-band .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--emerald-bright);
  display: block;
  margin-bottom: 0.6rem;
}
.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 380;
  line-height: 1.3;
  max-width: 26ch;
  margin: 0 auto 1.4rem;
  text-wrap: balance;
}
.quote-band cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}

@media (max-width: 860px) {
  .featured-post { grid-template-columns: 1fr; }
}

/* ---------- Scroll progress bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--emerald-deep), var(--emerald-bright));
  z-index: 200;
  pointer-events: none;
}

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

.back-to-top {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(47, 158, 125, 0.4);
  background: rgba(11, 16, 14, 0.85);
  color: var(--emerald-bright);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.3s;
}
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { box-shadow: 0 8px 24px -8px rgba(47, 158, 125, 0.6); }

/* ---------- Cursor glow on dark heroes ---------- */

.cursor-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px 380px at var(--mx, 72%) var(--my, 30%), rgba(67, 207, 162, 0.09), transparent 62%);
  transition: background 0.2s linear;
}

/* ---------- Page load fade ----------
   Intentionally no body-level entrance animation: a `both`-fill body fade
   can leave the page stuck invisible in non-compositing/background tabs.
   Entrance feel comes from .reveal / word-stagger; only the exit fades. */

/* ---------- Light process (interior pages) ---------- */

.process-light .process-step { border-top-color: var(--line-light); }
.process-light .process-step::before { -webkit-text-stroke-color: rgba(11, 16, 14, 0.25); }
.process-light .process-step:hover::before { color: var(--emerald); -webkit-text-stroke-color: transparent; }
.process-light .process-step p { color: var(--text-light-muted); }

/* ---------- Ambient orbs (dark heroes) ---------- */

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
}
.orb-a {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(47, 158, 125, 0.2), transparent 65%);
  top: -130px; right: -90px;
  animation: orbDrift 19s ease-in-out infinite alternate;
}
.orb-b {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(67, 207, 162, 0.12), transparent 65%);
  bottom: -110px; left: -70px;
  animation: orbDrift 26s ease-in-out infinite alternate-reverse;
}
@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-70px, 45px) scale(1.18); }
}

/* ---------- Film grain on dark sections ---------- */

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- Button sheen sweep ---------- */

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -85%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

/* ---------- Card cursor spotlight ---------- */

.card, .price-card, .post-card, .info-tile, .form-card { position: relative; }
.spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s;
  background: radial-gradient(230px circle at var(--sx, 50%) var(--sy, 50%), rgba(47, 158, 125, 0.09), transparent 65%);
}
.card:hover .spotlight, .price-card:hover .spotlight, .post-card:hover .spotlight, .info-tile:hover .spotlight { opacity: 1; }
.dark .spotlight, .dark-2 .spotlight {
  background: radial-gradient(230px circle at var(--sx, 50%) var(--sy, 50%), rgba(67, 207, 162, 0.1), transparent 65%);
}

/* ---------- Eyebrow line draw-in ---------- */

.eyebrow::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out) 0.15s;
}
.in .eyebrow::before, .eyebrow.in::before { transform: scaleX(1); }

/* ---------- Stat divider grow-in ---------- */

.stat { border-left: none; position: relative; }
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 100%; width: 1px;
  background: linear-gradient(var(--emerald-bright), var(--line-dark));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.9s var(--ease-out) 0.25s;
}
.stat.in::before { transform: scaleY(1); }

/* ---------- Hero headline word stagger ---------- */

.words-split .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  animation: wordIn 0.75s var(--ease-out) forwards;
  animation-delay: var(--wd, 0s);
}
@keyframes wordIn { to { opacity: 1; transform: none; } }

/* ---------- Console blinking cursor ---------- */

.cursor-blink {
  display: inline-block;
  width: 8px; height: 1em;
  vertical-align: text-bottom;
  background: var(--emerald-bright);
  margin-left: 5px;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Enclave orbiting dot ---------- */

.enclave-orbit {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  animation: spin 14s linear infinite;
  pointer-events: none;
}
.enclave-orbit::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 14px rgba(67, 207, 162, 0.85);
}

/* ---------- Living gradient top bars ---------- */

.price-hero-card::before, .featured-post::before, .card::before {
  background-size: 220% 100%;
  animation: gradShift 6s ease-in-out infinite alternate;
}
@keyframes gradShift {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}

/* ---------- Brand mark hover glow ---------- */

.brand .brand-mark { transition: filter 0.35s, transform 0.35s var(--ease-out); }
.brand:hover .brand-mark {
  filter: drop-shadow(0 0 7px rgba(67, 207, 162, 0.55));
  transform: rotate(-4deg) scale(1.05);
}

/* ---------- Page transition fade ---------- */

body.page-exit { opacity: 0 !important; transition: opacity 0.18s ease; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-scale.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
}

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

@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipe-node:nth-child(2)::after { display: none; }
  .pipe-node:nth-child(even) { border-right: none; }
  .pipe-node:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-burger { display: block; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { display: none; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .split, .price-hero-card, .contact-grid { grid-template-columns: 1fr; }
  .split.rev > .split-visual { order: 0; }
  .compare th, .compare td { padding: 0.9rem 1rem; }
  .value-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .process-grid, .pipeline, .stats-grid { grid-template-columns: 1fr; }
  .pipe-node { border-right: none; border-bottom: 1px solid var(--line-dark); }
  .pipe-node:last-child { border-bottom: none; }
  .pipe-node::after { display: none; }
  .hero { padding-top: 7.5rem; }
  .hero-scroll { display: none; }
}
