/* Built from homepage CSS sources. Run npm run build after editing homepage styles. */

/* styles.css */
:root {
  --bg: #0a0a0a;
  --bg-1: #0e0e10;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ededed;
  --text-2: #b8b8b8;
  --muted: #8a8a92;
  --muted-2: #4a4a52;
  --accent: oklch(0.72 0.14 160);
  --accent-dim: oklch(0.72 0.14 160 / 0.15);
  --accent-line: oklch(0.72 0.14 160 / 0.35);
  --danger: oklch(0.65 0.18 25);
  --warn: oklch(0.78 0.14 85);
  --radius: 10px;
  --radius-sm: 6px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Geist', -apple-system, system-ui, sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  letter-spacing: 0;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255,255,255,0.04), transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #0a0a0a 100%);
}

.grain {
  position: fixed; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.accent { color: var(--accent); }

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* Nav */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: rgba(10,10,10,0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 18px; height: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  display: grid; place-items: center;
  background: var(--surface);
  position: relative;
}
.nav-logo-mark::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.workflow-mark,
.workflow-avatar {
  position: relative;
  overflow: hidden;
}
.workflow-mark::before,
.workflow-avatar::before {
  content: none;
}
.mark-node,
.mark-line {
  position: absolute;
  display: block;
  pointer-events: none;
}
.mark-node {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  z-index: 2;
}
.mark-node-a { left: 4px; top: 5px; }
.mark-node-b { right: 4px; top: 4px; }
.mark-node-c { right: 5px; bottom: 4px; }
.mark-line {
  height: 1px;
  background: var(--accent-line);
  transform-origin: left center;
  z-index: 1;
}
.mark-line-ab {
  left: 8px;
  top: 7px;
  width: 7px;
  transform: rotate(-6deg);
}
.mark-line-bc {
  right: 6px;
  top: 9px;
  width: 1px;
  height: 6px;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.nav-links a {
  padding: 7px 12px; border-radius: 6px;
  color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links .nav-cta,
.nav-links .nav-cta:visited {
  color: #062015;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.nav-links .nav-cta:hover {
  color: #03140d;
  background: oklch(0.78 0.14 160);
  border-color: oklch(0.78 0.14 160);
}

.availability {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  background: rgba(255,255,255,0.02);
}
.availability .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-dim); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #062015;
  border-color: var(--accent);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px var(--accent);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }

.btn-arrow {
  transition: transform .2s;
}
.btn:hover .btn-arrow { transform: translateX(2px); }

/* Section */
section { position: relative; z-index: 2; }
.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 40px;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: ""; display: inline-block; width: 16px; height: 1px;
  background: var(--muted);
}
.section-title {
  font-size: 40px;
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.05;
  max-width: 700px;
}
.section-title .dim { color: var(--muted); }
.section-sub {
  color: var(--text-2);
  font-size: 15px;
  max-width: 420px;
  line-height: 1.55;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Tag */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  background: rgba(255,255,255,0.02);
}

/* Hairline divider */
.hair { height: 1px; background: var(--border); width: 100%; }

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .section-title { font-size: 30px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}


/* hero.css */
/* =========  HERO  ========= */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero-left,
.hero-right {
  min-width: 0;
}
.hero-left > * + * { margin-top: 24px; }

.hero-title {
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--text);
}
.hero-title-accent {
  position: relative;
  color: var(--accent);
  display: inline-block;
}
.hero-underline {
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  width: 100%; height: 10px;
  color: var(--accent);
  opacity: 0.6;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawUnderline 1.2s ease .5s forwards;
}
@keyframes drawUnderline {
  to { stroke-dashoffset: 0; }
}

.hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 480px;
}

.hero-ctas {
  display: flex; gap: 10px;
  margin-top: 32px !important;
}

.hero-meta {
  display: flex; align-items: flex-start; gap: 24px;
  margin-top: 40px !important;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; max-width: 170px; }
.hero-meta-n { font-size: 22px; letter-spacing: -0.02em; color: var(--text); font-weight: 500; white-space: nowrap; }
.hero-meta-l { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.02em; line-height: 1.35; }
.hero-meta-sep { width: 1px; height: 36px; background: var(--border); }

/* Hero right: workflow preview */
.hero-right {
  position: relative;
  min-height: 0;
}

/* Terminal */
.terminal {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #121215 0%, #0d0d10 100%);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 1px 0 rgba(255,255,255,0.05) inset;
}
.terminal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.terminal-dots span:first-child { background: oklch(0.65 0.18 25 / 0.5); }
.terminal-dots span:nth-child(2) { background: oklch(0.78 0.14 85 / 0.5); }
.terminal-dots span:nth-child(3) { background: oklch(0.72 0.14 160 / 0.5); }
.terminal-title { color: var(--muted); font-size: 11px; }
.terminal-status {
  color: var(--accent);
  font-size: 10px; letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 6px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

.terminal-body {
  height: auto;
  min-height: 300px;
  overflow: hidden;
  padding: 18px 16px;
  display: flex; flex-direction: column;
  gap: 11px;
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
}
.terminal-body::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(180deg, #121215 0%, transparent 100%);
  pointer-events: none;
}

.log-line {
  display: grid;
  grid-template-columns: 34px 104px 14px minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-2);
  white-space: nowrap;
}
@keyframes logIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.log-ts { color: var(--muted); }
.log-service {
  color: var(--text);
  font-weight: 500;
}
.log-arrow { color: var(--muted-2); }
.log-msg {
  color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
  white-space: nowrap;
}
.log-badge {
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  border: 1px solid;
  flex-shrink: 0;
  white-space: nowrap;
}
.log-badge-ok { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.log-badge-warn { color: var(--warn); border-color: oklch(0.78 0.14 85 / 0.35); background: oklch(0.78 0.14 85 / 0.1); }

.map-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.map-detail {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.015);
}
.map-detail-k {
  color: var(--accent);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.map-detail-v {
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.terminal-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  font-size: 10.5px;
  color: var(--muted);
}
.success-rate { color: var(--accent); }
.cursor {
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 1024px) {
  .hero-title { font-size: 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { min-height: 0; }
}
@media (max-width: 600px) {
  .hero { padding: 56px 0 80px; }
  .hero-title { font-size: 34px; max-width: 100%; overflow-wrap: anywhere; }
  .hero-sub {
    font-size: 16px;
    max-width: calc(100vw - 40px);
    overflow-wrap: break-word;
  }
  .hero-inner,
  .hero-left,
  .hero-right {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
    max-width: calc(100vw - 40px);
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: calc(100vw - 40px);
  }
  .hero-meta-item {
    max-width: none;
  }
  .hero-meta-l {
    max-width: 260px;
  }
  .hero-meta-sep {
    display: none;
  }
  .terminal {
    width: 100%;
    max-width: calc(100vw - 40px);
  }
  .terminal-head {
    gap: 10px;
    min-width: 0;
  }
  .terminal-title {
    display: none;
  }
  .terminal-status {
    margin-left: auto;
    font-size: 9px;
    letter-spacing: 0.04em;
    min-width: 0;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .terminal-body { min-height: 0; padding: 12px; }
  .log-line {
    grid-template-columns: 28px minmax(58px, 82px) 10px minmax(0, 1fr);
    gap: 6px;
    font-size: 10px;
  }
  .log-line .log-badge {
    display: none;
  }
  .map-detail {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .log-badge {
    padding: 2px 4px;
    font-size: 9px;
  }
  .terminal-foot {
    font-size: 9.5px;
    gap: 10px;
  }
}


/* sections.css */
/* ========== SERVICES ========== */
.services-head { align-items: center; }
.services-sub { align-self: center; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.services-more { display: flex; justify-content: center; margin-top: 28px; }
.services-more-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.08em;
  background: var(--surface);
  transition: all .2s;
}
.services-more-btn:hover { color: var(--accent); border-color: var(--accent-line); }
.service-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex; flex-direction: column;
  gap: 14px;
  min-height: 230px;
  transition: border-color .25s, transform .25s, background .25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-dim), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.service-card:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
    var(--surface);
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.service-card:hover::before { opacity: 1; }

.service-card > * {
  position: relative;
  z-index: 1;
}
.service-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.service-n {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding: 5px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-dim);
}
.service-fit {
  font-size: 12px;
  color: var(--text-2);
  text-align: right;
}
.service-arrow {
  color: var(--muted);
  transition: color .2s, transform .2s;
}
.service-card:hover .service-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.service-flow {
  height: 54px;
  display: grid;
  grid-template-columns: minmax(62px, 0.8fr) 24px minmax(70px, 1fr) 24px minmax(62px, 0.8fr);
  align-items: center;
  gap: 0;
  margin: 4px 0 2px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025), transparent),
    rgba(0,0,0,0.18);
}
.service-flow-node {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255,255,255,0.03);
}
.service-flow-node.is-main {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}
.service-flow-line {
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), var(--accent-line));
  position: relative;
}
.service-flow-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--accent-line);
  border-right: 1px solid var(--accent-line);
  transform: rotate(45deg);
}

.service-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.service-desc {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.service-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ========== STEPS ========== */
.steps {
  list-style: none;
  position: relative;
  display: flex; flex-direction: column;
  gap: 32px;
  padding-left: 0;
}
.steps-track {
  position: absolute;
  left: 13px; top: 14px; bottom: 14px;
  width: 1px;
  background: var(--border);
}
.steps-track-fill {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--accent), transparent);
  height: 0%;
  transition: height 1.2s ease;
}
.steps.in .steps-track-fill { height: 100%; }

.step {
  display: grid;
  grid-template-columns: 28px 1fr 260px;
  gap: 24px;
  align-items: flex-start;
}
.step-artifact {
  padding: 4px 0;
}
.artifact {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #101013 0%, #0a0a0c 100%);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 11px;
  color: var(--text-2);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.artifact-head {
  font-size: 10px; color: var(--muted); letter-spacing: 0.08em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.artifact-body { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 10.5px; }
.artifact-row { display: flex; gap: 8px; align-items: center; color: var(--text); }
.artifact-row.a-dim { color: var(--muted); }
.a-check { color: var(--accent); }
.artifact-foot { font-size: 10px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--border); margin-top: auto; }
.artifact-blueprint svg { width: 100%; height: 100px; }
.a-line { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--text-2); }
.a-ok { color: var(--accent); }
.a-warn { color: var(--warn); }
.artifact-ship { font-size: 11px; }
.a-deploy { color: var(--text); margin-bottom: 4px; font-weight: 500; }
.a-sub { color: var(--muted); padding-left: 10px; font-size: 10.5px; line-height: 1.6; }
.uptime-bar { width: 100%; height: 44px; }
.artifact-practical {
  min-height: 0;
}
.artifact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.artifact-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.45;
}
.artifact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 900px) {
  .step { grid-template-columns: 28px 1fr; }
  .step-artifact { grid-column: 2; margin-top: 8px; }
}
.step-marker {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  position: relative; z-index: 2;
  background: var(--bg);
}
.step-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--muted);
  transition: all .3s;
}
.step.in .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.step-content {
  padding-bottom: 4px;
  display: flex; flex-direction: column; gap: 6px;
}
.step-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 10.5px;
}
.step-n { color: var(--accent); letter-spacing: 0.08em; }
.step-dur { color: var(--muted); letter-spacing: 0.05em; }
.step-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.step-desc {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 640px;
}

/* ========== DEMO ========== */
.demo-tabs {
  display: flex; gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.demo-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  transition: all .2s;
}
.demo-tab:hover { color: var(--text); border-color: var(--accent-line); background: rgba(255,255,255,0.03); }
.demo-tab.active {
  color: var(--text);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}
.demo-tab-n { color: var(--muted); font-size: 10.5px; letter-spacing: 0.1em; }
.demo-tab.active .demo-tab-n { color: var(--accent); }

.demo-canvas {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #0f0f12 0%, #0b0b0e 100%);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.demo-canvas-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.demo-trigger {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.06em;
}
.demo-trigger-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s infinite;
}
.demo-controls { display: flex; align-items: center; gap: 14px; }
.demo-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-2);
  letter-spacing: 0.06em;
}
.demo-btn:hover { color: var(--accent); border-color: var(--accent-line); }
.demo-rt { font-size: 10.5px; color: var(--muted); }

.demo-canvas-body {
  position: relative;
  height: 320px;
  padding-top: 30px;
  overflow: hidden;
}
.demo-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.edge-flow {
  animation: dash 1s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -20; }
}

.demo-node {
  position: absolute;
  height: 36px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
  transition: all .3s;
  white-space: nowrap;
}
.demo-node:hover {
  border-color: var(--accent-line);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.demo-node-badge {
  font-size: 8.5px;
  padding: 1px 5px;
  border: 1px solid;
  border-radius: 3px;
  letter-spacing: 0.08em;
  background: rgba(0,0,0,0.3);
}
.demo-node-label { font-size: 12px; font-weight: 500; }

.demo-canvas-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--muted);
}
.demo-foot-ok { color: var(--accent); }

@media (max-width: 900px) {
  .demo-canvas-body { height: 340px; overflow-x: auto; }
}

.demo-example-card {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 0.9fr;
  gap: 1px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
  box-shadow: 0 40px 80px -35px rgba(0,0,0,0.7);
}
.demo-example-main,
.demo-example-build,
.demo-example-start {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008)),
    var(--surface);
  padding: 28px;
}
.demo-example-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}
.demo-example-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.demo-example-main h3 {
  max-width: 360px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}
.demo-example-main p,
.demo-example-start p {
  color: var(--text-2);
  line-height: 1.55;
}
.demo-example-build ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-example-build li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  line-height: 1.45;
}
.demo-example-build li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.demo-example-start {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-example-start .btn {
  margin-top: auto;
  justify-content: center;
}

@media (max-width: 900px) {
  .demo-example-card {
    grid-template-columns: 1fr;
  }
  .demo-example-main {
    min-height: 0;
    gap: 18px;
  }
  .demo-example-main h3 {
    font-size: 24px;
  }
  .demo-example-start .btn {
    width: 100%;
  }
}


/* sections2.css */
/* ========== METRICS ========== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px 22px;
  display: flex; flex-direction: column;
  gap: 12px;
  position: relative;
  min-height: 170px;
}
.metric-v {
  display: flex; align-items: baseline; gap: 4px;
  color: var(--text);
}
.metric-n {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
}
.metric-unit {
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.metric-l {
  font-size: 14px;
  color: var(--text-2);
  margin-top: auto;
  padding-top: 8px;
  line-height: 1.55;
}
.metric-bar {
  margin-top: 14px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  border-radius: 999px;
}
.metric-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  animation: barFill 1.5s ease forwards;
}
@keyframes barFill { to { width: 100%; } }

@media (max-width: 900px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .metrics-grid { grid-template-columns: 1fr; }
}

/* ========== PRICING ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pricing-card {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: flex; flex-direction: column;
  gap: 24px;
  transition: border-color .2s, transform .25s;
}
.pricing-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pricing-card-hl {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(50, 180, 120, 0.08) 0%, var(--surface) 50%);
}
.pricing-badge {
  position: absolute;
  top: -10px; left: 20px;
  padding: 3px 10px;
  background: var(--accent);
  color: #062015;
  font-size: 10px;
  letter-spacing: 0.1em;
  border-radius: 4px;
}
.pricing-head { display: flex; flex-direction: column; gap: 10px; }
.pricing-n { font-size: 15px; color: var(--text-2); font-family: var(--mono); }
.pricing-price { display: flex; align-items: baseline; gap: 10px; }
.pricing-price-v { font-size: 32px; color: var(--text); letter-spacing: -0.02em; }
.pricing-price-u { font-size: 12px; color: var(--muted); }
.pricing-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.pricing-features {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
}
.pricing-features li {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.4;
}
.pricing-features svg { color: var(--accent); margin-top: 3px; }
.pricing-cta { justify-content: center; width: 100%; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.testimonial {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: flex; flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color .3s;
}
.testimonial:hover { border-color: var(--border-strong); }
.testimonial-quote {
  color: var(--accent);
  opacity: 0.5;
}
.testimonial-q {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
  flex: 1;
}
.testimonial-foot {
  display: flex; align-items: center; gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
}
.testimonial-n { font-size: 13.5px; color: var(--text); }
.testimonial-r { font-size: 11px; color: var(--muted); margin-top: 2px; }

@media (max-width: 700px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ========== FAQ ========== */
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  align-items: center;
  gap: 20px;
  width: 100%;
  text-align: left;
  padding: 24px 0;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-n { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.faq-text { font-weight: 400; }
.faq-toggle {
  color: var(--muted);
  transition: transform .3s ease, color .2s;
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq-item.open .faq-a-wrap {
  grid-template-rows: 1fr;
}
.faq-a {
  overflow: hidden;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 760px;
  padding-right: 32px;
  padding-left: 68px;
}
.faq-item.open .faq-a {
  padding-bottom: 24px;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: flex-start;
}
.about-copy {
  display: flex; flex-direction: column; gap: 16px;
  margin: 32px 0 40px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
  max-width: 540px;
}
.about-profile {
  display: flex; align-items: center; gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.about-avatar {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-dim);
}
.workflow-avatar .mark-node {
  width: 8px;
  height: 8px;
}
.workflow-avatar .mark-node-a { left: 13px; top: 17px; }
.workflow-avatar .mark-node-b { right: 13px; top: 12px; }
.workflow-avatar .mark-node-c { right: 14px; bottom: 12px; }
.workflow-avatar .mark-line-ab {
  left: 20px;
  top: 21px;
  width: 14px;
  transform: rotate(-16deg);
}
.workflow-avatar .mark-line-bc {
  right: 17px;
  top: 20px;
  width: 1px;
  height: 14px;
}
.about-name { font-size: 15px; font-weight: 500; }
.about-role { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.about-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-size: 11.5px;
  text-decoration: none;
}
.about-link:hover { color: var(--text); }

.stack-card {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, #121215 0%, #0d0d10 100%);
  overflow: hidden;
  margin-bottom: 16px;
}
.stack-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.stack-label { font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em; }
.stack-v { font-size: 10.5px; color: var(--accent); text-align: right; }
.stack-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}
.stack-group {
  min-width: 0;
  padding: 16px 18px;
  background: #0d0d10;
}
.stack-group:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.stack-k {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.stack-v-text {
  color: var(--text);
  display: block;
  font-size: 13px;
  min-width: 0;
  text-align: left;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.principles {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.015);
}
.principles-label {
  font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.principles-list {
  display: flex; flex-direction: column;
  gap: 10px;
}
.principle {
  font-size: 14px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}
.principle::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--accent);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .stack-card-head {
    padding: 12px 14px;
  }
  .stack-list {
    grid-template-columns: 1fr;
  }
}

/* ========== CONTACT ========== */
.contact-section { padding-bottom: 40px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}
.contact-title {
  font-size: 56px;
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.02;
  margin: 16px 0 24px;
}
.contact-title .dim { color: var(--muted); }
.contact-sub {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
  max-width: 460px;
  margin-bottom: 40px;
}
.contact-meta {
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.contact-meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 16px;
}
.contact-meta-k { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.contact-meta-v { font-size: 14.5px; color: var(--text); }
a.contact-meta-v:hover { color: var(--accent); }

.contact-form {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, #121215 0%, #0c0c0e 100%);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 18px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.form-head {
  display: flex; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.form-label { font-size: 11px; letter-spacing: 0.08em; color: var(--text); }
.form-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.form-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s infinite;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.field input {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: border-color .2s, background .2s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent-line);
  background: rgba(0,0,0,0.4);
}
.field input::placeholder { color: var(--muted-2); }

.budget-opts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.budget-opt {
  padding: 8px 4px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--mono);
  transition: all .2s;
}
.budget-opt:hover { color: var(--text); border-color: var(--border-strong); }
.budget-opt.active {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}

.form-submit { justify-content: center; margin-top: 6px; }

/* Footer */
.footer {
  margin-top: 80px;
  padding-top: 32px !important;
  border-top: 1px solid var(--border);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 32px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-size: 12px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-meta { font-size: 11px; color: var(--muted); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-title { font-size: 40px; }
}


/* tweaks.css */
/* ========== TWEAKS PANEL ========== */
.tweak-panel {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 280px;
  background: linear-gradient(180deg, #141417 0%, #0d0d10 100%);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
  z-index: 100;
  backdrop-filter: blur(12px);
}
.tweak-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.tweak-title {
  font-size: 11px; letter-spacing: 0.1em; color: var(--text);
}
.tweak-close {
  color: var(--muted);
  font-size: 13px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 4px;
}
.tweak-close:hover { color: var(--text); background: var(--surface-2); }

.tweak-group { margin-bottom: 16px; }
.tweak-group:last-child { margin-bottom: 0; }
.tweak-label {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.tweak-hues { display: flex; gap: 8px; flex-wrap: wrap; }
.tweak-hue {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s;
  outline: 1px solid var(--border-strong);
  outline-offset: -1px;
}
.tweak-hue:hover { transform: scale(1.08); }
.tweak-hue.active {
  border-color: var(--text);
  outline-color: transparent;
}

.tweak-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: var(--border-strong);
  border-radius: 2px;
  outline: none;
}
.tweak-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.tweak-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.tweak-scale {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
}

/* Anim intensity scaling */
html[data-anim-intensity="1"] *, html[data-anim-intensity="2"] * { animation-duration: 0s !important; transition-duration: 0s !important; }
html[data-anim-intensity="1"] .aichat-window, html[data-anim-intensity="2"] .aichat-window { transition-duration: 0.3s !important; }
html[data-anim-intensity="3"] * { animation-duration: calc(var(--anim-dur, 1s) * 0.3) !important; }
html[data-anim-intensity="10"] * { animation-iteration-count: infinite; }


/* aichat.css */
/* ========== AI CHAT WIDGET ========== */

.aichat-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: grid;
  place-items: center;
  z-index: 200;
  box-shadow: 0 4px 24px -4px var(--accent), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform .2s, box-shadow .2s;
}
.aichat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px -4px var(--accent), 0 2px 12px rgba(0,0,0,0.5);
}
.aichat-fab-open {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.aichat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: oklch(0.72 0.14 25);
  border-radius: 50%;
  font-size: 10px;
  font-family: var(--font-mono);
  color: #fff;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}

/* Window */
.aichat-window {
  position: fixed;
  right: 28px;
  bottom: 92px;
  width: 360px;
  height: 520px;
  background: linear-gradient(180deg, #141417 0%, #0d0d10 100%);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 199;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width .25s ease, height .25s ease;
}
.aichat-window-opening {
  animation: chat-in .2s ease;
}
@keyframes chat-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Head */
.aichat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
}
.aichat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.aichat-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.aichat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.aichat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Body — messages scroll here */
.aichat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  min-height: 0;
}

/* Messages */
.aichat-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  word-break: break-word;
}
.aichat-msg-ai {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.aichat-msg-user {
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* Typing indicator */
.aichat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 14px;
}
.aichat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.aichat-typing span:nth-child(2) { animation-delay: .15s; }
.aichat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-5px); opacity: 1; }
}

/* Quick questions */
.aichat-quick {
  padding: 8px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.aichat-quick-btn {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
}
.aichat-quick-btn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}

/* Footer — input */
.aichat-foot {
  padding: 8px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}
.aichat-foot-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.aichat-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
  transition: border-color .15s;
}
.aichat-input:focus { border-color: var(--accent-line); }
.aichat-input::placeholder { color: var(--muted); }
.aichat-input-invalid { border-color: #e05a5a !important; }
.aichat-input-error {
  font-size: 10px;
  color: #e05a5a;
  padding: 0 2px;
  letter-spacing: 0.03em;
  font-family: var(--font-mono);
}
.aichat-send {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #000;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: opacity .15s, transform .15s;
  cursor: pointer;
  border: none;
}
.aichat-send:disabled { opacity: 0.4; cursor: not-allowed; }
.aichat-send:not(:disabled):hover { transform: scale(1.06); }
.aichat-char-count {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  font-family: var(--font-mono);
}

/* Email offer */
.aichat-email-offer {
  background: var(--surface-2);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 12px 14px;
  animation: fadeSlideIn .2s ease;
  align-self: stretch;
}
.aichat-email-offer-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.aichat-email-offer-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.aichat-email-input { flex: 1; }
.aichat-send-email { background: var(--accent); }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Expand button in header */
.aichat-expand-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s, border-color .15s, background .15s;
}
.aichat-expand-btn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}

/* Expanded window */
.aichat-window-expanded {
  width: 560px;
  height: 680px;
  right: 28px;
  bottom: 92px;
}

/* Mobile */
@media (max-width: 480px) {
  .aichat-window,
  .aichat-window-expanded {
    right: 12px;
    bottom: 80px;
    width: calc(100vw - 24px);
    height: 70vh;
  }
  .aichat-fab {
    right: 16px;
    bottom: 16px;
  }
}


/* extra.css */
/* ========== SCROLL PROGRESS BAR ========== */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 999;
  width: 0%;
  transition: width .1s linear;
  box-shadow: 0 0 8px var(--accent);
}

/* ========== NAV SCROLLED ========== */
.nav-scrolled {
  background: rgba(10, 10, 12, 0.92) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border) !important;
}

/* ========== BURGER MENU ========== */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 10, 12, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 4px;
    backdrop-filter: blur(20px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; margin-top: 8px; }
  .nav-links .nav-cta { text-align: center; justify-content: center; }
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 92px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  display: grid; place-items: center;
  z-index: 180;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s, transform .2s, color .15s;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover { color: var(--accent); border-color: var(--accent-line); }

/* When aichat is open, move scroll-top left of it */
@media (min-width: 481px) {
  .scroll-top { right: 92px; bottom: 28px; }
}
@media (max-width: 480px) {
  .scroll-top { right: 16px; bottom: 80px; }
}

/* ========== ROI CALCULATOR ========== */
.roi-section { background: var(--surface); }

.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .roi-grid { grid-template-columns: 1fr; }
}

.roi-controls {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.roi-field {}
.roi-field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.roi-label {
  font-size: 14px;
  color: var(--text-dim);
}
.roi-val {
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.roi-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: var(--border-strong);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 4px var(--accent-dim);
  transition: box-shadow .15s;
}
.roi-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px var(--accent-dim);
}
.roi-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.roi-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
}
.roi-note {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.roi-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.roi-result-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}
.roi-result-main {
  border-color: var(--accent-line);
  background: var(--accent-dim);
}
.roi-result-label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.roi-result-value {
  font-size: 42px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.roi-result-value-sm { font-size: 28px; }
.roi-result-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.roi-results-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.roi-cta-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.roi-cta-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.roi-cta-text strong { color: var(--text); }
.roi-cta { width: 100%; justify-content: center; }

/* ========== BLOG ========== */
.blog-section {}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

.blog-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s;
  cursor: pointer;
  overflow: hidden;
}
.blog-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  background: color-mix(in oklab, var(--surface-2) 92%, var(--accent));
}
.blog-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.blog-card-img {
  width: calc(100% + 44px);
  margin: -22px -22px 12px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.blog-card picture {
  display: block;
  width: calc(100% + 44px);
  margin: -22px -22px 12px;
}
.blog-card picture .blog-card-img {
  display: block;
  width: 100%;
  margin: 0;
}
.blog-card-img.is-contain {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0f1011;
}
.workflow-card-planned {
  background: color-mix(in oklab, var(--surface-2) 88%, #000);
}
.workflow-card-map {
  width: calc(100% + 44px);
  margin: -22px -22px 12px;
  aspect-ratio: 3 / 2;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    #0f1011;
  background-size: 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}
.workflow-card-map span {
  display: block;
}
.blog-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  padding: 3px 8px;
}
.blog-date {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.blog-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.blog-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
}
.blog-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.blog-mins {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.blog-link {
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity .15s;
}
.blog-link:hover { opacity: 0.7; }

.blog-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.blog-all-link {
  min-width: 150px;
  justify-content: center;
}
.blog-coming {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.blog-notify {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
  transition: opacity .15s;
}
.blog-notify:hover { opacity: 0.7; }

/* ========== STACK SECTION ENHANCED (About) ========== */
.stack-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}
.stack-group {
  min-width: 0;
  padding: 16px 18px;
  background: #0d0d10;
}
.stack-group:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.stack-k {
  display: block;
  margin-bottom: 7px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}
.stack-v-text {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  min-width: 0;
  text-align: left;
  line-height: 1.45;
  overflow-wrap: break-word;
}
@media (max-width: 560px) {
  .stack-list {
    grid-template-columns: 1fr;
  }
}

/* ========== REVEAL ANIMATION IMPROVEMENTS ========== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

