/*
 * Deesha Labs — an agent company.
 * Dark, quiet, technical. The hero art sets the palette: near-black navy,
 * cyan and violet light. Everything else stays out of its way.
 */

:root {
  --bg: #070a12;
  --bg-soft: #0b0f1a;
  --surface: #10141f;
  --surface-2: #151b29;
  --border: #1e2434;
  --border-bright: #2c3447;
  --text: #eef1f7;
  --muted: #8a93a8;
  --dim: #626b80;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --accent-grad: linear-gradient(120deg, #22d3ee, #a78bfa);
  --radius: 14px;
  --maxw: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 10, 18, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 1.02rem;
}

.brand svg {
  flex: none;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-art {
  position: absolute;
  inset: 0;
  background-image: url("hero.png");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(7, 10, 18, 0.1) 0%, rgba(7, 10, 18, 0.85) 70%, var(--bg) 100%);
}

/* Keeps .wrap's horizontal padding — overriding it with `0` here let the hero
   text touch the screen edge on narrow viewports. */
.hero-inner {
  position: relative;
  padding: 104px 24px 96px;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border-bright);
  background: rgba(34, 211, 238, 0.06);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 650;
}

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

.lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 60ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent-grad);
  color: #05070d;
  font-weight: 620;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--border-bright);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

/* ---------- Sections ---------- */

section {
  padding: 76px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 620;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 1.03rem;
}

.label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 10px;
  font-weight: 600;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--bg-soft);
  padding: 26px 22px;
}

.stat b {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.02em;
  font-weight: 620;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Agent card ---------- */

.agent {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agent-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.agent-id {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--dim);
}

.chip {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.owns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.owns li {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 7px;
}

.voice {
  font-size: 0.88rem;
  color: var(--dim);
  border-left: 2px solid var(--border-bright);
  padding-left: 12px;
  margin: 0;
  font-style: italic;
}

/* ---------- Org chart ---------- */

.org-top {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.org-card {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 280px;
}

.org-stem {
  width: 1px;
  height: 34px;
  background: var(--border-bright);
  margin: 0 auto;
}

.dept {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.dept-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.dept-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.dept-head h3 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.person-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
}

.person-row + .person-row {
  border-top: 1px solid var(--border);
}

.person-row .who {
  min-width: 0;
}

.person-row .who b {
  display: block;
  font-weight: 570;
  font-size: 0.95rem;
}

.person-row .who span {
  color: var(--dim);
  font-size: 0.83rem;
}

/* ---------- Prose ---------- */

.prose {
  max-width: 68ch;
}

.prose p {
  color: var(--muted);
  font-size: 1.02rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose h2 {
  margin-top: 44px;
}

.prose ul {
  color: var(--muted);
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--cyan);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--dim);
  font-size: 0.88rem;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .hero-inner {
    padding: 72px 24px 64px;
  }

  section {
    padding: 56px 0;
  }

  .nav-inner {
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
