/* InstaticKit's website. The same tokens as the dashboard (apps/web/src/styles.css). */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght.woff2") format("woff2-variations");
}

:root {
  --bg-body: #000;
  --bg-surface: #1b1b1b;
  --bg-surface-2: #282828;
  --border: #333;
  --border-subtle: #262626;
  --text-bright: #f4f4f5;
  --text: #ededed;
  --text-muted: #a1a1aa;
  --text-subtle: #787878;
  --overlay-5: rgb(255 255 255 / 0.05);
  --overlay-10: rgb(255 255 255 / 0.1);
  --tint-mint: #8ee6c8;
  --tint-violet: #c8b6ff;
  --tint-blue: #9bdcff;
  --brand: #e3b766;
  --brand-shade: #b58b42;
  --success-text: #a7f3d0;
  --warning-text: #fde68a;
  --font: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg-body);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-bright); text-decoration-color: var(--overlay-10); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--text-bright); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--text-muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--bg-surface-2); padding: 8px 12px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }


/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(0 0 0 / 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { font-weight: 650; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.nav nav { display: flex; gap: 20px; margin-left: auto; }
.nav nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--text-bright); }
@media (max-width: 760px) { .nav nav { display: none; } .nav .icon-link { margin-left: auto; } }

/* Icon links (GitHub) */
.icon-link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: var(--text-muted); }
.icon-link:hover { color: var(--text-bright); background: var(--overlay-10); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 550;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.button-primary { background: #fff; color: #111827; }
.button-primary:hover { background: #e4e4e7; }
.button-quiet { background: var(--overlay-10); color: var(--text-bright); }
.button-quiet:hover { background: rgb(255 255 255 / 0.16); }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; }
.eyebrow { color: var(--text-muted); font-size: 14px; display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pill { color: var(--warning-text); background: rgb(245 158 11 / 0.1); border-radius: 999px; padding: 2px 10px; font-weight: 550; }
.hero h1 { font-size: clamp(44px, 8vw, 84px); line-height: 1.02; letter-spacing: -0.04em; margin: 22px 0 22px; font-weight: 700; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-muted); max-width: 680px; margin-inline: auto; }
.actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-shot {
  position: relative;
  margin: 64px 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 120px rgb(227 183 102 / 0.08), 0 20px 60px rgb(0 0 0 / 0.7);
}

/* The hero screenshot plays the demo when clicked anywhere. */
.play { all: unset; display: block; position: relative; cursor: pointer; width: 100%; }
.play-icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #111827; padding-left: 4px;
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.5);
  transition: transform 0.15s; pointer-events: none;
}
.play-label {
  position: absolute; left: 50%; top: calc(50% + 52px); transform: translateX(-50%);
  background: rgb(10 12 20 / 0.85); color: var(--text-bright); font-weight: 550; font-size: 14px;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none;
}
.play:hover .play-icon, .play:focus-visible .play-icon { transform: translate(-50%, -50%) scale(1.08); }
.play:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.hero-shot video { display: block; width: 100%; height: auto; background: #000; }

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--border-subtle); }
.section-alt { background: #0a0a0a; }
.kicker { color: var(--brand); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.section h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; margin: 12px 0 16px; font-weight: 680; max-width: 760px; }
.section-lede { color: var(--text-muted); font-size: 18px; max-width: 680px; }
.more { margin-top: 28px; color: var(--text-muted); }
.note { color: var(--text-subtle); font-size: 14px; margin-top: 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--border-subtle); border-radius: 16px; overflow: hidden; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--bg-surface); padding: 26px; }
.card h3 { font-size: 17px; font-weight: 620; margin-bottom: 8px; }
.card p, .card li { color: var(--text-muted); font-size: 15px; }
.card ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* Support table */
.table-wrap { margin-top: 48px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
caption { text-align: left; color: var(--text-bright); font-weight: 620; font-size: 17px; padding-bottom: 12px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
thead th { color: var(--text-muted); font-weight: 550; font-size: 14px; white-space: nowrap; }
tbody th { color: var(--text); font-weight: 450; }
td.yes { color: var(--success-text); }
td.beta { color: var(--warning-text); }
td.no { color: var(--text-subtle); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; }
.dot.docker { background: var(--tint-blue); }
.dot.railway { background: var(--tint-violet); }
.dot.render { background: var(--tint-mint); }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 28px; margin-top: 40px; }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; } }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; border: 1px solid var(--border); }
.shots figcaption { color: var(--text-muted); font-size: 15px; margin-top: 12px; }

/* Diagram */
.diagram { display: flex; align-items: center; gap: 0; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.node {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-bright);
  font-weight: 560;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.node small { color: var(--text-muted); font-weight: 400; font-size: 13px; }
.node-kit { border-color: rgb(227 183 102 / 0.5); box-shadow: 0 0 40px rgb(227 183 102 / 0.08); }
.node-you { border-radius: 999px; }
.arrow, .fan { width: 48px; height: 1px; background: var(--border); position: relative; }
.arrow::after, .fan::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4px solid transparent; border-left-color: var(--text-subtle); }
.targets { display: grid; gap: 10px; }
.targets .node { flex-direction: column; }
.targets .node::before { content: ""; width: 8px; height: 8px; border-radius: 2px; margin-bottom: 4px; }
.targets .node:nth-child(1)::before { background: var(--tint-blue); }
.targets .node:nth-child(2)::before { background: var(--tint-violet); }
.targets .node:nth-child(3)::before { background: var(--tint-mint); }
@media (max-width: 760px) {
  .diagram { flex-direction: column; }
  .arrow, .fan { width: 1px; height: 32px; }
  .arrow::after, .fan::after { right: -4px; top: auto; bottom: -1px; border-left-color: transparent; border-top-color: var(--text-subtle); }
}

/* Install */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-top: 32px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split > * { min-width: 0; }
.split > div > p + .code, .split .muted { margin-top: 14px; }
.code { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--border-subtle); color: var(--text-subtle); font-size: 13px; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 14px/1.6 var(--mono); color: var(--text-bright); }
.copy {
  background: var(--overlay-10); color: var(--text-bright); border: 0; border-radius: 999px;
  font: 550 13px var(--font); padding: 5px 14px; cursor: pointer;
}
.copy:hover { background: rgb(255 255 255 / 0.16); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.checks li { color: var(--text-muted); padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--success-text); font-weight: 700; }
.checks strong { color: var(--text-bright); font-weight: 600; }

/* Docs links */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--border-subtle); border-radius: 16px; overflow: hidden; margin-top: 40px; }
.links a { background: var(--bg-surface); padding: 22px 24px; text-decoration: none; display: grid; gap: 4px; }
.links a:hover { background: var(--bg-surface-2); }
.links strong { font-weight: 600; }
.links span { color: var(--text-muted); font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--border-subtle); padding: 36px 0 48px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer p:first-child { display: flex; align-items: center; gap: 6px; color: var(--text-bright); font-weight: 600; }
.footer-inner { align-items: center; }
