/* Corvid landing page. Dark navy with a violet accent and cyan glow, after the design mock. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
/* only the letters of "oh, and it's free" */
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #080b14;
  --bg-1: #0b0f1b;
  --panel: #0d1220;
  --panel-2: #111729;
  --line: #1a2034;
  --line-2: #252c45;
  --text: #eef0f8;
  --text-2: #b9b6d9;  /* the grey-lavender subtitle: 9.6:1 on --bg */
  --text-3: #8c92ad;  /* small grey text: 5.8:1 on --panel */
  --violet: #8f7cff;
  --violet-2: #b18cff;
  --violet-deep: #5b45e0;
  --cyan: #5fe3ff;
  --ok: #3ddc84;
  --think: #6aa8ff;
  --wait: #f5b13d;
  --radius: 14px;
  --wrap: 1548px;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  word-spacing: .07em; /* Plus Jakarta Sans has a narrow space */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-2); text-decoration: none; }
a:hover { color: #d2c2ff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
code, pre, kbd { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
kbd { padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; font-size: .85em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--violet-deep); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 11, 20, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; height: 86px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.wordmark { font-weight: 600; font-size: 22px; letter-spacing: .42em; margin-right: -.42em; }
.nav { display: flex; align-items: center; gap: 44px; flex: 1; margin-left: 76px; }
.nav a { color: #dfe1ee; font-size: 16px; }
.nav a:hover { color: #fff; }
.nav .nav-cta { margin-left: auto; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px 10px 18px;
  border: 1.5px solid rgba(160, 150, 255, .55);
  border-radius: 999px;
  color: #fff !important;
  box-shadow: 0 0 22px rgba(124, 104, 255, .18) inset;
  transition: border-color .2s, box-shadow .2s;
}
.pill:hover { border-color: var(--violet-2); box-shadow: 0 0 22px rgba(124, 104, 255, .35) inset, 0 0 18px rgba(124, 104, 255, .25); }
.menu-btn { display: none; margin-left: auto; padding: 8px; background: none; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); cursor: pointer; }

/* ---------- hero ---------- */

.hero { position: relative; padding-top: 62px; }
.hero::before {  /* the violet glow behind the art and a faint grid */
  content: "";
  position: absolute;
  inset: -86px 0 auto;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 380px at 70% 32%, rgba(98, 70, 230, .28), transparent 70%),
    radial-gradient(420px 300px at 40% 85%, rgba(60, 200, 255, .07), transparent 70%),
    linear-gradient(rgba(140, 130, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(140, 130, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 60% 35%, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 60% at 60% 35%, #000 30%, transparent 80%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, clamp(360px, 36vw, 560px)); align-items: center; gap: 24px; min-height: 300px; }
.hero h1 { font-size: clamp(36px, 4.25vw, 72px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.grad-violet { background: linear-gradient(100deg, #a98bff 0%, #7d6bff 60%, #8f86ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 span { white-space: nowrap; }
.grad-white { background: linear-gradient(180deg, #ffffff 30%, #c9c9e4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 24px 0 0; font-size: clamp(19px, 1.75vw, 29px); font-weight: 400; color: var(--text-2); letter-spacing: -.01em; }
.aside { position: relative; display: inline-block; margin: 6px 0 0 -2px; transform: rotate(-8deg); transform-origin: left bottom; }
.aside span { font-family: "Caveat", "Segoe Print", cursive; font-weight: 600; font-size: clamp(30px, 2.4vw, 40px); color: #9c7dff; }
.swoosh { position: absolute; left: 22px; bottom: -14px; width: 74%; height: 26px; fill: none; stroke: #7b5cf0; stroke-width: 5; stroke-linecap: round; }
.hero-art { position: relative; margin: -40px -10px -70px -60px; align-self: start; }
.hero-art img { width: 100%; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- app window ---------- */

.app {
  position: relative;
  margin: 18px auto 0;
  max-width: 1218px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0b0f1c, #090c16);
  border: 1px solid rgba(120, 190, 255, .38);
  box-shadow: 0 0 0 1px rgba(143, 124, 255, .12), 0 0 40px rgba(95, 227, 255, .12), 0 -8px 60px rgba(124, 104, 255, .18), 0 40px 80px rgba(0, 0, 0, .5);
  font-size: 12px;
  line-height: 1.5;
  color: #dfe2ef;
  overflow: hidden;
}
.app::before { /* brighter cyan edge along the top */
  content: "";
  position: absolute;
  inset: 0 12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95, 227, 255, .8), rgba(143, 124, 255, .7), transparent);
}
.app-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 4px 26px; }
.brand-sm .wordmark { font-size: 15px; letter-spacing: .38em; }
.brand-sm { gap: 8px; }
.win-btns { display: flex; gap: 22px; padding-right: 6px; }
.win-btns i { width: 10px; height: 10px; border: 1.4px solid #9aa0b8; border-radius: 2px; }
.win-btns .wb-min { height: 0; border-width: 1.4px 0 0; margin-top: 5px; }
.win-btns .wb-full { border-style: dashed; }
.app-body { display: grid; grid-template-columns: 172px minmax(0, 312px) minmax(0, 1fr) 260px; gap: 12px; padding: 4px 14px 14px; }
.app .ttl { font-size: 14px; font-weight: 600; color: #fff; }
.app .lbl { font-size: 12px; font-weight: 500; color: var(--text-3); margin-bottom: 6px; }
.app p { margin: 0; }
.app ul, .app ol { list-style: none; margin: 0; padding: 0; }
.app small { color: var(--text-3); font-size: 10.5px; }
.app .icon { width: 14px; height: 14px; }

.side { display: flex; flex-direction: column; padding: 8px 0 4px; }
.side li { display: flex; align-items: center; gap: 12px; padding: 7px 14px; margin-bottom: 5px; border-radius: 8px; font-size: 13px; color: #d6d9e8; }
.side li .icon { width: 16px; height: 16px; color: #aeb3c9; }
.side li.on { background: linear-gradient(90deg, rgba(110, 90, 240, .38), rgba(110, 90, 240, .16)); color: #fff; box-shadow: inset 0 0 0 1px rgba(150, 130, 255, .25); }
.side li.on .icon { color: #fff; }
.count { margin-left: auto; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #232a40; color: #c9cde0; font-size: 10px; text-align: center; font-weight: 500; }
.me { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 8px 4px; }
.me .bird { width: 34px; height: 30px; }
.me b { display: block; font-weight: 500; font-size: 12px; }
.me small { display: flex; align-items: center; gap: 5px; }
.me .chev { margin-left: auto; color: #8c92ad; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.dot.ok { background: var(--ok); }

.pane { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 10px; min-width: 0; }
.pane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pane-head .row { display: flex; align-items: center; gap: 10px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 7px; background: #121829; font-size: 11px; color: #d6d9e8; white-space: nowrap; }
.chip-btn .icon { width: 12px; height: 12px; }
.chip-btn.ghost { border-color: transparent; background: #121829; }
.new-chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 8px; background: rgba(110, 90, 240, .22); color: #c6bbff; font-size: 10.5px; }

.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.card { display: flex; gap: 8px; padding: 9px 10px 8px 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); }
.bird { flex: none; width: 62px; height: 56px; margin-top: -4px; }
.card-main { flex: 1; min-width: 0; }
.card-top { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.card-top b { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card p { color: #c3c7d8; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.card-foot { display: flex; justify-content: space-between; margin-top: 8px; color: var(--text-3); font-size: 10.5px; }
.card-foot span { display: inline-flex; align-items: center; gap: 4px; }
.card-foot .icon { width: 11px; height: 11px; }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-work { color: var(--ok); }
.st-think { color: var(--think); }
.st-wait { color: var(--wait); }
.st-done { color: var(--ok); }
.st-done::before { display: none; }
.st .icon { width: 11px; height: 11px; }

.board { padding: 12px 18px; }
.msgs > li > div { min-width: 0; overflow-wrap: anywhere; }
.msgs > li { display: flex; gap: 12px; margin: 14px 0 0; }
.msgs .av { flex: none; width: 40px; height: 36px; }
.msgs .who { display: flex; align-items: baseline; gap: 12px; margin-bottom: 2px; }
.msgs .who b { font-weight: 600; }
.msgs time { color: var(--text-3); font-size: 10.5px; }
.msgs > li > div { color: #d6d9e8; min-width: 0; }
.msgs ul { margin: 2px 0 2px 18px; }
.msgs ul li { list-style: disc; }
.you { display: grid; place-items: center; width: 32px !important; height: 32px !important; margin: 0 4px; border-radius: 50%; background: linear-gradient(135deg, #3b4363, #22283c); font-weight: 600; color: #e6e8f2; }
.hi { color: #fff; font-weight: 500; }
.link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px !important; color: #a993ff; text-decoration: underline; text-underline-offset: 3px; }

.info { padding: 12px 16px; }
.info hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.proj { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #fff; }
.proj .icon { width: 16px; height: 16px; }
.meta { display: flex; align-items: center; gap: 5px; margin-top: 4px !important; color: var(--text-3); font-size: 10.5px; }
.activity li, .meter p { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.activity time { color: var(--text-3); font-size: 10.5px; white-space: nowrap; }
.git li { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.git .ok { color: var(--ok); }
.meter { margin-bottom: 10px; }
.meter p span:last-child { color: var(--text-3); font-size: 10.5px; }
.bar { height: 6px; border-radius: 3px; background: #1d2338; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #6b55f0, #8f7cff); }
.illus-note { text-align: center; color: var(--text-3); font-size: 13px; margin: 16px 0 0; }

/* ---------- sections ---------- */

.section { padding: 110px 0 40px; }
.section.alt { margin-top: 70px; padding-bottom: 80px; background: linear-gradient(180deg, rgba(110, 90, 240, .07), transparent 80%); border-top: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--violet-2); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.section h2 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.lead { max-width: 720px; margin: 16px 0 0; color: var(--text-2); font-size: 18px; }
.more { margin: 18px 0 0; color: var(--text-2); }
.more a { text-decoration: underline; text-decoration-color: rgba(177, 140, 255, .45); text-underline-offset: 3px; }
.more a::after { content: " →"; }
.small { color: var(--text-3); font-size: 14px; }
.center { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 44px; }
.grid article { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); }
.grid h3 { font-size: 18px; margin-bottom: 8px; }
.grid p { margin: 0; color: var(--text-2); font-size: 15px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 64px; }
.frame { margin: 0; }
.frame img { border-radius: 12px; border: 1px solid rgba(120, 190, 255, .3); box-shadow: 0 0 30px rgba(124, 104, 255, .14), 0 24px 50px rgba(0, 0, 0, .45); }
.frame figcaption { margin-top: 12px; color: var(--text-2); font-size: 15px; }
.frame b { color: var(--text); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { padding: 18px 22px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(13, 18, 32, .8); color: var(--text-2); }
.ticks b { color: var(--text); }
code { color: #d2c6ff; }
.steps { list-style: none; counter-reset: step; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; background: rgba(110, 90, 240, .25); color: #d2c6ff; font-weight: 700; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--text-2); font-size: 15px; }
.steps pre { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #060810; border: 1px solid var(--line); overflow-x: auto; font-size: 13.5px; }
.soon { color: var(--text-3); }
.needs { margin-top: 24px; padding: 22px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.needs h3 { font-size: 16px; margin-bottom: 8px; }
.needs ul { margin: 0; padding-left: 20px; color: var(--text-2); columns: 2; column-gap: 40px; }

.foot { margin-top: 90px; border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--text-3); font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot p { margin: 0; }
.foot .tm { flex-basis: 100%; order: 3; font-size: 13px; }

/* ---------- smaller screens ---------- */

@media (max-width: 1360px) {
  .app-body { grid-template-columns: 160px minmax(0, 290px) minmax(0, 1fr) 230px; }
}
@media (max-width: 1180px) {
  .app-body { grid-template-columns: 160px minmax(0, 300px) minmax(0, 1fr); }
  .info { display: none; }
  .nav { gap: 28px; margin-left: 40px; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; margin: -30px auto -6px; width: 100%; }
  .hero-copy { text-align: center; }
  .aside { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: clamp(36px, 7vw, 64px); }
  .app-body { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .side { display: none; }
  .two-col, .shots { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px 18px;
    background: rgba(8, 11, 20, .97);
    border-bottom: 1px solid var(--line);
  }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .js .nav .nav-cta { margin: 14px 0 0; justify-content: center; border-bottom: 1.5px solid rgba(160, 150, 255, .55); }
  .nav { flex-wrap: wrap; gap: 8px 20px; margin-left: 0; }
  .top-inner { height: 68px; }
  html:not(.js) .top-inner { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 640px) {
  .app-body { grid-template-columns: 1fr; }
  .win-btns { gap: 14px; }
  .needs ul { columns: 1; }
  .hero h1 span { white-space: normal; }
  .hero h1 br { display: none; }
  .wordmark { font-size: 18px; }
  .section { padding-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img { animation: none; }
  * { transition: none !important; }
}
