/* Wren Instruments: one stylesheet, no frameworks, no external fonts. */

:root {
  --paper: #f7f5ef;
  --card: #ffffff;
  --render: #f8f8f8;          /* the product renders' own background */
  --ink: #15171c;
  --muted: #5b616d;
  --line: #e4e0d6;
  --accent: #ff5a1f;
  --accent-ink: #c63d0a;      /* orange dark enough for text on paper */
  --accent-soft: #ffe7dc;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111318;
    --card: #191c23;
    --ink: #eceae3;
    --muted: #a3a9b5;
    --line: #2a2e38;
    --accent-ink: #ff7a45;
    --accent-soft: #3a2117;
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---- navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand svg { width: 40px; height: 40px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav ul a:hover { color: var(--accent-ink); }
@media (max-width: 720px) { .nav ul li:not(:last-child) { display: none; } }

/* ---- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid var(--ink); color: var(--ink); background: transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.small { padding: 7px 14px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---- type */
.kicker {
  display: inline-block; font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft); padding: 7px 10px; border-radius: 6px;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 850; }
h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 750; letter-spacing: -0.015em; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40ch; }
.squiggle { position: relative; white-space: nowrap; }
.squiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 0.22em;
  background: var(--accent); border-radius: 99px; transform: rotate(-1.2deg); z-index: -1; opacity: .9;
}

section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 760px; justify-items: start; }

/* ---- hero */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-art {
  background: var(--render); border-radius: 28px; padding: 12px;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(21, 23, 28, .35);
  position: relative;
}
.hero-art .tag {
  position: absolute; top: 18px; left: 18px; font: 600 12px/1 var(--mono); letter-spacing: .06em;
  background: var(--ink); color: var(--paper); padding: 7px 9px; border-radius: 6px; text-transform: uppercase;
}
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.hero + section { padding-top: clamp(48px, 7vw, 80px); }
.ticker {
  margin-top: clamp(48px, 7vw, 80px); border-block: 1px solid var(--line);
  font: 500 14px/1 var(--mono); color: var(--muted); overflow: hidden; white-space: nowrap;
}
.ticker div { display: inline-block; padding: 16px 0; animation: tick 40s linear infinite; }
.ticker span { margin: 0 22px; }
.ticker b { color: var(--accent-ink); font-weight: 600; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker div { animation: none; } }

/* ---- modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.mode .num { font: 700 14px/1 var(--mono); color: var(--accent-ink); }
.mode p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }

/* ---- app screenshot */
.app { background: var(--ink); color: var(--paper); }
.app .kicker { background: #2b1a12; color: #ff7a45; }
.app .lede { color: #b8bcc6; }
.app h2 { color: #f7f5ef; }
.shot { border-radius: 12px; overflow: hidden; border: 1px solid #2c3039; box-shadow: 0 40px 80px -40px #000; background: #fff; }
.shot-caption { font: 13px/1.4 var(--mono); color: #8d93a0; margin-top: 12px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 34px; margin-top: 52px; }
.features h3 { color: #f7f5ef; font-size: 18px; margin-bottom: 6px; }
.features p { margin: 0; color: #b8bcc6; font-size: 16px; }
.features .ico { color: #ff7a45; font: 700 15px/1 var(--mono); display: block; margin-bottom: 10px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---- protocols */
.protocols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.proto { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; }
.proto h3 { font-size: 19px; }
.proto p { margin: 0; color: var(--muted); font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font: 600 12px/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.chip.hot { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.proto.soon { border-style: dashed; background: transparent; }
@media (max-width: 860px) { .protocols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .protocols { grid-template-columns: 1fr; } }

/* ---- hardware */
.hw .wrap { display: block; }
.hw-art { background: var(--render); border-radius: 28px; padding: 12px; overflow: hidden; }
.hw-art figcaption { font: 13px/1.4 var(--mono); color: var(--muted); padding: 10px 8px 4px; }
.specs { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.specs li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.specs b { font: 600 13px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr; } .specs li { grid-template-columns: 1fr; gap: 2px; } }

/* ---- bench */
.bench { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bench div { border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; }
.bench p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .bench { grid-template-columns: 1fr; } }

/* ---- call to action */
.cta { padding-bottom: clamp(80px, 12vw, 140px); }
.cta-box {
  background: var(--accent); color: #fff; border-radius: 28px;
  padding: clamp(36px, 6vw, 72px); display: grid; gap: 18px; justify-items: start;
  position: relative; overflow: hidden;
}
.cta-box h2 { color: #fff; max-width: 16ch; }
.cta-box p { margin: 0; font-size: 19px; max-width: 46ch; color: #fff1ea; }
.cta-box .btn { background: #15171c; border-color: #15171c; color: #fff; }
.cta-box svg { position: absolute; right: -30px; bottom: -40px; width: 300px; height: 300px; color: #15171c; opacity: .12; }
@media (max-width: 560px) { .cta-box svg { display: none; } }

/* ---- footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer p { margin: 0; }
