/* ─── Rift landing — Coursion design language (shared with Forge/DesignKit) ─── */

:root {
  --bg-top:    #0E1224;
  --bg-mid:    #131530;
  --bg-bottom: #170F31;

  --text-primary:   #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.58);
  --text-tertiary:  rgba(255, 255, 255, 0.38);

  --card-fill:        rgba(255, 255, 255, 0.04);
  --card-fill-strong: rgba(255, 255, 255, 0.06);
  --card-stroke:      rgba(255, 255, 255, 0.09);

  --forge-pink:   #FF5189;
  --forge-purple: #C75CEB;
  --forge-blue:   #389EFF;

  --brand-gradient:
    linear-gradient(90deg, var(--forge-pink), var(--forge-purple), var(--forge-blue));
  --brand-gradient-diag:
    linear-gradient(135deg, var(--forge-pink), var(--forge-purple), var(--forge-blue));
  --brand-soft:
    linear-gradient(90deg, rgba(255, 81, 137, 0.22), rgba(199, 92, 235, 0.22));

  --radius-card: 14px;
  --radius-btn:  12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-top);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── background: gradient + soft colored blooms ─── */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 5% 0%,
      rgba(255, 81, 137, 0.18), transparent 52%),
    radial-gradient(circle at 100% 100%,
      rgba(56, 158, 255, 0.14), transparent 56%),
    radial-gradient(circle at 100% 20%,
      rgba(199, 92, 235, 0.14), transparent 48%),
    linear-gradient(135deg,
      var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bottom) 100%);
}

/* ─── layout ─── */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

nav.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
}

nav.top .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

nav.top .brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

nav.top .links {
  display: flex;
  gap: 22px;
}

nav.top a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
nav.top a:hover { color: var(--text-primary); }

/* ─── hero ─── */

.hero {
  text-align: center;
  padding: 72px 0 64px;
}

.hero .app-icon {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 16px 40px rgba(199, 92, 235, 0.38))
          drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.hero .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 22px;
}

.hero h1 .grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
}

/* ─── CTA grid: brew install (left) + download (right) ─── */

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  max-width: 680px;
  margin: 0 auto;
}

.install-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-btn);
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 13px;
  text-align: left;
  min-width: 0;
  height: 48px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.install-cmd:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.install-cmd .prompt {
  color: var(--text-tertiary);
  flex-shrink: 0;
  font-weight: 600;
}

.install-cmd code {
  color: var(--text-primary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.copy-btn.copied {
  color: #6EE7B7;
  border-color: rgba(110, 231, 183, 0.4);
  background: rgba(110, 231, 183, 0.08);
}

@media (max-width: 560px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn.primary {
  background: var(--brand-gradient-diag);
  box-shadow:
    0 8px 24px rgba(255, 81, 137, 0.28),
    0 8px 24px rgba(56, 158, 255, 0.22);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.primary:active { transform: translateY(0) scale(0.98); }

.btn.outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}
.btn.outline:hover { background: rgba(255, 255, 255, 0.09); }

.cta-grid .btn {
  height: 48px;
  padding: 0 22px;
}

/* ─── hero stats ─── */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 8px auto 0;
  max-width: 720px;
  padding: 18px 24px;
  background: var(--card-fill);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-stats.three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 560px;
}

.hero-stats .stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* The HTML `hidden` attribute on the downloads stat needs to win over
   the .stat { display: flex } above. */
.hero-stats .stat[hidden] {
  display: none;
}

.hero-stats .stat strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats .stat span {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* ─── section headers ─── */

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

section h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

section p.lede {
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 620px;
}

section {
  padding: 64px 0;
}

section.tight { padding: 40px 0; }

hr.sep {
  border: 0;
  height: 1px;
  background: var(--card-stroke);
  margin: 0;
}

/* ─── card grids ─── */

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  position: relative;
  background:
    linear-gradient(180deg, var(--tile-tint, transparent), transparent 60%),
    var(--card-fill);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-card);
  padding: 22px;
  overflow: hidden;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 0% 0%, var(--tile-glow, transparent), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.card > * { position: relative; z-index: 1; }

.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px var(--tile-ring, rgba(255, 255, 255, 0.08));
}

.card:hover::before { opacity: 0.55; }

.card .tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
  box-shadow:
    0 6px 14px var(--tile-glow, rgba(199, 92, 235, 0.18)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.card .tile svg {
  width: 22px;
  height: 22px;
  display: block;
}

.card:hover .tile {
  transform: translateY(-1px) scale(1.06) rotate(-3deg);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 12px 26px var(--tile-glow, rgba(199, 92, 235, 0.45)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ─── tile color variants ─── */

.tile.c-pink    { background: linear-gradient(135deg, #F472B6, #EC4899); }
.tile.c-violet  { background: linear-gradient(135deg, #C084FC, #8B5CF6); }
.tile.c-blue    { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.tile.c-teal    { background: linear-gradient(135deg, #2DD4BF, #0EA5E9); }
.tile.c-amber   { background: linear-gradient(135deg, #FBBF24, #F97316); }
.tile.c-green   { background: linear-gradient(135deg, #34D399, #10B981); }

.card:has(.tile.c-pink)   { --tile-tint: rgba(236, 72, 153, 0.10); --tile-glow: rgba(236, 72, 153, 0.45); --tile-ring: rgba(236, 72, 153, 0.26); }
.card:has(.tile.c-violet) { --tile-tint: rgba(139, 92, 246, 0.10); --tile-glow: rgba(139, 92, 246, 0.45); --tile-ring: rgba(139, 92, 246, 0.26); }
.card:has(.tile.c-blue)   { --tile-tint: rgba(37, 99, 235, 0.10);  --tile-glow: rgba(37, 99, 235, 0.45);  --tile-ring: rgba(37, 99, 235, 0.26); }
.card:has(.tile.c-teal)   { --tile-tint: rgba(14, 165, 233, 0.10); --tile-glow: rgba(14, 165, 233, 0.45); --tile-ring: rgba(14, 165, 233, 0.26); }
.card:has(.tile.c-amber)  { --tile-tint: rgba(249, 115, 22, 0.10); --tile-glow: rgba(249, 115, 22, 0.45); --tile-ring: rgba(249, 115, 22, 0.26); }
.card:has(.tile.c-green)  { --tile-tint: rgba(16, 185, 129, 0.10); --tile-glow: rgba(16, 185, 129, 0.45); --tile-ring: rgba(16, 185, 129, 0.26); }

@media (prefers-reduced-motion: reduce) {
  .card, .card .tile, .card::before { transition: none !important; }
  .card:hover { transform: none; }
  .card:hover .tile { transform: none; }
}

.card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.card ul.pills {
  margin-top: 14px;
}

/* Pills (compact feature tags under copy) */
.pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pills li {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.why-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── releases list ─── */

ol.releases {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.release-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--card-fill);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-card);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.release-row:hover {
  background: var(--card-fill-strong);
  border-color: rgba(255, 255, 255, 0.14);
}

.release-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.release-tag {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.release-date {
  color: var(--text-tertiary);
  font-size: 12px;
  letter-spacing: 0.2px;
}

.release-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  white-space: nowrap;
}

.release-count strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.release-count span {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.release-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.release-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 560px) {
  .release-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "meta count"
      "link link";
    gap: 12px;
  }
  .release-meta  { grid-area: meta; }
  .release-count { grid-area: count; }
  .release-link  { grid-area: link; text-align: center; }
}

/* ─── footer ─── */

footer {
  padding: 48px 0 36px;
  color: var(--text-tertiary);
  font-size: 13px;
  text-align: center;
}

footer .links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 14px;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}
footer a:hover { color: var(--text-primary); }

/* ─── system requirement note ─── */

.req-note {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  margin: 20px 0 0;
}

/* ─────────────────────────────────────────────────────────────
   Feature showcase (real app screenshots). Gated: every block is
   hidden until its screenshot actually loads (see reveal script),
   so the live site shows nothing broken before PNGs are added.
   ───────────────────────────────────────────────────────────── */

#showcase-wrap[hidden] { display: none; }
/* Revealable units stay hidden until their <img> loads. */
#tour, .showcase-row, .gcard { display: none; }
#tour.shot-ready { display: block; }
.showcase-row.shot-ready { display: grid; }
.gcard.shot-ready { display: block; }

/* ─── hero shot ─── */
.hero-shot-wrap { position: relative; padding: 8px 0 40px; }
.hero-shot-wrap::before {
  content: "";
  position: absolute;
  inset: -6% 0 6% 0;
  background:
    radial-gradient(ellipse 46% 42% at 50% 34%, rgba(255, 81, 137, 0.26), transparent 62%),
    radial-gradient(ellipse 54% 46% at 24% 66%, rgba(56, 158, 255, 0.18), transparent 62%),
    radial-gradient(ellipse 54% 46% at 76% 66%, rgba(199, 92, 235, 0.20), transparent 62%);
  filter: blur(22px);
  pointer-events: none;
  z-index: -1;
}

/* ─── framed window (full-window screenshots incl. their traffic lights) ─── */
.window {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0B0817;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  isolation: isolate;
}
.window > img, .window .base { display: block; width: 100%; height: auto; }

.shot-hero {
  max-width: 940px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow:
    0 60px 140px rgba(0, 0, 0, 0.62),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 170px rgba(199, 92, 235, 0.24);
  transform: perspective(2400px) rotateX(1.2deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.shot-hero:hover { transform: perspective(2400px) rotateX(0deg) translateY(-3px); }

.hero-composite { overflow: visible; background: transparent; border: 0; box-shadow: none; }
.hero-composite .base {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 60px 140px rgba(0, 0, 0, 0.62),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hero-composite .float {
  position: absolute;
  width: 53%;
  right: 1.5%;
  bottom: 6%;
  height: auto;
  border-radius: 12px;
  filter:
    drop-shadow(0 30px 55px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 60px rgba(255, 81, 137, 0.22));
}
.hero-shot-wrap .hero-stats { margin-top: 34px; }

/* ─── showcase rows ─── */
.showcase-intro { text-align: center; padding-bottom: 8px; }
.showcase-intro h2, .showcase-intro p.lede { margin-left: auto; margin-right: auto; }

.showcase { padding: 24px 0 56px; display: flex; flex-direction: column; gap: 84px; }
.showcase-row {
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr);
  gap: 56px;
  align-items: center;
}
.showcase-row.reverse { grid-template-columns: minmax(0, 7.8fr) minmax(0, 4.2fr); }
.showcase-row.reverse .showcase-copy { order: 2; }
.showcase-row.reverse .window, .showcase-row.reverse .stage { order: 1; }

.showcase-copy h3 {
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 16px 0 14px;
}
.showcase-copy p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; margin: 0 0 18px; }
.showcase-copy p code {
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
.showcase-row .window {
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.5),
    0 6px 18px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 80px var(--showcase-glow, rgba(199, 92, 235, 0.2));
}
.glow-pink   { --showcase-glow: rgba(255, 81, 137, 0.24); }
.glow-violet { --showcase-glow: rgba(199, 92, 235, 0.22); }
.glow-blue   { --showcase-glow: rgba(56, 158, 255, 0.20); }
.glow-green  { --showcase-glow: rgba(52, 211, 153, 0.20); }
.glow-amber  { --showcase-glow: rgba(249, 115, 22, 0.20); }

/* ─── stage: floating panel captures on a glowing card ─── */
.stage {
  position: relative;
  margin: 0;
  border-radius: 22px;
  padding: 52px 44px;
  display: grid;
  place-items: center;
  min-height: 300px;
  background:
    radial-gradient(ellipse 62% 58% at 50% 42%, var(--showcase-glow, rgba(199, 92, 235, 0.22)), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--card-stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.stage > img { display: block; max-width: 100%; height: auto; filter: drop-shadow(0 26px 52px rgba(0, 0, 0, 0.5)); }
.stage .inset {
  position: absolute; width: 60%; right: 4%; bottom: 6%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.2));
}
.stage.narrow > img { max-width: 300px; }

/* ─── feature gallery ─── */
.feature-gallery { margin-top: -36px; }
.gallery-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.gallery-head h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 8px; }
.gallery-head p { color: var(--text-secondary); margin: 0; font-size: 15px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gcard {
  margin: 0;
  border-radius: 16px;
  padding: 26px 26px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, var(--gcard-glow, rgba(255, 81, 137, 0.16)), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--card-stroke);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease;
}
.gcard:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.16); }
.gcard img { display: block; width: 100%; height: auto; border-radius: 10px 10px 0 0; filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45)); }
.gcard figcaption {
  display: flex; align-items: center; gap: 9px;
  padding: 16px 2px 18px;
  font-size: 14px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em;
}
.gcard figcaption svg { width: 16px; height: 16px; flex-shrink: 0; }
.gcard.g-green  { --gcard-glow: rgba(52, 211, 153, 0.16); } .gcard.g-green figcaption svg  { color: #34D399; }
.gcard.g-violet { --gcard-glow: rgba(199, 92, 235, 0.18); } .gcard.g-violet figcaption svg { color: #C084FC; }
.gcard.g-blue   { --gcard-glow: rgba(56, 158, 255, 0.16); } .gcard.g-blue figcaption svg   { color: #60A5FA; }
.gcard.g-pink   { --gcard-glow: rgba(255, 81, 137, 0.16); } .gcard.g-pink figcaption svg   { color: #FF5189; }

/* ─── chips (feature label above each showcase heading) ─── */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2px; color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.chip svg { width: 15px; height: 15px; }
.chip.chip-pink   { background: linear-gradient(135deg, rgba(255, 129, 175, 0.20), rgba(255, 81, 137, 0.14)); border-color: rgba(255, 81, 137, 0.32); }
.chip.chip-violet { background: linear-gradient(135deg, rgba(199, 132, 252, 0.20), rgba(199, 92, 235, 0.14)); border-color: rgba(199, 92, 235, 0.32); }
.chip.chip-blue   { background: linear-gradient(135deg, rgba(96, 165, 250, 0.20), rgba(56, 158, 255, 0.14)); border-color: rgba(56, 158, 255, 0.32); }
.chip.chip-green  { background: linear-gradient(135deg, rgba(52, 211, 153, 0.20), rgba(16, 185, 129, 0.14)); border-color: rgba(52, 211, 153, 0.32); }
.chip.chip-amber  { background: linear-gradient(135deg, rgba(251, 191, 36, 0.20), rgba(249, 115, 22, 0.14)); border-color: rgba(249, 115, 22, 0.32); }

@media (prefers-reduced-motion: reduce) {
  .shot-hero, .shot-hero:hover { transform: none; transition: none; }
}
@media (max-width: 860px) {
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 28px; }
  .showcase-row.reverse .showcase-copy { order: 1; }
  .showcase-row.reverse .window, .showcase-row.reverse .stage { order: 2; }
  .showcase { gap: 60px; }
  .hero-composite .float { width: 58%; right: 1%; bottom: 5%; }
}
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr; } .feature-gallery { margin-top: 0; } }
@media (max-width: 560px) { .hero-composite .float { display: none; } .stage { padding: 32px 20px; min-height: 0; } }

/* ═══════════════════════════════════════════════════════════════
   Portfolio page (/apps) — "More from Coursion"
   Cross-promo grid of every Coursion app. Reuses the card system
   above; adds an app-tile with icon/monogram, platform + category.
   ═══════════════════════════════════════════════════════════════ */

/* active nav link (Apps / current page) */
nav.top a.active { color: var(--text-primary); }

/* page hero variant — smaller than the app landing hero */
.hero.compact { padding: 56px 0 40px; }
.hero.compact h1 { font-size: clamp(34px, 5vw, 50px); }

/* group label between platform sections */
.apps-group-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.apps-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--card-stroke);
}

.apps-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
}

/* one app tile — an anchor so the whole card is clickable */
.app-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  background: var(--card-fill);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.25s ease,
    box-shadow 0.35s ease,
    background 0.25s ease;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 0% 0%, var(--app-glow, rgba(199, 92, 235, 0.16)), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.app-card > * { position: relative; z-index: 1; }
.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--card-fill-strong);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}
.app-card:hover::before { opacity: 0.6; }

/* current app (Rift) marker */
.app-card.current {
  border-color: rgba(199, 92, 235, 0.34);
  --app-glow: rgba(199, 92, 235, 0.22);
}

.app-card .app-icon-img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* monogram tile for apps without a PNG icon (web apps) */
.app-mono {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.app-mono.m-pink   { background: linear-gradient(135deg, #F472B6, #EC4899); }
.app-mono.m-violet { background: linear-gradient(135deg, #C084FC, #8B5CF6); }
.app-mono.m-blue   { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.app-mono.m-teal   { background: linear-gradient(135deg, #2DD4BF, #0EA5E9); }
.app-mono.m-amber  { background: linear-gradient(135deg, #FBBF24, #F97316); }
.app-mono.m-green  { background: linear-gradient(135deg, #34D399, #10B981); }

.app-body { min-width: 0; flex: 1; }

.app-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.app-head h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.app-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--forge-purple);
  background: rgba(199, 92, 235, 0.14);
  border: 1px solid rgba(199, 92, 235, 0.3);
}

.app-tagline {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.app-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.app-cta {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.app-cta svg { width: 13px; height: 13px; }
.app-card:hover .app-cta { color: var(--forge-pink); }

/* soft-launch note under a card group */
.apps-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

/* cross-promo strip at the bottom of the Rift landing page */
.crosspromo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 26px;
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(199, 92, 235, 0.08), transparent 70%),
    var(--card-fill);
  border: 1px solid var(--card-stroke);
}
.crosspromo .cp-copy h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.crosspromo .cp-copy p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.crosspromo .cp-icons { display: flex; gap: -6px; }
.crosspromo .cp-icons img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-left: -8px;
  border: 2px solid var(--bg-mid);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.crosspromo .cp-icons img:first-child { margin-left: 0; }

/* ─── prose (privacy / legal pages) ─── */
.prose { max-width: 720px; margin: 0 auto; padding: 40px 0 24px; }
.prose h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 6px 0 8px;
}
.prose h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 34px 0 8px;
}
.prose p { color: var(--text-secondary); margin: 0 0 12px; }
.prose p strong { color: var(--text-primary); }
.prose a { color: var(--forge-blue); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose .updated { color: var(--text-tertiary); font-size: 13px; margin-bottom: 6px; }
.prose code {
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
