/* XViewer site. Scandinavian minimal: bluish off-white, ink, hairlines, one soft accent. */
:root {
  --bg: #f7f8fa;
  --paper: #ffffff;
  --ink: #15161a;
  --soft: #4b4e57;
  --muted: #8a8d96;
  --line: #e4e6ea;
  --mist: #e9eef6;
  --accent: #c8603c; /* the app's Claude orange, used sparingly */
  --radius: 22px;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --max: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 17px; line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; }
code { font-size: .88em; background: var(--mist); padding: .1em .4em; border-radius: 6px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px;
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; color: var(--soft); font-size: 15px; }
.links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: 16px; letter-spacing: -0.005em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 1px 2px rgba(20, 22, 26, .12), 0 8px 24px rgba(20, 22, 26, .10);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(20, 22, 26, .12), 0 14px 32px rgba(20, 22, 26, .14); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.small { padding: 9px 18px; font-size: 14px; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* Type helpers */
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.meta { margin: 22px 0 0; font-size: 14px; color: var(--muted); }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.03em; margin: 0; }
.big { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; }

/* Hero */
main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hero { text-align: center; padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(46px, 8vw, 104px); line-height: .98; font-weight: 300; letter-spacing: -0.045em; }
.hero h1 em { font-size: 1.06em; }
.lede { max-width: 560px; margin: 30px auto 0; font-size: clamp(18px, 2vw, 21px); color: var(--soft); line-height: 1.5; }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* Demo video */
.demo { position: relative; padding: 0 0 clamp(80px, 10vw, 140px); }
.demo::before { /* faded gradient wash behind the frame, in the video's palette */
  content: ""; position: absolute; inset: -40px -10vw 40px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 35%, rgba(246, 196, 170, .38), transparent 70%),
    radial-gradient(55% 55% at 82% 40%, rgba(168, 196, 236, .42), transparent 70%),
    radial-gradient(50% 45% at 55% 85%, rgba(196, 228, 218, .35), transparent 70%);
  filter: blur(10px);
}
.frame {
  border-radius: var(--radius); overflow: hidden; background: var(--paper); aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px rgba(20, 22, 26, .05), 0 30px 80px -20px rgba(40, 50, 80, .25), 0 10px 30px -10px rgba(40, 50, 80, .12);
}
.frame video { width: 100%; height: 100%; object-fit: cover; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.features article { padding: 34px 28px 44px 0; }
.features article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.num { display: block; font-size: 13px; color: var(--muted); letter-spacing: .08em; margin-bottom: 44px; }
.features h2 { font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; margin-bottom: 12px; }
.features p { margin: 0; color: var(--soft); font-size: 16px; }

/* Setup */
.setup { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 64px; padding: clamp(90px, 12vw, 160px) 0 clamp(70px, 9vw, 120px); align-items: start; }
.section-head { grid-column: 1 / -1; max-width: 760px; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; }
.steps li { display: flex; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.steps h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--soft); font-size: 16px; }
.icons {
  margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 48px);
  padding: clamp(36px, 5vw, 64px) 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, #ffffff 0%, var(--mist) 100%); box-shadow: inset 0 0 0 1px var(--line);
}
.icons figure { margin: 0; text-align: center; }
.icons img { width: clamp(96px, 12vw, 148px); height: auto; filter: drop-shadow(0 18px 24px rgba(30, 40, 70, .18)); }
.icons figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

/* What you need / privacy */
.needs { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.needs ul { list-style: none; margin: 0; padding: 0; }
.needs li { position: relative; padding: 12px 0 12px 26px; color: var(--soft); border-top: 1px solid var(--line); }
.needs li:first-child { border-top: 0; padding-top: 0; }
.needs li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--mist); box-shadow: inset 0 0 0 1px #c9d3e2; }
.needs li:first-child::before { top: 10px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; padding: clamp(90px, 12vw, 150px) 0 40px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 40px 24px 0; font-size: 20px; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-size: 26px; font-weight: 300; color: var(--muted); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 26px; color: var(--soft); max-width: 640px; }

/* Final call */
.final { text-align: center; padding: clamp(90px, 12vw, 150px) 0 clamp(90px, 11vw, 140px); }
.final img { margin: 0 auto 28px; filter: drop-shadow(0 16px 22px rgba(30, 40, 70, .16)); }
.final .big { margin-bottom: 36px; font-weight: 300; }

/* Footer */
.foot { max-width: var(--max); margin: 0 auto; padding: 40px 24px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.foot .maker { margin: 0 0 14px; color: var(--soft); font-size: 14px; }
.foot .maker a { text-decoration: none; }
.foot .maker a:hover { color: var(--ink); }
.stamp { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 600; color: rgba(21, 22, 26, .38); text-shadow: 0 1px 0 #fff; }
.stamp svg { width: 12px; height: 12px; fill: currentColor; vertical-align: -1px; margin: 0 2px; }
.foot .legal { margin: 0 0 8px; max-width: 760px; }

/* Small screens */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
  .features article:nth-child(3) { padding-left: 0; border-left: 0; }
  .features article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .setup { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 16px; padding: 14px 16px; }
  .links { display: none; }
  .nav .btn.small { margin-left: auto; }
  main { padding: 0 16px; }
  .hero { text-align: left; }
  .lede { margin-left: 0; }
  .cta { justify-content: flex-start; }
  .frame { border-radius: 14px; }
  .features { grid-template-columns: 1fr; }
  .features article, .features article + article { padding: 28px 0 32px; border-left: 0; }
  .features article + article { border-top: 1px solid var(--line); }
  .num { margin-bottom: 18px; }
  .needs { grid-template-columns: 1fr; gap: 40px; }
  .foot { padding: 32px 16px 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
