/* ===== My Team Factory — AI consulting homepage ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-bg: #0b0f1a;
  --color-bg-alt: #0f1525;
  --color-surface: #161d31;
  --color-surface-2: #1c2540;
  --color-border: #243052;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-primary: #6366f1;
  --color-primary-hover: #818cf8;
  --color-accent: #38bdf8;
  --color-human: #f59e0b;
  --color-done: #22c55e;
  --gradient: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 2000;
  background: var(--color-primary); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

section { padding: 96px 0; }

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 14px;
}
.section__title--left { text-align: left; }

.section__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 56px;
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.eyebrow--center { display: flex; justify-content: center; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-done);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  text-align: center;
}
.btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(99, 102, 241, .8); }
.btn--outline { border-color: var(--color-border); color: var(--color-text); }
.btn--outline:hover { border-color: var(--color-primary-hover); background: rgba(99, 102, 241, .08); }
.btn--sm { padding: 9px 18px; font-size: .88rem; background: var(--color-primary); color: #fff; }
.btn--sm:hover { background: var(--color-primary-hover); }
.btn--full { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--color-accent); outline-offset: 3px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  padding: 18px 0;
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(11, 15, 26, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom-color: var(--color-border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: inline-flex; align-items: center; gap: 2px; font-size: 1.3rem; font-weight: 700; }
.nav__logo span:last-child { color: var(--color-primary-hover); }
.nav__mark { width: 28px; height: 28px; margin-right: 10px; transition: transform .4s ease, filter .4s ease; }
.nav__logo:hover .nav__mark { transform: rotate(90deg); filter: drop-shadow(0 0 8px rgba(99, 102, 241, .7)); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { font-size: .93rem; font-weight: 500; color: var(--color-text-muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--color-text); }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(99, 102, 241, .22), transparent 70%),
    radial-gradient(500px 400px at 10% 80%, rgba(56, 189, 248, .12), transparent 70%);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__title {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 800; line-height: 1.07; letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero__subtitle { font-size: 1.15rem; color: var(--color-text-muted); max-width: 540px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--color-text-muted); }
.hero__checks li::before { content: '✓'; color: var(--color-done); font-weight: 700; margin-right: 6px; }

.hero__visual { position: relative; }
.agent-net { width: 100%; height: auto; overflow: visible; }
.agent-net .orbit { fill: none; stroke: rgba(148, 163, 184, .18); stroke-dasharray: 4 8; transform-origin: 260px 230px; animation: spinSlow 40s linear infinite; }
.agent-net .orbit--slow { animation-duration: 70s; animation-direction: reverse; }
.agent-net .link { fill: none; stroke: rgba(129, 140, 248, .35); stroke-width: 1.5; stroke-dasharray: 6 6; animation: dash 1.6s linear infinite; }
.agent-net .packet { fill: var(--color-accent); filter: drop-shadow(0 0 6px var(--color-accent)); }
.agent-net .packet--alt { fill: #a5b4fc; filter: drop-shadow(0 0 6px #a5b4fc); }
.agent-net .hub__ring { fill: none; stroke: rgba(165, 180, 252, .7); stroke-width: 2; transform-origin: 260px 230px; animation: ring 2.4s ease-out infinite; }
.agent-net .hub__label { fill: #fff; font: 700 17px Inter, sans-serif; text-anchor: middle; }
.agent-net .tool rect { fill: var(--color-surface); stroke: var(--color-border); }
.agent-net .tool text { fill: var(--color-text); font: 600 14px Inter, sans-serif; text-anchor: middle; }
.agent-net .tool { animation: float 5s ease-in-out infinite; }
.agent-net .tool:nth-of-type(2n) { animation-delay: -2.5s; }

@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* tool node lights up while an agent works in it */
.agent-net .tool rect { transition: stroke .3s, filter .3s; }
.agent-net .tool.is-working rect { stroke: var(--color-accent); stroke-width: 2; filter: drop-shadow(0 0 10px rgba(56, 189, 248, .6)); }

/* ===== Agent activity feed ===== */
.activity {
  position: relative; margin: -6px auto 0; max-width: 460px;
  background: rgba(22, 29, 49, .92); border: 1px solid var(--color-border); border-radius: 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow);
  padding: 14px 14px 10px;
}
.activity__head { display: flex; align-items: center; gap: 8px; font-size: .82rem; padding: 0 4px 10px; border-bottom: 1px solid var(--color-border); }
.activity__tag {
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 999px; background: rgba(148, 163, 184, .15); color: var(--color-text-muted);
}
.activity__count { margin-left: auto; color: var(--color-text-muted); font-size: .78rem; }
.activity__count b { color: var(--color-done); font-variant-numeric: tabular-nums; }
.activity__list { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; height: 196px; overflow: hidden; }

.task {
  --c: var(--color-primary);
  position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center;
  padding: 9px 10px; border-radius: 10px; background: var(--color-bg); border: 1px solid var(--color-border);
  animation: taskIn .4s ease-out; transition: opacity .3s, transform .3s, border-color .3s;
  overflow: hidden;
}
.task.is-leaving { opacity: 0; transform: translateY(8px); }
.task.is-running { border-color: rgba(99, 102, 241, .6); }
.task__body { min-width: 0; }
.task__body strong { display: block; font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task__body small { display: block; font-size: .74rem; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task__body small b { color: #a5b4fc; font-weight: 600; }

.task__status {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; color: #fff;
}
.task.is-running .task__status { border: 2.5px solid rgba(148, 163, 184, .25); border-top-color: var(--color-primary-hover); animation: spin .8s linear infinite; }
.task.is-done .task__status { background: var(--color-done); animation: pop .35s ease-out; }
.task.is-done .task__status::after { content: '✓'; }
.task.is-waiting .task__status { background: var(--color-human); animation: pop .35s ease-out; }
.task.is-waiting .task__status::after { content: '!'; }
.task.is-done .task__body small span { color: var(--color-done); }
.task.is-waiting .task__body small span { color: var(--color-human); }

.task__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gradient); }
.task.is-running .task__bar { animation: progress var(--d, 1.8s) linear forwards; }

@keyframes taskIn { from { opacity: 0; transform: translateY(-10px); } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes progress { to { width: 100%; } }

/* ===== Marquee ===== */
.marquee { padding: 28px 0 40px; border-block: 1px solid var(--color-border); background: var(--color-bg-alt); overflow: hidden; }
.marquee__label { text-align: center; color: var(--color-text-muted); font-size: .85rem; margin-bottom: 16px; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 14px; padding-right: 14px; }
.marquee__list li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px 7px 7px; border-radius: 999px; border: 1px solid var(--color-border);
  background: var(--color-surface); font-weight: 600; font-size: .9rem; color: #cbd5e1; white-space: nowrap;
}
.marquee__logo {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; background: #fff;
}
.marquee__logo img { width: 18px; height: 18px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Stats ===== */
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 8px;
}
.stat__number { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; }
.stat__number { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: 1rem; color: var(--color-text); }
.stat__source { margin-top: auto; padding-top: 10px; font-size: .78rem; color: var(--color-text-muted); }
a.stat__source:hover { color: var(--color-accent); text-decoration: underline; }

/* ===== Services ===== */
.services { background: var(--color-bg-alt); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(129, 140, 248, .5); box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--color-text-muted); font-size: .94rem; margin-bottom: 16px; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, .25), rgba(56, 189, 248, .15));
  border: 1px solid rgba(129, 140, 248, .3);
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: #c7d2fe; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card__list li { font-size: .85rem; color: #cbd5e1; padding: 3px 0; }
.card__list li::before { content: '→'; color: var(--color-accent); margin-right: 8px; }
.card--featured { border-color: rgba(99, 102, 241, .6); background: linear-gradient(180deg, rgba(99, 102, 241, .14), var(--color-surface) 60%); }
.card__badge {
  position: absolute; top: 16px; right: 16px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px; background: var(--gradient); color: #fff;
}
.card--wide { grid-column: 1 / -1; display: flex; gap: 24px; align-items: center; }
.card--wide .card__icon { flex-shrink: 0; margin-bottom: 0; }
.card--wide p { margin-bottom: 0; max-width: 820px; }

/* ===== Workflows ===== */
.wf-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.wf-tab {
  font: 600 .92rem Inter, sans-serif; color: var(--color-text-muted);
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--color-border);
  background: var(--color-surface); cursor: pointer; transition: all .2s;
}
.wf-tab:hover { color: var(--color-text); }
.wf-tab.is-active { background: var(--gradient); color: #fff; border-color: transparent; }

.wf-panel {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px;
  padding: 40px 32px 28px;
}
.wf-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; counter-reset: step; }
.wf-step {
  --c: var(--color-primary);
  position: relative; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: .35; transform: translateY(6px);
  transition: opacity .5s, transform .5s;
}
.wf-step--trigger { --c: var(--color-accent); }
.wf-step--human { --c: var(--color-human); }
.wf-step--done { --c: var(--color-done); }
.wf-step.is-active { opacity: 1; transform: none; }
.wf-step__icon {
  width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; font-size: 1.7rem;
  background: var(--color-bg); border: 2px solid var(--c);
  margin-bottom: 8px; transition: box-shadow .4s, transform .4s;
}
.wf-step.is-current .wf-step__icon { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 20%, transparent), 0 0 30px var(--c); transform: scale(1.08); }
.wf-step strong { font-size: .98rem; }
.wf-step small { font-size: .83rem; color: var(--color-text-muted); line-height: 1.45; }

/* connector between steps */
.wf-step:not(:last-child)::after {
  content: ''; position: absolute; top: 34px; left: calc(50% + 42px); width: calc(100% - 84px + 32px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-border) 0 6px, transparent 6px 12px);
}
.wf-step.is-active:not(:last-child)::after {
  background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 12px);
  background-size: 24px 2px;
  animation: flow .6s linear infinite;
}
@keyframes flow { to { background-position: 24px 0; } }

.wf-footer { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.wf-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: var(--color-text-muted); }
.wf-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg--trigger { background: var(--color-accent); }
.lg--agent { background: var(--color-primary); }
.lg--human { background: var(--color-human); }
.lg--done { background: var(--color-done); }
.wf-result { font-weight: 500; max-width: 560px; }

/* ===== Agent team ===== */
.team { background: var(--color-bg-alt); }
.team__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.team__text > p { color: var(--color-text-muted); margin-bottom: 24px; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--color-text-muted); }
.checklist li strong { color: var(--color-text); }
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: .7rem; font-weight: 800; color: #fff; background: var(--gradient);
}
.checklist--compact li { margin-bottom: 8px; }

.org { display: flex; flex-direction: column; align-items: center; }
.org__node {
  display: flex; align-items: center; gap: 12px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px;
  padding: 14px 20px; box-shadow: var(--shadow);
}
.org__node strong { display: block; font-size: .95rem; }
.org__node small { color: var(--color-text-muted); font-size: .78rem; }
.org__avatar { font-size: 1.4rem; }
.org__node--human { border-color: var(--color-human); }
.org__node--lead { border-color: var(--color-primary); background: linear-gradient(135deg, rgba(99, 102, 241, .25), var(--color-surface)); }
.org__line { width: 2px; height: 36px; background: linear-gradient(var(--color-human), var(--color-primary)); }
.org__fan { position: relative; width: 78%; height: 40px; }
.org__fan::before { content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 20px; background: var(--color-primary); }
.org__fan::after { content: ''; position: absolute; left: 0; right: 0; top: 20px; height: 2px; background: var(--color-primary); }
.org__fan span { position: absolute; top: 20px; width: 2px; height: 20px; background: var(--color-primary); }
.org__fan span:nth-child(1) { left: 0; }
.org__fan span:nth-child(2) { left: 33.33%; }
.org__fan span:nth-child(3) { left: 66.66%; }
.org__fan span:nth-child(4) { right: 0; }
.org__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.org__node--sm { flex-direction: column; text-align: center; gap: 4px; padding: 14px 8px; }
.org__node--sm strong { font-size: .88rem; }
.org.is-visible .org__node--sm { animation: busy 4s ease-in-out infinite; }
.org.is-visible .org__node--sm:nth-child(2) { animation-delay: 1s; }
.org.is-visible .org__node--sm:nth-child(3) { animation-delay: 2s; }
.org.is-visible .org__node--sm:nth-child(4) { animation-delay: 3s; }
@keyframes busy {
  0%, 30%, 100% { border-color: var(--color-border); box-shadow: var(--shadow); }
  10%, 20% { border-color: var(--color-accent); box-shadow: 0 0 24px rgba(56, 189, 248, .35); }
}

/* ===== Examples ===== */
.examples__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.example {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
}
.example__tag { font-size: .75rem; font-weight: 600; color: var(--color-accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.example h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.35; }
.example p { color: var(--color-text-muted); font-size: .94rem; margin-bottom: 22px; }

.meter { margin-top: auto; }
.meter__row { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; color: var(--color-text-muted); }
.meter__row b { color: var(--color-text); }
.meter__bar { height: 10px; border-radius: 999px; background: var(--color-bg); overflow: hidden; margin-bottom: 14px; }
.meter__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gradient); transition: width 1.4s cubic-bezier(.2, .8, .2, 1) .2s; }
.meter__bar--muted i { background: #475569; }
.example.is-visible .meter__bar i { width: var(--w); }

.mini-flow { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mini-flow span {
  font-size: .78rem; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--color-accent); background: var(--color-bg);
}
.mini-flow span.is-agent { border-color: var(--color-primary); }
.mini-flow span.is-human { border-color: var(--color-human); }
.mini-flow span.is-done { border-color: var(--color-done); }
.mini-flow i { flex: 1; min-width: 14px; height: 2px; background: repeating-linear-gradient(90deg, var(--color-text-muted) 0 4px, transparent 4px 8px); background-size: 16px 2px; animation: flow .8s linear infinite; }

.ring { margin-top: auto; display: flex; align-items: center; gap: 18px; }
.ring svg { width: 100px; height: 100px; transform: rotate(-90deg); flex-shrink: 0; }
.ring circle { fill: none; stroke-width: 10; }
.ring__bg { stroke: var(--color-bg); }
.ring__fg { stroke: var(--color-done); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1) .2s; }
.example.is-visible .ring__fg { stroke-dashoffset: calc(314.16 * (1 - var(--p) / 100)); }
.ring__text b { display: block; font-size: 2rem; line-height: 1; }
.ring__text small { color: var(--color-text-muted); font-size: .85rem; }

.footnote { margin: 28px auto 0; max-width: 760px; text-align: center; font-size: .8rem; color: var(--color-text-muted); }

/* ===== Compare ===== */
.compare { background: var(--color-bg-alt); }
.compare__table { max-width: 860px; margin: 0 auto; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.compare__row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.compare__row > span { padding: 16px 18px; border-top: 1px solid var(--color-border); text-align: center; font-size: .95rem; }
.compare__row > span:first-child { text-align: left; color: var(--color-text); }
.compare__row--head > span { border-top: none; font-weight: 700; font-size: .88rem; color: var(--color-text-muted); }
.compare__row .is-us { background: rgba(99, 102, 241, .12); }
.compare__row--head .is-us { color: #fff; background: var(--gradient); }
.compare .yes { color: var(--color-done); font-weight: 700; }
.compare .no { color: #f87171; font-weight: 700; }
.compare .na { color: var(--color-text-muted); }

/* ===== Process timeline ===== */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--color-border);
}
.timeline::after {
  content: ''; position: absolute; top: 27px; left: 28px; height: 2px; width: 0; background: var(--gradient);
  transition: width 2s ease-out;
}
.timeline.is-visible::after { width: calc(100% - 56px); }
.timeline__step { position: relative; }
.timeline__num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; background: var(--color-surface); border: 2px solid var(--color-primary); margin-bottom: 18px;
}
.timeline__step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline__step p { color: var(--color-text-muted); font-size: .93rem; }

/* ===== FAQ ===== */
.faq__inner { max-width: 820px; }
.faq .section__title { margin-bottom: 40px; }
.faq details {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px;
  margin-bottom: 12px; transition: border-color .2s;
}
.faq details[open] { border-color: rgba(129, 140, 248, .5); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--color-accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--color-text-muted); }

/* ===== Contact ===== */
.contact { background: radial-gradient(700px 400px at 20% 50%, rgba(99, 102, 241, .14), transparent 70%), var(--color-bg-alt); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact__text > p { color: var(--color-text-muted); margin-bottom: 22px; }
.contact__form {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px;
  padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__group label { font-size: .88rem; font-weight: 500; }
.form__group input, .form__group select, .form__group textarea {
  font: inherit; font-size: .95rem; color: var(--color-text);
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.form__group textarea { resize: vertical; }
.form__group input:focus, .form__group select:focus, .form__group textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, .25);
}
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.loading-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(11, 15, 26, .8); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.loading-spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .2); border-top-color: var(--color-primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Footer ===== */
.footer { padding: 64px 0 28px; border-top: 1px solid var(--color-border); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__brand p { color: var(--color-text-muted); font-size: .9rem; margin-top: 12px; max-width: 300px; }
.footer__links h3 { font-size: .9rem; margin-bottom: 14px; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { color: var(--color-text-muted); font-size: .88rem; transition: color .2s; }
.footer__links a:hover { color: var(--color-text); }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: .82rem; }

/* ===== Scroll reveal ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease, border-color .3s, box-shadow .3s; }
.reveal.is-visible { opacity: 1; transform: none; }
.services__grid .reveal:nth-child(2), .examples__grid .reveal:nth-child(2), .stats__grid .reveal:nth-child(2) { transition-delay: .1s; }
.services__grid .reveal:nth-child(3), .examples__grid .reveal:nth-child(3), .stats__grid .reveal:nth-child(3) { transition-delay: .2s; }
.services__grid .reveal:nth-child(4), .examples__grid .reveal:nth-child(4) { transition-delay: .3s; }
.card.reveal.is-visible:hover { transform: translateY(-6px); }

/* ===== Examples link (home) ===== */
.examples__more { margin: 16px auto 0; text-align: center; font-size: .95rem; font-weight: 600; }
.examples__more a { color: var(--color-accent); border-bottom: 1px solid rgba(56, 189, 248, .35); transition: color .2s, border-color .2s; }
.examples__more a:hover { color: var(--color-text); border-color: var(--color-text); }

/* ===== Article pages (e.g. /blog/...) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.article__narrow { max-width: 820px; }
.article__header { position: relative; padding: 150px 0 48px; overflow: hidden; border-bottom: 1px solid var(--color-border); }
.article__title { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; }
.breadcrumb { margin-bottom: 22px; font-size: .85rem; color: var(--color-text-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--color-border); }
.breadcrumb a { color: var(--color-text-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--color-text); }
.breadcrumb [aria-current] { color: var(--color-text); }

.article__body { padding-top: 48px; padding-bottom: 96px; }
.article__section { padding: 0; margin-bottom: 52px; }
.article__body h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 16px; }
.article__body p { color: #cbd5e1; margin-bottom: 16px; }
.article__body p strong, .article__body li strong { color: var(--color-text); }
.article__body a:not(.btn) { color: var(--color-accent); border-bottom: 1px solid rgba(56, 189, 248, .35); transition: color .2s, border-color .2s; }
.article__body a:not(.btn):hover { color: var(--color-text); border-color: var(--color-text); }
.article__body .article__lead { font-size: 1.15rem; color: var(--color-text); }

.article__list { margin: 0 0 18px; }
.article__list li { position: relative; padding-left: 22px; margin-bottom: 8px; color: #cbd5e1; }
.article__list li::before { content: '→'; position: absolute; left: 0; color: var(--color-accent); }
.article__steps { counter-reset: astep; margin: 0 0 18px; }
.article__steps > li { counter-increment: astep; position: relative; padding-left: 42px; margin-bottom: 12px; color: #cbd5e1; }
.article__steps > li::before {
  content: counter(astep); position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; color: #fff; background: var(--color-surface); border: 2px solid var(--color-primary);
}
.article__steps .article__list { margin: 10px 0 0; }

.callout { margin: 24px 0; padding: 18px 22px; border-radius: 12px; background: var(--color-surface); border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary); }
.article__body .callout p { margin: 0; }
.callout--notice { border-color: rgba(245, 158, 11, .35); border-left-color: var(--color-human); background: rgba(245, 158, 11, .08); }

.article__flow { margin: 28px 0 0; }

.table-wrap { margin: 8px 0 24px; overflow-x: auto; border: 1px solid var(--color-border); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--color-border); }
.data-table thead th { border-top: none; background: var(--color-surface-2); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); }
.data-table tbody th { font-weight: 600; color: var(--color-text); }
.data-table td { color: #cbd5e1; }
.data-table tbody tr:nth-child(even) { background: rgba(22, 29, 49, .5); }
.data-table tbody tr.is-highlight { background: rgba(34, 197, 94, .1); box-shadow: inset 4px 0 0 var(--color-done); }
.data-table tr.is-highlight td, .data-table tr.is-highlight th { color: var(--color-text); }

.message { margin: 20px 0 24px; max-width: 560px; padding: 16px 20px; border-radius: 18px 18px 18px 4px; background: var(--color-surface-2); border: 1px solid rgba(129, 140, 248, .4); }
.article__body .message p { margin: 0; color: var(--color-text); font-size: .95rem; }

.article__cta {
  padding: 40px 32px; margin-bottom: 40px; text-align: center; border-radius: 20px; border: 1px solid rgba(99, 102, 241, .5);
  background: radial-gradient(500px 300px at 20% 30%, rgba(99, 102, 241, .2), transparent 70%), var(--color-surface);
}
.article__body .article__cta p { max-width: 600px; margin: 0 auto 22px; }
.article__body .article__cta .article__cta-note { margin: 16px auto 0; font-size: .85rem; color: var(--color-text-muted); }
.article__body .article__byline { font-size: .9rem; font-style: italic; color: var(--color-text-muted); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .team__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }
}

@media (max-width: 860px) {
  section { padding: 72px 0; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: 64px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px;
    padding: 12px; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s;
  }
  .nav__links--open { opacity: 1; pointer-events: auto; transform: none; }
  .nav__links a:not(.btn) { display: block; padding: 10px 12px; }
  .nav__links .btn { display: block; margin-top: 6px; }

  .stats__grid { grid-template-columns: 1fr; }
  .examples__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }

  .wf-panel { padding: 28px 20px; }
  .wf-steps { grid-template-columns: 1fr; gap: 22px; }
  .wf-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; row-gap: 2px; align-items: center; text-align: left; }
  .wf-step__icon { width: 56px; height: 56px; margin: 0; font-size: 1.4rem; grid-row: span 2; }
  .wf-step:not(:last-child)::after {
    top: 60px; left: 27px; width: 2px; height: 22px;
    background: repeating-linear-gradient(180deg, var(--color-border) 0 4px, transparent 4px 8px);
  }
  .wf-step.is-active:not(:last-child)::after {
    background: repeating-linear-gradient(180deg, var(--c) 0 4px, transparent 4px 8px);
    background-size: 2px 16px; animation: flowV .6s linear infinite;
  }

  .timeline { grid-template-columns: 1fr; gap: 24px; padding-left: 76px; }
  .timeline::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; }
  .timeline::after { top: 0; left: 27px; width: 2px; height: 0; transition: height 2s ease-out; }
  .timeline.is-visible::after { width: 2px; height: 100%; }
  .timeline__num { position: absolute; left: -76px; top: -6px; }

  .compare__row > span { padding: 12px 8px; font-size: .82rem; }
  .compare__row { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@keyframes flowV { to { background-position: 0 16px; } }

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 120px; }
  .services__grid { grid-template-columns: 1fr; }
  .card--wide { flex-direction: column; align-items: flex-start; }
  .form__row { grid-template-columns: 1fr; }
  .contact__form { padding: 22px; }
  .org__row { grid-template-columns: repeat(2, 1fr); }
  .org__fan { display: none; }
  .org__line + .org__node--lead { margin-bottom: 14px; }
  .footer__inner { grid-template-columns: 1fr; }
  .article__header { padding: 110px 0 36px; }
  .article__body { padding-top: 36px; padding-bottom: 64px; }
  .data-table { font-size: .86rem; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .data-table--wide { min-width: 520px; }
  .article__cta { padding: 28px 20px; }
  .callout { padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.examples__more p { margin: 0 0 8px; }
.examples__links { display: inline-flex; flex-direction: column; gap: 6px; text-align: left; }
.examples__links li { font-weight: 600; }

/* Clickable example cards */
.examples__lead { margin: 40px 0 16px; text-align: center; font-size: .95rem; font-weight: 600; }
.examples__posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.example--link { color: inherit; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.example--link:hover, .example--link:focus-visible { border-color: var(--color-accent); transform: translateY(-3px); box-shadow: 0 0 24px rgba(56, 189, 248, .2); }
.example--link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.example--link p { margin-bottom: 16px; }
.example__more { margin-top: auto; color: var(--color-accent); font-weight: 600; font-size: .9rem; }
@media (max-width: 900px) { .examples__posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .examples__posts { grid-template-columns: 1fr; } }

/* Example cards: static snapshot of each article's final step (mirrors the step-5 scenes in blog.css) */
.snap {
  position: relative; display: flex; align-items: center; justify-content: center; height: 150px; margin: -30px -30px 22px; padding: 16px 18px 20px;
  border-bottom: 1px solid var(--color-border); border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(99, 102, 241, .16), transparent 60%), var(--color-bg-alt);
}
.snap__doc { position: relative; width: 100%; max-width: 340px; padding: 12px 14px 16px; border-radius: 12px; background: var(--color-bg); border: 1px solid var(--color-border); font-size: .8rem; line-height: 1.3; }
.snap__doc small { display: block; color: var(--color-text-muted); font-size: .72rem; }
.snap__doc--stub { display: grid; grid-template-columns: minmax(0, 1fr) 76px; padding: 0; }
.snap__main { min-width: 0; padding: 12px 14px 16px; }
.snap__stub { display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 2px dashed var(--color-border); padding: 8px; text-align: center; }
.snap__stub b { font-size: 1.15rem; font-weight: 800; color: var(--color-done); }
.snap__stub small { text-transform: uppercase; letter-spacing: .06em; font-size: .62rem; }
.snap__route { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.snap__route b { font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; }
.snap__plane { width: 18px; height: 18px; fill: var(--color-accent); }
.snap__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.snap__head b { display: block; }
.snap__total { color: var(--color-done); font-size: 1.25rem; font-weight: 800; }
.snap__sign { display: flex; align-items: flex-end; gap: 10px; margin-top: 8px; padding-top: 6px; border-top: 2px dashed var(--color-border); }
.snap__sign svg { width: 92px; height: 24px; flex-shrink: 0; fill: none; stroke: #c7d2fe; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.snap__kicker { margin: 0 0 6px !important; font-size: .74rem !important; font-weight: 700; color: var(--color-text-muted); }
.snap__note { margin-top: 4px; }
.snap__bars { display: grid; gap: 7px; }
.snap__bars li { display: grid; grid-template-columns: 6.2em 1fr; align-items: center; gap: 8px; font-weight: 700; font-size: .74rem; }
.snap__bars i { display: block; height: 9px; border-radius: 5px; background: var(--color-surface); border: 1px solid var(--color-border); overflow: hidden; }
.snap__bars em { display: block; height: 100%; background: var(--color-done); }
.snap__bars .snap__split { background: linear-gradient(90deg, #86efac 65%, #16a34a 65%); }
.snap__ticks { display: grid; gap: 6px; }
.snap__ticks li { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snap__ticks svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: var(--color-done); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.snap__stamp {
  position: absolute; right: 10px; bottom: -10px; padding: 3px 9px; border-radius: 8px; font-weight: 800; font-size: .74rem; letter-spacing: .08em; white-space: nowrap;
  color: var(--color-done); border: 2px solid var(--color-done); background: rgba(11, 15, 26, .85); transform: rotate(-6deg);
}
.snap__doc--stub .snap__stamp { right: 86px; }
.snap__main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 360px) { .snap__ticks { padding-bottom: 24px; } }

/* Toast (contact form success) */
.toast {
  position: fixed; left: 50%; top: 50%; z-index: 1000;
  width: max-content; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 16px;
  padding: 22px 20px 22px 26px;
  background: #15803d; color: #fff;
  font-size: 1.25rem; font-weight: 600; line-height: 1.4;
  border: 2px solid #fff; border-radius: var(--radius);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45), 0 24px 60px -10px rgba(0, 0, 0, .8);
  transform: translate(-50%, -50%) scale(.92); opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast__icon { font-size: 1.75rem; font-weight: 700; }
.toast__close {
  background: rgba(255, 255, 255, .15); border: 0; border-radius: 8px; color: #fff; cursor: pointer;
  font-size: 1.5rem; line-height: 1; padding: 6px 12px; align-self: flex-start;
}
.toast__close:hover, .toast__close:focus-visible { background: rgba(255, 255, 255, .3); outline: 2px solid #fff; }
@media (max-width: 600px) { .toast { font-size: 1.1rem; padding: 18px 14px 18px 18px; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
