/* ==========================================================================
   Vita for Business — Landing page (Design 1 · "Editorial")
   Static implementation. Design tokens live in :root; everything else is
   reproduced faithfully from the design handoff.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #050007;
  --surface: #080109;          /* principle cells */
  --surface-2: #08010E;        /* diagram panel */
  --surface-3: #0A0210;        /* dashboard panel */
  --tint: rgba(255, 255, 255, 0.012);

  /* Text */
  --text: #ffffff;
  --text-body: rgba(255, 255, 255, 0.66);
  --text-muted: rgba(255, 255, 255, 0.60);
  --text-muted-2: rgba(255, 255, 255, 0.55);
  --text-soft: rgba(255, 255, 255, 0.58);
  --text-faint: rgba(255, 255, 255, 0.45);

  /* Lines */
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.07);

  /* Brand */
  --magenta: #E946C5;
  --violet: #A855F7;
  --indigo: #6366F1;
  --indigo-light: #818cf8;
  --green: #4ade80;
  --amber: #fbbf24;

  /* Signature gradients */
  --grad: linear-gradient(135deg, #E946C5, #A855F7, #6366F1);
  --grad-text: linear-gradient(120deg, #E946C5, #A855F7 55%, #6366F1);

  /* Fonts */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ===== Reset / base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(233, 70, 197, 0.3); }

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

h1, h2, h3 { font-weight: 400; }

/* Offset anchored sections from the sticky nav */
[id] { scroll-margin-top: 84px; }

/* ===== Layout helpers ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container--center { text-align: center; }

.section { padding: 88px 0; }
.section--tint { background: var(--tint); border-top: 1px solid var(--border-soft); }

.section__head { text-align: center; margin-bottom: 54px; }
.section__head--narrow { max-width: 720px; margin-left: auto; margin-right: auto; margin-bottom: 48px; }
.section__head--narrow .section__body { margin-top: 20px; }

.section__body {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 22px;
  font-weight: 300;
}

/* ===== Type primitives ===== */
.h2 { font-family: var(--font-serif); font-size: 46px; line-height: 1.08; }
.h2--mb { margin-bottom: 46px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.eyebrow--magenta { color: var(--magenta); }
.eyebrow--violet { color: var(--violet); }
.eyebrow--indigo { color: var(--indigo); }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn--primary { padding: 14px 26px; background: var(--grad); font-weight: 600; color: #fff; }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(168, 85, 247, 0.32); }
.btn--lg { padding: 15px 30px; }

.btn--secondary {
  padding: 14px 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.btn--secondary:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.34); }

.btn--pill {
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.btn--pill:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.34); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 0, 7, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  font-size: 26px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.brand__name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.brand__sub { color: rgba(255, 255, 255, 0.5); font-weight: 400; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}
.nav__links a { transition: color .15s ease; }
.nav__links a:hover { color: #fff; }

/* ===== Hero ===== */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 40px 90px;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 900px 520px at 50% 0%, rgba(168, 85, 247, 0.16), transparent 70%);
  pointer-events: none;
}
.hero__content { position: relative; max-width: 880px; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 34px;
  font-family: var(--font-mono);
}
.hero__title {
  font-family: var(--font-serif);
  font-size: 78px;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero__subhead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--text-body);
  margin-top: 30px;
  max-width: 680px;
  font-weight: 300;
}
.hero__cta { display: flex; gap: 14px; margin-top: 42px; flex-wrap: wrap; }

/* ===== Problem ===== */
.problem { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.problem .eyebrow { margin-bottom: 18px; }
.problem__cards { display: grid; gap: 14px; }

.card {
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color .15s ease, background .15s ease;
}
.card:hover { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.035); }
.card__title { font-weight: 600; font-size: 16px; margin-bottom: 7px; }
.card__body { font-size: 14.5px; color: var(--text-muted-2); line-height: 1.5; font-weight: 300; }

/* ===== Principles ===== */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;                      /* hairline dividers via the background showing through */
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.principle { padding: 34px 26px; background: var(--surface); transition: background .15s ease; }
.principle:hover { background: #0c0213; }
.principle__num { font-family: var(--font-serif); font-size: 34px; color: rgba(255, 255, 255, 0.22); }
.principle__title { font-weight: 600; font-size: 17px; margin: 16px 0 9px; }
.principle__body { font-size: 14px; color: var(--text-muted-2); line-height: 1.5; font-weight: 300; }

/* ===== Architecture ===== */
.arch { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.steps { margin-top: 30px; display: grid; gap: 20px; }
.step { display: flex; gap: 16px; }
.step__num {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.step__num--magenta { background: rgba(233, 70, 197, 0.12); border: 1px solid rgba(233, 70, 197, 0.3); color: var(--magenta); }
.step__num--violet { background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.3); color: var(--violet); }
.step__num--indigo { background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.3); color: var(--indigo-light); }
.step__title { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.step__body { font-size: 14.5px; color: var(--text-muted-2); line-height: 1.5; font-weight: 300; }

/* Architecture diagram */
.diagram {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
  padding: 34px 30px;
}
.diagram__user {
  text-align: center;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.diagram__connector { height: 22px; width: 1px; background: rgba(255, 255, 255, 0.18); margin: 0 auto; }
.diagram__master {
  text-align: center;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(233, 70, 197, 0.16), rgba(99, 102, 241, 0.16));
  border: 1px solid rgba(168, 85, 247, 0.32);
}
.diagram__master-title { font-weight: 700; font-size: 16px; }
.diagram__master-sub { font-size: 12.5px; color: var(--text-muted-2); margin-top: 3px; }
.diagram__fan { display: flex; justify-content: center; gap: 40px; margin: 4px 0; }
.diagram__fan span { height: 22px; width: 1px; background: rgba(255, 255, 255, 0.18); }
.diagram__chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chip {
  padding: 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.chip:hover { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); }
.diagram__caption {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

/* ===== Dashboard mockup ===== */
.dashboard {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(168, 85, 247, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.04);
  background: var(--surface-3);
}
.dash__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.dash__mark {
  font-size: 18px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dash__title { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.dash__spacer { flex: 1; }
.dash__status { font-size: 11px; font-family: var(--font-mono); color: var(--text-faint); }

.dash__body { display: grid; grid-template-columns: 200px 1fr; min-height: 360px; text-align: left; }
.dash__rail {
  border-right: 1px solid var(--border-soft);
  padding: 16px 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.dash__rail-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 2px;
}
.agent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}
.agent--active { background: rgba(168, 85, 247, 0.1); color: #fff; }

.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.dot--green { background: var(--green); }
.dot--amber { background: var(--amber); }
.dot--magenta { background: var(--magenta); }
.dot--violet { background: var(--violet); }
.dot--indigo { background: var(--indigo); }

.dash__main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.dash__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }

.panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}
.panel__title { font-size: 12px; font-weight: 600; margin-bottom: 14px; }

.bars { display: flex; align-items: flex-end; gap: 18px; height: 90px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar__fill { width: 100%; border-radius: 5px 5px 0 0; }
.bar__label { font-size: 10px; color: rgba(255, 255, 255, 0.45); }

.donut-wrap { display: flex; align-items: center; justify-content: center; height: 90px; }
.donut { width: 74px; height: 74px; border-radius: 50%; background: conic-gradient(#22c55e 0 62%, #A855F7 62% 100%); }
.legend { display: flex; gap: 14px; justify-content: center; margin-top: 10px; font-size: 10.5px; color: var(--text-muted-2); }
.legend__swatch { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 5px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}
.stat__num { font-size: 22px; font-weight: 700; }
.stat__num--grad {
  background: linear-gradient(135deg, #E946C5, #A855F7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-size: 10.5px; color: rgba(255, 255, 255, 0.45); margin-top: 2px; }

.activity {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}
.activity__label {
  font-size: 11px;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  color: var(--text-faint);
  margin-bottom: 12px;
}
.activity__list { display: grid; gap: 10px; }
.activity__item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(255, 255, 255, 0.72); }
.activity__spacer { flex: 1; }
.activity__time { font-family: var(--font-mono); font-size: 10.5px; color: rgba(255, 255, 255, 0.35); }

/* ===== What you get ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card--lg { padding: 30px; border-radius: 16px; }
.card--lg .card__title { font-size: 18px; margin-bottom: 12px; }
.card--lg .card__body { font-size: 15px; color: var(--text-soft); line-height: 1.55; }

/* ===== Proof + CTA ===== */
.cta-section { padding: 96px 0; }
.quote {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.45;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  max-width: 860px;
  margin: 0 auto;
}
.quote__attr {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
}
.cta-panel {
  margin-top: 70px;
  padding: 56px 40px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 22px;
  background: radial-gradient(ellipse 700px 300px at 50% 0%, rgba(168, 85, 247, 0.14), transparent 70%);
}
.cta-panel__title { font-family: var(--font-serif); font-size: 52px; line-height: 1.05; }
.cta-panel__actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; }
.cta-panel__footer { margin-top: 46px; font-size: 13.5px; color: rgba(255, 255, 255, 0.45); }
.cta-panel__footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cta-panel__footer a:hover { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .problem { grid-template-columns: 1fr; gap: 36px; }
  .arch { grid-template-columns: 1fr; gap: 40px; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; gap: 16px; }
  .hero { padding: 88px 40px 72px; }
  .hero__title { font-size: clamp(48px, 9vw, 78px); }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav__inner { padding: 16px 20px; gap: 10px; }
  .btn--pill { padding: 8px 13px; font-size: 11.5px; }
  h1 br, h2 br { display: none; }   /* let long headings wrap instead of overflowing */
  .hero { padding: 64px 20px 52px; }
  .hero__title { font-size: clamp(40px, 11vw, 78px); }
  .hero__subhead { font-size: 18px; }
  .section { padding: 64px 0; }
  .cta-section { padding: 72px 0; }
  .h2 { font-size: clamp(32px, 8.5vw, 46px); }
  .principles { grid-template-columns: 1fr; }
  .dash__body { grid-template-columns: 1fr; }
  .dash__rail { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .dash__row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-panel { padding: 40px 22px; }
  .cta-panel__title { font-size: clamp(30px, 8.5vw, 52px); }
  .quote { font-size: 24px; }
}

@media (max-width: 480px) {
  .brand__sub { display: none; }   /* compact "∞ Vita" logo on phones (leaves room for the nav CTA) */
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .chip, .principle, .nav__links a { transition: none; }
}
