/* ==========================================================================
   LightCode — Thiết kế tối giản, hiện đại, trừu tượng tông Đen Trắng
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-subtle: #f7f7f8;
  --surface: #f4f4f5;
  --surface-hover: #ececef;
  --ink: #09090b;
  --ink-secondary: #52525b;
  --ink-muted: #71717a;
  --line: rgba(9, 9, 11, 0.1);
  --line-strong: rgba(9, 9, 11, 0.24);
  --invert-bg: #09090b;
  --invert-ink: #ffffff;
  --glass: rgba(255, 255, 255, 0.85);
  --grid-dot: rgba(9, 9, 11, 0.08);
  --radius-sm: 14px;
  --radius-md: 26px;
  --radius-lg: 34px;
  --radius-btn: 21px;
  --radius-tag: 17px;
  --font-sans: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max-w: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #08080a;
  --bg-subtle: #0e0e11;
  --surface: #121216;
  --surface-hover: #18181d;
  --ink: #fafafa;
  --ink-secondary: #a1a1aa;
  --ink-muted: #71717a;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.26);
  --invert-bg: #fafafa;
  --invert-ink: #08080a;
  --glass: rgba(8, 8, 10, 0.78);
  --grid-dot: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

::selection {
  background: var(--invert-bg);
  color: var(--invert-ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--invert-bg);
  color: var(--invert-ink);
  border-radius: var(--radius-sm);
  corner-shape: squircle;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(var(--max-w), calc(100% - 40px));
  margin-inline: auto;
}

/* Lưới chấm nền mảnh mang phong cách bản vẽ trừu tượng */
.bg-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 40%, transparent 100%);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.28s var(--ease), border-color 0.28s var(--ease), backdrop-filter 0.28s var(--ease);
}

.site-header.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-code {
  color: var(--ink-muted);
  font-weight: 400;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  padding-block: 6px;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  transition: color 0.24s var(--ease), transform 0.24s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
  opacity: 0;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-links a.is-active {
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 16px;
  corner-shape: squircle;
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.icon-sun {
  display: none;
}

[data-theme="light"] .icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: block;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 16px;
  corner-shape: squircle;
  border: 1px solid var(--line);
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.menu-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.menu-toggle line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.28s var(--ease);
}

.menu-toggle[aria-expanded="true"] line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  corner-shape: squircle;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--invert-bg);
  color: var(--invert-ink);
  border: 1px solid var(--invert-bg);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  border-radius: 16px;
  corner-shape: squircle;
  font-size: 0.86rem;
}

/* ==========================================================================
   Hero — Trừu tượng & Tối giản
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 108px 0 48px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background-color: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/hero-bg.jpg?v=7");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.86;
  filter: contrast(1.06);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 44% 32% at 50% 46%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.25) 58%, transparent 100%),
    linear-gradient(180deg, transparent 85%, rgba(255, 255, 255, 0.68) 95%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero::before {
  filter: invert(1) contrast(1.08);
  opacity: 0.28;
}

[data-theme="dark"] .hero::after {
  background:
    radial-gradient(ellipse 44% 32% at 50% 46%, rgba(8, 8, 10, 0.78) 0%, rgba(8, 8, 10, 0.25) 58%, transparent 100%),
    linear-gradient(180deg, transparent 85%, rgba(8, 8, 10, 0.68) 95%, var(--bg) 100%);
}

.hero > .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

.hero-center {
  max-width: 880px;
  margin-inline: auto;
  margin-block: auto;
  padding: 28px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-center .hero-note {
  text-wrap: balance;
}

.hero-center .hero-lead {
  margin-inline: auto;
  max-width: 58ch;
}

.hero-center .hero-actions {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  border-radius: var(--radius-tag);
  corner-shape: squircle;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 26px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse-dot 2.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.hero h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(2.65rem, 5.4vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 .muted-line {
  display: block;
  color: var(--ink-secondary);
  font-weight: 500;
}

.hero-lead {
  margin: 26px 0 36px;
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ink-secondary);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Khung nghệ thuật trừu tượng tương tác */
.abstract-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

[data-theme="dark"] .abstract-stage {
  background: rgba(14, 14, 17, 0.72);
}

.abstract-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-crosshair {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.stage-crosshair.tl { top: 14px; left: 16px; }
.stage-crosshair.tr { top: 14px; right: 16px; }
.stage-crosshair.bl { bottom: 14px; left: 16px; }
.stage-crosshair.br { bottom: 14px; right: 16px; }

.stage-caption {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  pointer-events: none;
}

/* Dải tên các nền tảng hỗ trợ */
.providers-strip {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.providers-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.providers-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.providers-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: -0.01em;
}

.provider-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ==========================================================================
   Sections chung
   ========================================================================== */

.section {
  padding: 104px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 60px;
}

.section-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.section h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-desc {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1.03rem;
  max-width: 56ch;
}

/* ==========================================================================
   Khối Định nghĩa chuẩn AEO ("LightCode là gì?")
   ========================================================================== */

.aeo-definition {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: start;
}

.definition-copy p {
  margin: 0 0 18px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.definition-copy p strong {
  color: var(--ink);
  font-weight: 600;
}

.metrics-rail {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  corner-shape: squircle;
  overflow: hidden;
  background: var(--bg-subtle);
}

.metric-row {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-value {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.metric-label {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  text-align: right;
}

/* ==========================================================================
   Lưới 6 Tính năng — Đường kẻ kiến trúc tối giản
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  overflow: hidden;
}

.features-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  padding: 36px 30px;
  background: var(--bg);
  transition: background-color 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-card:hover {
  background: var(--bg-subtle);
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.feature-icon {
  width: 34px;
  height: 34px;
  color: var(--ink);
}

.feature-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Cách hoạt động + Sơ đồ trừu tượng
   ========================================================================== */

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  padding-top: 3px;
}

.step-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.diagram-frame {
  position: relative;
  margin: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  background: var(--bg-subtle);
}

.diagram-svg {
  width: 100%;
  height: auto;
  color: var(--ink);
}

[data-theme="dark"] .aivin-logo-img {
  filter: invert(1);
}

.flow-dash {
  stroke-dasharray: 6 6;
  animation: flow-move 18s linear infinite;
}

@keyframes flow-move {
  to {
    stroke-dashoffset: -180;
  }
}

/* ==========================================================================
   Chi phí minh bạch — Một gói duy nhất
   ========================================================================== */

.pricing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  overflow: hidden;
  background: var(--bg-subtle);
}

.pricing-left {
  padding: 48px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 14px;
  corner-shape: squircle;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

.price-badge-icon {
  width: 15px;
  height: 15px;
  color: var(--ink);
  flex-shrink: 0;
}

.price-tag {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 14px;
}

.price-amount {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.price-unit {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-right {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.98rem;
  color: var(--ink-secondary);
}

.check-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ink);
}

/* ==========================================================================
   Hỏi đáp — Chuẩn AEO & HTML5 ngữ nghĩa
   ========================================================================== */

.faq-list {
  border-top: 1px solid var(--line);
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 12px;
  corner-shape: squircle;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0;
  color: var(--ink-secondary);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 1.4px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.faq-plus::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-plus {
  border-color: var(--ink);
  color: var(--ink);
}

.faq-item[open] .faq-plus::before {
  transform: rotate(45deg);
}

.faq-item[open] .faq-plus::after {
  transform: rotate(-45deg);
}

.faq-answer {
  padding: 0 0 26px;
  color: var(--ink-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   CTA cuối trang & Footer
   ========================================================================== */

.final-cta {
  padding: 112px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.final-cta h2 {
  margin: 0 auto 18px;
  max-width: 18ch;
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.final-cta p {
  margin: 0 auto 34px;
  max-width: 48ch;
  color: var(--ink-secondary);
  font-size: 1.04rem;
}

.final-cta .hero-actions {
  justify-content: center;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background-color: var(--bg);
  color: var(--ink);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/footer-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.94;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .site-footer::before {
  filter: invert(1) contrast(1.08);
  opacity: 0.24;
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-stack {
  align-items: center;
  gap: 11px;
}

.brand-stack .brand-mark {
  width: 36px;
  height: 36px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font-size: 1.1rem;
  line-height: 1.1;
}

.footer-tagline {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--ink-muted);
}

.footer-contact {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.footer-contact li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer-contact svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.72;
}

.footer-contact a {
  color: var(--ink-secondary);
  transition: color 0.2s var(--ease);
}

.footer-contact a:hover {
  color: var(--ink);
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 148px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--ink);
}

/* ==========================================================================
   Trang tài liệu & pháp lý (/docs, /terms, /privacy)
   ========================================================================== */

.doc-hero {
  padding: 136px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.doc-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.doc-hero p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-secondary);
  font-size: 1.04rem;
}

.doc-body {
  padding: 64px 0 96px;
  border-bottom: 1px solid var(--line);
}

.doc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.doc-toc-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.doc-toc a {
  font-size: 0.87rem;
  color: var(--ink-secondary);
  line-height: 1.45;
  transition: color 0.2s var(--ease);
}

.doc-toc a:hover {
  color: var(--ink);
}

.doc-article {
  max-width: 780px;
  display: grid;
  gap: 44px;
}

.doc-section {
  scroll-margin-top: 96px;
}

.doc-section h2 {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.doc-section h3 {
  margin: 22px 0 8px;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.doc-section p,
.doc-section li {
  color: var(--ink-secondary);
  line-height: 1.75;
  font-size: 0.98rem;
}

.doc-section p {
  margin: 0 0 12px;
}

.doc-section ul,
.doc-section ol {
  margin: 0 0 14px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.doc-section strong {
  color: var(--ink);
  font-weight: 600;
}

.doc-section a:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-section h4 {
  margin: 18px 0 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
}

.doc-callout {
  margin: 18px 0;
  padding: 20px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  corner-shape: squircle;
  background: var(--bg-subtle);
}

.doc-callout p:last-child {
  margin-bottom: 0;
}

.doc-code {
  position: relative;
  margin: 12px 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  corner-shape: squircle;
  background: var(--bg-subtle);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre;
}

.doc-code code {
  font: inherit;
}

.install-os-note {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted, inherit);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.93rem;
}

.doc-table th,
.doc-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc-table th {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.doc-table td {
  color: var(--ink-secondary);
}

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

.release-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.release-aside {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.release-version {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.release-version h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.release-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 10px;
  corner-shape: squircle;
  background: var(--invert-bg);
  color: var(--invert-ink);
  font-weight: 500;
}

.release-tag--muted {
  background: transparent;
  color: var(--ink-secondary);
  border: 1px solid var(--line-strong);
}

.release-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.release-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.release-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.release-summary {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.release-notes {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.release-notes li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.note-kind {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 500;
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

@media (max-width: 820px) {
  .release-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 0;
  }

  .release-aside {
    position: static;
  }

  .release-notes li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 920px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .doc-toc {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 24px;
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Roles comparison grid (/aivin)
   ========================================================================== */

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  overflow: hidden;
  background: var(--bg-subtle);
}

.role-panel {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.role-panel:first-child {
  border-right: 1px solid var(--line);
}

.role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.role-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 15px;
  corner-shape: squircle;
  border: 1px solid var(--line-strong);
  color: var(--ink-secondary);
}

.role-panel h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.role-summary {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.role-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.role-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.role-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
  margin-top: 9px;
}

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

  .role-panel:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .role-panel {
    padding: 32px 24px;
  }
}

/* ==========================================================================
   Hiệu ứng xuất hiện nhẹ khi cuộn trang
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid,
  .section-head,
  .aeo-definition,
  .workflow-layout,
  .pricing-card {
    grid-template-columns: 1fr;
  }

  .workflow-layout {
    gap: 32px;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-left {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .abstract-stage {
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 18px 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    padding: 8px 4px;
    opacity: 0;
    transform: translateX(-8px);
    transition: color 0.22s var(--ease), opacity 0.28s var(--ease), transform 0.28s var(--ease);
  }

  .nav-links.is-open a {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.is-open a:nth-child(1) { transition-delay: 0.04s; }
  .nav-links.is-open a:nth-child(2) { transition-delay: 0.08s; }
  .nav-links.is-open a:nth-child(3) { transition-delay: 0.12s; }
  .nav-links.is-open a:nth-child(4) { transition-delay: 0.16s; }
  .nav-links.is-open a:nth-child(5) { transition-delay: 0.20s; }

  .nav-links a::after {
    left: 4px;
    right: auto;
    width: 24px;
    transform-origin: left;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 124px 0 60px;
  }

  .section {
    padding: 72px 0;
  }

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

  .diagram-frame {
    padding: 20px;
  }

  .pricing-left,
  .pricing-right {
    padding: 32px 24px;
  }
}

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

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

  .eyebrow-dot,
  .flow-dash {
    animation: none;
  }
}

/* Release info under the final download button */
.final-cta .download-meta {
  margin: 24px auto 0;
  max-width: 60ch;
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.download-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Product showcase
   ========================================================================== */

.showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 56px;
  align-items: center;
}

.showcase-copy h2 {
  margin-bottom: 20px;
}

.showcase-points {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.showcase-points li {
  padding-left: 18px;
  border-left: 2px solid var(--line);
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.showcase-points strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}

.showcase-stage {
  position: relative;
  padding: 0 0 72px 0;
}

/* Laptop mockup (behind) */
.laptop {
  width: 94%;
  margin-left: auto;
  margin-right: 0;
}

.laptop-screen {
  background: #0b0b0e;
  border: 1px solid #2a2a30;
  border-radius: 16px 16px 4px 4px;
  padding: 10px 10px 12px;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.22);
}

.laptop-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.laptop-base {
  position: relative;
  height: 14px;
  margin: 0 -4%;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(#d5d5da, #a9a9b0);
  box-shadow: 0 16px 26px -18px rgba(0, 0, 0, 0.25);
}

.laptop-base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 16%;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: rgba(0, 0, 0, 0.22);
}

/* Phone mockup (in front) */
.phone {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 21%;
  max-width: 260px;
  z-index: 2;
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.14)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@media (max-width: 980px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   Teamwork section
   ========================================================================== */

.teamwork {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.teamwork-copy h2 {
  margin-bottom: 20px;
}

.team-diagram {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.team-diagram .td-link {
  stroke: var(--ink-muted);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  opacity: 0.7;
}

.team-diagram .td-lock circle {
  fill: var(--ink);
}

.team-diagram .td-lock rect {
  fill: var(--bg, #fff);
}

.team-diagram .td-lock path {
  fill: none;
  stroke: var(--bg, #fff);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.team-diagram .td-host rect:first-child {
  fill: var(--ink);
}

.team-diagram .td-host .td-screen {
  fill: rgba(128, 128, 140, 0.22);
}

.team-diagram .td-code {
  fill: var(--bg, #fff);
  font-family: var(--font-mono);
  font-size: 22px;
  text-anchor: middle;
}

.team-diagram .td-title {
  fill: var(--bg, #fff);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  text-anchor: middle;
}

.team-diagram .td-sub {
  fill: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 15px;
  text-anchor: middle;
}

.team-diagram .td-node rect {
  fill: var(--bg, #fff);
  stroke: var(--line);
  stroke-width: 1.2;
}

.team-diagram .td-avatar,
.team-diagram .td-body {
  fill: var(--ink-muted);
}

.team-diagram .td-role {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}

.team-diagram .td-note {
  fill: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
}

.team-diagram .td-boundary {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
}

.team-diagram .td-cap {
  fill: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.team-diagram .td-hsub {
  fill: var(--bg, #fff);
  opacity: 0.7;
  font-family: var(--font-sans);
  font-size: 12.5px;
  text-anchor: middle;
}

.team-diagram .td-chip rect {
  fill: var(--bg, #fff);
  stroke: var(--ink-muted);
  stroke-width: 1.4;
}

.team-diagram .td-chip.td-gate rect {
  fill: var(--ink);
  stroke: var(--ink);
}

.team-diagram .td-chiptxt {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-anchor: middle;
}

.team-diagram .td-gate .td-chiptxt {
  fill: var(--bg, #fff);
}

.team-diagram .td-flow {
  stroke: var(--ink);
  stroke-width: 1.8;
}

.team-diagram .td-arrowhead {
  fill: var(--ink);
}

.team-diagram .td-line {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
}

.team-diagram .td-dim {
  fill: var(--ink-secondary);
  font-size: 13px;
}

.team-diagram .td-lbl {
  fill: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  text-anchor: end;
}

.team-diagram .td-prod rect {
  fill: var(--bg, #fff);
  stroke: var(--ink);
  stroke-width: 1.6;
}

.team-diagram .td-prodtxt {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  text-anchor: middle;
}

.team-diagram .td-left {
  text-anchor: start;
}

@media (max-width: 980px) {
  .teamwork {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.vibe-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vibe-points li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: normal;
}

/* Agent coordination */
.cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cmp-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.cmp-card--new { background: var(--bg, #fff); border-color: var(--ink); }
.cmp-tag { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-secondary); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.cmp-tag--new { background: var(--ink); border-color: var(--ink); color: var(--bg, #fff); }
.cmp-card h3 { margin: 14px 0 12px; }
.cmp-svg { display: block; width: 100%; height: auto; margin-bottom: 18px; }
.cmp-line { fill: none; stroke: var(--ink-muted); stroke-width: 1.6; }
.cmp-band { fill: rgba(128, 128, 140, 0.14); stroke: var(--ink-muted); stroke-dasharray: 4 4; }
.cmp-dot { fill: var(--ink); }
.cmp-tiny, .cmp-lane { fill: var(--ink-secondary); font-family: var(--font-sans); font-size: 9.5px; text-anchor: middle; }
.cmp-lane { text-anchor: start; }
.cmp-x { fill: var(--ink); }
.cmp-xmark { stroke: var(--bg, #fff); stroke-width: 2.4; stroke-linecap: round; }
.cmp-core { fill: var(--ink); }
.cmp-coretxt { fill: var(--bg, #fff); font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; text-anchor: middle; }
.cmp-coresub { fill: var(--bg, #fff); opacity: 0.7; font-family: var(--font-sans); font-size: 9.5px; text-anchor: middle; }
.cmp-node rect { fill: var(--bg, #fff); stroke: var(--ink-muted); stroke-width: 1.4; }
.cmp-node text { fill: var(--ink); font-family: var(--font-sans); font-size: 11px; font-weight: 600; text-anchor: middle; }
.cmp-human rect { stroke: var(--ink); stroke-width: 1.8; }
.cmp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cmp-list li { position: relative; padding-left: 22px; color: var(--ink-secondary); line-height: 1.5; }
.cmp-list li::before { content: "\2715"; position: absolute; left: 0; color: var(--ink-muted); font-size: 13px; }
.cmp-card--new .cmp-list li { color: var(--ink); }
.cmp-card--new .cmp-list li::before { content: "\2713"; color: var(--ink); }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.roles-item { padding: 24px 28px; background: var(--bg, #fff); }
.roles-num { color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; }
.roles-item h3 { margin: 10px 0 8px; }
.roles-item p { margin: 0; color: var(--ink-secondary); line-height: 1.55; }
@media (max-width: 980px) { .cmp, .roles { grid-template-columns: 1fr; } }

.cmp-conf circle { fill: var(--ink); }
.cmp-conf path { stroke: var(--bg, #fff); stroke-width: 1.8; stroke-linecap: round; }
.cmp-clash { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 3; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.benefit { padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.benefit-value { display: block; font-family: var(--font-display, var(--font-sans)); font-size: 36px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.benefit h3 { margin: 12px 0 8px; }
.benefit p { margin: 0; color: var(--ink-secondary); line-height: 1.55; }
.benefits .benefit-note { grid-column: 1 / -1; margin: 0; color: var(--ink-muted); font-size: 13px; }
@media (max-width: 980px) { .benefits { grid-template-columns: 1fr; } }

.benefit-note { margin: 14px 0 0; color: var(--ink-muted); font-size: 13px; }

.cmp-node .cmp-sub { fill: var(--ink-secondary); font-family: var(--font-sans); font-size: 8.5px; font-weight: 400; text-anchor: middle; }
.cmp-tok circle { fill: var(--ink); }
.cmp-tok text { fill: var(--bg, #fff); font-family: var(--font-sans); font-size: 9px; font-weight: 700; text-anchor: middle; }

.cmp-chip rect { fill: rgba(255, 255, 255, 0.14); stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.cmp-chip text { fill: var(--bg, #fff); font-family: var(--font-sans); font-size: 10px; font-weight: 600; text-anchor: middle; }

.team-diagram .td-block rect { fill: var(--bg, #fff); stroke: var(--ink); stroke-width: 1.2; }
.team-diagram .td-block text { fill: var(--ink); font-family: var(--font-sans); font-size: 13px; font-weight: 600; text-anchor: middle; }
.team-diagram .td-lock-inv circle { fill: var(--bg, #fff); }
.team-diagram .td-lock-inv rect { fill: var(--ink); }
.team-diagram .td-lock-inv path { stroke: var(--ink); }

.team-diagram .td-node-s rect { stroke-width: 1; }
.team-diagram .td-role-s { fill: var(--ink); font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; }
.team-diagram .td-note-s { fill: var(--ink-secondary); font-family: var(--font-sans); font-size: 10.5px; }
.team-diagram .td-block text { font-size: 11.5px; }
.team-diagram .td-block rect { stroke-width: 1; }

.team-diagram .td-chip rect { stroke-width: 1; }
.team-diagram .td-chiptxt { font-size: 12.5px; }
.team-diagram .td-flow { stroke-width: 1.3; }
.team-diagram .td-prod rect { stroke-width: 1.2; }
.team-diagram .td-prodtxt { font-size: 13.5px; }
.team-diagram .td-lbl { font-size: 11.5px; }

.team-diagram .td-ico { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.team-diagram .td-spark { fill: var(--ink); }
.team-diagram .td-ai rect { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 3; }
.team-diagram .td-line { font-size: 13.5px; }

/* Account control */
.teamwork--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.acct { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: 20px; }
.acct-head { display: flex; justify-content: space-between; padding: 0 6px 10px; color: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.acct-row { display: grid; grid-template-columns: 26px minmax(0, 1.1fr) minmax(0, 1fr) 52px 92px; align-items: center; gap: 14px; padding: 13px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg, #fff); }
.acct-row.is-active { border-color: var(--ink); }
.acct-name { display: grid; gap: 2px; min-width: 0; }
.acct-name strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.acct-name span { font-size: 12px; color: var(--ink-secondary); }
.acct-bar { height: 5px; border-radius: 999px; background: rgba(128, 128, 140, 0.2); overflow: hidden; }
.acct-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.acct-bar--none { background: repeating-linear-gradient(90deg, rgba(128,128,140,0.35) 0 4px, transparent 4px 8px); }
.acct-pct { font-family: var(--font-mono); font-size: 11px; color: var(--ink-secondary); text-align: right; white-space: nowrap; }
.acct-tag { text-align: center; padding: 3px 6px; border: 1px solid var(--line); border-radius: 9px; font-size: 11.5px; color: var(--ink-secondary); white-space: nowrap; }
.acct-tag--active { background: var(--ink); border-color: var(--ink); color: var(--bg, #fff); }
.acct-tag--near { border-style: dashed; color: var(--ink); }
.acct-foot { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.acct-note { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--ink-secondary); }
.acct-note--ok { color: var(--ink); }
.acct-note span { font-size: 12px; }
@media (max-width: 980px) {
  .teamwork--rev { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .acct-row { grid-template-columns: minmax(0, 1fr) auto; }
  .acct-bar, .acct-pct { display: none; }
}

.acct-logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.acct-ico { width: 14px; height: 14px; }
.acct-row { padding: 10px 12px; margin-bottom: 6px; }
.acct-head--sub { padding-top: 14px; }
.sess { display: grid; gap: 6px; }
.sess-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg, #fff); }
.sess-acct { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-secondary); }
.sess-acct .acct-ico { color: var(--ink); }
.sess-title { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sess-bar { height: 4px; border-radius: 999px; background: rgba(128, 128, 140, 0.2); overflow: hidden; }
.sess-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
@media (max-width: 560px) {
  .acct-row { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .sess-row { grid-template-columns: 48px minmax(0, 1fr); }
  .sess-bar { display: none; }
}

/* Account control visual */
.vz-svg { display: block; width: 100%; height: auto; }
.vz-panel { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.vz-panel--lc { fill: var(--bg, #fff); stroke: var(--ink); stroke-width: 1.2; }
.vz-cap { fill: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; }
.vz-tag rect { fill: var(--ink); }
.vz-tag text { fill: var(--bg, #fff); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-anchor: middle; }
.vz-chip rect { fill: var(--bg, #fff); stroke: var(--ink-muted); stroke-width: 1; }
.vz-chip text { fill: var(--ink); font-family: var(--font-sans); font-size: 12px; font-weight: 600; text-anchor: middle; }
.vz-chip .vz-mono { fill: var(--ink-muted); font-family: var(--font-mono); font-size: 10px; font-weight: 400; text-anchor: start; }
.vz-chip .vz-ttl { text-anchor: start; font-size: 11.5px; font-weight: 500; }
.vz-wait rect { fill: none; stroke: var(--ink-muted); stroke-dasharray: 3 3; }
.vz-wait text { fill: var(--ink-secondary); font-family: var(--font-sans); font-size: 10.5px; text-anchor: middle; }
.vz-line { stroke: var(--ink-muted); stroke-width: 1.3; fill: none; }
.vz-line--skip { stroke-dasharray: 3 4; opacity: 0.6; }
.vz-head { fill: var(--ink-muted); }
.vz-card rect:first-child { fill: var(--bg, #fff); stroke: var(--ink-muted); stroke-width: 1; }
.vz-panel:not(.vz-panel--lc) ~ .vz-card rect:first-child { fill: var(--bg, #fff); }
.vz-card--near rect:first-child { stroke-dasharray: 4 3; }
.vz-name { fill: var(--ink); font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; }
.vz-sub { fill: var(--ink-secondary); font-family: var(--font-sans); font-size: 10px; }
.vz-ico { fill: var(--ink); color: var(--ink); }
.vz-track { fill: rgba(128, 128, 140, 0.22); }
.vz-track--dash { fill: none; stroke: rgba(128, 128, 140, 0.5); stroke-dasharray: 3 3; }
.vz-fill, .vz-full { fill: var(--ink); }
.vz-pct { fill: var(--ink-secondary); font-family: var(--font-mono); font-size: 10px; }
.vz-end { text-anchor: end; }
.vz-stop circle { fill: var(--ink); }
.vz-stop path { stroke: var(--bg, #fff); stroke-width: 2; stroke-linecap: round; }
.vz-note { fill: var(--ink-secondary); font-family: var(--font-sans); font-size: 11.5px; }
.vz-ring { fill: none; stroke: var(--ink-muted); stroke-width: 1; stroke-dasharray: 2 5; }
.vz-core { fill: var(--ink); }
.vz-rt { fill: var(--bg, #fff); font-family: var(--font-sans); font-size: 14px; font-weight: 600; text-anchor: middle; }
.vz-rs { fill: var(--bg, #fff); opacity: 0.7; font-family: var(--font-sans); font-size: 10px; text-anchor: middle; }

.vz-mid { text-anchor: middle; }
.vz-left { text-anchor: start; fill: var(--ink); font-family: var(--font-sans); font-size: 12px; font-weight: 600; }
.vz-av { fill: var(--ink-muted); }
.vz-glyph { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vz-glyph .vz-glyph-fill, .vz-glyph-fill { fill: #fff; stroke: none; }
.vz-link { stroke: var(--ink-muted); stroke-width: 1; stroke-dasharray: 2 4; }
.vz-tool { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vz-key { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.vz-legend text { fill: var(--ink-secondary); font-family: var(--font-sans); font-size: 10.5px; }
.vz-owner rect { stroke: var(--ink); }
.vz-rt { font-size: 12px; }
.vz-chip .vz-left { text-anchor: start; font-size: 12px; font-weight: 600; }
.vz-card rect:first-child { fill: var(--bg, #fff); }

.vz-name.vz-s { font-size: 11.5px; }
.vz-grid { fill: var(--bg, #fff); stroke: var(--ink-muted); stroke-width: 1; stroke-dasharray: 3 4; }
.vz-tile rect { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.vz-tt { fill: var(--ink); font-family: var(--font-sans); font-size: 11px; font-weight: 600; }
.vz-dot { fill: var(--ink); }
.vz-name.vz-end, .vz-sub.vz-end { text-anchor: end; }
.vz-panel { fill: var(--bg, #fff); }

.vz-tile .vz-tool { stroke-width: 2.1; }
.vz-tile .vz-tool rect { fill: none; stroke: var(--ink); stroke-width: 2.1; }

.vz-tt { font-size: 13px; }
.vz-note.vz-lg { font-size: 13.5px; }
.vz-lgnd text { font-size: 13px; fill: var(--ink-secondary); }

.vz-name.vz-hub { font-size: 15.5px; }
.vz-sub.vz-hub { font-size: 12.5px; }

/* Squircle fallback: browsers without corner-shape (Chromium < 139, Safari, Firefox) get a superellipse via 9-slice mask. */
@supports not (corner-shape: squircle) {
  .btn, .theme-toggle, .menu-toggle { position: relative; isolation: isolate; border-radius: 0; border-color: transparent !important; background: transparent !important; }
  .btn::before, .btn::after, .theme-toggle::before, .theme-toggle::after, .menu-toggle::before, .menu-toggle::after { content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none; }
  .btn::before, .theme-toggle::before, .menu-toggle::before { background: var(--sq-fill, transparent); transition: background-color 0.22s var(--ease); }
  .btn::after, .theme-toggle::after, .menu-toggle::after { background: var(--sq-line, var(--line)); transition: background-color 0.22s var(--ease); }
  .btn:not(.btn-sm)::before, .install-cmd::before { -webkit-mask-box-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M0 21L0.02 16.38L0.1 14.22L0.23 12.53L0.4 11.09L0.63 9.82L0.9 8.68L1.23 7.65L1.61 6.71L2.05 5.85L2.53 5.06L3.08 4.34L3.68 3.68L4.34 3.08L5.06 2.53L5.85 2.05L6.71 1.61L7.65 1.23L8.68 0.9L9.82 0.63L11.09 0.4L12.53 0.23L14.22 0.1L16.38 0.02L21 0L23 0L27.62 0.02L29.78 0.1L31.47 0.23L32.91 0.4L34.18 0.63L35.32 0.9L36.35 1.23L37.29 1.61L38.15 2.05L38.94 2.53L39.66 3.08L40.32 3.68L40.92 4.34L41.47 5.06L41.95 5.85L42.39 6.71L42.77 7.65L43.1 8.68L43.37 9.82L43.6 11.09L43.77 12.53L43.9 14.22L43.98 16.38L44 21L44 23L43.98 27.62L43.9 29.78L43.77 31.47L43.6 32.91L43.37 34.18L43.1 35.32L42.77 36.35L42.39 37.29L41.95 38.15L41.47 38.94L40.92 39.66L40.32 40.32L39.66 40.92L38.94 41.47L38.15 41.95L37.29 42.39L36.35 42.77L35.32 43.1L34.18 43.37L32.91 43.6L31.47 43.77L29.78 43.9L27.62 43.98L23 44L21 44L16.38 43.98L14.22 43.9L12.53 43.77L11.09 43.6L9.82 43.37L8.68 43.1L7.65 42.77L6.71 42.39L5.85 41.95L5.06 41.47L4.34 40.92L3.68 40.32L3.08 39.66L2.53 38.94L2.05 38.15L1.61 37.29L1.23 36.35L0.9 35.32L0.63 34.18L0.4 32.91L0.23 31.47L0.1 29.78L0.02 27.62L0 23Z'/%3E%3C/svg%3E") 21 fill / 21px stretch; }
  .btn:not(.btn-sm)::after, .install-cmd::after { -webkit-mask-box-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath fill-rule='evenodd' d='M0 21L0.02 16.38L0.1 14.22L0.23 12.53L0.4 11.09L0.63 9.82L0.9 8.68L1.23 7.65L1.61 6.71L2.05 5.85L2.53 5.06L3.08 4.34L3.68 3.68L4.34 3.08L5.06 2.53L5.85 2.05L6.71 1.61L7.65 1.23L8.68 0.9L9.82 0.63L11.09 0.4L12.53 0.23L14.22 0.1L16.38 0.02L21 0L23 0L27.62 0.02L29.78 0.1L31.47 0.23L32.91 0.4L34.18 0.63L35.32 0.9L36.35 1.23L37.29 1.61L38.15 2.05L38.94 2.53L39.66 3.08L40.32 3.68L40.92 4.34L41.47 5.06L41.95 5.85L42.39 6.71L42.77 7.65L43.1 8.68L43.37 9.82L43.6 11.09L43.77 12.53L43.9 14.22L43.98 16.38L44 21L44 23L43.98 27.62L43.9 29.78L43.77 31.47L43.6 32.91L43.37 34.18L43.1 35.32L42.77 36.35L42.39 37.29L41.95 38.15L41.47 38.94L40.92 39.66L40.32 40.32L39.66 40.92L38.94 41.47L38.15 41.95L37.29 42.39L36.35 42.77L35.32 43.1L34.18 43.37L32.91 43.6L31.47 43.77L29.78 43.9L27.62 43.98L23 44L21 44L16.38 43.98L14.22 43.9L12.53 43.77L11.09 43.6L9.82 43.37L8.68 43.1L7.65 42.77L6.71 42.39L5.85 41.95L5.06 41.47L4.34 40.92L3.68 40.32L3.08 39.66L2.53 38.94L2.05 38.15L1.61 37.29L1.23 36.35L0.9 35.32L0.63 34.18L0.4 32.91L0.23 31.47L0.1 29.78L0.02 27.62L0 23ZM1 21L1.02 16.6L1.1 14.55L1.21 12.93L1.38 11.56L1.6 10.35L1.86 9.27L2.17 8.29L2.54 7.39L2.95 6.57L3.41 5.82L3.93 5.13L4.5 4.5L5.13 3.93L5.82 3.41L6.57 2.95L7.39 2.54L8.29 2.17L9.27 1.86L10.35 1.6L11.56 1.38L12.93 1.21L14.55 1.1L16.6 1.02L21 1L23 1L27.4 1.02L29.45 1.1L31.07 1.21L32.44 1.38L33.65 1.6L34.73 1.86L35.71 2.17L36.61 2.54L37.43 2.95L38.18 3.41L38.87 3.93L39.5 4.5L40.07 5.13L40.59 5.82L41.05 6.57L41.46 7.39L41.83 8.29L42.14 9.27L42.4 10.35L42.62 11.56L42.79 12.93L42.9 14.55L42.98 16.6L43 21L43 23L42.98 27.4L42.9 29.45L42.79 31.07L42.62 32.44L42.4 33.65L42.14 34.73L41.83 35.71L41.46 36.61L41.05 37.43L40.59 38.18L40.07 38.87L39.5 39.5L38.87 40.07L38.18 40.59L37.43 41.05L36.61 41.46L35.71 41.83L34.73 42.14L33.65 42.4L32.44 42.62L31.07 42.79L29.45 42.9L27.4 42.98L23 43L21 43L16.6 42.98L14.55 42.9L12.93 42.79L11.56 42.62L10.35 42.4L9.27 42.14L8.29 41.83L7.39 41.46L6.57 41.05L5.82 40.59L5.13 40.07L4.5 39.5L3.93 38.87L3.41 38.18L2.95 37.43L2.54 36.61L2.17 35.71L1.86 34.73L1.6 33.65L1.38 32.44L1.21 31.07L1.1 29.45L1.02 27.4L1 23Z'/%3E%3C/svg%3E") 21 / 21px stretch; }
  .btn-sm::before, .theme-toggle::before, .menu-toggle::before, .install-tabs button::before, .install-copy::before { -webkit-mask-box-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath d='M0 16L0.02 12.48L0.08 10.84L0.17 9.55L0.31 8.45L0.48 7.48L0.69 6.62L0.94 5.83L1.23 5.11L1.56 4.46L1.93 3.86L2.34 3.31L2.8 2.8L3.31 2.34L3.86 1.93L4.46 1.56L5.11 1.23L5.83 0.94L6.62 0.69L7.48 0.48L8.45 0.31L9.55 0.17L10.84 0.08L12.48 0.02L16 0L18 0L21.52 0.02L23.16 0.08L24.45 0.17L25.55 0.31L26.52 0.48L27.38 0.69L28.17 0.94L28.89 1.23L29.54 1.56L30.14 1.93L30.69 2.34L31.2 2.8L31.66 3.31L32.07 3.86L32.44 4.46L32.77 5.11L33.06 5.83L33.31 6.62L33.52 7.48L33.69 8.45L33.83 9.55L33.92 10.84L33.98 12.48L34 16L34 18L33.98 21.52L33.92 23.16L33.83 24.45L33.69 25.55L33.52 26.52L33.31 27.38L33.06 28.17L32.77 28.89L32.44 29.54L32.07 30.14L31.66 30.69L31.2 31.2L30.69 31.66L30.14 32.07L29.54 32.44L28.89 32.77L28.17 33.06L27.38 33.31L26.52 33.52L25.55 33.69L24.45 33.83L23.16 33.92L21.52 33.98L18 34L16 34L12.48 33.98L10.84 33.92L9.55 33.83L8.45 33.69L7.48 33.52L6.62 33.31L5.83 33.06L5.11 32.77L4.46 32.44L3.86 32.07L3.31 31.66L2.8 31.2L2.34 30.69L1.93 30.14L1.56 29.54L1.23 28.89L0.94 28.17L0.69 27.38L0.48 26.52L0.31 25.55L0.17 24.45L0.08 23.16L0.02 21.52L0 18Z'/%3E%3C/svg%3E") 16 fill / 16px stretch; }
  .btn-sm::after, .theme-toggle::after, .menu-toggle::after, .install-tabs button::after, .install-copy::after { -webkit-mask-box-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath fill-rule='evenodd' d='M0 16L0.02 12.48L0.08 10.84L0.17 9.55L0.31 8.45L0.48 7.48L0.69 6.62L0.94 5.83L1.23 5.11L1.56 4.46L1.93 3.86L2.34 3.31L2.8 2.8L3.31 2.34L3.86 1.93L4.46 1.56L5.11 1.23L5.83 0.94L6.62 0.69L7.48 0.48L8.45 0.31L9.55 0.17L10.84 0.08L12.48 0.02L16 0L18 0L21.52 0.02L23.16 0.08L24.45 0.17L25.55 0.31L26.52 0.48L27.38 0.69L28.17 0.94L28.89 1.23L29.54 1.56L30.14 1.93L30.69 2.34L31.2 2.8L31.66 3.31L32.07 3.86L32.44 4.46L32.77 5.11L33.06 5.83L33.31 6.62L33.52 7.48L33.69 8.45L33.83 9.55L33.92 10.84L33.98 12.48L34 16L34 18L33.98 21.52L33.92 23.16L33.83 24.45L33.69 25.55L33.52 26.52L33.31 27.38L33.06 28.17L32.77 28.89L32.44 29.54L32.07 30.14L31.66 30.69L31.2 31.2L30.69 31.66L30.14 32.07L29.54 32.44L28.89 32.77L28.17 33.06L27.38 33.31L26.52 33.52L25.55 33.69L24.45 33.83L23.16 33.92L21.52 33.98L18 34L16 34L12.48 33.98L10.84 33.92L9.55 33.83L8.45 33.69L7.48 33.52L6.62 33.31L5.83 33.06L5.11 32.77L4.46 32.44L3.86 32.07L3.31 31.66L2.8 31.2L2.34 30.69L1.93 30.14L1.56 29.54L1.23 28.89L0.94 28.17L0.69 27.38L0.48 26.52L0.31 25.55L0.17 24.45L0.08 23.16L0.02 21.52L0 18ZM1 16L1.02 12.7L1.07 11.16L1.16 9.95L1.29 8.92L1.45 8.02L1.65 7.2L1.88 6.47L2.15 5.79L2.46 5.18L2.81 4.61L3.2 4.1L3.63 3.63L4.1 3.2L4.61 2.81L5.18 2.46L5.79 2.15L6.47 1.88L7.2 1.65L8.02 1.45L8.92 1.29L9.95 1.16L11.16 1.07L12.7 1.02L16 1L18 1L21.3 1.02L22.84 1.07L24.05 1.16L25.08 1.29L25.98 1.45L26.8 1.65L27.53 1.88L28.21 2.15L28.82 2.46L29.39 2.81L29.9 3.2L30.37 3.63L30.8 4.1L31.19 4.61L31.54 5.18L31.85 5.79L32.12 6.47L32.35 7.2L32.55 8.02L32.71 8.92L32.84 9.95L32.93 11.16L32.98 12.7L33 16L33 18L32.98 21.3L32.93 22.84L32.84 24.05L32.71 25.08L32.55 25.98L32.35 26.8L32.12 27.53L31.85 28.21L31.54 28.82L31.19 29.39L30.8 29.9L30.37 30.37L29.9 30.8L29.39 31.19L28.82 31.54L28.21 31.85L27.53 32.12L26.8 32.35L25.98 32.55L25.08 32.71L24.05 32.84L22.84 32.93L21.3 32.98L18 33L16 33L12.7 32.98L11.16 32.93L9.95 32.84L8.92 32.71L8.02 32.55L7.2 32.35L6.47 32.12L5.79 31.85L5.18 31.54L4.61 31.19L4.1 30.8L3.63 30.37L3.2 29.9L2.81 29.39L2.46 28.82L2.15 28.21L1.88 27.53L1.65 26.8L1.45 25.98L1.29 25.08L1.16 24.05L1.07 22.84L1.02 21.3L1 18Z'/%3E%3C/svg%3E") 16 / 16px stretch; }
  .btn-primary { --sq-fill: var(--invert-bg); --sq-line: var(--invert-bg); }
  .btn-ghost { --sq-line: var(--line-strong); }
  .btn-ghost:hover { --sq-fill: var(--surface); --sq-line: var(--ink); }
  .theme-toggle:hover, .menu-toggle:hover { --sq-fill: var(--surface); --sq-line: var(--line-strong); }
}

/* Terminal install box (home download section) */
.install-box {
  margin: 40px auto 0;
  max-width: 640px;
  text-align: center;
}

.final-cta .install-box-title {
  margin: 0 0 12px;
  max-width: none;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.install-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
}

.install-tabs button {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-tag);
  corner-shape: squircle;
  background: transparent;
  color: var(--ink-secondary);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.install-tabs button[aria-selected='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.install-cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  corner-shape: squircle;
  background: var(--bg-subtle);
  text-align: left;
}

.install-cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  color: var(--ink);
}

.install-copy {
  flex: none;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-tag);
  corner-shape: squircle;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

@supports (not (corner-shape: squircle)) and (-webkit-mask-box-image: none) {
  .install-cmd, .install-tabs button, .install-copy {
    position: relative;
    isolation: isolate;
    border-color: transparent;
    background: transparent;
  }

  .install-cmd { --sq-fill: var(--bg-subtle); }

  .install-tabs button[aria-selected='true'] {
    --sq-fill: var(--ink);
    --sq-line: var(--ink);
    border-color: transparent;
    background: transparent;
  }

  .install-cmd::before, .install-cmd::after,
  .install-tabs button::before, .install-tabs button::after,
  .install-copy::before, .install-copy::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    pointer-events: none;
  }

  .install-cmd::before, .install-tabs button::before, .install-copy::before {
    background: var(--sq-fill, transparent);
  }

  .install-cmd::after, .install-tabs button::after, .install-copy::after {
    background: var(--sq-line, var(--line-strong));
  }
}

.final-cta .install-panel p,
.final-cta .install-box-foot {
  margin: 10px 0 0;
  max-width: none;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.install-panel code,
.install-box-foot code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.install-box a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.team-diagram .td-logo path { fill: var(--ink); }

/* Pricing: Freemium / Premium */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); corner-shape: squircle; background: var(--bg-subtle); }
.plan--premium { border-color: var(--ink); background: var(--bg); }
.plan-name { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.plan-name em { font-style: normal; color: var(--ink-muted); }
.plan .price-tag { margin: 0; }
.plan-desc { margin: 0; color: var(--ink-secondary); }
.plan .checklist { flex: 1; }
.plan .hero-actions { margin-top: 6px; }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .plan { padding: 28px 22px; } }


/* Phones: calmer type scale; highlight rows stack instead of squeezing the label */
@media (max-width: 560px) {
  .hero h1 { font-size: 2.2rem; }
  .section h2 { font-size: 1.65rem; }
  .final-cta h2 { font-size: 1.75rem; }
  .doc-hero h1 { font-size: 1.85rem; }
  .price-amount { font-size: 2.5rem; }
  .benefit-value { font-size: 28px; }

  .metric-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 20px;
  }
  .metric-value { font-size: 1.3rem; }
  .metric-label { text-align: left; font-size: 0.9rem; }
}

/* Safari iPhone: keep the end of the page clear of the bottom toolbar. */
@media (max-width: 720px) {
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  /* Dot grid stops above the Safari toolbar instead of running under it. */
  .bg-texture {
    bottom: 110px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 40%, transparent 100%), linear-gradient(#000 70%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 40%, transparent 100%), linear-gradient(#000 70%, transparent);
    mask-composite: intersect;
  }
}
