/* =========================================================
   CyTutor 小辅星球 · layout
   Page structure and section composition
   ========================================================= */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 242, 0.82);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(31, 42, 55, 0.05);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 6px 10px rgba(255, 107, 74, 0.16));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(31, 42, 55, 0.05);
}

.main-nav .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(52px, 7vw, 104px) 0 clamp(36px, 6vw, 76px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-a {
  width: 460px;
  height: 460px;
  top: -140px;
  right: -100px;
  background: rgba(255, 107, 74, 0.18);
}

.hero-glow-b {
  width: 380px;
  height: 380px;
  bottom: -150px;
  left: -140px;
  background: rgba(31, 174, 154, 0.14);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(42px, 6.2vw, 76px);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.hero-lede {
  max-width: 600px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.8;
}

.hero-lede strong {
  color: var(--ink);
  font-weight: 800;
  box-shadow: inset 0 -0.42em 0 var(--yellow-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 22px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-list .icon {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 12px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 174, 154, 0.14);
  animation: pulse 2.2s infinite;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(31, 174, 154, 0.32);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-1 {
  width: 110%;
  height: 110%;
  transform: rotate(-16deg);
}

.orbit-2 {
  width: 86%;
  height: 86%;
  border-color: rgba(255, 107, 74, 0.22);
  transform: rotate(22deg);
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.hero-media-frame {
  position: absolute;
  inset: 0;
  border: 8px solid rgba(255, 255, 255, 0.65);
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.85), transparent 45%),
    linear-gradient(145deg, #FFE8DC, #FFF6E8 45%, #DDF5F0);
  box-shadow: var(--shadow-lg);
  transform: rotate(0.6deg);
}

.hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(31, 42, 55, 0.18));
  pointer-events: none;
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: float 7s ease-in-out infinite;
}

.float-chip strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.float-chip small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  flex: 0 0 auto;
}

.chip-icon .icon {
  width: 18px;
  height: 18px;
}

.chip-icon.teal {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.chip-icon.coral {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.chip-icon.yellow {
  background: var(--yellow-soft);
  color: #9A6B00;
}

.chip-1 {
  top: 5%;
  left: -6%;
  animation-delay: -1s;
}

.chip-2 {
  top: 9%;
  right: -4%;
  animation-delay: -3s;
}

.chip-3 {
  bottom: 8%;
  left: -4%;
  animation-delay: -2s;
}

.chip-4 {
  right: -2%;
  bottom: 11%;
  animation-delay: -4s;
}

.big-num {
  display: inline-flex;
  align-items: baseline;
  color: var(--coral-deep);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.big-num span {
  margin-left: 1px;
  font-size: 12px;
}

/* ---------- Pain ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pain-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pain-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 107, 74, 0.07), transparent 46%);
  pointer-events: none;
}

.pain-num {
  position: relative;
  z-index: 1;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.pain-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 18px 0 16px;
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--ink);
}

.pain-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  font-size: 20px;
}

.pain-card p {
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- Capabilities / tabs ---------- */
.tabs {
  position: relative;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  margin-bottom: 28px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.66);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.tab-btn:hover {
  color: var(--ink);
  background: rgba(31, 42, 55, 0.05);
}

.tab-btn.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 42, 55, 0.16);
}

.tab-btn .badge {
  transform: translateY(-1px);
}

.tab-btn.is-active .badge-teal {
  background: rgba(31, 174, 154, 0.25);
  color: #B9F4EB;
}

.tab-btn.is-active .badge-coral {
  background: rgba(255, 107, 74, 0.28);
  color: #FFD9CE;
}

.tab-btn.is-active .badge-soft {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  animation: fade-up 0.45s var(--ease) both;
}

.feature-copy h3 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
}

.feature-copy > p {
  margin-bottom: 22px;
  color: var(--ink-soft);
  line-height: 1.8;
}

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

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.feature-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--teal);
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.feature-media {
  position: relative;
  border-radius: 30px;
  background: var(--paper-2);
}

.feature-media > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

.mini-ui {
  position: absolute;
  right: 18px;
  bottom: -18px;
  left: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.mini-ui-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mini-ui-top strong {
  font-size: 13px;
}

.mini-ui-top span {
  color: var(--muted);
  font-size: 11px;
}

.mini-ui-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-pill {
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 11px;
}

.mini-pill.coral {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.mini-pill.teal {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.mini-progress {
  height: 6px;
  margin-top: 12px;
  border-radius: var(--radius-pill);
  background: var(--paper-deep);
  overflow: hidden;
}

.mini-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--coral));
}

/* ---------- Flow ---------- */
.flow-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-grid::before {
  content: "";
  position: absolute;
  top: 38px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.flow-step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.flow-num {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.flow-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}

.flow-step:nth-child(2) .flow-icon {
  background: var(--coral);
}

.flow-step:nth-child(3) .flow-icon {
  background: var(--teal);
}

.flow-step:nth-child(4) .flow-icon {
  background: var(--yellow);
  color: var(--ink);
}

.flow-step h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.flow-step p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- Compare ---------- */
.loop-compare {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.loop-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.loop-label {
  width: 84px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  flex: 0 0 auto;
}

.loop-row-us .loop-label {
  color: var(--coral-deep);
}

.loop-nodes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.loop-node {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 12px;
}

.loop-row-us .loop-node {
  border-color: rgba(255, 107, 74, 0.18);
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-weight: 600;
}

.loop-arrow {
  color: var(--coral);
  font-weight: 800;
}

.loop-gap {
  width: 28px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 8px);
}

.loop-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.compare-table th,
.compare-table td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 249, 242, 0.96);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.compare-table th:first-child,
.compare-table td:first-child {
  width: 34%;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
}

.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th {
  border-bottom: 0;
}

.compare-table .col-us {
  background: rgba(255, 107, 74, 0.07);
}

.compare-table thead .col-us {
  border-radius: 14px 14px 0 0;
  background: var(--ink);
  color: #fff;
}

.compare-table tbody tr:last-child .col-us {
  border-radius: 0 0 14px 14px;
}

.compare-table .coverage-row th,
.compare-table .coverage-row td {
  background: rgba(31, 42, 55, 0.03);
  font-weight: 800;
}

.compare-table .coverage-row .col-us {
  background: var(--coral);
  color: #fff;
  font-size: 16px;
}

.table-hint {
  display: none;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ---------- Growth ---------- */
.chart-card {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-md);
}

.chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
}

.legend-dot.us {
  background: var(--coral);
}

.legend-dot.base {
  background: #B9C0CA;
}

.chart-wrap {
  position: relative;
  width: 100%;
  min-height: 300px;
}

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

.chart-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.chart-stats > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.chart-stats strong {
  display: block;
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.chart-stats span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

/* ---------- Trace ---------- */
.trace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 13px;
  width: 2px;
  background: linear-gradient(var(--coral), var(--teal));
  opacity: 0.25;
}

.timeline-item {
  position: relative;
  padding-left: 42px;
  padding-bottom: 22px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 2px;
  left: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--coral);
  border-radius: 50%;
  background: var(--paper);
  color: var(--coral-deep);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.timeline-item:nth-child(2) .timeline-dot {
  border-color: var(--yellow);
  color: #9A6B00;
}

.timeline-item:nth-child(3) .timeline-dot {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.timeline-item:nth-child(4) .timeline-dot {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.timeline-item p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.report-card {
  position: relative;
  padding: 26px;
  border-radius: 30px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.report-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.35), transparent 65%);
}

.report-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.report-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.report-stat {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.report-stat strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.report-stat span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.report-bars {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.report-bar {
  display: grid;
  gap: 5px;
}

.report-bar-top {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
}

.report-bar-track {
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.report-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--yellow));
}

.report-next {
  position: relative;
  z-index: 1;
  padding: 12px 106px 12px 14px;
  border: 1px solid rgba(255, 209, 102, 0.25);
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.12);
  color: #FFE7A8;
  font-size: 12px;
  line-height: 1.6;
}

.report-mascot {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  width: 84px;
  height: 84px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: var(--paper);
  overflow: hidden;
}

.report-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Scenes ---------- */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scene-card {
  margin: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
}

.scene-card blockquote {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.65;
}

.scene-card blockquote::before {
  content: "“";
  margin-right: 4px;
  color: var(--coral);
  font-size: 34px;
  line-height: 0;
  vertical-align: -8px;
}

.scene-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
}

.scene-card figcaption strong {
  color: var(--ink);
  font-size: 13px;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.faq-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  flex: 0 0 auto;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.faq-item[open] .faq-icon {
  background: var(--coral);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- Final CTA ---------- */
.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 36px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(255, 107, 74, 0.35), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(31, 174, 154, 0.22), transparent 60%);
}

.cta-copy,
.cta-visual {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  margin: 14px 0 16px;
  font-size: clamp(30px, 4.2vw, 52px);
  letter-spacing: -0.04em;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.cta-card .btn {
  margin-top: 24px;
}

.cta-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.qr-card {
  width: 210px;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: rotate(2deg);
}

.qr-card svg {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.qr-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.cta-mascot {
  width: 128px;
  height: 128px;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--paper);
  object-fit: cover;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.footer-brand p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer-links .footer-tech-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ink-soft);
  font-weight: 700;
}

.footer-links .footer-tech-link:hover {
  color: var(--coral-deep);
}

.footer-links .footer-tech-link span {
  font-size: 10px;
  transform: translateY(-1px);
}

.footer-links a[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-visual {
    min-height: 440px;
  }

  .chip-1 {
    left: -2%;
  }

  .chip-2 {
    right: -1%;
  }

  .chip-3 {
    left: -1%;
  }

  .chip-4 {
    right: 0;
  }

  .flow-grid {
    gap: 14px;
  }

  .flow-step {
    padding: 20px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav a {
    padding: 13px 14px;
    font-size: 16px;
  }

  .main-nav .btn {
    margin: 6px 0 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-visual {
    width: min(100%, 640px);
    min-height: 0;
    margin-inline: auto;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
  }

  .pain-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }

  .tab-list {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .tab-panel.is-active {
    grid-template-columns: 1fr;
  }

  .feature-media {
    margin-bottom: 22px;
  }

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

  .flow-grid::before {
    display: none;
  }

  .trace-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .scene-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }

  .cta-card {
    grid-template-columns: 1fr;
  }

  .cta-visual {
    justify-content: flex-start;
    padding-top: 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .table-hint {
    display: block;
  }

  .compare-table {
    min-width: 720px;
  }

  .compare-table th:first-child,
  .compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    background: #FFFAF4;
  }

  .compare-table thead th:first-child {
    z-index: 3;
    background: #FFF7EF;
  }
}

@media (max-width: 640px) {
  .chart-wrap {
    min-height: 0;
  }

  .chart-axis-text {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 66px;
  }

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

  .brand-text strong {
    font-size: 16px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-media-frame {
    border-width: 6px;
    border-radius: 28px;
  }

  .float-chip {
    gap: 7px;
    padding: 8px 10px;
  }

  .float-chip strong {
    font-size: 11px;
  }

  .float-chip small {
    font-size: 9px;
  }

  .chip-icon {
    width: 28px;
    height: 28px;
  }

  .chip-icon .icon {
    width: 15px;
    height: 15px;
  }

  .chip-1 {
    top: 3%;
    left: 2%;
  }

  .chip-2 {
    top: 7%;
    right: 2%;
  }

  .chip-3 {
    bottom: 4%;
    left: 2%;
  }

  .chip-4 {
    right: 2%;
    bottom: 8%;
  }

  .big-num {
    font-size: 18px;
  }

  .orbit-1 {
    width: 104%;
    height: 104%;
  }

  .orbit-2 {
    width: 92%;
    height: 92%;
  }

  .section-head h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .tab-btn {
    padding: 11px 14px;
    font-size: 13px;
  }

  .tab-btn .badge {
    display: none;
  }

  .feature-media > img {
    border-width: 5px;
    border-radius: 24px;
  }

  .mini-ui {
    right: 12px;
    bottom: -16px;
    left: 12px;
    padding: 12px;
  }

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

  .loop-note {
    width: 100%;
    margin-left: 0;
  }

  .loop-label {
    width: auto;
  }

  .compare-table {
    min-width: 680px;
  }

  .chart-axis-text.x.optional {
    display: none;
  }

  .chart-stats {
    grid-template-columns: 1fr;
  }

  .report-next {
    padding-right: 14px;
  }

  .chart-stats > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .chart-stats strong {
    font-size: 22px;
  }

  .report-card {
    padding: 22px;
  }

  .report-mascot {
    display: none;
  }

  .cta-card {
    padding: 30px 22px;
    border-radius: 28px;
  }

  .cta-visual {
    flex-direction: column;
    align-items: flex-start;
  }

  .qr-card {
    width: 180px;
  }

  .cta-mascot {
    width: 96px;
    height: 96px;
  }

  .cta-card h2 {
    font-size: clamp(20px, 6.6vw, 30px);
  }

  .site-footer {
    padding-bottom: 42px;
  }
}

@media (max-width: 380px) {
  .float-chip.chip-3,
  .float-chip.chip-4 {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
  }
}
