/* ============================================================================
   Project Board — landing site
   Dark, navy and sky-blue, after the logo. Single stylesheet, no build.
   ========================================================================== */

:root {
  --bg:        #0a1020;
  --bg-2:      #101a30;
  --surface:   #142039;
  --surface-2: #1b2b4b;
  --border:    rgba(138, 180, 248, 0.14);
  --border-2:  rgba(138, 180, 248, 0.26);

  --text:      #eaf1fd;
  --text-dim:  #a5b6d6;
  --text-mute: #7386a8;

  --navy:  #22355c;
  --blue:  #8ab4f8;
  --sky:   #c3d9fc;
  --azure: #5b8def;

  --grad:      linear-gradient(115deg, var(--sky) 0%, var(--blue) 45%, var(--azure) 100%);
  --grad-soft: linear-gradient(115deg, rgba(138, 180, 248, .16), rgba(34, 53, 92, .5));

  --radius:   14px;
  --radius-lg: 22px;
  --maxw:     1140px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Poppins", var(--font-body);
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 40rem at 12% -8%, rgba(138, 180, 248, .17), transparent 60%),
    radial-gradient(52rem 38rem at 92% 4%, rgba(34, 53, 92, .75), transparent 60%),
    radial-gradient(46rem 46rem at 60% 120%, rgba(91, 141, 239, .12), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(138, 180, 248, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 180, 248, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--sky); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1rem; }

code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: rgba(138, 180, 248, .1);
  padding: .12rem .4rem;
  border-radius: 6px;
  color: var(--sky);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  color: var(--text);
  background: rgba(138, 180, 248, .05);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--border-2); color: var(--text); }

.btn-primary {
  border: 0;
  color: #0b1326;
  background: var(--grad);
  box-shadow: 0 10px 30px -10px rgba(138, 180, 248, .55);
}
.btn-primary:hover { color: #0b1326; box-shadow: 0 16px 40px -12px rgba(138, 180, 248, .65); }

.btn-ghost { background: transparent; }

.btn svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 16, 32, .74);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; }

.nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav a {
  color: var(--text-dim);
  font-size: .95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }

.header-cta { display: flex; gap: .6rem; align-items: center; }

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}
.hero-logo { width: 112px; height: 112px; margin-bottom: 1.4rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: .4rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--grad-soft);
  margin-bottom: 1.6rem;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(138, 180, 248, .2);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 800;
  max-width: 17ch;
  margin: 0 auto .6rem;
}
.hero .lead {
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  max-width: 62ch;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.hero-note {
  color: var(--text-mute);
  font-size: .9rem;
}

/* ---------------------------------------------------------- screenshot frame */
.mockup {
  position: relative;
  max-width: 960px;
  margin: 3.2rem auto 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow:
    0 40px 120px -30px rgba(0, 0, 0, .7),
    0 0 0 1px rgba(255, 255, 255, .03) inset;
  overflow: hidden;
  text-align: left;
}
.mockup::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  background: var(--grad);
  opacity: .9;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
}
.mock-titlebar .lights { display: flex; gap: .4rem; }
.mock-titlebar .lights span { width: 11px; height: 11px; border-radius: 50%; background: #3a4a6b; }
.mock-titlebar .lights span:nth-child(1) { background: #ff5f57; }
.mock-titlebar .lights span:nth-child(2) { background: #febc2e; }
.mock-titlebar .lights span:nth-child(3) { background: #28c840; }
.mock-titlebar .file {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-mute);
  margin-left: .6rem;
}
.mockup img { display: block; width: 100%; height: auto; }

/* -------------------------------------------------------------- section base */
section { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 3rem; }
.section-head .kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .8rem;
}
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.section-head p { color: var(--text-dim); font-size: 1.08rem; margin: 0; }

/* --------------------------------------------------------------- stat strip */
.stats {
  padding: 2.2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(138, 180, 248, .025);
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat .n {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
}
.stat .l { color: var(--text-mute); font-size: .9rem; }

/* ------------------------------------------------------------- feature grid */
.features .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.card {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(138, 180, 248, .06), rgba(138, 180, 248, .015));
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.card .ico {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.card .ico svg { width: 22px; height: 22px; stroke: var(--blue); }
.card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.card p { color: var(--text-dim); font-size: .96rem; margin: 0; }

/* ------------------------------------------------------------- walkthrough */
.tour-intro { text-align: center; color: var(--text-mute); font-size: .95rem; margin: -1.6rem auto 3rem; max-width: 60ch; }
.tour { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); counter-reset: tour; }
.tour-item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.tour-item:nth-child(even):not(.wide) .tour-text { order: 2; }
.tour-item.wide { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; width: 100%; }
.tour-text h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.tour-text h3::before {
  counter-increment: tour;
  content: counter(tour);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  color: #0b1326;
  background: var(--grad);
  margin-bottom: .9rem;
}
.tour-text p, .tour-text li { color: var(--text-dim); font-size: 1rem; }
.tour-text ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.tour-text li { margin-bottom: .45rem; }
.tour-text strong { color: var(--text); font-weight: 600; }
.tour-text .aside { color: var(--text-mute); font-size: .9rem; }
.shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}
.shot img { display: block; width: 100%; height: auto; }

.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}
.terminal pre {
  margin: 0;
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .84rem;
  line-height: 1.8;
  color: #c9d6ee;
}
.terminal pre .c { color: var(--text-mute); }
.terminal pre .p { color: var(--blue); }

/* ----------------------------------------------------------------- pricing */
.pricing .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 900px; margin: 0 auto; }
.plan {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(138, 180, 248, .06), rgba(138, 180, 248, .015));
}
.plan.pro {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 30px 80px -30px rgba(91, 141, 239, .5);
}
.plan h3 { font-size: 1.3rem; display: flex; align-items: center; gap: .6rem; }
.plan .price { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; margin: .3rem 0 .2rem; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--text-mute); }
.plan .tagline { color: var(--text-dim); font-size: .95rem; min-height: 2.8em; }
.plan ul { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.plan li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .6rem;
  font-size: .95rem;
  color: var(--text-dim);
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.plan li.muted { color: var(--text-mute); }
.plan li.muted::before { content: "–"; color: var(--text-mute); }
.pill-trial {
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--grad);
  color: #0b1326;
}
.pricing-notes { max-width: 900px; margin: 2rem auto 0; color: var(--text-dim); font-size: .98rem; }
.pricing-notes strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: .75rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(138, 180, 248, .04);
}
tr:last-child td { border-bottom: 0; }
td { color: var(--text-dim); }
td:first-child { color: var(--text); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.plans-table { max-width: 900px; margin: 1.2rem auto 0; }

.reference .grid { display: grid; gap: 2.4rem; }
.reference h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.reference .sub { color: var(--text-dim); margin-bottom: 1rem; }

/* ------------------------------------------------------------------ install */
.install .box {
  max-width: 780px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}
.install .box-head {
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
}
.install pre {
  margin: 0;
  padding: 1.3rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .88rem;
  line-height: 1.8;
  color: #c9d6ee;
}
.install pre .c { color: var(--text-mute); }
.install pre .p { color: var(--blue); }
.install-alt { text-align: center; color: var(--text-mute); font-size: .92rem; margin-top: 1.2rem; }

/* --------------------------------------------------------------- cta band */
.cta-band { text-align: center; }
.cta-band .inner {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  background: var(--grad-soft);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); }
.cta-band p { color: var(--text-dim); margin-bottom: 1.6rem; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  color: var(--text-mute);
  font-size: .9rem;
}
.site-footer .cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer .brand { color: var(--text); margin-bottom: .6rem; }
.site-footer .brand img { width: 26px; height: 26px; }
.site-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer nav a { color: var(--text-dim); }
.site-footer nav a:hover { color: var(--text); }
.site-footer .fine { max-width: 70ch; line-height: 1.6; }

/* ------------------------------------------------- documentation pages (.md) */
.doc { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.doc .container { max-width: 900px; }
.doc h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); margin-bottom: .8em; }
.doc h2 { font-size: 1.6rem; margin-top: 2.2em; padding-top: .2em; }
.doc h3 { font-size: 1.22rem; margin-top: 1.8em; }
.doc h4 { font-size: 1.05rem; margin-top: 1.5em; }
.doc p, .doc li { color: var(--text-dim); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.doc li { margin-bottom: .35rem; }
.doc img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border-2); }
.doc pre {
  margin: 0 0 1.2rem;
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: .86rem;
  line-height: 1.7;
  color: #c9d6ee;
}
.doc pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.doc table {
  display: block;
  overflow-x: auto;
  margin: 0 0 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.doc blockquote {
  margin: 0 0 1.2rem;
  padding: .2rem 1.2rem;
  border-left: 3px solid var(--blue);
  background: rgba(138, 180, 248, .05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 2.2rem 0; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .features .grid { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .pricing .grid { grid-template-columns: 1fr; }
  .tour-item { grid-template-columns: 1fr; }
  .tour-item:nth-child(even) .tour-text { order: 0; }
}

@media (max-width: 680px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .features .grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .site-header .container { gap: .75rem; }
  .brand { font-size: .98rem; }
  .brand img { width: 28px; height: 28px; }
  .header-cta { margin-left: auto; }
  .header-cta .btn-primary { padding: .58rem 1rem; font-size: .88rem; }
  .hero-logo { width: 88px; height: 88px; }
  .container { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
