/* Overfin's presentation site: one page, light or dark as the device is. */
:root {
  --bg: #0d1017; --panel: #151a24; --text: #eceef3; --muted: #9aa3b5; --border: #262d3b;
  --accent: #4f8dff; --accent-2: #7b5cf0; --code: #10141c;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f5f6f9; --panel: #fff; --text: #191c23; --muted: #5d6576; --border: #dde1e9; --code: #eef0f5; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 17px/1.6 var(--font);
  background:
    radial-gradient(60rem 30rem at 10% -10rem, rgba(123, 92, 240, .14), transparent 70%),
    radial-gradient(50rem 26rem at 100% -8rem, rgba(63, 169, 245, .1), transparent 70%),
    var(--bg) no-repeat;
}
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem max(1rem, calc(50% - 34rem)); background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.top nav a:not(.button) { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:not(.button):hover { color: var(--text); }

main { max-width: 68rem; margin: 0 auto; padding: 0 1rem 3rem; }
section { margin: 4.5rem 0; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.5vw, 3.6rem); line-height: 1.1; margin: 0 0 1.2rem; letter-spacing: -.02em; }
h2 { font-size: 1.8rem; margin: 0 0 1rem; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; margin: 0 0 .6rem; }
.hero { margin-top: 4rem; max-width: 52rem; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.6rem; }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .5rem 1.3rem;
  border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text);
  font-weight: 600; text-decoration: none;
}
.button:hover { border-color: var(--muted); }
.button.primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); border-color: transparent; color: #fff; }
.button.small { min-height: 2.2rem; padding: .3rem 1rem; font-size: .92rem; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.shots figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28); grid-column: span 2; }
.shots .wide { grid-column: span 3; }
.shots .tall { grid-column: span 1; }
.shots img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.5rem; }
.columns > div { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem 1.6rem; }
ul { padding-left: 1.2rem; margin: 0; }
li { margin: .45rem 0; }

pre { background: var(--code); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; overflow-x: auto;
  font-size: .9rem; line-height: 1.5; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
p code { background: var(--code); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.diagram { color: var(--muted); }

#ai { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem 1.6rem; }

footer { border-top: 1px solid var(--border); text-align: center; padding: 2rem 1rem; }
footer p { margin: .3rem 0; }

@media (max-width: 700px) {
  .top nav a:not(.button) { display: none; }
  .shots { grid-template-columns: 1fr; }
  .shots figure, .shots .wide { grid-column: span 1; }
  .shots .tall { display: none; }
  section { margin: 3rem 0; }
}
.shots .wide img { object-position: left top; }
