/* Zenith Workspace — marketing site. No framework, no build step. */

:root {
  --paper: #fbfaf7;
  --tint: #f3f1ec;
  --ink: #16181d;
  --ink-2: #4a4f59;
  --ink-3: #868b94;
  --line: #e4e1da;
  --accent: #1f6f5c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
code { font: 0.86em var(--mono); background: rgba(0,0,0,.05); padding: .1em .35em; border-radius: 4px; }
.dark code { background: rgba(255,255,255,.1); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 720px; }
.center { text-align: center; justify-content: center; }

/* ---------------------------------------------------------------- type */
.eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7.4vw, 88px); line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 24px;
}
.display em { font-style: italic; color: var(--accent); }
.display.sm { font-size: clamp(38px, 5.5vw, 64px); }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -.015em;
  margin: 0 0 18px;
}
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 640px; margin: 0 0 32px; }
.lede.center { margin-left: auto; margin-right: auto; }
.sub { color: var(--ink-2); max-width: 560px; margin: 0 auto; }
.sub.left { margin: 0; }
.fine { font-size: 13.5px; color: var(--ink-3); margin: 18px 0 0; }
.fine.light { color: rgba(255,255,255,.55); }
h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.005em; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 22px; border-radius: 999px;
  font: 600 15.5px/1 var(--sans); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 20px -8px rgba(0,0,0,.45); }
.btn-dark:hover { background: #000; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: #cfcbc2; }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline-light:hover { border-color: #fff; }
.block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251,250,247,.82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; letter-spacing: -.01em; }
.brand-mark {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(140deg, #2b8a73, #1a4f6e); color: #fff; font-weight: 700; font-size: 15px;
}
.brand-mark.sm { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.link-login { text-decoration: none; font-size: 15px; font-weight: 550; }
.link-login:hover { color: var(--accent); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 96px 0 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* recreated app window */
.window {
  margin: 72px 0 0; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid #dedad2;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 30px 80px -30px rgba(20,25,30,.35);
}
.win-bar { display: flex; gap: 8px; padding: 13px 16px; background: #f6f5f2; border-bottom: 1px solid #ebe8e2; }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-body { display: grid; grid-template-columns: 250px 1fr; font-size: 13px; }
.win-side { background: #f7f6f3; border-right: 1px solid #ebe8e2; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.ws-brand { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; }
.ws-search { border: 1px solid #e4e1da; background: #fff; border-radius: 8px; padding: 7px 10px; color: var(--ink-3); }
.ws-label { margin: 6px 0 0; font-weight: 650; display: flex; justify-content: space-between; }
.pill { background: #e6eefc; color: #2a4d9b; font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.ws-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ws-recent li { display: flex; gap: 10px; align-items: center; }
.ws-recent b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--c); color: #fff; font-size: 11.5px; }
.ws-recent span { display: flex; flex-direction: column; font-weight: 550; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-recent small { color: var(--ink-3); font-weight: 400; font-size: 11.5px; }
.ws-foot { margin-top: auto; color: var(--ink-3); font-size: 11.5px; }
.win-main { padding: 26px 28px 30px; background: linear-gradient(180deg, #fcfcfb, #f8f7f4); }
.ws-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.ws-eyebrow { margin: 0; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #2a4d9b; font-weight: 650; }
.ws-title { margin: 2px 0 0; font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.ws-open { border: 1px solid #e4e1da; background: #fff; border-radius: 8px; padding: 7px 12px; font-weight: 600; }
.ws-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ws-tile {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid #ebe8e2; border-radius: 10px; padding: 14px;
  display: flex; flex-direction: column; gap: 3px;
}
.ws-tile::after { content: ""; position: absolute; right: -18px; top: -18px; width: 54px; height: 54px; border-radius: 50%; background: #f1f0ed; }
.ws-tile span { color: var(--c); font-size: 17px; height: 24px; }
.ws-tile b { font-size: 14px; }
.ws-tile small { color: var(--c); font-weight: 600; font-size: 11.5px; margin-top: 6px; }

/* ---------------------------------------------------------------- strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 72px; }
.strip-inner { display: flex; gap: 28px; align-items: baseline; padding-top: 22px; padding-bottom: 22px; }
.strip p { margin: 0; flex: none; font-size: 14px; font-weight: 600; color: var(--ink); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--ink-3); font-size: 14px; }
.strip li::after { content: "·"; margin: 0 10px; color: #c9c5bc; }
.strip li:last-child::after { content: ""; }

/* ---------------------------------------------------------------- sections */
.section { padding: 120px 0; }
.section.tint { background: var(--tint); }
.section-head { text-align: center; margin-bottom: 56px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.two-col.reverse > :first-child { order: 2; }
.prose p { color: var(--ink-2); margin: 0 0 18px; }
.prose .h2 { color: var(--ink); }
.sig { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ink) !important; }

.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.app { background: var(--paper); padding: 28px 24px 30px; transition: background .2s; }
.app:hover { background: #fff; }
.glyph { display: block; color: var(--c); font-size: 22px; height: 34px; }
.app p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: var(--ink); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.files-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.3); }
.file { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 10px; }
.file + .file { border-top: 1px solid #f0eee9; }
.file b { font: 700 10.5px var(--mono); color: #fff; background: var(--c); border-radius: 6px; padding: 9px 0; text-align: center; letter-spacing: .04em; }
.file span { font-weight: 550; font-size: 15px; }
.file i { font-style: normal; color: var(--ink-3); font-size: 14px; }

.dark { background: #14171c; color: #f2f1ee; }
.dark .eyebrow { color: #7fd1b9; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.three p { color: rgba(255,255,255,.62); margin: 0; font-size: 15.5px; }
.three > div { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; }

.chat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 12px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.3); }
.msg { padding: 12px 15px; border-radius: 14px; font-size: 15px; max-width: 88%; }
.msg.me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { background: var(--tint); color: var(--ink); border-bottom-left-radius: 4px; }
.msg.bot b { display: block; font-size: 12px; color: #6d4bd1; margin-bottom: 4px; }
.chat-models { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chat-models span { font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principles span { font-family: var(--serif); font-size: 15px; color: var(--accent); display: block; margin-bottom: 14px; }
.principles p { color: var(--ink-2); margin: 0; font-size: 15.5px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; display: flex; flex-direction: column; }
.plan .ticks { margin: 4px 0 30px; flex: 1; }
.plan.featured { background: var(--tint); }
.price { font-family: var(--serif); font-size: 40px; margin: 6px 0 18px; letter-spacing: -.01em; }
.tag { font-size: 11px; font-weight: 600; background: #e3efe9; color: var(--accent); padding: 3px 8px; border-radius: 99px; vertical-align: middle; margin-left: 6px; }

details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { margin-top: 40px; border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; color: var(--ink-3); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); margin: 12px 0 0; }

.cta { background: #14171c; color: #fff; padding: 120px 0; }
.cta .lede { color: rgba(255,255,255,.65); }

.foot { padding: 36px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.foot-inner { display: flex; align-items: center; gap: 32px; }
.foot nav { display: flex; gap: 22px; margin-left: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot p { margin: 0; }
.foot .brand { color: var(--ink); }

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .two-col, .three, .principles { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse > :first-child { order: 0; }
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
  .ws-grid { grid-template-columns: repeat(3, 1fr); }
  .strip-inner { flex-direction: column; gap: 8px; }
  .section { padding: 88px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 64px; }
  .apps, .plans { grid-template-columns: 1fr; }
  .ws-grid { grid-template-columns: repeat(2, 1fr); }
  .ws-tile:nth-child(n+7) { display: none; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot nav { margin: 0; flex-wrap: wrap; }
  .nav-cta { gap: 12px; }
  .link-login { font-size: 14px; }
}