/* Plume website. Visual language mirrors the app: same palette tokens, the
   VS Code mono stack for code and labels, calm surfaces, one accent. */

:root {
  --bg: #0e1116;
  --panel: #151a22;
  --panel-2: #1a202b;
  --border: #242c3a;
  --text: #d7dde8;
  --muted: #7d879b;
  --accent: #7aa2f7;
  --accent-2: #9d7cf7;
  --green: #6fbf8f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --ring: rgba(122, 162, 247, 0.35);

  --mono: Menlo, Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f8;
    --panel: #ffffff;
    --panel-2: #eef0f5;
    --border: #d9dde6;
    --text: #24292f;
    --muted: #5c6675;
    --accent: #3b63c4;
    --accent-2: #6b4fd0;
    --green: #1a7f4b;
    --shadow: 0 24px 70px rgba(30, 40, 60, 0.16);
    --ring: rgba(59, 99, 196, 0.28);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--mono); }

/* Ambient background: faint dotted grid and one accent glow, both fixed and
   non interactive, fading out so content stays readable. */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 22%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
}
.bg-glow {
  position: fixed;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 80vh;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  filter: blur(20px);
  opacity: 0.7;
  pointer-events: none;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 48px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.brand .feather { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 7px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-links a.ghost {
  color: var(--text);
  border: 1px solid var(--border);
}
.nav-links a.ghost:hover { border-color: var(--accent); }

/* Hero */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 9vw, 110px) clamp(18px, 5vw, 48px) 40px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
}
.eyebrow::before { content: "// "; color: var(--muted); }
.hero h1 {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 22px 0 0;
}
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: clamp(16px, 2.1vw, 19px);
  color: var(--muted);
}
.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border);
  transition: transform 0.12s ease, box-shadow 0.2s, border-color 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, white 8%), var(--accent));
  border-color: transparent;
  color: #0b1020;
  box-shadow: 0 10px 30px var(--ring);
}
.btn.ghost { background: var(--panel); }
.btn.ghost:hover { border-color: var(--accent); }
.hero-meta {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border); display: inline-block; }

/* Screenshot frames */
.shot {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
  pointer-events: none;
}
.shot img { display: block; width: 100%; height: auto; }
.shot-chrome {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.shot-chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.hero-shot {
  margin-top: 52px;
  transform: perspective(1600px) rotateX(2.2deg);
}

/* Trust strip */
.strip {
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding: 0 clamp(18px, 5vw, 48px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.strip div {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 60%, transparent);
  text-align: center;
}
.strip b { display: block; font-size: 22px; letter-spacing: -0.01em; }
.strip span { font-size: 13px; color: var(--muted); }

/* Sections */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 11vw, 130px) clamp(18px, 5vw, 48px) 0;
}
.kicker {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: "// "; color: var(--muted); }
.section h2 {
  font-size: clamp(26px, 4.4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 800;
  margin: 12px 0 0;
  max-width: 20ch;
}

/* Feature grid */
.grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  transition: transform 0.15s ease, border-color 0.15s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.card .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
  margin-bottom: 15px;
}
.card h3 { font-size: 16.5px; margin-bottom: 7px; letter-spacing: -0.01em; }
.card p { font-size: 14px; color: var(--muted); }

/* Alternating showcase rows */
.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 56px;
}
.feature-row.reverse .feature-text { order: 2; }
.feature-text h3 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.feature-text p { color: var(--muted); font-size: 16px; }
.feature-text code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--accent);
}

/* Download */
.download { text-align: center; }
.download h2 { margin-inline: auto; max-width: none; }
.dl-note { color: var(--muted); max-width: 560px; margin: 16px auto 0; }
.dl-grid {
  margin: 40px auto 0;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
  transition: transform 0.13s ease, border-color 0.15s, box-shadow 0.2s;
}
.dl-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px var(--ring);
}
.dl-card .dl-os { font-weight: 700; font-size: 16px; }
.dl-card .dl-kind { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.dl-card[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.dl-note-fine { margin-top: 26px; font-size: 13px; color: var(--muted); }

/* Footer */
.foot {
  max-width: var(--maxw);
  margin: clamp(80px, 12vw, 140px) auto 0;
  padding: 32px clamp(18px, 5vw, 48px) 56px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
}
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.foot-brand svg { color: var(--accent); }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.foot-made { color: var(--muted); font-size: 13px; margin-left: auto; }

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-text { order: 0; }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav-links a:not(.ghost) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .hero-shot { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .btn:hover, .card:hover, .dl-card:hover { transform: none; }
  .hero-shot { transform: none; }
}
