/* VibeSCAD — vibescad.com
   One page, no framework, no external requests. Dark by default, because the
   product is dark and every screenshot on the page is. */

:root {
  --bg: #080b12;
  --bg-alt: #0c111a;
  --panel: #10161f;
  --line: rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .055);
  --text: #e8ecf3;
  --muted: #98a3b6;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, .14);
  --blue: #3b9cf8;
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--accent); color: #140a02; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

:where(a, button, video):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 11, 18, .82);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; }
.brand .mark { width: 22px; height: 22px; color: var(--accent); flex: none; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: var(--text); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 15px; font-weight: 560; text-decoration: none;
  background: rgba(255, 255, 255, .03);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #180b02; font-weight: 640; }
.btn-primary:hover { background: #ff8a3d; border-color: #ff8a3d; }
.btn-ghost { padding: 7px 14px; font-size: 14px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* ---------- hero ---------- */

.hero {
  padding: 74px 0 56px;
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(249, 115, 22, .13), transparent 70%),
    radial-gradient(700px 380px at 85% 0, rgba(59, 156, 248, .08), transparent 65%);
}
.eyebrow {
  margin: 0 0 18px; font-size: 13px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
h1 {
  margin: 0; font-size: clamp(34px, 6vw, 58px); line-height: 1.06;
  letter-spacing: -.028em; font-weight: 680;
}
.lede { margin: 22px 0 0; max-width: 640px; font-size: clamp(17px, 2.1vw, 19px); color: var(--muted); }
.lede em { color: var(--text); font-style: italic; }

.shot { margin: 46px 0 0; }
.shot video {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  background: #0a0e16;
  box-shadow: 0 32px 70px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .02);
}
figcaption { margin: 14px 2px 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- sections ---------- */

.band { padding: 74px 0; border-top: 1px solid var(--line-soft); }
.band.alt { background: var(--bg-alt); }

h2 { margin: 0 0 14px; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.16; letter-spacing: -.02em; font-weight: 660; }
h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.01em; font-weight: 620; }
p { margin: 0 0 16px; }
.sub { color: var(--muted); max-width: 720px; }
.note { font-size: 15px; color: var(--muted); }

.two { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
/* Grid items default to min-width: auto, which lets a wide <pre> or <table>
   push the whole page sideways on a phone. */
.two > *, .grid > * { min-width: 0; }
.two.flip > *:first-child { order: 2; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 34px; } }

.render img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9);
}
.render.tall img { max-width: min(420px, 100%); margin: 0 auto; }
.render { margin: 0; }

.facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 9px; font-size: 15.5px; color: var(--muted); }
.facts b { color: var(--text); font-weight: 620; }
.facts li { padding-left: 20px; position: relative; }
.facts li::before {
  content: ""; position: absolute; left: 2px; top: .66em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}

/* ---------- cards ---------- */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.grid.two-up { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid, .grid.two-up { grid-template-columns: 1fr; } }
.grid article {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 6px;
}
.grid p { color: var(--muted); font-size: 15.5px; }

/* ---------- code ---------- */

pre {
  position: relative;
  max-width: 100%;
  margin: 0 0 20px; padding: 18px 20px; overflow-x: auto;
  background: #070a11; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--mono); font-size: 13.5px; line-height: 1.65; color: #cfd8e6;
  -webkit-overflow-scrolling: touch;
}
pre code { font: inherit; white-space: pre; }
.prompt {
  margin: 0 0 22px; padding: 18px 22px;
  border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--radius);
  background: linear-gradient(90deg, var(--accent-soft), transparent 55%), #070a11;
  font-family: var(--mono); font-size: 14px; line-height: 1.7; color: #eadbc8;
}
.term { color: #b9e4c9; }
code { font-family: var(--mono); font-size: .9em; }
p code, li code, figcaption code { background: rgba(255, 255, 255, .07); border-radius: 5px; padding: 1px 5px; color: #dbe4f0; }

.copy {
  position: absolute; top: 9px; right: 9px;
  font: inherit; font-size: 12px; line-height: 1;
  padding: 6px 9px; border-radius: 7px; cursor: pointer;
  color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.copy:hover { color: var(--text); background: rgba(255, 255, 255, .1); }

.link { color: var(--accent); text-decoration: none; font-weight: 560; }
.link:hover { text-decoration: underline; }

/* ---------- table ---------- */

.tablewrap { overflow-x: auto; margin: 28px 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 560; }
td:nth-child(4) { color: var(--accent); font-variant-numeric: tabular-nums; }
td:nth-child(3), td:nth-child(5), td:nth-child(6) { font-variant-numeric: tabular-nums; color: var(--muted); }
.fn { color: var(--accent); }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line-soft); padding: 44px 0 56px; background: var(--bg-alt); }
.foot-in { display: grid; gap: 14px; }
.foot p { margin: 0; color: var(--muted); font-size: 15px; }
.foot b { color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.fine { font-size: 13.5px; opacity: .78; max-width: 640px; }
