/* ===================================================================
   REMOTEMETHOD · v1.4.0
   Terminal-inspired B2B aesthetic · monospace · dark
   =================================================================== */

:root {
  /* Palette — deep terminal blacks with sharp green/blue accents */
  --bg:           #0a0d0f;
  --bg-soft:      #10141a;
  --bg-card:      #0e1217;
  --bg-elev:      #161b22;
  --line:         #1f2630;
  --line-soft:    #161c25;

  --fg:           #d6dbe2;
  --fg-soft:      #8b95a3;
  --fg-dim:       #5a6573;
  --fg-faint:     #3a424d;

  --accent:       #5af0a0;     /* primary green — terminal phosphor */
  --accent-deep:  #2dc77b;
  --accent-glow:  rgba(90, 240, 160, 0.25);

  --blue:         #7aa2ff;
  --amber:        #f5c97a;
  --red:          #ff5a5a;
  --magenta:      #d77aff;

  --mono:         'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(1100px 500px at 80% -10%, rgba(90, 240, 160, 0.06), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(122, 162, 255, 0.05), transparent 60%),
    linear-gradient(180deg, #0a0d0f, #0a0d0f);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Subtle terminal scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.012) 0,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 1;
  mix-blend-mode: overlay;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ===================================================================
   TOP BAR
   =================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-totem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.brand-totem svg { display: block; }
.prompt {
  color: var(--accent);
  font-size: 18px;
  animation: blink 1.6s steps(1) infinite;
}
.brand-name { color: var(--fg); font-size: 15px; }
.version    { color: var(--fg-dim); font-size: 11px; letter-spacing: 0.08em; }

.topnav {
  display: flex;
  gap: 22px;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-soft);
}
.topnav a {
  transition: color 160ms ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.topnav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.topstatus {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-soft);
}
.topstatus .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes blink { 50% { opacity: 0.2; } }
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.55; transform: scale(0.85); }
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.meta-line { color: var(--fg-soft); }
.meta-sep  { color: var(--fg-faint); }
.meta-line:last-child { color: var(--accent); }

.ascii-banner {
  font-size: 11px;
  line-height: 1.25;
  color: var(--fg-dim);
  margin: 0 0 28px;
  white-space: pre;
  overflow-x: auto;
  padding-bottom: 4px;
}
.ascii-banner::-webkit-scrollbar { height: 4px; }

.hero-title {
  font-family: var(--mono);
  font-size: clamp(36px, 6.5vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 28px;
  color: var(--fg);
}
.hero-title .comment { color: var(--fg-faint); font-weight: 500; }
.hero-title .hero-accent {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}
.hero-title .hero-faded { color: var(--fg-soft); font-weight: 500; }

.hero-sub {
  max-width: 760px;
  font-size: 16px;
  color: var(--fg-soft);
  margin: 0 0 36px;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.stat {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat:last-child { border-right: none; }
.stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
}
.stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.status-ok { color: var(--accent); }

.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: all 180ms ease;
  text-decoration: none;
  position: relative;
}
.btn-primary {
  background: var(--accent);
  color: #06170e;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 0 24px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-soft);
  border-color: var(--line);
}
.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--fg-soft);
  background: var(--bg-elev);
}
.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg-dim);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-block { width: 100%; }

/* Ticker */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
  margin: 0 -32px;
  padding-left: 32px;
  padding-right: 32px;
}
.ticker-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: ticker 50s linear infinite;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}
.ticker-track span { flex-shrink: 0; }
.ticker-track span:nth-child(odd) { color: var(--accent); opacity: 0.6; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================================================================
   GENERIC SECTION
   =================================================================== */
.section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 48px;
}
.section-num {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--fg);
}
.section-sub {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  font-style: italic;
}

/* ===================================================================
   DIAGRAM CARDS (shared)
   =================================================================== */
.diagram-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  margin-bottom: 32px;
  overflow: hidden;
}
.diagram-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.diagram-tag    { color: var(--accent); font-weight: 700; }
.diagram-title  { color: var(--fg); flex: 1; font-weight: 600; }
.diagram-handle { color: var(--fg-dim); }
.diagram-body   { padding: 32px; }

/* ===================================================================
   DIAGRAM 1 · COMPARE
   =================================================================== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.compare-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg);
  position: relative;
}
.compare-bad  { background: linear-gradient(180deg, rgba(255, 90, 90, 0.04), transparent); }
.compare-good { background: linear-gradient(180deg, rgba(90, 240, 160, 0.04), transparent); }

.compare-head h3 {
  margin: 8px 0 4px;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.compare-tag {
  margin: 0;
  color: var(--fg-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.bad-badge, .good-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  border: 1px solid;
}
.bad-badge  { color: var(--red);    border-color: var(--red); }
.good-badge { color: var(--accent); border-color: var(--accent); }

.flow-svg {
  width: 100%;
  height: auto;
  display: block;
}

.flow-node rect {
  stroke-width: 1;
  transition: all 240ms ease;
}
.node-bad rect {
  fill: rgba(255, 90, 90, 0.08);
  stroke: rgba(255, 90, 90, 0.5);
}
.node-good rect {
  fill: rgba(90, 240, 160, 0.08);
  stroke: rgba(90, 240, 160, 0.5);
}
.flow-node:hover rect {
  filter: brightness(1.5);
}
.node-good:hover rect {
  fill: rgba(90, 240, 160, 0.18);
}
.node-bad:hover rect {
  fill: rgba(255, 90, 90, 0.18);
}

.node-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  fill: var(--fg);
  letter-spacing: 0.04em;
}
.node-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  fill: var(--fg-dim);
  letter-spacing: 0.04em;
}

.flow-arrow {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
.arrow-bad  { stroke: var(--red); }
.arrow-good { stroke: var(--accent); animation: dashflow 2s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -16; } }

.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.compare-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--fg-soft);
}
.compare-list li:last-child { border-bottom: none; }
.x      { color: var(--red); font-weight: 700; flex-shrink: 0; }
.check  { color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ===================================================================
   DIAGRAM 2 · ARCHITECTURE
   =================================================================== */
.arch-stage {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.arch-svg {
  width: 100%;
  height: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  display: block;
}

.lane-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  fill: var(--fg-dim);
}
.lane-line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.arch-node rect {
  fill: var(--bg-elev);
  stroke: var(--line);
  stroke-width: 1;
  transition: all 260ms ease;
}
.arch-listener rect {
  stroke: var(--accent);
  fill: rgba(90, 240, 160, 0.06);
}
.arch-pool rect {
  stroke: var(--blue);
  fill: rgba(122, 162, 255, 0.06);
}
.arch-step.active rect {
  stroke: var(--accent);
  fill: rgba(90, 240, 160, 0.14);
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.arch-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  fill: var(--fg);
  letter-spacing: 0.04em;
}
.arch-sub {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--fg-dim);
  letter-spacing: 0.03em;
}

.arch-arrow {
  fill: none;
  stroke-width: 1.5;
}
.arrow-main {
  stroke: var(--accent);
  stroke-dasharray: 5 4;
  animation: dashflow 2s linear infinite;
}
.arrow-return {
  stroke: var(--blue);
  stroke-dasharray: 3 3;
  animation: dashflow 3s linear infinite reverse;
}
.arch-edge-label {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--accent);
  letter-spacing: 0.04em;
}
.arch-edge-return { fill: var(--blue); }

.arch-legend {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: stretch;
}
.legend-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legend-tab {
  text-align: left;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg-soft);
  cursor: pointer;
  transition: all 180ms ease;
}
.legend-tab:hover {
  border-color: var(--fg-dim);
  color: var(--fg);
}
.legend-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(90, 240, 160, 0.06);
}
.legend-bodies {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 22px;
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.7;
}
.legend-body { display: none; }
.legend-body.active { display: block; }
.legend-body strong { color: var(--fg); font-weight: 600; }
.legend-body em     { color: var(--accent); font-style: normal; font-weight: 600; }

/* ===================================================================
   FEATURES NODES
   =================================================================== */
.nodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.node-card {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background 200ms ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.node-card:hover {
  background: var(--bg-elev);
}
.node-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 240ms ease;
}
.node-card:hover::before { width: 100%; }

.node-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}
.node-tag { color: var(--accent); font-weight: 700; }
.node-card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.node-card p {
  margin: 0;
  color: var(--fg-soft);
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}
.node-code {
  display: inline-block;
  padding: 6px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  align-self: flex-start;
}

/* ===================================================================
   USE CASES
   =================================================================== */
.usecase-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  flex-wrap: wrap;
}
.uc-tab {
  flex: 1;
  min-width: 180px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  color: var(--fg-soft);
  cursor: pointer;
  transition: all 180ms ease;
}
.uc-tab:last-child { border-right: none; }
.uc-tab:hover { color: var(--fg); background: var(--bg-elev); }
.uc-tab.active {
  color: var(--accent);
  background: rgba(90, 240, 160, 0.05);
  border-bottom: 2px solid var(--accent);
}

.usecase-stage {
  padding: 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.uc-svg {
  width: 100%;
  height: auto;
  display: block;
}
.uc-col-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  fill: var(--fg-dim);
}
.uc-callers > g rect,
.uc-steps rect {
  fill: var(--bg-elev);
  stroke: var(--line);
  transition: all 220ms ease;
}
.uc-caller { display: none; }
.uc-caller.active { display: block; }
.uc-caller.active rect {
  stroke: var(--accent);
  fill: rgba(90, 240, 160, 0.08);
}
.uc-api-rect {
  fill: rgba(90, 240, 160, 0.06);
  stroke: var(--accent);
  stroke-width: 1.5;
}
.uc-node-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  fill: var(--fg);
  letter-spacing: 0.04em;
}
.uc-api-title { fill: var(--accent); }
.uc-node-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  fill: var(--fg-dim);
}
.uc-arrow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  animation: dashflow 2s linear infinite;
}
.uc-foot {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  fill: var(--accent);
  letter-spacing: 0.08em;
}
.uc-foot-faded {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--fg-dim);
  letter-spacing: 0.04em;
}

.usecase-detail {
  padding: 24px 32px;
  background: var(--bg-elev);
  position: relative;
  min-height: 100px;
}
.uc-body { display: none; }
.uc-body.active { display: block; }
.uc-body-label {
  display: block;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.uc-body p { margin: 0; color: var(--fg-soft); font-size: 14px; line-height: 1.7; }
.uc-body code {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 2px 6px;
  font-size: 12px;
  color: var(--accent);
}

/* ===================================================================
   CODE BLOCK
   =================================================================== */
.code-card {
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.code-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.code-tag    { color: var(--accent); font-weight: 700; }
.code-handle { color: var(--fg-dim); }
.code-block {
  margin: 0;
  padding: 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg);
  overflow-x: auto;
}
.code-block code { white-space: pre; }
.c-comment { color: var(--fg-dim); font-style: italic; }
.c-key     { color: var(--magenta); font-weight: 600; }
.c-flag    { color: var(--blue); }
.c-str     { color: var(--accent); }

/* ===================================================================
   INTEGRATIONS
   =================================================================== */
.integ-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.integ-card {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 200ms ease;
  position: relative;
}
.integ-card:hover { background: var(--bg-elev); }
.integ-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.integ-num    { color: var(--fg-dim); font-weight: 700; }
.integ-status { color: var(--accent); font-weight: 700; }
.integ-card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.integ-card p {
  margin: 0;
  color: var(--fg-soft);
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}
.integ-card p code {
  background: var(--bg-elev);
  padding: 1px 5px;
  font-size: 11px;
  color: var(--accent);
}
.integ-card > code {
  display: inline-block;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 2px solid var(--blue);
  font-size: 12px;
  color: var(--blue);
  align-self: flex-start;
}

/* ===================================================================
   SECURITY
   =================================================================== */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.sec-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  align-items: flex-start;
}
.sec-row:nth-child(2n) { border-right: none; }
.sec-key {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.sec-row h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.sec-row p {
  margin: 0;
  font-size: 13px;
  color: var(--fg-soft);
  line-height: 1.6;
}

/* ===================================================================
   PRICING
   =================================================================== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.price-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  transition: all 240ms ease;
}
.price-card:hover {
  border-color: var(--fg-dim);
  transform: translateY(-2px);
}
.price-card-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(90, 240, 160, 0.05), var(--bg-card));
  box-shadow: 0 0 0 1px var(--accent), 0 0 40px rgba(90, 240, 160, 0.08);
}
.price-banner {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--accent);
  color: #06170e;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.price-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}
.price-head h3 {
  margin: 4px 0 4px;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.price-tagline {
  margin: 0;
  font-size: 12px;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.price-currency {
  font-size: 22px;
  color: var(--fg-soft);
}
.price-value {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
}
.price-card-featured .price-value { color: var(--accent); }
.price-period {
  font-size: 14px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--fg-soft);
}
.dim { color: var(--fg-faint); }

.price-foot {
  text-align: center;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ===================================================================
   CONTACT
   =================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-shell {
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 18px 22px;
  margin: 0 0 24px;
  white-space: pre-wrap;
  overflow-x: auto;
}
.contact-intro p {
  color: var(--fg-soft);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  color: var(--fg);
}
.contact-key {
  color: var(--fg-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 0;
}
.form-head {
  display: flex;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.form-tag    { color: var(--accent); font-weight: 700; }
.form-handle { color: var(--fg-dim); }

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.field-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  padding: 8px 0;
  outline: none;
  resize: vertical;
  transition: border-color 180ms ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}
.field select {
  background: var(--bg-card);
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
                    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 14px) center, calc(100% - 8px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.contact-form .btn {
  margin: 18px 22px;
  width: calc(100% - 44px);
}
.form-foot {
  margin: 0;
  padding: 0 22px 18px;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-ascii {
  font-size: 11px;
  line-height: 1.3;
  color: var(--fg-dim);
  margin: 0 0 24px;
  text-align: center;
  white-space: pre;
  overflow-x: auto;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.footer-row span:last-child { color: var(--accent); }

/* ===================================================================
   ANIMATIONS · scroll reveal
   =================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .topnav { display: none; }
  .topbar-inner { grid-template-columns: auto 1fr; }
  .nodes-grid, .integ-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .price-card-featured { order: -1; }
  .compare-grid { grid-template-columns: 1fr; }
  .arch-legend  { grid-template-columns: 1fr; }
  .legend-tabs  { flex-direction: row; flex-wrap: wrap; }
  .legend-tab   { flex: 1 1 calc(50% - 6px); }
  .contact-grid { grid-template-columns: 1fr; }
  .sec-grid     { grid-template-columns: 1fr; }
  .sec-row { border-right: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .topbar-inner { padding: 12px 20px; }
  .hero { padding: 48px 0 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .ascii-banner, .footer-ascii { font-size: 8px; }
  .section { padding: 64px 0; }
  .nodes-grid, .integ-grid { grid-template-columns: 1fr; }
  .diagram-body, .usecase-stage, .arch-svg { padding: 16px; }
  .uc-tab { min-width: 50%; flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .topstatus { font-size: 10px; }
  .ticker { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
