/* ============================================================
   Caret landing — warm light, editorial serif, product-forward
   ============================================================ */
:root {
  --paper:   #f5f4ef;          /* warm off-white background */
  --paper-2: #fcfbf8;          /* raised / cards */
  --ink:     #1a1a1e;          /* near-black text + buttons */
  --ink-2:   #2c2c33;
  --muted:   #6a6a74;
  --muted-2: #8c8c95;
  --line:    rgba(26,26,30,.12);
  --line-soft: rgba(26,26,30,.07);
  --accent:  #2f5fe6;          /* brand blue, used sparingly */
  --shot-bg: #12161f;          /* dark product window chrome */
  --maxw:    1080px;
  --serif:   'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code { font-family: var(--mono); }
em { font-style: italic; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px;
}

/* ---------- logo chip (rounded white square) ---------- */
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; background: #fff;
  border: 1px solid var(--line-soft); box-shadow: 0 1px 3px rgba(0,0,0,.06);
  flex-shrink: 0;
}
.logo-chip img { width: 74%; height: 74%; object-fit: contain; }
.logo-chip-lg { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 8px 24px -10px rgba(0,0,0,.25); margin-bottom: 30px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .14s ease, background .18s ease, border-color .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ---------- layout ---------- */
section { max-width: var(--maxw); margin: 0 auto; padding: 110px 26px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 22px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 26px;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(245,244,239,.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: 80px; padding-bottom: 50px; display: flex; flex-direction: column; align-items: center; }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 7.5vw, 88px); line-height: 1.02; letter-spacing: -.02em;
  margin-bottom: 26px;
}
.hero-sub { max-width: 600px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 34px 0 16px; }
.hero-meta { font-size: 14px; color: var(--muted-2); }

/* ---------- product window (shot) ---------- */
.shot {
  width: 100%; border-radius: 14px; overflow: hidden; background: var(--shot-bg);
  border: 1px solid rgba(0,0,0,.16);
  box-shadow: 0 50px 100px -40px rgba(20,24,40,.45), 0 8px 24px -12px rgba(0,0,0,.2);
}
.shot-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07);
}
.shot-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.shot-bar em { margin-left: 10px; font-family: var(--mono); font-size: 12px; font-style: normal; color: rgba(255,255,255,.45); }
.shot-media { width: 100%; display: block; }
.hero-shot { max-width: 940px; margin-top: 64px; }

/* ---------- why (normal editorial section) ---------- */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; max-width: 980px; }
.why-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px,3.6vw,40px); line-height: 1.12; letter-spacing: -.02em; }
.why-body p { font-size: 18px; color: var(--ink-2); margin-bottom: 18px; }
.why-body p:last-child { margin-bottom: 0; color: var(--muted); }

/* ---------- features ---------- */
.features { display: flex; flex-direction: column; gap: 96px; }
.feat { display: grid; grid-template-columns: 1fr 1.18fr; gap: 56px; align-items: center; }
.feat.reverse { grid-template-columns: 1.18fr 1fr; }
.feat.reverse .feat-text { order: 2; }
.feat-text h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px,3.4vw,38px); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 16px; }
.feat-text p { font-size: 17px; color: var(--muted); line-height: 1.6; }
.feat-note { margin-top: 16px; font-size: 14.5px !important; color: var(--muted-2) !important; padding-left: 16px; border-left: 2px solid var(--accent); }
.feat-note a { color: var(--accent); font-weight: 500; }

/* ---------- more (editorial three-up, no cards) ---------- */
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 980px; }
.more-item { padding-top: 22px; border-top: 1.5px solid var(--ink); }
.more-item h3 { font-size: 18.5px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 8px; }
.more-item p { font-size: 15.5px; color: var(--muted); }

/* ---------- download ---------- */
.download { text-align: center; }
.dl-title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px,4.4vw,52px); letter-spacing: -.02em; }
.dl-sub { color: var(--muted); max-width: 480px; margin: 14px auto 32px; font-size: 17px; }
.dl-primary-wrap { margin-bottom: 26px; }
.dl-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dl-opt {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 18px; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ink);
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.dl-opt span { font-weight: 500; font-size: 12px; color: var(--muted-2); font-family: var(--mono); }
.dl-opt:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 26px -16px rgba(0,0,0,.35); }
.dl-opt.is-os { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(47,95,230,.25); }
.dl-alt { margin-top: 20px; font-size: 14px; color: var(--muted-2); }
.dl-alt a { color: var(--muted); border-bottom: 1px solid var(--line); }
.dl-alt a:hover { color: var(--accent); border-color: var(--accent); }

.signed { text-align: left; max-width: 680px; margin: 44px auto 0; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; }
.signed-head { font-weight: 650; font-size: 15.5px; }
.signed-sub { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.signed-cmds { display: flex; flex-direction: column; gap: 9px; }
.signed-cmds > div { display: flex; align-items: center; gap: 12px; background: #14161d; border-radius: 9px; padding: 10px 13px; overflow-x: auto; }
.signed-cmds b { font-family: var(--mono); font-weight: 500; font-size: 11px; color: #7fa0ff; min-width: 54px; text-transform: uppercase; }
.signed-cmds code { color: #e7e9f0; font-size: 13px; white-space: nowrap; }

.editor-line { margin-top: 34px; }
.editor-line p { color: var(--muted); font-size: 15.5px; max-width: 580px; margin: 0 auto; }
.editor-line a { color: var(--accent); font-weight: 500; }
.editor-line .soon { color: var(--muted-2); }

/* ---------- footer ---------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 46px 26px 64px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14.5px; }
.footer-links a:hover { color: var(--ink); }
.footer-fine { width: 100%; color: var(--muted-2); font-size: 13px; }
.footer-fine a { color: var(--muted); border-bottom: 1px solid var(--line); }

/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(26,26,30,.4); backdrop-filter: blur(5px); padding: 20px; animation: fade .2s ease; }
.modal-overlay[hidden] { display: none; }
.modal { position: relative; width: 100%; max-width: 410px; text-align: center; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 20px; padding: 38px 30px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.4); animation: pop .25s cubic-bezier(.2,.8,.2,1); }
.modal-star { font-size: 38px; color: var(--accent); }
.modal h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 8px 0; letter-spacing: -.01em; }
.modal p { color: var(--muted); font-size: 15px; }
.modal-btns { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--muted-2); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--ink); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* product window lift (a touch stronger than the generic reveal) */
.shot.reveal { transform: translateY(28px) scale(.985); transition: opacity .65s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.shot.reveal.is-visible { transform: none; }

/* staggered "more" three-up */
.more-item.reveal:nth-child(2) { transition-delay: .09s; }
.more-item.reveal:nth-child(3) { transition-delay: .18s; }

/* hero entrance on load */
@keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes heroUpShot { from { opacity: 0; transform: translateY(30px) scale(.985); } to { opacity: 1; transform: none; } }
.hero > * { animation: heroUp .65s both cubic-bezier(.2,.7,.2,1); }
.hero > *:nth-child(1) { animation-delay: .02s; }
.hero > *:nth-child(2) { animation-delay: .10s; }
.hero > *:nth-child(3) { animation-delay: .18s; }
.hero > *:nth-child(4) { animation-delay: .26s; }
.hero > *:nth-child(5) { animation-delay: .34s; }
.hero-shot { animation-name: heroUpShot; animation-duration: .8s; animation-delay: .42s; }

/* typewriter caret */
.type-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: caretBlink 1.05s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* primary CTA arrow nudge */
.btn-cta::after { content: "→"; margin-left: 5px; display: inline-block; transition: transform .18s ease; }
.btn-cta:hover::after { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .shot.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero > *, .hero-shot { animation: none !important; }
  .type-caret { display: none !important; }
  .btn-cta::after { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  section { padding: 76px 22px; }
  .nav-links { display: none; }
  .why { grid-template-columns: 1fr; gap: 24px; }
  .features { gap: 64px; }
  .feat, .feat.reverse { grid-template-columns: 1fr; gap: 28px; }
  .feat.reverse .feat-text { order: 0; }
  .more { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { margin-left: 0; }
}
