/* ═══════════════════════════════════════════════════════════════════
   srefix-diagnosis — additions on top of styles.css
   Components specific to this landing: terminal, arch grid, step grid,
   final CTA, footer.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Override brand gradient to blue/violet (no pink) ─────────────── */
.brand-text {
  background: linear-gradient(100deg,
    #0071e3 0%,
    #5e8eff 50%,
    #9d6bff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* Disable PongPath's pink drop-shadow on logo */
.nav-logo svg { filter: drop-shadow(0 0 6px rgba(94, 142, 255, 0.18)); }

/* ── Eyebrow on light bg (for sections without spotlight wrap) ───── */
.eyebrow-dark {
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO TERMINAL MOCKUP
   ═══════════════════════════════════════════════════════════════════ */
.hero-terminal {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.term-frame {
  width: 100%;
  max-width: 720px;
  background: #1d1d1f;
  border-radius: 14px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  transition: transform 0.5s var(--ease-apple);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  background: #2c2c2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.term-dot.red    { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green  { background: #28c840; }

.term-title {
  flex: 1;
  text-align: center;
  color: #98989d;
  font-size: 12px;
  letter-spacing: 0.02em;
  font-family: var(--font-display);
  margin-right: 56px; /* offset for 3 dots' width */
}

.term-body {
  padding: 22px 26px;
  color: #d2d2d7;
  font-size: 13.5px;
  line-height: 1.7;
}

.term-line {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.term-line.user {
  color: #f5f5f7;
  font-weight: 500;
}

.term-line.tool {
  color: #98989d;
}

.term-line.ok {
  color: #d2d2d7;
}

.tool-tag {
  color: #5e8eff;
  font-weight: 600;
  margin-right: 6px;
}

.ok-tag {
  color: #28c840;
  font-weight: 600;
  margin-right: 6px;
}

.term-line.cursor::after {
  content: "▋";
  color: #5e8eff;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink {
  to { visibility: hidden; }
}

/* ═══════════════════════════════════════════════════════════════════
   ARCHITECTURE GRID
   ═══════════════════════════════════════════════════════════════════ */
.arch-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: var(--content-w);
  margin-left: auto;
  margin-right: auto;
}

.arch-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: left;
  transition: background-color 0.3s var(--ease-apple),
              transform 0.4s var(--ease-apple);
}
.arch-card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

/* ── Claude hero card (sits above the 4-layer grid) ─────────────── */
.arch-claude {
  margin: 56px auto 0;
  max-width: 640px;
  padding: 32px 36px;
  text-align: center;
  background: linear-gradient(135deg,
    rgba(0, 113, 227, 0.20) 0%,
    rgba(157, 107, 255, 0.16) 100%);
  border: 1px solid rgba(94, 142, 255, 0.34);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px rgba(94, 142, 255, 0.10);
}
.arch-claude h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f5f5f7;
  margin: 8px 0 10px;
}
.arch-claude p {
  font-size: 15px;
  line-height: 1.55;
  color: #c7c7cc;
  max-width: 540px;
  margin: 0 auto;
}

.arch-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b1ff;
  background: rgba(157, 107, 255, 0.18);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ── Vertical connector between Claude card and the 4-layer grid ── */
.arch-arrow {
  display: flex;
  justify-content: center;
  margin: 20px 0 4px;
}
.arch-arrow span {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg,
    rgba(94, 142, 255, 0.55) 0%,
    rgba(94, 142, 255, 0) 100%);
}

/* Tighten arch-grid spacing now that it sits below Claude */
.arch-grid { margin-top: 16px; }

/* ── Pre-flight (Verify) — small, separate from the runtime grid ── */
.arch-preflight {
  margin: 36px auto 0;
  max-width: 720px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  text-align: left;
}
.arch-preflight h4 {
  font-size: 17px;
  font-weight: 600;
  color: #f5f5f7;
  margin: 6px 0 4px;
  letter-spacing: -0.015em;
}
.arch-preflight p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #98989d;
}

.arch-tag-soft {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #98989d;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.arch-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #2997ff;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.arch-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f5f5f7;
  margin-bottom: 8px;
}

.arch-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: #a1a1a6;
}

/* ═══════════════════════════════════════════════════════════════════
   STEP GRID — Quick Start
   ═══════════════════════════════════════════════════════════════════ */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 48px;
}

.step-card {
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  position: relative;
  transition: transform 0.4s var(--ease-apple),
              box-shadow 0.3s var(--ease-apple);
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-card > p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray);
  margin-bottom: 16px;
}

.code-snippet {
  background: #1d1d1f;
  color: #d2d2d7;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}
.code-snippet code {
  font-family: inherit;
  color: inherit;
  background: none;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION FOOTER (centered text-link below grids)
   ═══════════════════════════════════════════════════════════════════ */
.section-footer {
  margin-top: 36px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════════════════════════════ */
.final-cta {
  padding: 100px 22px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--offwhite) 100%);
}

.final-inner {
  max-width: 760px;
  margin: 0 auto;
}

.final-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 16px;
}

.final-sub {
  font-size: 19px;
  line-height: 1.45;
  color: var(--gray);
  margin-bottom: 28px;
}

.final-links {
  display: inline-flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--offwhite);
  border-top: 1px solid var(--gray-line);
  padding: 44px 0 36px;
  font-size: 13px;
  color: var(--gray);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.footer-brand .brand-text {
  font-size: 17px;
  font-weight: 600;
}

.footer-brand p {
  margin-top: 4px;
  color: var(--gray);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--gray);
  transition: color 0.25s var(--ease-apple);
}
.footer-links a:hover {
  color: var(--blue);
}

.footer-copy {
  color: var(--gray-2);
  font-size: 12px;
  margin-top: 6px;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .footer-copy {
    width: 100%;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--gray-line);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE TWEAKS
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .term-body {
    padding: 16px 18px;
    font-size: 12px;
  }
  .term-title {
    margin-right: 40px;
  }
  .arch-card,
  .step-card {
    padding: 24px 20px;
  }
}
