/* restapi.wtf apex landing — site-specific styles.
   Shared tokens, brand mark, header/footer in /shared/. */

/* ---------- Header extras: status dot + meta strip ---------- */

.topbar-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
}
.topbar-meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2200ms ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 84, 0, 0.6); }
  80%  { box-shadow: 0 0 0 7px rgba(255, 84, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 84, 0, 0); }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 80px;
  align-items: end;
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 48px; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 700ms cubic-bezier(.2,.7,.2,1) 80ms forwards;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.93;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--fg);
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 800ms cubic-bezier(.2,.7,.2,1) 160ms forwards;
}
.display em {
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 42ch;
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 800ms cubic-bezier(.2,.7,.2,1) 320ms forwards;
}
.hero-aside p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-soft);
}
.hero-aside p strong { color: var(--fg); font-weight: 600; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Magazine section pattern ---------- */

.section {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: 0; }
.section-head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 80px;
  align-items: baseline;
  margin-bottom: 48px;
}
@media (max-width: 920px) {
  .section { padding: 48px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
}
.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}
.section-num .digits { color: var(--accent); }
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 8px 0 0;
  color: var(--fg);
}
.section-title em { font-style: italic; color: var(--accent); }
.section-deck {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
  max-width: 38ch;
}

/* ---------- Landing card grid ---------- */

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.landing-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 28px 28px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-decoration: none;
  position: relative;
  transition: background 200ms;
}
.landing-card:hover {
  background: var(--bg-elev);
  text-decoration: none;
}
.landing-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1);
}
.landing-card:hover::before { transform: scaleX(1); }

.landing-card-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.landing-card--feature .landing-card-num { color: var(--accent); }
.landing-card-name {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 6px;
}
.landing-card-name .b-br   { color: var(--fg-muted); }
.landing-card-name .b-tag  { color: var(--fg); }
.landing-card-name .b-attr { color: var(--fg-muted); }
.landing-card-name .b-eq   { color: var(--fg-muted); }
.landing-card-name .b-str  { color: var(--accent); }
.landing-card-blurb {
  color: var(--fg-soft);
  font-size: 14.5px;
  line-height: 1.55;
  margin-top: 6px;
  flex: 1;
}
.landing-card-link {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ---------- Triptych ---------- */

.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 920px) { .triptych { grid-template-columns: 1fr; } }

.cap {
  padding: 36px 32px 36px 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cap:nth-child(2) { padding-left: 32px; }
.cap:nth-child(3) { padding-left: 32px; border-right: 0; }
@media (max-width: 920px) {
  .cap { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .cap:nth-child(2), .cap:nth-child(3) { padding-left: 0; }
  .cap:last-child { border-bottom: 0; }
}
.cap-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cap-label .num { color: var(--fg-muted); }
.cap-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--fg);
}
.cap-title em { font-style: italic; color: var(--accent); }
.cap-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
}
