/* ============================================================
   Vyne ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â design system
   ============================================================ */

:root {
  --bg: #060608;
  --bg-2: #0a0a0e;
  --panel: rgba(13, 14, 18, 0.62);
  --panel-2: rgba(10, 10, 14, 0.85);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #e8e8ee;
  --muted: #9a9aa5;
  --muted-2: #63636d;
  --accent: #ffb454;
  --accent-2: #ff7b54;
  --green: #34d399;
  --red: #f87171;
  --amber-dim: rgba(255, 180, 84, 0.1);
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

section {
  scroll-margin-top: 84px;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(255, 180, 84, 0.25);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout helpers ---------- */

.container {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin-top: 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.section-sub {
  margin-top: 14px;
  max-width: 600px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: transform 0.16s var(--ease), background 0.18s, border-color 0.18s,
    color 0.18s, box-shadow 0.18s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: var(--accent);
  color: #161006;
  box-shadow: 0 8px 26px rgba(255, 180, 84, 0.22);
}

.btn.primary:hover {
  box-shadow: 0 12px 34px rgba(255, 180, 84, 0.3);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.45;
}

.btn.sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ---------- navy ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.28s, border-color 0.28s, -webkit-backdrop-filter 0.28s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 6, 8, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.wordmark .wm-vine {
  width: 24px;
  height: 18px;
  color: var(--accent);
}

/* ================================================================
   vyne wordmark ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â the V grows into Vyne
   ================================================================ */

.wm-wrap {
  display: inline-flex;
}

.wm-wrap .vyne-wm {
  width: 108px;
  height: 27.5px;
  color: #f4f1ea;
  display: block;
}

.vyne-wm {
  display: inline-block;
  width: 360px;
  height: 112px;
  overflow: visible;
}

.vyne-wm text {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 100px;
  fill: var(--wm-fill, currentColor);
}

.wm-vine {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.5;
  stroke-dasharray: 80;
}

.wm-dot {
  fill: currentColor;
  opacity: 0.22;
}

/* animated state ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â only when .playing is present */
.vyne-wm.playing .wm-vine {
  stroke-dashoffset: 80;
  animation: wm-draw calc(var(--wm-dur) * 0.16) ease-out forwards;
}

.vyne-wm.playing .wm-vine.v1 { animation-delay: calc(var(--wm-dur) * 0.10); }
.vyne-wm.playing .wm-vine.v2 { animation-delay: calc(var(--wm-dur) * 0.20); }
.vyne-wm.playing .wm-vine.v3 { animation-delay: calc(var(--wm-dur) * 0.30); }

.vyne-wm.playing .wm-letter {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: wm-letter-pop calc(var(--wm-dur) * 0.30) cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
}

.vyne-wm.playing .wm-letter:nth-of-type(1) { animation-delay: calc(var(--wm-dur) * 0.02); }
.vyne-wm.playing .wm-letter:nth-of-type(2) { animation-delay: calc(var(--wm-dur) * 0.26); }
.vyne-wm.playing .wm-letter:nth-of-type(3) { animation-delay: calc(var(--wm-dur) * 0.40); }
.vyne-wm.playing .wm-letter:nth-of-type(4) { animation-delay: calc(var(--wm-dur) * 0.54); }

.vyne-wm.playing .wm-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: wm-dot-pop calc(var(--wm-dur) * 0.22) cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--wm-dur) * 0.68) forwards;
}

@keyframes wm-draw { to { stroke-dashoffset: 0; } }
@keyframes wm-letter-pop {
  0%   { opacity: 0; transform: translateY(30px) scale(0.3) rotate(-12deg); filter: blur(7px); }
  55%  { opacity: 1; transform: translateY(-6px) scale(1.12) rotate(4deg); filter: blur(0); }
  78%  { transform: translateY(2px) scale(0.97) rotate(-2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); filter: blur(0); }
}
@keyframes wm-dot-pop {
  0%   { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.7); }
  100% { opacity: 0.28; transform: scale(1); }
}

/* page-load splash */
#wmSplash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060608;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

#wmSplash .wm-inner {
  width: min(640px, 88vw);
  color: var(--accent);
  --wm-fill: url(#vyne-wm-grad);
  position: relative;
}

#wmSplash .wm-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 140%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.45);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 84, 0.34), rgba(255, 180, 84, 0.08) 55%, transparent 72%);
  filter: blur(20px);
  opacity: 0;
  animation: wm-glow-pulse 2100ms ease-out forwards;
  pointer-events: none;
}

@keyframes wm-glow-pulse {
  0%, 55%  { opacity: 0;    transform: translate(-50%, -50%) scale(0.45); }
  12%      { opacity: 0.9; }
  26%      { opacity: 0.2; }
  68%      { opacity: 0.95; }
  82%, 100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.25); }
}

#wmSplash .vyne-wm {
  width: 100%;
  height: auto;
}

#wmSplash.out {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .vyne-wm.playing .wm-vine,
  .vyne-wm.playing .wm-dot {
    display: none;
  }

  .vyne-wm.playing * {
    animation: none !important;
  }

  .vyne-wm.playing .wm-letter {
    opacity: 1;
    clip-path: none;
  }

  #wmSplash .wm-inner::before {
    display: none;
  }
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.16s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: #161006;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  padding: 9px 16px;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.18s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 180, 84, 0.25);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.18s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 0;
  text-align: center;
}

.hero .section-label {
  display: inline-block;
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(46px, 7.2vw, 88px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #ffb454, #ff7b54);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 22px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

.hero-ctas {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

/* ---------- product mockup ---------- */

.demo {
  margin: 74px auto 0;
  max-width: 1060px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel-2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  text-align: left;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.demo-dots span:nth-child(1) { background: #f87171; }
.demo-dots span:nth-child(2) { background: #fbbf24; }
.demo-dots span:nth-child(3) { background: #34d399; }

.demo-url {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 12px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-body {
  display: grid;
  grid-template-columns: 190px 1fr 300px;
  min-height: 430px;
}

.demo-tree {
  border-right: 1px solid var(--line);
  padding: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.demo-tree .t-item {
  padding: 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-tree .t-item.d {
  color: var(--text);
}

.demo-tree .t-item .t-arrow {
  color: var(--accent);
  margin-right: 6px;
}

.demo-tree .t-item .ind {
  display: inline-block;
  width: 14px;
}

.demo-editor {
  border-right: 1px solid var(--line);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  overflow: hidden;
}

.demo-editor .e-tab {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 5px 5px 0 0;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.demo-editor .e-tab.active {
  color: var(--text);
  border-bottom-color: transparent;
  background: rgba(255, 180, 84, 0.07);
}

.demo-editor .e-line {
  opacity: 0;
  animation: line-in 0.5s var(--ease) forwards;
  white-space: pre;
}

.demo-editor .e-line:nth-child(2) { animation-delay: 0.15s; }
.demo-editor .e-line:nth-child(3) { animation-delay: 0.3s; }
.demo-editor .e-line:nth-child(4) { animation-delay: 0.45s; }
.demo-editor .e-line:nth-child(5) { animation-delay: 0.6s; }
.demo-editor .e-line:nth-child(6) { animation-delay: 0.75s; }
.demo-editor .e-line:nth-child(7) { animation-delay: 0.9s; }
.demo-editor .e-line:nth-child(8) { animation-delay: 1.05s; }

@keyframes line-in {
  to { opacity: 1; }
}

.tok.k { color: #ff8a54; }
.tok.s { color: #9fe8a4; }
.tok.f { color: #8ab8ff; }
.tok.c { color: var(--muted-2); font-style: italic; }

.caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.agent {
  display: flex;
  flex-direction: column;
  padding: 16px;
  font-size: 12.5px;
  min-width: 0;
}

.agent-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

.agent-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.bubble {
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.5;
  max-width: 92%;
  opacity: 0;
  animation: line-in 0.5s var(--ease) forwards;
}

.bubble.user {
  align-self: flex-end;
  background: var(--amber-dim);
  border: 1px solid rgba(255, 180, 84, 0.25);
  color: var(--text);
  animation-delay: 0.4s;
}

.bubble.agent {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  animation-delay: 0.9s;
}

.agent-chips {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  opacity: 0;
  animation: line-in 0.45s var(--ease) forwards;
}

.chip:nth-child(1) { animation-delay: 1.4s; }
.chip:nth-child(2) { animation-delay: 1.9s; }
.chip:nth-child(3) { animation-delay: 2.4s; }
.chip:nth-child(4) { animation-delay: 3s; }
.chip:nth-child(5) { animation-delay: 3.5s; }

.chip .ok { color: var(--green); }
.chip .do { color: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.chip.done { color: var(--muted); }

.agent-ta-da {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  opacity: 0;
  animation: line-in 0.5s var(--ease) 4s forwards;
}

.agent-ta-da .pulse {
  background: var(--green);
}

/* ---------- reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* ---------- what is vyne ---------- */

.what-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: stretch;
}

.what-node {
  text-align: center;
  padding: 22px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.what-node:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.what-node .wn {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--accent);
}

.what-node .wt {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.what-node .wd {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.what-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 18px;
  padding: 0 6px;
}

/* ---------- features ---------- */

.features-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.22s var(--ease), border-color 0.22s, background 0.22s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  background: rgba(14, 15, 20, 0.7);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-head .leaf {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.card-title {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-copy {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.card-demo {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
}

.card:not(.in) .card-demo .d-line {
  opacity: 0;
}

.card.in .card-demo .d-line {
  opacity: 0;
  animation: line-in 0.5s var(--ease) forwards;
  white-space: pre-wrap;
}

.card.in .card-demo .d-line:nth-child(1) { animation-delay: 0.15s; }
.card.in .card-demo .d-line:nth-child(2) { animation-delay: 0.3s; }
.card.in .card-demo .d-line:nth-child(3) { animation-delay: 0.45s; }
.card.in .card-demo .d-line:nth-child(4) { animation-delay: 0.6s; }
.card.in .card-demo .d-line:nth-child(5) { animation-delay: 0.75s; }

.d-c { color: var(--muted-2); }
.d-ok { color: var(--green); }
.d-do { color: var(--accent); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tchip {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.16s, border-color 0.16s, transform 0.16s var(--ease);
}

.tchip:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- how it works ---------- */

.how-track {
  margin-top: 28px;
  position: relative;
}

.vine-grow path {
  stroke: var(--accent);
  stroke-width: 1.4;
  opacity: 0.45;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 2.4s var(--ease);
}

.vine-grow.in path {
  stroke-dashoffset: 0;
}

.how-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.how-step .hs {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.14em;
}

.how-step .ht {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
}

.how-step .hd {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- activity ---------- */

.activity {
  margin-top: 24px;
  max-width: 780px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 24px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.activity .a-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

/* entrance animations play only once the panel is revealed */
.activity:not(.in) .a-phase,
.activity:not(.in) .a-line,
.activity:not(.in) .a-task {
  opacity: 0;
}

.activity.in .a-line {
  white-space: pre-wrap;
}

.activity .a-cursor {
  color: var(--accent);
}

.activity .ok { color: var(--green); }
.activity .do { color: var(--accent); }
.activity .dim { color: var(--muted-2); }

.a-task {
  color: var(--green);
  font-weight: 700;
}

/* ---------- diff ---------- */

.diff-msg {
  max-width: 620px;
  margin: 0 auto 22px;
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
}

.diff-msg .leaf {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.diff {
  max-width: 780px;
  margin: 0 auto;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.diff-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.diff-tab {
  padding: 10px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 2px solid transparent;
}

.diff-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.diff-code {
  padding: 18px 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  overflow-x: auto;
}

.diff-code .dl {
  padding: 0 20px;
  white-space: pre;
}

.diff-code .dl.del {
  background: rgba(248, 113, 113, 0.09);
  color: #f0a2a2;
}

.diff-code .dl.add {
  background: rgba(52, 211, 153, 0.09);
  color: #9fe8c0;
}

.diff-code .dl.ctx {
  color: var(--muted);
}

.diff-tag {
  display: inline-block;
  width: 34px;
  text-align: right;
  margin-right: 14px;
  color: var(--muted-2);
}

.diff-footer {
  border-top: 1px solid var(--line);
  padding: 10px 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  background: rgba(0, 0, 0, 0.18);
}

/* ---------- control ---------- */

.control-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.control-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--panel);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.control-item:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.control-item .cn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.control-item .cd {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.control-note {
  margin-top: 28px;
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  padding: 8px 12px;
}

/* ---------- cta band ---------- */

.cta-band {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(255, 180, 84, 0.07), transparent 70%),
    var(--bg-2);
}

.cta-band .section-title {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .hero-ctas {
  justify-content: center;
}

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}

.foot-inner {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.foot-brand {
  max-width: 340px;
}

.foot-line {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 13px;
}

.foot-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foot-nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.16s;
}

.foot-nav a:hover {
  color: var(--accent);
}

.foot-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.foot-made {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

.foot-meta .leaf {
  width: 40px;
  height: 40px;
  color: var(--accent);
  opacity: 0.75;
}

/* ---------- download page ---------- */

.dl-hero {
  padding: 170px 0 80px;
  text-align: center;
}

.dl-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}

.plat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.22s var(--ease), border-color 0.22s;
}

.plat-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.plat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  color: var(--muted);
}

.plat-name {
  font-size: 17px;
  font-weight: 700;
}

.plat-status {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.plat-card .btn {
  margin-top: 18px;
  width: 100%;
}

.dl-note {
  margin-top: 60px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.dl-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- docs page ---------- */

.docs-hero {
  padding: 170px 0 60px;
  max-width: 720px;
}

.docs-list {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.docs-item {
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.docs-item .dn {
  font-size: 16px;
  font-weight: 700;
}

.docs-item .dd {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13.5px;
}

.docs-status {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 180, 84, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .demo-body {
    grid-template-columns: 1fr 300px;
  }

  .demo-tree {
    display: none;
  }

  .what-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .what-arrow {
    display: none;
  }

  .control-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(6, 6, 8, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  }

  .mobile-menu.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .mobile-menu .nav-link {
    padding: 11px 0;
    font-size: 15px;
  }

  .mobile-dl {
    margin-top: 12px;
  }

  .features-grid,
  .how-grid,
  .dl-platforms {
    grid-template-columns: 1fr;
  }

  .demo-body {
    grid-template-columns: 1fr;
  }

  .demo-editor {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 84px;
  }
}

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

  .foot-inner {
    flex-direction: column;
    gap: 26px;
  }

  .foot-meta {
    align-items: flex-start;
  }

  .dl-hero {
    padding-top: 140px;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- selection + scrollbar ---------- */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ================================================================
   vyne v3 ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â premium polish
   ================================================================ */

/* ---------- typography refinement ---------- */

.hero {
  position: relative;
}

.hero-title {
  font-size: clamp(50px, 8vw, 96px);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
}

.hero-sub {
  font-size: 19px;
}

/* ---------- vine dividers ---------- */

.v-div {
  width: 64px;
  margin-bottom: 10px;
}

.v-div svg {
  width: 64px;
  height: 20px;
  display: block;
}

.v-div path {
  stroke: var(--accent);
  stroke-width: 1.3;
  opacity: 0.55;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 1.4s var(--ease) 0.2s;
}

.v-div.in path {
  stroke-dashoffset: 0;
}

/* ---------- hero vine ---------- */

.vine-hero {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  width: 100%;
  height: 380px;
  pointer-events: none;
  z-index: 0;
}

.vine-hero path {
  stroke: var(--accent);
  stroke-width: 1.1;
  opacity: 0.14;
  stroke-dasharray: 30 40;
  animation: vine-drift 26s linear infinite;
}

@keyframes vine-drift {
  to {
    stroke-dashoffset: -700;
  }
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* ---------- demo v3 ---------- */

.demo {
  margin: 40px auto 0;
  max-width: 1100px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel-2);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  text-align: left;
}

.demo-body {
  display: grid;
  grid-template-columns: 185px 1fr 300px;
  min-height: 460px;
}

.demo-tabs {
  display: flex;
  gap: 2px;
  margin-left: auto;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
}

.demo-tab {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color 0.16s, background 0.16s, transform 0.12s var(--ease);
}

.demo-tab:hover {
  color: var(--text);
}

.demo-tab:active {
  transform: translateY(1px);
}

.demo-tab.active {
  color: #161006;
  background: var(--accent);
  font-weight: 700;
}

.demo-stage {
  border-right: 1px solid var(--line);
  min-width: 0;
  background:
    radial-gradient(500px 220px at 80% 0%, rgba(255, 180, 84, 0.035), transparent 65%),
    transparent;
}

.demo-pane {
  display: none;
}

.demo[data-active="agent"] .pane-code,
.demo[data-active="diff"] .pane-diff,
.demo[data-active="terminal"] .pane-term {
  display: block;
}

/* editor with line numbers */

.e-tabs {
  display: flex;
  gap: 2px;
  padding: 12px 14px 0;
  border-bottom: 1px solid var(--line);
}

.e-tab {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.02);
}

.e-tab.active {
  color: var(--text);
  background: rgba(255, 180, 84, 0.06);
  border-color: var(--line-2);
}

.e-lines {
  padding: 12px 0 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.95;
  overflow: hidden;
}

.e-line {
  display: flex;
  align-items: baseline;
  padding-right: 16px;
  white-space: pre;
  opacity: 0;
  animation: line-in 0.5s var(--ease) forwards;
}

.e-line:nth-child(1) { animation-delay: 0.1s; }
.e-line:nth-child(2) { animation-delay: 0.18s; }
.e-line:nth-child(3) { animation-delay: 0.28s; }
.e-line:nth-child(4) { animation-delay: 0.36s; }
.e-line:nth-child(5) { animation-delay: 0.46s; }
.e-line:nth-child(6) { animation-delay: 0.54s; }
.e-line:nth-child(7) { animation-delay: 0.64s; }
.e-line:nth-child(8) { animation-delay: 0.72s; }

.e-line .ln {
  width: 34px;
  flex-shrink: 0;
  text-align: right;
  margin-right: 16px;
  color: var(--muted-2);
  user-select: none;
  font-size: 11px;
  opacity: 0.8;
}

.demo.replay .e-line,
.demo.replay .d-line,
.demo.replay .t-line,
.demo.replay .bubble,
.demo.replay .chip {
  animation: none;
}

/* mini diff pane */

.d-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
}

.d-file {
  color: var(--text);
  font-weight: 700;
}

.d-lang {
  color: var(--muted-2);
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
}

.d-code {
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.95;
}

.d-line {
  padding: 0 16px;
  white-space: pre;
  overflow-x: auto;
  opacity: 0;
  animation: line-in 0.45s var(--ease) forwards;
}

.d-line:nth-child(1) { animation-delay: 0.15s; }
.d-line:nth-child(2) { animation-delay: 0.3s; }
.d-line:nth-child(3) { animation-delay: 0.45s; }

.d-line.del { background: rgba(248, 113, 113, 0.08); color: #f0a2a2; }
.d-line.add { background: rgba(52, 211, 153, 0.08); color: #a5e8c4; }
.d-line.ctx { color: var(--muted); }

.d-tag {
  display: inline-block;
  width: 26px;
  color: var(--muted-2);
}

.d-foot {
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  background: rgba(0, 0, 0, 0.18);
}

/* terminal pane */

.t-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  background: rgba(0, 0, 0, 0.2);
}

.t-lines {
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2.1;
}

.t-line {
  white-space: pre;
  opacity: 0;
  animation: line-in 0.4s var(--ease) forwards;
}

.t-line:nth-child(1) { animation-delay: 0.1s; }
.t-line:nth-child(2) { animation-delay: 0.35s; }
.t-line:nth-child(3) { animation-delay: 0.6s; }
.t-line:nth-child(4) { animation-delay: 0.85s; }

.t-line.dim { color: var(--muted-2); }
.t-line.ok { color: var(--green); }

.t-prompt {
  color: var(--accent);
  margin-right: 8px;
}

.t-caret {
  animation: blink 1.1s steps(1) infinite;
  color: var(--text);
}

/* status bar */

.demo-bottom {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.statusbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
  overflow-x: auto;
  white-space: nowrap;
}

.sb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sb-item.ok {
  color: var(--green);
}

.sb-item .pulse {
  width: 6px;
  height: 6px;
}

.sb-branch {
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 1px 6px;
}

.sb-spacer {
  flex: 1;
}

/* ---------- agent panel v3 ---------- */

.agent {
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(255, 180, 84, 0.05), transparent 70%),
    transparent;
}

.agent-chips .chip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 3px 0;
}

/* ---------- activity timeline v3 ---------- */

.activity {
  max-width: 780px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 24px 26px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2.05;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  position: relative;
}

.activity::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 46px;
  bottom: 46px;
  width: 1px;
  background: linear-gradient(var(--accent), rgba(255, 180, 84, 0.12));
  opacity: 0.4;
}

.a-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.a-badge {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid rgba(255, 180, 84, 0.35);
  border-radius: 4px;
  padding: 2px 7px;
  background: rgba(255, 180, 84, 0.07);
  animation: pulse 2.2s ease-in-out infinite;
}

.activity.in .a-phase {
  margin: 12px 0 2px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  animation: line-in 0.4s var(--ease) forwards;
}

.activity.in .a-phase:nth-child(2) { animation-delay: 0.4s; }
.activity.in .a-phase:nth-child(6) { animation-delay: 1.6s; }
.activity.in .a-phase:nth-child(8) { animation-delay: 2.9s; }
.activity.in .a-phase:nth-child(10) { animation-delay: 3.7s; }

.activity.in .a-line {
  position: relative;
  padding-left: 26px;
  opacity: 0;
  transform: translateY(4px);
  animation: line-in 0.4s var(--ease) forwards;
}

.activity.in .a-line::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
}

.activity.in .a-line:nth-child(3) { animation-delay: 0.7s; }
.activity.in .a-line:nth-child(4) { animation-delay: 0.95s; }
.activity.in .a-line:nth-child(5) { animation-delay: 1.2s; }
.activity.in .a-line:nth-child(7) { animation-delay: 2s; }
.activity.in .a-line:nth-child(9) { animation-delay: 3.2s; }
.activity.in .a-line:nth-child(11) { animation-delay: 4.1s; }
.activity.in .a-line:nth-child(12) { animation-delay: 4.35s; }

.activity.in .a-task {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 5px;
  padding: 6px 12px;
  background: rgba(52, 211, 153, 0.07);
  opacity: 0;
  animation: line-in 0.5s var(--ease) 4.6s forwards;
}

.activity.in .a-task .pulse {
  width: 7px;
  height: 7px;
  background: var(--green);
}

.activity.in .a-task .pulse {
  width: 7px;
  height: 7px;
  background: var(--green);
}

/* ---------- features v3 ---------- */

.card {
  padding: 22px;
}

.card-title {
  font-size: 13px;
}

.card-copy {
  font-size: 13.5px;
  margin-top: 7px;
}

.card-demo {
  margin-top: 16px;
}

.card-demo .d-line {
  white-space: pre-wrap;
}

.big-ok {
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
}

.big-zero {
  font-size: 26px;
  font-weight: 800;
  color: var(--muted-2);
}

.card-minidiff .d-line {
  padding: 0 8px;
  margin-left: -8px;
  border-radius: 3px;
}

.card-minidiff .d-line.del { background: rgba(248, 113, 113, 0.1); }
.card-minidiff .d-line.add { background: rgba(52, 211, 153, 0.1); }

.card-minidiff .d-tag {
  display: inline-block;
  width: 20px;
  color: var(--muted-2);
}

.permit-btns {
  display: flex;
  gap: 14px;
  margin-top: 2px;
}

/* ---------- diff v3 ---------- */

.diff {
  max-width: 800px;
}

.diff-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.f-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.diff-file {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.diff-lang {
  font-size: 9.5px;
  font-weight: 400;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
}

.diff-meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.diff-add {
  color: var(--green);
  margin-left: 8px;
}

.diff-del {
  color: #f0a2a2;
  margin-left: 6px;
}

.diff-cog {
  background: none;
  border: 0;
  color: var(--muted-2);
  font-size: 15px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.diff-cog:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.diff-ln {
  display: inline-block;
  width: 26px;
  text-align: right;
  margin-right: 14px;
  color: var(--muted-2);
  user-select: none;
  font-size: 11px;
}

.diff-fold {
  display: none;
}

.diff-fold.open {
  display: block;
}

.diff-toggle {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  padding: 8px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.diff-toggle:hover {
  color: var(--accent);
  background: rgba(255, 180, 84, 0.04);
}

.diff-toggle span {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.diff-toggle.open span {
  transform: rotate(180deg);
}

/* ---------- permission prompts ---------- */

.perm-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 820px;
}

.perm {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.22s var(--ease), border-color 0.22s;
}

.perm:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.perm-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.perm-cmd {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 14px;
  overflow-x: auto;
  white-space: nowrap;
}

.perm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ---------- local chain ---------- */

.local-chain {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.local-node {
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px 26px;
  min-width: 150px;
  transition: transform 0.22s var(--ease), border-color 0.22s;
}

.local-node:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.ln-head {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.ln-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.local-arrow {
  color: var(--muted-2);
  font-size: 17px;
}

.local-note {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- responsive v3 ---------- */

@media (max-width: 1000px) {
  .demo-body {
    grid-template-columns: 1fr 280px;
  }

  .demo-tree {
    display: none;
  }

  .local-chain {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .local-arrow {
    display: none;
  }
}

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

  .demo-stage {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .demo-tabs {
    margin-left: 6px;
  }

  .demo-bar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .demo-url {
    flex-basis: 100%;
  }

  .perm-grid {
    grid-template-columns: 1fr;
  }

  .activity::before {
    left: 22px;
  }

  .activity {
    padding: 20px 18px;
  }

  .a-line {
    padding-left: 22px;
  }
}

@media (max-width: 560px) {
  .local-chain {
    grid-template-columns: 1fr;
  }

  .diff-head {
    flex-wrap: wrap;
  }

  .diff-meta {
    margin-left: 0;
  }
}

/* ---------- reduced motion v3 ---------- */

@media (prefers-reduced-motion: reduce) {
  .demo-pane,
  .demo-pane .e-line,
  .demo-pane .d-line,
  .demo-pane .t-line,
  .card-demo .d-line,
  .bubble,
  .chip,
  .a-line,
  .a-phase,
  .a-task,
  .vine-hero path {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .vine-hero {
    display: none;
  }

  .statusbar .pulse,
  .agent-head .pulse,
  .agent-ta-da .pulse,
  .a-badge,
  .a-task .pulse {
    animation: none !important;
  }
}
/* nav logo image */
.wm-img {
  display: block;
  height: 30px;
  width: auto;
  max-width: 38vw;
  border-radius: 5px;
}

/* ============================================================
   v4 ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â interactive upgrade: vine rail, why toggle, before/after,
   watch vyne grow, community
   ============================================================ */

/* ---------- scroll vine rail ---------- */
.scroll-vine {
  position: fixed;
  left: 16px;
  top: 0;
  height: 100vh;
  width: 26px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.scroll-vine.on { opacity: 1; }

.sv-spine {
  stroke: rgba(255, 180, 84, 0.22);
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
}

.sv-core {
  stroke: rgba(255, 180, 84, 0.55);
  stroke-width: 1.4;
  stroke-linecap: round;
  fill: none;
}

.sv-stem2 {
  stroke: rgba(255, 180, 84, 0.38);
  stroke-width: 1.2;
  stroke-linecap: round;
  fill: none;
}

.sv-node {
  fill: var(--accent);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sv-node.on {
  opacity: 1;
  transform: scale(1);
}

.sv-tendril {
  stroke: rgba(255, 180, 84, 0.45);
  stroke-width: 1;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.7s ease;
}

.sv-tendril.on { stroke-dashoffset: 0; }

.sv-leaf-shape {
  fill: rgba(255, 180, 84, 0.45);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.45s ease;
}

.sv-leaf.on .sv-leaf-shape {
  transform: scale(1);
  opacity: 1;
}

.sv-leaf-vein {
  stroke: rgba(255, 180, 84, 0.9);
  stroke-width: 0.5;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
}

.sv-leaf.on .sv-leaf-vein { opacity: 1; }

.sv-bud { opacity: 0; transition: opacity 0.4s ease; }
.sv-bud.on { opacity: 1; }

.sv-bud-petal {
  fill: rgba(255, 180, 84, 0.55);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sv-bud.on .sv-bud-petal { transform: scale(1); }

.sv-bud-core {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
}

.sv-bud.on .sv-bud-core { transform: scale(1); }

/* ---------- why toggle ---------- */
.why-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 34px 0 26px;
}

.why-opt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.why-opt:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.22); }

.why-opt.active {
  color: var(--accent);
  background: rgba(255, 180, 84, 0.10);
  border-color: rgba(255, 180, 84, 0.45);
}

.why-stage {
  position: relative;
  min-height: 320px;
  max-width: 720px;
  margin: 0 auto 42px;
}

.why-pane {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(9, 11, 16, 0.72);
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.why-stage[data-state="auto"] .pane-vyne,
.why-stage[data-state="vyne"] .pane-auto {
  opacity: 0;
  transform: translateX(-14px);
  pointer-events: none;
}

.wp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.wp-file {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: var(--text);
}

.wp-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
}

.wp-tag.dim { color: var(--muted); background: rgba(255, 255, 255, 0.05); }
.wp-tag.ok { color: var(--ok); background: rgba(122, 214, 155, 0.10); }

.wp-code {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  justify-content: center;
}

.wp-line {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
  overflow: hidden;
}

.wp-line .ln {
  color: var(--muted);
  opacity: 0.5;
  width: 14px;
  flex: none;
}

.wp-line .ghost { color: rgba(200, 210, 225, 0.38); }
.wp-line .dim-ghost { opacity: 0.5; }

.wp-line .caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -0.15em;
  animation: caret-blink 1.05s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

.wp-flow {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.wp-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 7px 14px;
  width: fit-content;
}

.wp-chip .ok { color: var(--ok); margin-right: 6px; }
.wp-chip .do { color: var(--accent); margin-right: 6px; }

.wp-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- before / after ---------- */


/* ---------- watch vyne grow ---------- */
.grow {
  max-width: 760px;
  margin: 0 auto;
}

.grow-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.grow-vine {
  fill: none;
  stroke: rgba(255, 180, 84, 0.55);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.grow-node {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.grow-node.on { opacity: 1; }

.grow-node-label {
  fill: rgba(200, 210, 225, 0.55);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.grow-letter text {
  fill: url(#vyne-wm-grad);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 68px;
}

.grow-letter {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.grow-letter.on { opacity: 1; }

.grow-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.grow-controls input[type="range"] {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.grow-controls input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #0a0c11;
  box-shadow: 0 0 0 2px rgba(255, 180, 84, 0.45);
  cursor: pointer;
}

.grow-controls input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #0a0c11;
  box-shadow: 0 0 0 2px rgba(255, 180, 84, 0.45);
  cursor: pointer;
}

.grow-controls .btn { flex: none; }

/* ---------- community ---------- */
.community-card {
  text-align: center;
  border: 1px solid rgba(255, 180, 84, 0.22);
  border-radius: 18px;
  padding: 46px 24px 40px;
  background:
    radial-gradient(620px 260px at 50% -60px, rgba(255, 180, 84, 0.10), transparent 70%),
    rgba(255, 255, 255, 0.02);
  max-width: 720px;
  margin: 0 auto;
}

.community-card .section-title { margin-bottom: 12px; }

.community-card .section-sub {
  max-width: 480px;
  margin: 0 auto 26px;
}

.com-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7289da;
}

.com-icon svg { width: 28px; height: 28px; }

.btn-arrow { margin-left: 6px; font-size: 0.9em; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .scroll-vine { display: none; }
}

@media (max-width: 700px) {
  .why-toggle { flex-wrap: wrap; }
  .why-stage { min-height: 340px; }
  .wp-line { font-size: 0.76rem; }
  .grow-controls { flex-direction: column; gap: 12px; }
  .grow-controls .btn { width: 100%; }
  .community-card { padding: 34px 16px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-vine { display: none; }
  .caret { animation: none; }
}