/* Styles for features / coverage / code / use cases / pricing / testimonials / faq / cta / footer */

/* ─── Features ─── */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card { overflow: hidden; display: flex; flex-direction: column; }
.feat-visual {
  height: 220px;
  position: relative;
  border-bottom: 1px solid var(--line-1);
  background: radial-gradient(ellipse at center, var(--bg-2), var(--bg-1));
  overflow: hidden;
}
.feat-visual--rot { color: var(--accent); }
.feat-visual--sta { color: var(--accent-2); }
.feat-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.feat-icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--r-md);
  margin-bottom: 16px;
}
.feat-visual--sta + .feat-body .feat-icon { background: var(--accent-2-soft); color: var(--accent-2); }
.feat-title { font-size: 22px; letter-spacing: -0.02em; margin: 0; font-weight: 500; }
.feat-sub { color: var(--ink-2); margin: 10px 0 20px; font-size: 15px; line-height: 1.55; max-width: 48ch; }
.feat-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feat-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-1); }
.check {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Rotating viz */
.rot-viz {
  --active: 0;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.rot-wire { position: absolute; inset: 0; width: 100%; height: 100%; }
.rot-node {
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--ink-4);
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 45deg))
    translate(80px)
    rotate(calc(var(--i) * -45deg));
  transition: background 400ms var(--ease-out), box-shadow 400ms;
}
.rot-viz .rot-node:nth-child(var(--active)) { background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.rot-viz .rot-node {
  animation: rotActive 4.8s linear infinite;
  animation-delay: calc(var(--i) * -0.6s);
}
@keyframes rotActive {
  0%,8% { background: var(--accent); box-shadow: 0 0 16px var(--accent-glow); transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 45deg))
    translate(80px)
    rotate(calc(var(--i) * -45deg)) scale(1.5); }
  10%,100% { background: var(--ink-4); box-shadow: none; }
}
.rot-center {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--accent);
  z-index: 1;
  box-shadow: 0 0 24px var(--accent-glow);
}

/* Static viz */
.sta-viz { position: absolute; inset: 0; color: var(--accent-2); }
.sta-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sta-pin {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent-2);
  text-align: center;
  filter: drop-shadow(0 0 12px var(--accent-2));
}
.sta-label {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-1);
  background: var(--bg-0);
  border: 1px solid var(--line-2);
  padding: 3px 8px;
  border-radius: var(--r-sm);
}

/* Perf table */
.perf-wrap { margin-top: 56px; overflow: hidden; }
.perf-head { padding: 16px 20px; border-bottom: 1px solid var(--line-1); }
.perf-self { color: var(--accent) !important; }
.perf-self-cell { color: var(--accent) !important; font-weight: 500; }

/* ─── Coverage map ─── */
.coverage-wrap { margin-top: 56px; padding: 0 var(--gutter); }
.coverage-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 1000 / 500;
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  background: var(--bg-1);
  overflow: hidden;
}
.coverage-svg { width: 100%; height: 100%; display: block; }
.coverage-tip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 14px));
  background: var(--bg-0);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 10px 14px;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 2;
}
.coverage-tip-name { font-size: 13px; color: var(--ink-0); }
.coverage-tip-n { font-size: 12px; margin-top: 2px; color: var(--accent); }
.coverage-legend {
  margin-top: 24px;
  display: flex; gap: 24px; align-items: center;
  font-size: 13px; color: var(--ink-2);
}
.coverage-legend .dot-active,
.coverage-legend .dot-pool {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 999px; margin-right: 8px; vertical-align: middle;
}
.dot-active { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dot-pool { background: var(--ink-4); }
.coverage-stats { margin-left: auto; display: flex; gap: 32px; }
.coverage-stats b { color: var(--ink-0); margin-right: 4px; font-weight: 500; }

/* ─── Code tabs ─── */
.code-frame {
  margin-top: 56px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.code-head {
  display: flex;
  border-bottom: 1px solid var(--line-1);
  background: var(--bg-2);
  align-items: center;
}
.code-tabs { display: flex; }
.code-tab {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--ink-2);
  font-family: var(--f-mono);
  border-right: 1px solid var(--line-1);
  position: relative;
  transition: color var(--dur-fast);
}
.code-tab:hover { color: var(--ink-0); }
.code-tab.active {
  color: var(--accent);
  background: var(--bg-1);
}
.code-tab.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--accent);
}
.code-copy {
  margin-left: auto;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--ink-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-sm);
  margin-right: 14px;
  transition: all var(--dur-fast);
}
.code-copy:hover { color: var(--accent); border-color: var(--accent-soft); }
.code-frame .code { border: none; border-radius: 0; padding: 28px 32px; font-size: 14px; }
.code-foot {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid var(--line-1);
  background: var(--bg-2);
  font-size: 12px;
  color: var(--ink-2);
  align-items: center;
}
.code-foot-sep { color: var(--ink-4); }
.code-foot-right { margin-left: auto; color: var(--accent); }

/* ─── Use cases ─── */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 900px) { .uc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .uc-grid { grid-template-columns: 1fr; } }
.uc-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.uc-icon {
  width: 36px; height: 36px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.uc-t { font-size: 18px; margin: 0 0 8px; font-weight: 500; letter-spacing: -0.015em; }
.uc-d { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.uc-arrow {
  position: absolute; right: 20px; bottom: 20px;
  opacity: 0; transform: translateX(-8px);
  color: var(--accent);
  transition: all var(--dur-med) var(--ease-out);
}
.uc-card:hover .uc-arrow { opacity: 1; transform: translateX(0); }

/* ─── Pricing ─── */
.price-slider { padding: 28px; margin-top: 56px; }
.slider-row { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.slider-label { display: flex; flex-direction: column; gap: 8px; }
.slider-label.right { text-align: right; align-items: flex-end; }
.slider-value {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink-0);
}
.slider-sub { color: var(--ink-3); font-size: 16px; margin-left: 4px; }
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  margin-top: 28px;
  background: linear-gradient(to right, var(--accent) var(--pct), var(--bg-3) var(--pct));
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  background: var(--ink-0);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--bg-0), 0 0 0 4px var(--accent);
  transition: transform var(--dur-fast);
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.slider::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--ink-0);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--bg-0), 0 0 0 4px var(--accent);
  border: none;
}
.slider-ticks {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 10px;
}
.slider-foot {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.slider-foot span:first-child { color: var(--accent); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 960px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-1) 40%);
}
.plan-badge {
  position: absolute;
  top: -10px; right: 16px;
  background: var(--accent);
  color: var(--bg-0);
  font-size: 11px;
  font-family: var(--f-mono);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.plan-name {
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.plan-price {
  margin-top: 8px;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink-0);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-per { font-size: 14px; color: var(--ink-3); }
.plan-gb { font-size: 12px; color: var(--accent); margin-top: 4px; }
.plan-items {
  list-style: none; padding: 0;
  margin: 24px 0;
  display: grid; gap: 10px;
  flex: 1;
}
.plan-items li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-1); }
.plan-cta { justify-content: center; width: 100%; }

/* ─── Testimonials ─── */
.tm-marquee {
  margin-top: 56px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}
.tm-track {
  display: flex;
  gap: 20px;
  padding: 8px var(--gutter);
  width: max-content;
  animation: tmscroll 60s linear infinite;
}
.tm-marquee:hover .tm-track { animation-play-state: paused; }
@keyframes tmscroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tm-card {
  padding: 28px;
  width: 360px;
  flex-shrink: 0;
  display: flex; flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}
.tm-quote { font-size: 16px; line-height: 1.55; color: var(--ink-0); letter-spacing: -0.01em; }
.tm-meta { display: flex; gap: 12px; align-items: center; }
.tm-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--bg-0);
  letter-spacing: 0;
  font-family: var(--f-mono);
}
.tm-who { font-size: 13px; color: var(--ink-0); }
.tm-role { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* ─── FAQ ─── */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 40px; } }
.faq-aside {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  background: var(--bg-1);
  max-width: 320px;
}
.faq-aside-label {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--line-1);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  text-align: left;
  font-size: 16px;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  transition: color var(--dur-fast);
}
.faq-q:hover { color: var(--accent); }
.faq-plus {
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--ink-2);
  transition: all var(--dur-fast);
}
.faq-item.open .faq-plus { color: var(--accent); border-color: var(--accent); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > p {
  overflow: hidden;
  margin: 0;
  padding-bottom: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 64ch;
  transition: padding-bottom var(--dur-med);
}
.faq-item.open .faq-a > p { padding-bottom: 22px; }

/* ─── Big CTA ─── */
.cta-section { padding: 80px 0 120px; }
.cta-wrap {
  position: relative;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  padding: 96px 24px;
  overflow: hidden;
  text-align: center;
}
.cta-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-1) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 60%);
  pointer-events: none;
}
.cta-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line-1);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-ring--1 { width: 320px; height: 320px; box-shadow: 0 0 80px var(--accent-glow); }
.cta-ring--2 { width: 560px; height: 560px; border-style: dashed; animation: gspin 120s linear infinite; }
.cta-inner { position: relative; z-index: 1; }

/* ─── Footer ─── */
.footer-status {
  margin-top: 20px;
  font-size: 12px;
  color: var(--accent-3);
  display: inline-flex; align-items: center; gap: 8px;
}

/* ─── Nav links responsive ─── */
.nav-links-desktop { display: flex !important; }
@media (max-width: 820px) {
  .nav-links-desktop { display: none !important; }
}
