#scenes .value-grid {
  align-items: stretch;
}
.scene-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.scene-card .scene-tags {
  flex: 1;
  align-content: flex-start;
  align-items: flex-start;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(0,115,188,.12), transparent 60%),
    radial-gradient(700px 360px at 92% 20%, rgba(249,91,24,.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-logo {
  height: 56px;
  width: auto;
  margin-bottom: 28px;
  animation: rise .7s ease both;
}
.rule {
  width: 96px;
  height: 4px;
  background: var(--brand-bar);
  margin-bottom: 28px;
  animation: rise .7s ease .05s both;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 560;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: rise .7s ease .1s both;
}
.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 32px;
  animation: rise .7s ease .16s both;
}
.hero-lead em {
  font-style: normal;
  font-weight: 650;
  color: var(--blue);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  animation: rise .7s ease .22s both;
}
.path {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--muted);
  animation: rise .7s ease .28s both;
}
.path span { display: inline-flex; align-items: center; gap: 20px; }
.path span + span::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--yellow);
}

.hero-visual {
  animation: rise .8s ease .2s both;
}
.device {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(63, 63, 62, 0.08);
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}
.device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5dbe1;
}
.device-dot:nth-child(1) { background: #ff5f57; }
.device-dot:nth-child(2) { background: #febc2e; }
.device-dot:nth-child(3) { background: #28c840; }
.device-url {
  margin-left: 8px;
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  background: var(--paper);
  border-radius: 6px;
  padding: 6px 10px;
}
.device-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green);
  font-weight: 560;
  white-space: nowrap;
}
.device-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.4s ease infinite;
}
.chat-body {
  height: 460px;
  padding: 24px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { display: none; }
.chat-msg {
  display: none;
  max-width: 86%;
  opacity: 0;
  transform: translateY(8px);
  flex-direction: column;
  flex-shrink: 0;
}
.chat-msg.show {
  display: flex;
  animation: msgIn .35s ease forwards;
}
.chat-msg.me { align-self: flex-end; }
.chat-msg.ai { align-self: flex-start; }
.chat-msg .bub {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.65;
}
.chat-msg.me .bub {
  background: var(--blue);
  color: #fff;
}
.chat-msg.ai .bub {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}
.chat-msg .who {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  padding: 0 4px;
  letter-spacing: .02em;
}
.chat-msg.me .who { text-align: right; }
.typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 1.4em;
  padding: 2px 0;
}
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa3ab;
  animation: blink 1.2s ease infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
.steps {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.steps li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.steps li b {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #c5d0d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.steps li.done { color: var(--ink); }
.steps li.done b {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.steps li.run { color: var(--blue); }
.steps li.run b {
  border-color: var(--blue);
  color: var(--blue);
}
.chip-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 10px;
}
.chat-foot {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
@keyframes msgIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-msg { display: flex; opacity: 1; transform: none; animation: none; }
  .device-live i, .typing span { animation: none; }
}

.compare-scroll {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px;
}
.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.compare th,
.compare td {
  padding: 16px 18px;
  text-align: left;
  font-size: 14px;
  line-height: 1.55;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: none; }
.compare thead th {
  background: var(--paper);
  font-size: 13px;
  font-weight: 560;
  color: var(--muted);
}
.compare thead th .idx {
  display: block;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  margin-bottom: 4px;
}
.compare thead th .name {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}
.compare thead th .hint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.compare thead th.hl {
  background: var(--mist);
}
.compare thead th.hl .name { color: var(--blue); }
.compare tbody th {
  width: 18%;
  background: #fafbfc;
  font-weight: 560;
  color: var(--ink);
  white-space: nowrap;
}
.compare td { color: var(--muted); }
.compare td.hl {
  background: rgba(231, 242, 250, 0.45);
  color: var(--ink);
  font-weight: 500;
}
.compare td.hl b {
  display: block;
  color: var(--blue);
  font-weight: 560;
  margin-bottom: 4px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.why-card {
  position: relative;
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 180px;
}
.why-card .k {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.why-card h3 {
  font-size: 18px;
  font-weight: 560;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 14px;
  color: var(--muted);
}
.why-card .star {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 18px;
  line-height: 1;
}

.phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.phase {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  position: relative;
}
.phase .n {
  font-size: 28px;
  font-weight: 560;
  color: var(--blue);
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.phase h3 {
  font-size: 20px;
  font-weight: 560;
  margin-bottom: 6px;
}
.phase .dur {
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 12px;
}
.phase p {
  font-size: 15px;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}
details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0 20px;
}
details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 560;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  color: var(--blue);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
}
details.faq[open] summary::after { content: "–"; }
details.faq .ans {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .hero-grid,
  .why-grid,
  .phases {
    grid-template-columns: 1fr 1fr;
  }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid,
  .why-grid,
  .phases {
    grid-template-columns: 1fr;
  }
  .chat-body { height: 400px; padding: 22px 18px; gap: 14px; }
}
