@charset "UTF-8";
:root {
  --bg: #f5f4f0;
  --bg2: #eceae4;
  --bg3: #ffffff;
  --primary: #160d46;
  --primary-light: #231566;
  --accent: #3d4fff;
  --accent2: #00a89e;
  --accent3: #e84444;
  --gold: #d4860a;
  --text: #111018;
  --text-muted: #6b6880;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(61, 79, 255, 0.12);
  --node-webhook: #3d4fff;
  --node-http: #00877e;
  --node-code: #c47a00;
  --node-if: #7c3aed;
  --node-switch: #c2185b;
  --node-respond: #047857;
  --node-error: #dc2626;
  --node-s3: #b45309;
  --node-lambda: #c2410c;
  --node-bedrock: #6d28d9;
  --node-postgres: #1d4ed8;
  --node-extract: #0e7490;
  --node-email: #bb9229;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}

.hero-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-badge {
  font-family: "Geist Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: rgba(61, 79, 255, 0.08);
  border: 1px solid rgba(61, 79, 255, 0.22);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
  margin-top: 4rem;
  display: inline-block;
  animation: fadeSlideUp 0.8s ease both;
}

.hero-title {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  animation: fadeSlideUp 0.8s 0.15s ease both;
  color: var(--primary);
}
.hero-title .accent-word {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 1.5rem auto 0;
  animation: fadeSlideUp 0.8s 0.3s ease both;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  animation: fadeSlideUp 0.8s 0.45s ease both;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Geist Mono", monospace;
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: "Geist Mono", monospace;
  animation: fadeSlideUp 1s 0.6s ease both;
}

.scroll-cue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s infinite;
}

section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-tag {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1.05rem;
  font-weight: 300;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(61, 79, 255, 0.15), transparent);
  margin: 0 2rem;
}

.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.what-card {
  background: var(--bg3);
  border: 1px solid rgba(61, 79, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(30px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}
.what-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s;
}
.what-card:hover {
  border-color: rgba(61, 79, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(61, 79, 255, 0.08);
}
.what-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}
.what-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.card-title {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.arch-section {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.arch-diagram {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.arch-diagram.revealed {
  opacity: 1;
  transform: translateY(0);
}

.arch-box {
  background: var(--bg3);
  border: 1px solid rgba(61, 79, 255, 0.12);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.arch-box-title {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
}

.arch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.arch-dot.green {
  background: var(--accent2);
}

.arch-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: "Geist Mono", monospace;
  margin-bottom: 0.4rem;
  transition: background 0.2s, color 0.2s;
}
.arch-item:hover {
  background: rgba(61, 79, 255, 0.06);
  color: var(--text);
}

.arch-item-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.arch-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 2rem;
  color: var(--text-muted);
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.arch-arrow-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  position: relative;
}
.arch-arrow-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  border-left: 6px solid var(--accent2);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.arch-center {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: 1px solid rgba(61, 79, 255, 0.3);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 48px rgba(22, 13, 70, 0.18);
}

.arch-center-title {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.arch-center-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-family: "Geist Mono", monospace;
}

.arch-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.2rem;
}

.arch-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-family: "Geist Mono", monospace;
  color: rgba(255, 255, 255, 0.75);
}

.nodes-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.node-card {
  background: var(--bg3);
  border: 1px solid rgba(61, 79, 255, 0.1);
  border-radius: 14px;
  padding: 1.4rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.node-card.revealed {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}
.node-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.node-card-color {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.node-card-type {
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  opacity: 0.6;
}

.node-card-name {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

.node-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.node-card-pill {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.65rem;
  font-family: "Geist Mono", monospace;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.role-card {
  background: var(--bg3);
  border: 1px solid rgba(61, 79, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}
.role-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.role-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.role-card.super::after {
  background: linear-gradient(to right, #d4860a, #e84444);
}
.role-card.admin::after {
  background: linear-gradient(to right, var(--accent), #7c3aed);
}
.role-card.user::after {
  background: linear-gradient(to right, var(--accent2), #047857);
}

.role-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.role-title {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.role-badge {
  display: inline-block;
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.role-features {
  list-style: none;
}
.role-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.role-features li:last-child {
  border-bottom: none;
}
.role-features li::before {
  content: "→";
  color: var(--accent);
  flex-shrink: 0;
  font-family: "Geist Mono", monospace;
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.security-card {
  background: var(--bg3);
  border: 1px solid rgba(61, 79, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}
.security-card.revealed {
  opacity: 1;
  transform: translateX(0);
}
.security-card:nth-child(even) {
  transform: translateX(20px);
}
.security-card:nth-child(even).revealed {
  transform: translateX(0);
}

.sec-title {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--primary);
}

.sec-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sec-list {
  list-style: none;
}
.sec-list li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 0.6rem;
}
.sec-list li:last-child {
  border-bottom: none;
}
.sec-list li span {
  color: var(--accent2);
  flex-shrink: 0;
  font-family: "Geist Mono", monospace;
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.cta-section {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.cta-title {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.cta-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 450px;
  margin: 0 auto 3rem;
  font-weight: 300;
}

.cta-url {
  display: inline-block;
  font-family: "Geist Mono", monospace;
  font-size: 0.85rem;
  color: var(--accent2);
  background: rgba(0, 168, 158, 0.08);
  border: 1px solid rgba(0, 168, 158, 0.25);
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  letter-spacing: 0.05em;
}

footer {
  border-top: 1px solid rgba(61, 79, 255, 0.1);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: "Geist Mono", monospace;
}

.footer-logo {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--primary);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 244, 240, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(61, 79, 255, 0.1);
}

.nav-logo {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  font-family: "Geist", sans-serif;
}
.nav-links a:hover {
  color: var(--primary);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.3);
  }
}
@keyframes flowPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
.flow-demo {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.demo-phase-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.demo-phase {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(61, 79, 255, 0.15);
  color: var(--text-muted);
  background: transparent;
  transition: all 0.4s;
  opacity: 0.5;
}
.demo-phase.ph-active {
  color: var(--accent);
  background: rgba(61, 79, 255, 0.08);
  border-color: rgba(61, 79, 255, 0.3);
  opacity: 1;
}

.demo-phase-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(61, 79, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
}
.ph-active .demo-phase-num {
  background: var(--accent);
  color: white;
}

.demo-phase-sep {
  color: rgba(61, 79, 255, 0.25);
  font-family: "Geist Mono", monospace;
  font-size: 0.8rem;
}

.editor-demo {
  position: relative;
  display: flex;
  background: var(--bg3);
  border: 1px solid rgba(61, 79, 255, 0.14);
  border-radius: 20px;
  overflow: hidden;
  height: 430px;
  box-shadow: 0 8px 48px rgba(22, 13, 70, 0.1), 0 2px 12px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.editor-demo.revealed {
  opacity: 1;
  transform: translateY(0);
}

.editor-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: var(--bg2);
  border-bottom: 1px solid rgba(61, 79, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
  z-index: 50;
  flex-shrink: 0;
}

.editor-topbar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.editor-topbar-title {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  flex: 1;
}

.editor-topbar-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.editor-zoom-btn {
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(61, 79, 255, 0.12);
  border-radius: 4px;
  background: var(--bg3);
}

.editor-body {
  display: flex;
  width: 100%;
  margin-top: 38px;
  height: calc(100% - 38px);
}

.demo-sidebar {
  width: 172px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid rgba(61, 79, 255, 0.1);
  padding: 0.85rem 0.75rem;
  overflow: hidden;
  z-index: 10;
}

.demo-sidebar-title {
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.demo-sidebar-group {
  font-family: "Geist Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(107, 104, 128, 0.6);
  margin: 0.7rem 0 0.3rem;
}

.demo-node-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.6rem;
  border-radius: 7px;
  border: 1px solid rgba(61, 79, 255, 0.08);
  background: var(--bg3);
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  color: var(--text);
  font-family: "Geist", sans-serif;
  cursor: grab;
  transition: all 0.2s;
  user-select: none;
}
.demo-node-item:hover {
  border-color: rgba(61, 79, 255, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.dni-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.demo-canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}
.demo-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(61, 79, 255, 0.065) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.demo-run-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  background: linear-gradient(135deg, var(--accent), #5c6fff);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.38rem 1rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(61, 79, 255, 0.3);
  animation: runBtnAnim 24s linear infinite;
}

@keyframes runBtnAnim {
  0%, 62% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(61, 79, 255, 0.3);
  }
  65% {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(61, 79, 255, 0.55);
  }
  68% {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(61, 79, 255, 0.2);
  }
  70%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(61, 79, 255, 0.3);
  }
}
.demo-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.demo-edge {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  opacity: 0;
}

.exec-edge {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 10 40;
  stroke-dashoffset: 0;
  opacity: 0;
}

.wf-node {
  position: absolute;
  width: 152px;
  background: var(--bg3);
  border: 1.5px solid rgba(61, 79, 255, 0.14);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.wf-node-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.18rem;
}

.wf-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wf-node-name {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--primary);
}

.wf-node-sub {
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
}

.wf-node-badge {
  display: inline-block;
  font-family: "Geist Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-top: 0.3rem;
  margin-left: 1.1rem;
}

.wf-handle {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid rgba(61, 79, 255, 0.25);
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;
  transition: border-color 0.3s;
}
.wf-handle.r {
  right: -6px;
}
.wf-handle.l {
  left: -6px;
}
.wf-handle.rt {
  right: -6px;
  top: 38%;
  transform: none;
}
.wf-handle.rb {
  right: -6px;
  top: 62%;
  transform: none;
}

.wf-node-check {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent2);
  color: white;
  font-size: 0.62rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  font-weight: 700;
}

.wf-ai-ring {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 18px;
  height: 18px;
  opacity: 0;
}
.wf-ai-ring svg {
  animation: spinRing 1s linear infinite;
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}
.branch-label {
  position: absolute;
  font-family: "Geist Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  z-index: 15;
}

.bl-true {
  background: rgba(4, 120, 87, 0.09);
  color: #047857;
  border: 1px solid rgba(4, 120, 87, 0.22);
}

.bl-false {
  background: rgba(220, 38, 38, 0.09);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.22);
}

.demo-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 13, 70, 0.88);
  color: rgba(255, 255, 255, 0.92);
  padding: 0.38rem 1.2rem;
  border-radius: 20px;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  z-index: 40;
  opacity: 0;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.demo-hint .hint-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.45rem;
  vertical-align: middle;
}

.demo-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 22px;
  z-index: 50;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
  opacity: 0;
  animation: cursorMove 24s linear infinite;
}

.try-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border-radius: 12px;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 24px rgba(22, 13, 70, 0.25), 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.try-app-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(22, 13, 70, 0.35);
}
.try-app-btn svg {
  transition: transform 0.2s;
}
.try-app-btn:hover svg {
  transform: translateX(3px);
}

.try-app-live {
  margin-top: 0.9rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: "Geist Mono", monospace;
  letter-spacing: 0.08em;
}
.try-app-live span {
  color: var(--accent2);
}

.dni-1 {
  animation: dniAnim1 24s linear infinite;
}

.dni-2 {
  animation: dniAnim2 24s linear infinite;
}

.dni-3 {
  animation: dniAnim3 24s linear infinite;
}

.dni-4 {
  animation: dniAnim4 24s linear infinite;
}

.dni-5 {
  animation: dniAnim5 24s linear infinite;
}

@keyframes dniAnim1 {
  0%, 4% {
    background: var(--bg3);
    border-color: rgba(61, 79, 255, 0.08);
  }
  5%, 9% {
    background: rgba(61, 79, 255, 0.1);
    border-color: rgba(61, 79, 255, 0.35);
  }
  10%, 100% {
    background: var(--bg3);
    border-color: rgba(61, 79, 255, 0.08);
  }
}
@keyframes dniAnim2 {
  0%, 13% {
    background: var(--bg3);
    border-color: rgba(61, 79, 255, 0.08);
  }
  14%, 18% {
    background: rgba(109, 40, 217, 0.1);
    border-color: rgba(109, 40, 217, 0.35);
  }
  19%, 100% {
    background: var(--bg3);
    border-color: rgba(61, 79, 255, 0.08);
  }
}
@keyframes dniAnim3 {
  0%, 22% {
    background: var(--bg3);
    border-color: rgba(61, 79, 255, 0.08);
  }
  23%, 27% {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.35);
  }
  28%, 100% {
    background: var(--bg3);
    border-color: rgba(61, 79, 255, 0.08);
  }
}
@keyframes dniAnim4 {
  0%, 31% {
    background: var(--bg3);
    border-color: rgba(61, 79, 255, 0.08);
  }
  32%, 36% {
    background: rgba(29, 78, 216, 0.1);
    border-color: rgba(29, 78, 216, 0.35);
  }
  37%, 100% {
    background: var(--bg3);
    border-color: rgba(61, 79, 255, 0.08);
  }
}
@keyframes dniAnim5 {
  0%, 40% {
    background: var(--bg3);
    border-color: rgba(61, 79, 255, 0.08);
  }
  41%, 45% {
    background: rgba(4, 120, 87, 0.1);
    border-color: rgba(4, 120, 87, 0.35);
  }
  46%, 100% {
    background: var(--bg3);
    border-color: rgba(61, 79, 255, 0.08);
  }
}
.wn-1 {
  animation: wn1anim 24s linear infinite;
  left: 15px;
  top: 165px;
}

.wn-2 {
  animation: wn2anim 24s linear infinite;
  left: 202px;
  top: 165px;
}

.wn-3 {
  animation: wn3anim 24s linear infinite;
  left: 390px;
  top: 165px;
}

.wn-4 {
  animation: wn4anim 24s linear infinite;
  left: 555px;
  top: 85px;
}

.wn-5 {
  animation: wn5anim 24s linear infinite;
  left: 555px;
  top: 245px;
}

@keyframes wn1anim {
  0%, 7% {
    opacity: 0;
    transform: translateX(-160px);
    border-color: rgba(61, 79, 255, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
  10% {
    opacity: 1;
    transform: translateX(0);
  }
  11% {
    transform: translateX(5px);
  }
  12%, 67% {
    transform: translateX(0);
    border-color: rgba(61, 79, 255, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
  68%, 70% {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(61, 79, 255, 0.25), 0 0 18px rgba(61, 79, 255, 0.2);
  }
  72%, 88% {
    border-color: var(--accent2);
    box-shadow: 0 0 0 2px rgba(0, 168, 158, 0.3);
  }
  93% {
    opacity: 1;
    transform: translateX(0);
  }
  96%, 100% {
    opacity: 0;
    transform: translateX(-10px);
    border-color: rgba(61, 79, 255, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
}
@keyframes wn2anim {
  0%, 16% {
    opacity: 0;
    transform: translateX(-160px);
    border-color: rgba(61, 79, 255, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
  19% {
    opacity: 1;
    transform: translateX(0);
  }
  20% {
    transform: translateX(5px);
  }
  21%, 71% {
    transform: translateX(0);
    border-color: rgba(61, 79, 255, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
  72%, 80% {
    border-color: #6d28d9;
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.3), 0 0 22px rgba(109, 40, 217, 0.18);
  }
  82%, 88% {
    border-color: var(--accent2);
    box-shadow: 0 0 0 2px rgba(0, 168, 158, 0.3);
  }
  93% {
    opacity: 1;
    transform: translate(0px);
  }
  96%, 100% {
    opacity: 0;
    transform: translateX(-10px);
  }
}
@keyframes wn3anim {
  0%, 24% {
    opacity: 0;
    transform: translateX(-160px);
    border-color: rgba(61, 79, 255, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
  27% {
    opacity: 1;
    transform: translateX(0);
  }
  28% {
    transform: translateX(5px);
  }
  29%, 81% {
    transform: translateX(0);
    border-color: rgba(61, 79, 255, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
  82%, 85% {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.3), 0 0 18px rgba(124, 58, 237, 0.18);
  }
  87%, 88% {
    border-color: var(--accent2);
    box-shadow: 0 0 0 2px rgba(0, 168, 158, 0.3);
  }
  93% {
    opacity: 1;
    transform: translateX(0px);
  }
  96%, 100% {
    opacity: 0;
    transform: translateX(-10px);
  }
}
@keyframes wn4anim {
  0%, 33% {
    opacity: 0;
    transform: translateX(-160px);
    border-color: rgba(61, 79, 255, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
  36% {
    opacity: 1;
    transform: translateX(0);
  }
  37% {
    transform: translateX(5px);
  }
  38%, 85% {
    transform: translateX(0);
    border-color: rgba(61, 79, 255, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
  86%, 88% {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.3), 0 0 16px rgba(29, 78, 216, 0.18);
  }
  89%, 90% {
    border-color: var(--accent2);
    box-shadow: 0 0 0 2px rgba(0, 168, 158, 0.3);
  }
  93% {
    opacity: 1;
    transform: translateX(0px);
  }
  96%, 100% {
    opacity: 0;
    transform: translateX(-10px);
  }
}
@keyframes wn5anim {
  0%, 41% {
    opacity: 0;
    transform: translateX(-160px);
    border-color: rgba(61, 79, 255, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
  44% {
    opacity: 1;
    transform: translateX(0);
  }
  45% {
    transform: translateX(5px);
  }
  46%, 85% {
    transform: translateX(0);
    border-color: rgba(61, 79, 255, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
  86%, 88% {
    border-color: #047857;
    box-shadow: 0 0 0 2px rgba(4, 120, 87, 0.3), 0 0 16px rgba(4, 120, 87, 0.18);
  }
  89%, 90% {
    border-color: var(--accent2);
    box-shadow: 0 0 0 2px rgba(0, 168, 158, 0.3);
  }
  93% {
    opacity: 1;
    transform: translateX(0px);
  }
  96%, 100% {
    opacity: 0;
    transform: translateX(-10px);
  }
}
.wn-1 .wf-node-check {
  animation: chk1 24s linear infinite;
}

.wn-2 .wf-node-check {
  animation: chk2 24s linear infinite;
}

.wn-3 .wf-node-check {
  animation: chk3 24s linear infinite;
}

.wn-4 .wf-node-check {
  animation: chk4 24s linear infinite;
}

.wn-5 .wf-node-check {
  animation: chk5 24s linear infinite;
}

@keyframes chk1 {
  0%, 71% {
    opacity: 0;
    transform: scale(0);
  }
  73% {
    opacity: 1;
    transform: scale(1.2);
  }
  75%, 90% {
    opacity: 1;
    transform: scale(1);
  }
  93%, 100% {
    opacity: 0;
  }
}
@keyframes chk2 {
  0%, 80% {
    opacity: 0;
    transform: scale(0);
  }
  82% {
    opacity: 1;
    transform: scale(1.2);
  }
  84%, 90% {
    opacity: 1;
    transform: scale(1);
  }
  93%, 100% {
    opacity: 0;
  }
}
@keyframes chk3 {
  0%, 86% {
    opacity: 0;
    transform: scale(0);
  }
  87.5% {
    opacity: 1;
    transform: scale(1.2);
  }
  89%, 90% {
    opacity: 1;
    transform: scale(1);
  }
  93%, 100% {
    opacity: 0;
  }
}
@keyframes chk4 {
  0%, 88% {
    opacity: 0;
    transform: scale(0);
  }
  89.5% {
    opacity: 1;
    transform: scale(1.2);
  }
  91%, 90% {
    opacity: 1;
    transform: scale(1);
  }
  93%, 100% {
    opacity: 0;
  }
}
@keyframes chk5 {
  0%, 88% {
    opacity: 0;
    transform: scale(0);
  }
  89.5% {
    opacity: 1;
    transform: scale(1.2);
  }
  91%, 90% {
    opacity: 1;
    transform: scale(1);
  }
  93%, 100% {
    opacity: 0;
  }
}
.wn-2 .wf-ai-ring {
  animation: aiRingAnim 24s linear infinite;
}

@keyframes aiRingAnim {
  0%, 71% {
    opacity: 0;
  }
  72%, 81% {
    opacity: 1;
  }
  82%, 100% {
    opacity: 0;
  }
}
.de-1 {
  animation: de1anim 24s linear infinite;
  stroke: var(--accent);
}

.de-2 {
  animation: de2anim 24s linear infinite;
  stroke: var(--accent);
}

.de-3 {
  animation: de3anim 24s linear infinite;
  stroke: #047857;
}

.de-4 {
  animation: de4anim 24s linear infinite;
  stroke: #dc2626;
}

.de-1x {
  animation: de1xanim 24s linear infinite;
  stroke: var(--accent);
}

.de-2x {
  animation: de2xanim 24s linear infinite;
  stroke: #6d28d9;
}

.de-3x {
  animation: de3xanim 24s linear infinite;
  stroke: #047857;
}

.de-4x {
  animation: de4xanim 24s linear infinite;
  stroke: #dc2626;
}

@keyframes de1anim {
  0%, 46% {
    stroke-dashoffset: 300;
    opacity: 0;
  }
  47% {
    stroke-dashoffset: 300;
    opacity: 0.7;
  }
  51%, 88% {
    stroke-dashoffset: 0;
    opacity: 0.7;
  }
  93%, 100% {
    stroke-dashoffset: 300;
    opacity: 0;
  }
}
@keyframes de2anim {
  0%, 51% {
    stroke-dashoffset: 300;
    opacity: 0;
  }
  52% {
    stroke-dashoffset: 300;
    opacity: 0.7;
  }
  56%, 88% {
    stroke-dashoffset: 0;
    opacity: 0.7;
  }
  93%, 100% {
    stroke-dashoffset: 300;
    opacity: 0;
  }
}
@keyframes de3anim {
  0%, 57% {
    stroke-dashoffset: 300;
    opacity: 0;
  }
  58% {
    stroke-dashoffset: 300;
    opacity: 0.7;
  }
  62%, 88% {
    stroke-dashoffset: 0;
    opacity: 0.7;
  }
  93%, 100% {
    stroke-dashoffset: 300;
    opacity: 0;
  }
}
@keyframes de4anim {
  0%, 62% {
    stroke-dashoffset: 300;
    opacity: 0;
  }
  63% {
    stroke-dashoffset: 300;
    opacity: 0.7;
  }
  67%, 88% {
    stroke-dashoffset: 0;
    opacity: 0.7;
  }
  93%, 100% {
    stroke-dashoffset: 300;
    opacity: 0;
  }
}
@keyframes de1xanim {
  0%, 68% {
    stroke-dashoffset: 60;
    opacity: 0;
  }
  69%, 72% {
    stroke-dashoffset: 0;
    opacity: 0.9;
    animation-timing-function: linear;
  }
  73%, 100% {
    stroke-dashoffset: -60;
    opacity: 0;
  }
}
@keyframes de2xanim {
  0%, 72% {
    stroke-dashoffset: 60;
    opacity: 0;
  }
  73%, 80% {
    stroke-dashoffset: 0;
    opacity: 0.9;
    animation-timing-function: linear;
  }
  81%, 100% {
    stroke-dashoffset: -60;
    opacity: 0;
  }
}
@keyframes de3xanim {
  0%, 82% {
    stroke-dashoffset: 60;
    opacity: 0;
  }
  83%, 86% {
    stroke-dashoffset: 0;
    opacity: 0.9;
    animation-timing-function: linear;
  }
  87%, 100% {
    stroke-dashoffset: -60;
    opacity: 0;
  }
}
@keyframes de4xanim {
  0%, 82% {
    stroke-dashoffset: 60;
    opacity: 0;
  }
  83%, 86% {
    stroke-dashoffset: 0;
    opacity: 0.9;
    animation-timing-function: linear;
  }
  87%, 100% {
    stroke-dashoffset: -60;
    opacity: 0;
  }
}
.bl-true {
  left: 598px;
  top: 63px;
  animation: branchLabelAnim 24s linear infinite;
}

.bl-false {
  left: 598px;
  top: 225px;
  animation: branchLabelAnim 24s linear infinite;
  animation-delay: 0.3s;
}

@keyframes branchLabelAnim {
  0%, 62% {
    opacity: 0;
  }
  65%, 88% {
    opacity: 1;
  }
  93%, 100% {
    opacity: 0;
  }
}
.dh-1 {
  animation: dh1anim 24s linear infinite;
}

.dh-2 {
  animation: dh2anim 24s linear infinite;
}

.dh-3 {
  animation: dh3anim 24s linear infinite;
}

.dh-4 {
  animation: dh4anim 24s linear infinite;
}

.dh-5 {
  animation: dh5anim 24s linear infinite;
}

@keyframes dh1anim {
  0%, 3% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  5%, 44% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  46%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
}
@keyframes dh2anim {
  0%, 46% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  48%, 65% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  67%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
}
@keyframes dh3anim {
  0%, 65% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  67%, 70% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  72%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
}
@keyframes dh4anim {
  0%, 70% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  72%, 88% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  92%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
}
@keyframes dh5anim {
  0%, 88% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  90%, 93% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  95%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
}
@keyframes cursorMove {
  0% {
    transform: translate(80px, 80px);
    opacity: 0;
  }
  3% {
    transform: translate(80px, 80px);
    opacity: 1;
  }
  6% {
    transform: translate(80px, 80px);
  }
  9% {
    transform: translate(258px, 183px);
  }
  12% {
    transform: translate(258px, 183px);
  }
  14% {
    transform: translate(80px, 122px);
  }
  16% {
    transform: translate(80px, 122px);
  }
  19% {
    transform: translate(447px, 183px);
  }
  22% {
    transform: translate(447px, 183px);
  }
  23% {
    transform: translate(80px, 164px);
  }
  25% {
    transform: translate(80px, 164px);
  }
  28% {
    transform: translate(636px, 183px);
  }
  31% {
    transform: translate(636px, 183px);
  }
  32% {
    transform: translate(80px, 206px);
  }
  34% {
    transform: translate(80px, 206px);
  }
  37% {
    transform: translate(805px, 103px);
  }
  40% {
    transform: translate(805px, 103px);
  }
  41% {
    transform: translate(80px, 248px);
  }
  43% {
    transform: translate(80px, 248px);
  }
  46% {
    transform: translate(805px, 263px);
  }
  48% {
    transform: translate(805px, 263px);
  }
  49% {
    transform: translate(337px, 194px);
  }
  51% {
    transform: translate(368px, 194px);
  }
  52% {
    transform: translate(522px, 194px);
  }
  54% {
    transform: translate(556px, 194px);
  }
  55% {
    transform: translate(707px, 181px);
  }
  58% {
    transform: translate(723px, 103px);
  }
  59% {
    transform: translate(707px, 208px);
  }
  62% {
    transform: translate(723px, 263px);
  }
  64% {
    transform: translate(820px, 18px);
  }
  68% {
    transform: translate(820px, 18px);
  }
  70% {
    transform: translate(820px, 18px);
    opacity: 1;
  }
  90% {
    transform: translate(820px, 18px);
    opacity: 1;
  }
  94% {
    transform: translate(80px, 80px);
    opacity: 0;
  }
  100% {
    transform: translate(80px, 80px);
    opacity: 0;
  }
}
.ph-1 {
  animation: phAnim1 24s linear infinite;
}

.ph-2 {
  animation: phAnim2 24s linear infinite;
}

.ph-3 {
  animation: phAnim3 24s linear infinite;
}

.ph-4 {
  animation: phAnim4 24s linear infinite;
}

@keyframes phAnim1 {
  0%, 44% {
    color: var(--accent);
    background: rgba(61, 79, 255, 0.08);
    border-color: rgba(61, 79, 255, 0.3);
    opacity: 1;
  }
  45%, 100% {
    color: var(--text-muted);
    background: transparent;
    border-color: rgba(61, 79, 255, 0.15);
    opacity: 0.45;
  }
}
@keyframes phAnim2 {
  0%, 44% {
    color: var(--text-muted);
    background: transparent;
    border-color: rgba(61, 79, 255, 0.15);
    opacity: 0.45;
  }
  45%, 65% {
    color: var(--accent);
    background: rgba(61, 79, 255, 0.08);
    border-color: rgba(61, 79, 255, 0.3);
    opacity: 1;
  }
  66%, 100% {
    color: var(--text-muted);
    background: transparent;
    border-color: rgba(61, 79, 255, 0.15);
    opacity: 0.45;
  }
}
@keyframes phAnim3 {
  0%, 65% {
    color: var(--text-muted);
    background: transparent;
    border-color: rgba(61, 79, 255, 0.15);
    opacity: 0.45;
  }
  66%, 70% {
    color: var(--accent);
    background: rgba(61, 79, 255, 0.08);
    border-color: rgba(61, 79, 255, 0.3);
    opacity: 1;
  }
  71%, 100% {
    color: var(--text-muted);
    background: transparent;
    border-color: rgba(61, 79, 255, 0.15);
    opacity: 0.45;
  }
}
@keyframes phAnim4 {
  0%, 70% {
    color: var(--text-muted);
    background: transparent;
    border-color: rgba(61, 79, 255, 0.15);
    opacity: 0.45;
  }
  71%, 90% {
    color: var(--accent);
    background: rgba(61, 79, 255, 0.08);
    border-color: rgba(61, 79, 255, 0.3);
    opacity: 1;
  }
  91%, 100% {
    color: var(--text-muted);
    background: transparent;
    border-color: rgba(61, 79, 255, 0.15);
    opacity: 0.45;
  }
}
.ai-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-top: 3rem;
}

.ai-feat-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-feat-label {
  margin-bottom: 0.2rem;
}

.ai-feat-tag {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.ai-feat-title {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--primary);
}

.ai-feat-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.ai-mock-ui {
  background: var(--bg2);
  border: 1px solid rgba(61, 79, 255, 0.14);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  font-size: 0.78rem;
  flex: 1;
}

.ai-mock-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(61, 79, 255, 0.08);
}

.ai-mock-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(61, 79, 255, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ai-mock-title {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--primary);
}

.ai-mock-sub {
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.ai-mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.ai-chip-ex {
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  background: var(--bg3);
  border: 1px solid rgba(61, 79, 255, 0.14);
  color: var(--accent);
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
}

.ai-mock-textarea {
  background: var(--bg3);
  border: 1px solid rgba(61, 79, 255, 0.14);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 0.6rem;
  min-height: 62px;
}

.ai-mock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-mock-hint {
  font-family: "Geist Mono", monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
}

.ai-mock-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--accent), #5c6fff);
  color: white;
  padding: 0.3rem 0.9rem;
  border-radius: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  cursor: default;
}

.ai-stars-icon {
  font-size: 0.72rem;
}

.ai-cursor-blink {
  display: inline-block;
  width: 1px;
  background: var(--accent);
  color: transparent;
  margin-left: 1px;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.ai-gen-preview {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(0, 168, 158, 0.07);
  border: 1px solid rgba(0, 168, 158, 0.22);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
}

.ai-gen-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent2);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-gen-name {
  font-family: "Titillium Web", serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
}

.ai-gen-desc {
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.ai-tc-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ai-tc-label {
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.ai-tc-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.ai-tc-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid rgba(109, 40, 217, 0.18);
  border-radius: 7px;
  padding: 0.45rem 0.7rem;
  font-size: 0.76rem;
  color: var(--text);
  font-family: "Geist", sans-serif;
}

.ai-tc-payload {
  background: var(--bg3);
  border: 1px solid rgba(109, 40, 217, 0.14);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--text);
}

.ai-feat-api {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.ai-api-badge {
  font-family: "Geist Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(61, 79, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(61, 79, 255, 0.25);
}

.ai-feat-api code {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .editor-demo {
    height: 360px;
    overflow-x: auto;
  }
  .demo-sidebar {
    width: 140px;
  }
  .wn-1 {
    left: 12px;
    top: 135px;
  }
  .wn-2 {
    left: 170px;
    top: 135px;
  }
  .wn-3 {
    left: 328px;
    top: 135px;
  }
  .wn-4 {
    left: 460px;
    top: 65px;
  }
  .wn-5 {
    left: 460px;
    top: 205px;
  }
}
@media (max-width: 768px) {
  .what-grid, .nodes-grid {
    grid-template-columns: 1fr 1fr;
  }
  .roles-grid, .security-grid {
    grid-template-columns: 1fr;
  }
  .arch-diagram {
    grid-template-columns: 1fr;
  }
  .arch-arrow {
    transform: rotate(90deg);
  }
  .nav-links, .demo-phase-bar {
    display: none;
  }
  .ai-features-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .what-grid, .nodes-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 1.5rem;
  }
}
