@font-face {
  font-family: "PlxAppFont";
  src: url("fonts/appfont.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PlxAppFont";
  src: url("fonts/appfont-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --surface-app: #2c2c2e;
  --surface-deep: #08080a;
  --surface-panel: #222224;
  --route-ground: #202022;
  --text-primary: #f7fafc;
  --text-heading: #ebf0f7;
  --text-reading: #cdd3dd;
  --text-secondary: #b8bfcc;
  --text-tertiary: #9499a3;
  --text-separator: rgba(148, 153, 163, 0.45);
  --accent-face: #f7fafc;
  --accent-ink: #08080a;
  --hairline: rgba(255, 255, 255, 0.1);
  --white-07: rgba(255, 255, 255, 0.07);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-22: rgba(255, 255, 255, 0.22);
  --card-sheen: rgba(255, 255, 255, 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --page-max: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-app);
  color: var(--text-primary);
  font-family: "PlxAppFont", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

.ambient-ground {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 0% 0%, #3a3734, transparent 62%),
    radial-gradient(120% 120% at 100% 0%, #202022, transparent 62%),
    radial-gradient(120% 120% at 100% 100%, #4a3120, transparent 62%),
    radial-gradient(120% 120% at 0% 100%, #313032, transparent 62%),
    var(--route-ground);
}

.page-shell {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  overflow: hidden;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-deep);
  box-shadow: inset 0 0 0 1px var(--white-10);
}

.brand-mark img { display: block; width: auto; height: 20px; }

.site-nav {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px clamp(16px, 3vw, 34px);
  order: 2;
  margin-left: clamp(0px, 3vw, 44px);
  font-size: 15px;
}

.site-nav a, .header-github { color: var(--text-secondary); }
.site-nav a:hover, .header-github:hover { color: var(--text-primary); }
.header-github { order: 3; margin-left: auto; font-size: 15px; }

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(26px, 4vw, 64px);
  padding: clamp(40px, 7vh, 84px) 0 clamp(24px, 3.2vh, 36px);
}

.hero h1 {
  flex: 3 1 560px;
  max-width: 900px;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.6px;
  text-wrap: balance;
}

.hero h1 span { color: var(--text-secondary); }

.hero-copy {
  flex: 1 1 300px;
  max-width: 400px;
  padding-top: clamp(6px, 3.2vw, 48px);
}

.hero-copy > p:first-child {
  margin: 0 0 26px;
  color: var(--text-reading);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }

.button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 17px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 200ms var(--ease-out);
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  padding: 15px 30px;
  background: var(--accent-face);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--white-22);
}

.button-primary:hover { color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--white-22), 0 10px 24px rgba(0, 0, 0, 0.35); }

.button-secondary {
  padding: 15px 24px;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--white-22);
}

.button-secondary:hover { background: var(--white-07); }

.hero-meta { margin: 0; color: var(--text-secondary); font-size: 15px; text-wrap: pretty; }
.hero-meta span, .tech-stack span, .quote-source > span > span, .notes-heading > div > span, .footer-meta span { color: var(--text-separator); }

.television { padding-bottom: clamp(44px, 6.5vh, 76px); }

.screen-frame {
  padding: clamp(5px, 0.6%, 10px) clamp(5px, 0.6%, 10px) clamp(10px, 1.3%, 18px);
  background: var(--surface-deep);
  box-shadow: 0 34px 76px rgba(0, 0, 0, 0.62), inset 0 0 0 1px var(--white-10);
}

.screen-frame img { display: block; width: 100%; height: auto; }

.stand { display: flex; flex-direction: column; align-items: center; }
.stand-neck { width: clamp(44px, 5%, 84px); height: clamp(8px, 1vw, 14px); background: linear-gradient(180deg, #08080a, #141417); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.stand-foot { width: clamp(120px, 18%, 280px); height: clamp(6px, 0.7vw, 10px); border-radius: 0 0 4px 4px; background: #141417; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5), inset 0 1px 0 var(--white-10); }

.split-section, .showcase-section, .quote-section, .install-section, .notes-section { border-top: 1px solid var(--hairline); }
.split-section { display: flex; flex-wrap: wrap; gap: clamp(20px, 3.5vw, 72px); padding: clamp(40px, 5.5vh, 60px) 0; scroll-margin-top: 32px; }
.split-section h2, .section-heading h2 { flex: 1 1 300px; max-width: 420px; margin: 0; font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -1px; text-wrap: pretty; }
.section-copy { flex: 1 1 380px; max-width: 640px; }
.section-copy p { margin: 0; color: var(--text-reading); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.section-copy .lead { margin-bottom: 18px; color: var(--text-primary); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; }

.showcase-section { padding: clamp(40px, 5.5vh, 60px) 0 clamp(44px, 6vh, 68px); scroll-margin-top: 32px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px clamp(20px, 3.5vw, 72px); margin-bottom: clamp(28px, 4vh, 44px); }
.section-heading p { flex: 1 1 380px; max-width: 640px; margin: 0; color: var(--text-reading); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; text-wrap: pretty; }

.demo-figure { margin: 0; }
.demo-card, .showcase-shot-frame { position: relative; overflow: hidden; border-radius: 14px; background: var(--surface-deep); box-shadow: 0 20px 52px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--card-sheen); }
.demo-card img, .showcase-shot-frame img { display: block; width: 100%; height: auto; }
.demo-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42)); pointer-events: none; }
.play-button { position: absolute; inset: 50% auto auto 50%; z-index: 1; display: grid; width: 84px; height: 84px; padding: 0 0 0 4px; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); transform: translate(-50%, -50%); cursor: pointer; transition: transform 200ms var(--ease-out), background 200ms var(--ease-out); }
.play-button span, .mini-play { display: block; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 15px solid var(--text-primary); }
.play-button:hover { background: rgba(255, 255, 255, 0.34); transform: translate(-50%, -50%) scale(1.06); }
.demo-figure figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 18px; color: var(--text-reading); font-size: 15px; line-height: 1.6; }
.field-video { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 0; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.field-video:hover { color: var(--text-primary); }
.mini-play { display: grid; width: 64px; height: 36px; flex: none; place-items: center; border: 1px solid var(--white-22); border-radius: 8px; border-top-width: 9px; border-bottom-width: 9px; border-left-width: 14px; border-right: 0; }

.showcase-layout { display: flex; flex-wrap: wrap; gap: clamp(20px, 2.6vw, 40px); align-items: flex-start; }
.showcase-tabs { display: flex; flex: 1 1 260px; flex-direction: column; gap: 6px; max-width: 340px; }
.showcase-tab { padding: 16px 20px; border: 1px solid var(--hairline); border-radius: 12px; background: transparent; color: var(--text-secondary); text-align: left; cursor: pointer; transition: background 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out); }
.showcase-tab:hover { background: var(--white-07); }
.showcase-tab.is-active { background: var(--accent-face); color: var(--accent-ink); font-weight: 700; box-shadow: inset 0 0 0 1px var(--white-22); }
.showcase-tab.is-active:hover { background: var(--accent-face); }
.tab-blurb { display: block; margin-top: 8px; color: var(--text-reading); font-size: 15px; font-weight: 400; line-height: 1.55; text-wrap: pretty; }
.showcase-tab.is-active .tab-blurb { color: rgba(8, 8, 10, 0.72); }
.showcase-shot { flex: 1 1 460px; min-width: 0; margin: 0; }
.showcase-shot-frame img { transition: opacity 260ms var(--ease-out), transform 420ms var(--ease-out); }
.showcase-shot-frame.is-changing img { opacity: 0.15; transform: translateX(2%) scale(1.01); }

.built-callout { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 40px; padding: 20px 22px clamp(36px, 5vh, 60px); }
.built-callout p { max-width: 660px; margin: 0; color: var(--text-reading); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.built-callout strong { color: var(--text-primary); }
.built-callout .tech-stack { max-width: none; color: var(--text-tertiary); font-size: 14px; letter-spacing: 0.4px; white-space: nowrap; }

.quote-section { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px clamp(28px, 4vw, 64px); padding: clamp(36px, 5vh, 56px) 0; }
.quote-section blockquote { flex: 2 1 460px; margin: 0; color: var(--text-primary); font-size: clamp(20px, 2.4vw, 30px); line-height: 1.4; letter-spacing: -0.5px; text-wrap: pretty; }
.quote-source { display: flex; flex: 1 1 240px; align-items: center; gap: 12px; max-width: 320px; margin: 0; padding-top: 8px; color: var(--text-tertiary); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.quote-source a { color: var(--text-reading); }
.quote-source a:hover { color: var(--text-primary); }
.quote-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--white-10); box-shadow: inset 0 0 0 1px var(--hairline); }

.install-section { padding: clamp(40px, 5.5vh, 60px) 0 clamp(44px, 6vh, 68px); scroll-margin-top: 32px; }
.install-intro { max-width: 720px; margin-bottom: clamp(28px, 4.5vh, 44px); }
.install-intro h2 { margin: 0 0 16px; font-size: clamp(26px, 3.6vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -1px; text-wrap: pretty; }
.install-intro p { margin: 0; color: var(--text-reading); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; text-wrap: pretty; }
.install-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(18px, 2.2vw, 26px); align-items: stretch; }
.install-card { display: flex; flex-direction: column; gap: 12px; min-height: 250px; padding: clamp(24px, 2.4vw, 30px); border-radius: 14px; background: var(--white-07); box-shadow: inset 0 0 0 1px var(--hairline); }
.install-card h3 { margin: 0; font-size: 21px; font-weight: 700; }
.install-card p { margin: 4px 0 0; color: var(--text-reading); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.install-card .fine-print { margin-top: -4px; color: var(--text-tertiary); font-size: 14px; }
.install-card a { margin-top: auto; padding-top: 14px; font-size: 15px; font-weight: 700; }
.install-card a span { display: inline-block; transition: transform 200ms var(--ease-out); }
.install-card a:hover span { transform: translateX(4px); }
.status-pill { align-self: flex-start; padding: 6px 12px; border: 1px solid var(--white-22); border-radius: 999px; color: var(--text-secondary); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }
.install-card.is-muted { background: rgba(255, 255, 255, 0.025); }
.install-card.is-muted h3 { color: var(--text-secondary); }
.install-card.is-muted .status-pill { border-color: var(--white-10); color: var(--text-tertiary); }

.notes-section { padding: clamp(36px, 5vh, 56px) 0 clamp(40px, 5.5vh, 64px); }
.notes-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3.5vh, 34px); }
.notes-heading h2 { margin: 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -0.4px; }
.notes-heading > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--text-secondary); font-size: 15px; }
.notes-heading a { color: var(--text-secondary); }
.notes-heading a:hover { color: var(--text-primary); }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: clamp(22px, 3vw, 40px); }
.notes-grid h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.notes-grid p { margin: 0; color: var(--text-reading); font-size: 15px; line-height: 1.6; text-wrap: pretty; }

.site-footer { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px clamp(24px, 4vw, 72px); padding: 26px 0 34px; border-top: 1px solid var(--hairline); }
.footer-disclaimer { flex: 1 1 320px; max-width: 480px; margin: 0; color: var(--text-reading); font-size: 15px; line-height: 1.65; text-wrap: pretty; }
.footer-links { display: flex; flex: 1 1 240px; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--text-reading); font-size: 15px; }
.footer-links a { color: var(--text-reading); }
.footer-links a:hover { color: var(--text-primary); }
.support-cta { flex: 1 1 100%; min-height: 42px; }
.footer-meta { flex: 1 1 100%; margin: 0; color: var(--text-tertiary); font-size: 14px; }
.footer-meta a { color: var(--text-tertiary); }
.footer-meta a:hover { color: var(--text-secondary); }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .header-github { order: 2; }
  .showcase-tabs { flex: 1 1 100%; max-width: none; flex-direction: row; flex-wrap: wrap; }
  .showcase-tab { flex: 1 1 130px; padding: 13px 18px; border-radius: 999px; text-align: center; }
  .tab-blurb { display: none; }
  .built-callout .tech-stack { width: 100%; white-space: normal; }
}

@media (max-width: 520px) {
  .page-shell { padding-inline: 18px; }
  .hero h1 { letter-spacing: -1px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { justify-content: center; }
  .field-video { align-items: flex-start; }
  .play-button { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: no-preference) {
  .split-section, .showcase-section, .built-callout, .quote-section, .install-section, .notes-section, .site-footer { animation: section-in 700ms var(--ease-out) both; }
  .showcase-section { animation-delay: 80ms; }
  .built-callout { animation-delay: 120ms; }
  .quote-section { animation-delay: 160ms; }
  .install-section { animation-delay: 200ms; }
  .notes-section { animation-delay: 240ms; }
  .site-footer { animation-delay: 280ms; }
}

@keyframes section-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
