/* Zephydian website: everything outside the demo. Colors and fonts come from demo/demo.css. */

:root[data-mode="light"] { --card-bg: #fff; --card-edge: rgba(0, 0, 0, 0.07); --code-bg: rgba(0, 0, 0, 0.05); }
:root[data-mode="dark"] { --card-bg: #17181f; --card-edge: rgba(255, 255, 255, 0.08); --code-bg: rgba(255, 255, 255, 0.08); }

/* ---------- Skip link: hidden until a keyboard user tabs to it ---------- */
.skip-link {
  position: fixed; top: 8px; left: 50%; z-index: 100; transform: translate(-50%, -150%);
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: #fff; font: 600 14px var(--font); text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); transition: transform 0.15s;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- The scroll gate's cue (bottom of the desktop, above the Dock) ---------- */
.desktop { transition: transform 380ms cubic-bezier(0.2, 0.9, 0.3, 1); }
.desktop.pulling { transition: transform 60ms linear; }
.more-cue {
  position: absolute; left: 50%; bottom: 100px; z-index: 9; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 12px;
  font-size: 12px; color: var(--text-2); white-space: nowrap;
  pointer-events: none; user-select: none; -webkit-user-select: none;
}
/* Out of the way while the Dock is magnified, so the icon names don't overlap it. */
.more-cue { transition: opacity 0.15s; }
.desktop:has(.dock:hover) .more-cue, .desktop:has(.panel.open) .more-cue { opacity: 0; }
.more-cue-label::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.more-cue-bar { width: 72px; height: 3px; border-radius: 3px; background: var(--fill-strong); overflow: hidden; opacity: 0; transition: opacity 0.2s; }
.more-cue-bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.more-cue.pulling { color: var(--text); }
.more-cue.pulling .more-cue-bar { opacity: 1; }

/* ---------- Phones and tablets: the hero swaps the Mac-only install bits for "Try the demo" ---------- */
.touch-intro { display: none; }
.touch .touch-intro { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 24px; }
.touch .hero-actions { display: none; }
.mac-note {
  display: flex; align-items: flex-start; gap: 10px; max-width: 340px; margin: 0;
  padding: 12px 16px; border-radius: 16px; text-align: left; font-size: 14px; line-height: 1.45;
  background: var(--hint-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.mac-note-ic { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }
.mac-note-ic .ic { width: 100%; height: 100%; }
.link-btn { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cue-touch, .touch .cue-mouse { display: none; }
.touch .cue-touch { display: inline; }

/* ---------- Page ---------- */
.site {
  position: relative;
  font-size: 16px; line-height: 1.55;
  background: var(--page-bg);
  padding-bottom: 40px;
}
.site a { color: var(--accent); text-decoration: none; }
.site a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site code { font: 0.88em var(--font-mono); padding: 1px 5px; border-radius: 5px; background: var(--code-bg); }
.section { max-width: 1080px; margin: 0 auto; padding: 104px 24px 0; scroll-margin-top: 0; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.section h2 { margin: 8px 0 0; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.lede { margin: 14px 0 0; max-width: 640px; font-size: 18px; color: var(--text-2); }
.card {
  padding: 24px; border-radius: 20px;
  background: var(--card-bg);
  box-shadow: 0 0 0 0.5px var(--card-edge), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.card p { margin: 8px 0 0; color: var(--text-2); }
.tag {
  display: inline-block; vertical-align: 2px; margin-left: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--fill-hover); color: var(--text-2);
}
.fine { margin: 10px 0 0; font-size: 14px; color: var(--text-2); }

/* Install */
.install-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-top: 36px; }
.install-grid > *, .privacy-grid > *, .feature-grid > *, .game-grid > * { min-width: 0; }
.cmd code { min-width: 0; }
.cmd-wide { width: 100%; justify-content: space-between; margin-top: 16px; background: var(--code-bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.cmd-wide code { background: none; padding: 0; font-size: 13px; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; font-size: 13px; color: var(--text-3); }
.or::before, .or::after { content: ""; flex: 1; height: 0.5px; background: var(--separator); }
.site .dl-btn {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px;
  background: var(--accent); color: #fff; text-decoration: none;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent);
}
.site .dl-btn:hover { filter: brightness(1.07); text-decoration: none; }
.dl-ic { width: 26px; height: 26px; flex: none; }
.dl-ic .ic { width: 100%; height: 100%; stroke-width: 2; }
.dl-btn b { display: block; font-size: 16px; }
.dl-btn small { display: block; font-size: 13px; opacity: 0.85; }
.version-line { margin: 18px 0 0; font-size: 14px; color: var(--text-2); }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.steps li > span {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.alt { margin-top: 18px; padding-top: 14px; border-top: 0.5px solid var(--separator); }
.alt summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.f-ic { display: block; width: 30px; height: 30px; margin-bottom: 14px; color: var(--accent); }
.f-ic .ic { width: 100%; height: 100%; }

.soon-card { display: flex; gap: 16px; align-items: flex-start; margin-top: 20px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: none; }
.soon-card .f-ic { flex: none; margin: 2px 0 0; }

/* Game gallery */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.game-card { display: flex; flex-direction: column; align-items: flex-start; }
.game-card p { flex: 1; font-size: 15px; }
.game-card .tag { margin: 16px 0 0; }
.g-card-ic { width: 36px; height: 36px; margin-bottom: 14px; color: var(--accent); }
.g-card-ic .ic { width: 100%; height: 100%; }
.play-btn {
  margin-top: 16px; height: 32px; padding: 0 16px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
}
.play-btn:hover { filter: brightness(1.07); }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 36px; }
.checks { list-style: none; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--text-2); }
.checks li b { color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.checks li::after {
  content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* FAQ */
.faq { margin-top: 32px; max-width: 780px; border-top: 0.5px solid var(--separator); }
.faq details { border-bottom: 0.5px solid var(--separator); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 24px; width: 8px; height: 8px;
  border: solid var(--text-2); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq details p { margin: 0 0 18px; color: var(--text-2); }

/* Footer */
.footer {
  max-width: 1080px; margin: 112px auto 0; padding: 28px 24px 0;
  border-top: 0.5px solid var(--separator);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  font-size: 14px; color: var(--text-2);
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.footer-brand .jet-slot { width: 18px; height: 18px; color: var(--accent); }
.footer-brand .ic { width: 100%; height: 100%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; flex: 1; }
.site .footer-links a { color: var(--text-2); }
.site .footer-links a:hover { color: var(--text); }
.credit { width: 100%; margin: 4px 0 0; font-size: 13px; color: var(--text-3); }
.site .credit a { color: var(--text-2); }

/* ---------- Narrower windows ---------- */
@media (max-width: 900px) {
  .install-grid, .privacy-grid { grid-template-columns: 1fr; }
  .feature-grid, .game-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section { padding-top: 80px; padding-left: 16px; padding-right: 16px; }
  .feature-grid, .game-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .footer { padding-left: 16px; padding-right: 16px; }
  /* Long commands wrap instead of being cut off. */
  .cmd-wide { height: auto; min-height: 42px; padding: 8px 6px 8px 14px; }
  .cmd-wide code { white-space: normal; overflow-wrap: anywhere; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .desktop, .desktop.pulling { transition: none; }
}
