/* AGENT WRIGHT — home: Chinese authority, pain-driven, premium */
@import url("./brand.css");

:root {
  --home-ink: #1a2233;              /* deep ink-blue text */
  --home-muted: #5b6577;            /* secondary text */
  --home-brand: #17324d;            /* authoritative deep blue */
  --home-deep: #0e2034;             /* darker navy */
  --home-gold: #b08d57;             /* premium bronze-gold */
  --home-gold-deep: #8a6a32;        /* deeper gold */
  --home-line: #dfe4ec;             /* hairline */
  --home-paper: #f6f8fb;            /* linen paper */
  --home-navy: #0d1b2a;             /* hero panel navy */
  --home-navy-2: #16283c;           /* hero panel navy light */
  --home-danger: #b42318;           /* pain accent red */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.home-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--home-ink);
  background:
    radial-gradient(1100px 520px at 14% -14%, rgba(23, 50, 77, 0.18), transparent 60%),
    radial-gradient(900px 480px at 100% 4%, rgba(176, 141, 87, 0.12), transparent 54%),
    linear-gradient(180deg, #fbfcfe 0%, var(--home-paper) 42%, #e9eef5 100%);
  animation: home-in 0.5s ease both;
  position: relative;
  overflow-x: hidden;
}

/* Ambient code rain + glow mesh */
.home-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#homeCodeRain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.home-ambient-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 35% at 72% 18%, rgba(176, 141, 87, 0.14), transparent 60%),
    radial-gradient(35% 30% at 18% 72%, rgba(23, 50, 77, 0.12), transparent 55%);
  animation: ambient-drift 24s ease-in-out infinite alternate;
}
@keyframes ambient-drift {
  from { transform: translate3d(-1%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

.home-nav,
main,
.home-foot,
.fb-fab,
.fb-drawer,
.fb-drawer-mask {
  position: relative;
  z-index: 1;
}

@keyframes home-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 1.6rem;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgba(176, 141, 87, 0.22);
}

.nav-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--home-ink);
  transition: transform 0.2s ease;
}
.nav-brand:hover { transform: translateY(-1px); }

.nav-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.08em;
  color: var(--home-deep);
}

.nav-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--home-gold-deep);
  text-transform: uppercase;
  border: 1px solid rgba(176, 141, 87, 0.45);
  border-radius: 3px;
  padding: 0.14rem 0.4rem;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.78rem;
  border-radius: 8px;
}
.nav-links a:hover {
  background: rgba(23, 50, 77, 0.07);
  color: var(--home-ink);
}

/* Hero — pain-driven brand message, navy authority panel */
.hero {
  min-height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 1.5rem 3.5rem 0.25rem;
  animation: rise 0.55s ease 0.08s both;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: var(--home-gold-deep);
  text-transform: uppercase;
}
.hero-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--home-gold);
}

.hero-brand {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  letter-spacing: 0.04em;
  line-height: 1.12;
  color: var(--home-ink);
  text-wrap: balance;
  background: linear-gradient(120deg, var(--home-ink) 0%, var(--home-brand) 45%, var(--home-gold-deep) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-shimmer 14s ease-in-out infinite alternate;
}
@keyframes hero-shimmer {
  from { background-position: 0% center; }
  to { background-position: 100% center; }
}

.hero-line {
  margin: 0 0 0.85rem;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--home-gold-deep);
  letter-spacing: 0.02em;
  line-height: 1.4;
  max-width: 24ch;
}

.hero-sub {
  margin: 0 0 1.9rem;
  color: var(--home-muted);
  font-size: 1.04rem;
  line-height: 1.85;
  max-width: 40ch;
}

.hero-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin: 0 0 1.6rem;
}
.cloud-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--home-gold-deep);
  background: rgba(176, 141, 87, 0.1);
  border: 1px solid rgba(176, 141, 87, 0.4);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}
.cloud-desc {
  font-size: 0.9rem;
  color: var(--home-muted);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #1d3d5c 0%, var(--home-brand) 100%);
  color: #fff;
  border: 1px solid rgba(176, 141, 87, 0.55);
  box-shadow: 0 10px 22px rgba(23, 50, 77, 0.22);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #254a6e 0%, #1a3456 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(23, 50, 77, 0.28);
  border-color: rgba(176, 141, 87, 0.9);
}
.btn-ghost {
  background: transparent;
  color: var(--home-ink);
  border: 1px solid rgba(23, 50, 77, 0.28);
}
.btn-ghost:hover {
  border-color: var(--home-gold);
  background: rgba(176, 141, 87, 0.07);
  color: var(--home-deep);
}

.hero-visual {
  position: relative;
  min-height: 480px;
  animation: rise 0.65s ease 0.16s both;
}

/* ── Live code IDE stage ── */
.code-stage {
  position: absolute;
  inset: 4% 0 8% 2%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.code-float {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(215, 179, 122, 0.75);
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(176, 141, 87, 0.35);
  border-radius: 6px;
  background: rgba(13, 27, 42, 0.55);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(10, 20, 34, 0.25);
  animation: float-drift 40s ease-in-out infinite;
  z-index: 2;
}
.code-stage.is-scene-live .code-float {
  animation-play-state: paused;
}
.code-float-a { top: 2%; right: 6%; animation-delay: 0s; }
.code-float-b { top: 38%; left: -2%; animation-delay: -2.2s; }
.code-float-c { bottom: 18%; right: 2%; animation-delay: -4.5s; }
@keyframes float-drift {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); opacity: 0.82; }
  50% { transform: translateY(-5px) rotate(0.5deg); opacity: 0.95; }
}

/* Scene switch: only inner panel slides — window stays visible for typing */
.cw-scene {
  transition: none;
}
.cw-scene.is-scene-out {
  transition:
    transform 3s cubic-bezier(0.45, 0, 0.2, 1),
    opacity 3s ease;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
}
.cw-scene.is-scene-in {
  transition:
    transform 3s cubic-bezier(0.45, 0, 0.2, 1),
    opacity 3s ease;
  transform: translateY(20px);
  opacity: 0;
}
.cw-scene.is-scene-in.is-scene-ready {
  transform: translateY(0);
  opacity: 1;
}

.code-window {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: none;
  background:
    radial-gradient(120% 140% at 90% -10%, rgba(176, 141, 87, 0.18), transparent 50%),
    linear-gradient(155deg, #0a1828 0%, var(--home-navy) 48%, var(--home-navy-2) 100%);
  box-shadow:
    0 28px 70px rgba(10, 20, 34, 0.38),
    0 0 0 1px rgba(176, 141, 87, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: code-window-in 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}
@keyframes code-window-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cw-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}
.cw-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.cw-dot-r { background: #e06c5a; }
.cw-dot-y { background: #d4a843; }
.cw-dot-g { background: #4caf7a; }
.cw-title {
  margin-left: 0.45rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(232, 236, 245, 0.55);
}
.cw-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #7ee8a8;
}
.cw-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ee8a8;
  box-shadow: 0 0 10px rgba(126, 232, 168, 0.9);
  animation: live-pulse 2.2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.cw-layout {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 220px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cw-sidebar {
  padding: 0.65rem 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}
.cw-sidebar-head {
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(232, 236, 245, 0.4);
  padding: 0.2rem 0.35rem 0.55rem;
}
.cw-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cw-tree-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(232, 236, 245, 0.55);
  padding: 0.28rem 0.35rem;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}
.cw-tree-item.is-file { padding-left: 1.1rem; }
.cw-tree-item.is-active {
  background: rgba(176, 141, 87, 0.18);
  color: #f0dcc0;
}
.cw-tree-item.is-active .cw-ico { color: var(--home-gold); }
.cw-ico { font-size: 0.55rem; opacity: 0.7; }

.cw-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cw-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
}
.cw-tab {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: rgba(232, 236, 245, 0.45);
  padding: 0.45rem 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.cw-tab.is-active {
  color: #f0dcc0;
  background: rgba(176, 141, 87, 0.12);
  border-bottom: 2px solid var(--home-gold);
  margin-bottom: -1px;
}
.cw-tab.is-dim { opacity: 0.5; }

.cw-editor-wrap {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  flex: 1;
  min-height: 180px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 1.45rem, 2.4rem 100%;
}
.cw-gutter {
  padding: 0.75rem 0.35rem 0.75rem 0;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.45rem;
  color: rgba(232, 236, 245, 0.22);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  user-select: none;
  white-space: pre;
}
.cw-editor {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.45rem;
  color: rgba(232, 236, 245, 0.92);
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 180px;
}
.cw-editor code {
  display: block;
  min-height: 140px;
  white-space: pre-wrap;
}
.cw-cursor {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--home-gold);
  animation: cursor-blink 1.4s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.tok-kw { color: #c792ea; }
.tok-fn { color: #82aaff; }
.tok-str { color: #c3e88d; }
.tok-param { color: #f07178; }
.tok-plain { color: rgba(232, 236, 245, 0.88); }

.cw-terminal {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.32);
}
.cw-term-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: rgba(232, 236, 245, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cw-term-badge {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(232, 236, 245, 0.5);
}
.cw-term-badge.is-running {
  color: #7ee8a8;
  border-color: rgba(126, 232, 168, 0.4);
  background: rgba(126, 232, 168, 0.08);
}
.cw-term-badge.is-done {
  color: var(--home-gold);
  border-color: rgba(176, 141, 87, 0.45);
  background: rgba(176, 141, 87, 0.1);
}
.cw-term-body {
  max-height: 108px;
  overflow-y: auto;
  padding: 0.55rem 0.85rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.55;
  scroll-behavior: smooth;
}
.cw-log { animation: log-in 0.6s ease both; }
@keyframes log-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
.cw-log-cmd { color: #82aaff; }
.cw-log-ok { color: #7ee8a8; }
.cw-log-info { color: rgba(232, 236, 245, 0.65); }
.cw-log-warn { color: #e6c07b; }
.cw-log-out { color: rgba(232, 236, 245, 0.78); padding-left: 0.5rem; }

.cw-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.38rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgba(232, 236, 245, 0.5);
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.cw-statusbar em.cw-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-gold);
  margin-right: 0.35rem;
  font-style: normal;
  vertical-align: middle;
  animation: live-pulse 3s ease-in-out infinite;
}
.cw-status-meta { opacity: 0.7; white-space: nowrap; }

.code-ticker {
  margin-top: 0.85rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.code-ticker-track {
  display: flex;
  gap: 0.65rem;
  width: max-content;
  animation: ticker-scroll 52s linear infinite;
}
.code-ticker-track span {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(23, 50, 77, 0.55);
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(176, 141, 87, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal .pain-card,
.reveal .stat,
.reveal .perk,
.reveal .cmp {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible .pain-card:nth-child(2) { transition-delay: 0.05s; }
.reveal.is-visible .pain-card:nth-child(3) { transition-delay: 0.1s; }
.reveal.is-visible .pain-card:nth-child(4) { transition-delay: 0.15s; }
.reveal.is-visible .pain-card:nth-child(5) { transition-delay: 0.2s; }

/* Section bands */
.band {
  max-width: 960px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 1rem;
}

.band-head {
  margin-bottom: 2.5rem;
}
.band-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--home-gold-deep);
}
.band-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--home-gold);
}
.band-head h2 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  letter-spacing: 0.02em;
  color: var(--home-deep);
}
.band-head p:not(.band-eyebrow) {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.8;
  max-width: 52ch;
}

/* Stats strip — punchy authority proof */
.band-stats {
  max-width: 960px;
  padding-top: 2.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.6rem;
  margin-top: 0.6rem;
  background:
    linear-gradient(145deg, rgba(13, 27, 42, 0.96), rgba(22, 40, 60, 0.94));
  border-radius: 14px;
  box-shadow:
    0 18px 44px rgba(10, 20, 34, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.8rem 1rem;
  border-left: 2px solid rgba(176, 141, 87, 0.55);
}
.stat b {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: #e8ecf5;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 0.86rem;
  color: rgba(232, 236, 245, 0.72);
  line-height: 1.4;
}

/* Cloud vs local — the core differentiator */
.band-cloud {
  padding-top: 2.5rem;
}
.band-cloud .band-head p { max-width: none; }

.cloud-callout {
  position: relative;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.6rem;
  border-radius: 12px;
  border-left: 4px solid var(--home-gold);
  background:
    linear-gradient(135deg, rgba(176, 141, 87, 0.1), rgba(23, 50, 77, 0.04)),
    #fff;
  box-shadow: 0 8px 24px rgba(12, 18, 34, 0.05);
}
.cloud-meta {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--home-ink);
}
.cloud-meta b {
  font-weight: 700;
  color: var(--home-brand);
}
.cloud-meta b:last-of-type {
  color: var(--home-gold-deep);
}

.cloud-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(176, 141, 87, 0.22);
  box-shadow: 0 14px 36px rgba(12, 18, 34, 0.09);
}

.cmp {
  padding: 1.7rem 1.6rem;
}
.cmp-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--home-ink);
  line-height: 1.5;
}
.cmp-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--home-danger);
  border: 1px solid rgba(180, 35, 24, 0.4);
  border-radius: 3px;
  padding: 0.16rem 0.45rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.7);
}
.cmp-tag.solved {
  color: #fff;
  background: var(--home-gold);
  border-color: var(--home-gold);
}
.cmp-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cmp-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--home-muted);
}
.cmp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-danger);
  opacity: 0.55;
}
.cmp-list li b {
  font-weight: 650;
  color: var(--home-brand);
}

.col-local {
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(180, 35, 24, 0.05), transparent 55%),
    #faf0ee;
  border-right: 1px dashed rgba(180, 35, 24, 0.4);
}
.col-cloud {
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(176, 141, 87, 0.1), transparent 55%),
    #fff;
}
.col-cloud .cmp-list li::before {
  background: var(--home-gold);
  opacity: 1;
}
.col-cloud .cmp-list li b::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.4em;
  border-right: 2px solid var(--home-gold);
  border-bottom: 2px solid var(--home-gold);
  transform: rotate(45deg) translateY(-2px);
}

.cmp-title.vs {
  align-self: center;
  margin: 0 1.1rem;
  flex-direction: column;
  gap: 0;
  white-space: nowrap;
}
.cmp-title.vs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #1d3d5c 0%, var(--home-brand) 100%);
  box-shadow: 0 8px 20px rgba(23, 50, 77, 0.3);
}

.cloud-perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.perk {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1.3rem;
  border-radius: 12px;
  border: 1px solid rgba(176, 141, 87, 0.22);
  background: #fff;
}
.perk b {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--home-deep);
}
.perk b::before {
  content: "✦";
  color: var(--home-gold);
}
.perk span {
  font-size: 0.9rem;
  color: var(--home-muted);
  line-height: 1.7;
}

/* Pain → fix cards */
.pain-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 0;
  margin-bottom: 1.4rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(176, 141, 87, 0.22);
  background: #fff;
  box-shadow: 0 10px 30px rgba(12, 18, 34, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pain-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(12, 18, 34, 0.13);
}

.pain-side {
  position: relative;
  padding: 1.7rem 1.6rem;
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(180, 35, 24, 0.05), transparent 55%),
    #faf0ee;
  border-right: 1px dashed rgba(180, 35, 24, 0.4);
}
.pain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--home-danger);
  border: 1px solid rgba(180, 35, 24, 0.4);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  background: rgba(255, 255, 255, 0.6);
}
.pain-side h3 {
  margin: 0 0 0.55rem;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--home-deep);
}
.pain-side p {
  margin: 0;
  color: #7a6a66;
  line-height: 1.8;
  font-size: 0.98rem;
}

.fix-side {
  position: relative;
  padding: 1.7rem 1.8rem 1.7rem 2.2rem;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(176, 141, 87, 0.1), transparent 55%),
    #fff;
}
.fix-arrow {
  position: absolute;
  left: -0.75rem;
  top: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--home-gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(176, 141, 87, 0.4);
}
.fix-side h4 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--home-brand);
}
.fix-side p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.8;
  font-size: 0.98rem;
}

/* Emphasis / closing CTA */
.band-emphasis {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.emphasis-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.9rem 0 0;
  border-top: 1px solid rgba(176, 141, 87, 0.2);
}

.emphasis-lead {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  color: var(--home-ink);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.home-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1.6rem;
  color: var(--home-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(176, 141, 87, 0.22);
}
.home-foot .sep { opacity: 0.5; }
.home-foot a { color: var(--home-gold-deep); text-decoration: none; }
.home-foot a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0.5rem;
  }
  .hero-copy {
    padding: 2rem 0 1.25rem;
  }
  .hero-visual {
    min-height: 360px;
    margin: 0 -0.5rem 2rem;
  }
  .code-stage {
    inset: 0;
  }
  .code-float { display: none; }
  .cw-layout {
    grid-template-columns: 1fr;
  }
  .cw-sidebar { display: none; }
  .cw-editor-wrap { min-height: 150px; }
  .cw-term-body { max-height: 88px; }
  .pain-card {
    grid-template-columns: 1fr;
  }
  .pain-side {
    border-right: 0;
    border-bottom: 1px dashed rgba(180, 35, 24, 0.4);
  }
  .fix-arrow {
    left: 1.6rem;
    top: auto;
    bottom: -0.75rem;
    transform: rotate(90deg);
  }
  .fix-side {
    padding-left: 1.8rem;
  }
  .cloud-compare {
    grid-template-columns: 1fr;
  }
  .cmp-title.vs {
    margin: 0 auto;
    flex-direction: row;
    padding: 0;
  }
  .cmp-title.vs span {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.1rem;
  }
  .col-local {
    border-right: 0;
    border-bottom: 1px dashed rgba(180, 35, 24, 0.4);
  }
}

@media (max-width: 560px) {
  .home-nav { padding: 0.85rem 1rem; }
  .nav-links a { padding: 0.35rem 0.5rem; font-size: 0.82rem; }
  .hero-brand { letter-spacing: 0.03em; }
  .stats-grid { grid-template-columns: 1fr 1fr; padding: 1.2rem; }
}

/* ---- Feedback: floating entry + authority drawer ---- */
.fb-locked { overflow: hidden; }

.fb-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid rgba(176, 141, 87, 0.6);
  border-radius: 999px;
  background: var(--home-navy);
  color: #eef2f7;
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Consolas, monospace);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(13, 27, 42, 0.4), 0 0 0 1px rgba(176, 141, 87, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.fb-fab:hover {
  transform: translateY(-2px);
  border-color: var(--home-gold);
  box-shadow: 0 12px 34px rgba(13, 27, 42, 0.5), 0 0 18px rgba(176, 141, 87, 0.4);
}
.fb-fab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-gold);
  box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.24);
}
.fb-fab-glyph { color: var(--home-gold); font-size: 1rem; line-height: 1; }
.fb-fab-text { white-space: nowrap; }

/* drawer mask */
.fb-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(10, 12, 18, 0.5);
  backdrop-filter: blur(2px);
}
.fb-drawer-mask.is-open { display: block; }

/* authority drawer: compact, content-sized, centered right */
.fb-drawer {
  position: fixed;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  z-index: 110;
  width: min(400px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  display: none;
  flex-direction: column;
  background: #fbfcff;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: -18px 0 60px rgba(10, 12, 18, 0.35), 0 24px 60px rgba(10, 12, 18, 0.25);
}
.fb-drawer.is-open {
  display: flex;
  animation: fb-pop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes fb-pop {
  from { transform: translateY(-50%) translateX(24px) scale(0.98); opacity: 0; }
  to { transform: translateY(-50%) translateX(0) scale(1); opacity: 1; }
}
@media (max-width: 480px) {
  .fb-drawer {
    right: 1rem;
    left: 1rem;
    width: auto;
  }
  .fb-drawer.is-open { display: flex; }
}

.fb-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  background: var(--home-navy);
  color: #eef2f7;
  border-bottom: 1px solid rgba(176, 141, 87, 0.3);
}
.fb-drawer-flag { display: flex; align-items: baseline; gap: 0.6rem; }
.fb-drawer-badge {
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Consolas, monospace);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: var(--home-gold);
  border: 1px solid rgba(176, 141, 87, 0.6);
  border-radius: 3px;
  padding: 0.16rem 0.4rem;
}
.fb-drawer-title {
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Consolas, monospace);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.fb-drawer-close {
  background: none;
  border: 0;
  color: #9aa4b0;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.35rem;
}
.fb-drawer-close:hover { color: #fff; }

.fb-form {
  flex: 0 1 auto;
  min-height: 0;
  padding: 1.5rem 1.35rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  overflow-y: auto;
}
.fb-field { display: flex; flex-direction: column; gap: 0.5rem; }
.fb-field-label {
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Consolas, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #3c444f;
}
.fb-field-label i {
  font-style: normal;
  font-family: var(--ui, -apple-system, "Segoe UI", sans-serif);
  font-weight: 450;
  font-size: 0.72rem;
  letter-spacing: 0;
  color: #9aa4b0;
}
.fb-input {
  font: inherit;
  font-size: 0.95rem;
  color: #1f2937;
  background: #fff;
  border: 1px solid #d4dae2;
  border-radius: 7px;
  padding: 0.65rem 0.8rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fb-input:focus {
  outline: none;
  border-color: var(--home-gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.18);
}
.fb-textarea { resize: vertical; min-height: 150px; }
.fb-count {
  align-self: flex-end;
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Consolas, monospace);
  font-size: 0.7rem;
  color: #9aa4b0;
  margin-top: -0.3rem;
}

.fb-form-actions { display: flex; flex-direction: column; gap: 0.7rem; }
.fb-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #1d3d5c 0%, var(--home-brand) 100%);
  color: #fff;
  border: 1px solid rgba(176, 141, 87, 0.5);
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Consolas, monospace);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.fb-submit:hover { background: linear-gradient(180deg, #254a6e 0%, #1a3456 100%); box-shadow: 0 4px 18px rgba(13, 27, 42, 0.32); }
.fb-submit:disabled { opacity: 0.6; cursor: default; box-shadow: none; }
.fb-submit-glyph { color: var(--home-gold); }
.fb-msg { margin: 0; font-size: 0.9rem; }
.fb-msg.is-ok { color: #1a7f37; }
.fb-msg.is-error { color: #c0392b; }

.fb-drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.35rem;
  border-top: 1px solid var(--home-line);
  background: #f4f6fa;
}
.fb-foot-key {
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Consolas, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #7a8491;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  padding: 0.18rem 0.45rem;
}
.fb-foot-note { font-size: 0.72rem; color: #9aa4b0; }

@media (max-width: 480px) {
  .fb-fab { right: 1rem; bottom: 1rem; padding: 0.6rem 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand,
  .code-ticker-track,
  .code-float,
  .home-ambient-glow,
  .cw-cursor,
  .cw-live-dot,
  .cw-statusbar em.cw-status-dot {
    animation: none !important;
  }
  .cw-scene.is-scene-out,
  .cw-scene.is-scene-in,
  .cw-scene.is-scene-in.is-scene-ready {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #homeCodeRain { display: none; }
}
