:root {
  --ink: #07111f;
  --ink-soft: #233145;
  --muted: #607086;
  --paper: #f7f9fc;
  --white: #ffffff;
  --line: rgba(7, 17, 31, 0.12);
  --cyan: #0ea5e9;
  --teal: #14b8a6;
  --mint: #ccfbf1;
  --dark: #07111f;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(204, 251, 241, 0.52), rgba(247, 249, 252, 0) 420px),
    var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 40px rgba(7, 17, 31, 0.08);
}

nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink-soft);
  font-size: 14px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

nav a:hover {
  background: rgba(7, 17, 31, 0.06);
  transform: translateY(-1px);
}

nav .nav-cta {
  color: #fff;
  background: var(--ink);
}

nav .nav-cta:hover {
  color: #fff;
  background: #0e1b2d;
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
  align-items: center;
  gap: 64px;
  padding: 40px 0 78px;
  overflow: hidden;
}

.hero > *,
.project-card,
.audit-card {
  min-width: 0;
}

.eyebrow,
.mini-label {
  margin: 0 0 14px;
  color: #087f7b;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 760px;
  font-size: clamp(48px, 7.1vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  max-width: 760px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.15;
}

.hero-text,
.section-heading p,
.project-body p,
.insight p,
.cta-card p {
  color: #526176;
  font-size: 17px;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 760;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 18px 38px rgba(7, 17, 31, 0.24);
}

.button.primary:hover {
  background: #0d1d31;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.9)),
    #ffffff;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(7, 17, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 17, 31, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000, transparent 84%);
  pointer-events: none;
}

.window-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #d1d9e5;
}

.window-bar strong {
  margin-left: 8px;
}

.audit-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(7, 17, 31, 0.14);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 150px;
  margin-bottom: 14px;
}

.score {
  display: block;
  font-size: 76px;
  line-height: 0.88;
  letter-spacing: 0;
}

.score-ring {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 50%, transparent 51%),
    conic-gradient(var(--teal) 0 72%, rgba(7, 17, 31, 0.1) 72% 100%);
}

.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.audit-card p {
  color: #526176;
  line-height: 1.55;
}

.audit-card.dark {
  color: #f8fafc;
  background: #07111f;
}

.audit-card.dark p {
  color: #b6c5d8;
}

.source-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.source-strip span {
  border: 1px solid rgba(7, 17, 31, 0.1);
  border-radius: var(--radius);
  padding: 12px 8px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 13px;
  font-weight: 720;
}

.showcase,
.audit-section,
.future-section,
.process,
.cta-section {
  padding: 86px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(7, 17, 31, 0.08);
}

.project-card.feature {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
}

.project-media {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 32px;
}

.agava-media {
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.92), rgba(17, 33, 54, 0.96)),
    #07111f;
}

.agava-media img {
  width: min(100%, 420px);
  filter: drop-shadow(0 18px 32px rgba(20, 184, 166, 0.14));
}

.suite-media {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(20, 184, 166, 0.24)),
    #f8fbff;
}

.suite-lines {
  width: min(100%, 260px);
  display: grid;
  gap: 18px;
}

.suite-lines span {
  height: 58px;
  border: 1px solid rgba(7, 17, 31, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.78) 0 18%, transparent 18%),
    linear-gradient(90deg, rgba(14, 165, 233, 0.22), rgba(20, 184, 166, 0.14));
}

.suite-lines span:nth-child(2) {
  width: 86%;
}

.suite-lines span:nth-child(3) {
  width: 72%;
}

.project-body {
  padding: 30px;
}

.project-body a {
  display: inline-flex;
  margin-top: 10px;
  color: #087f7b;
  font-weight: 760;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.insight {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.insight span {
  display: inline-flex;
  margin-bottom: 28px;
  color: #087f7b;
  font-size: 13px;
  font-weight: 800;
}

.process-panel,
.cta-card {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: #07111f;
  color: #f8fafc;
  box-shadow: var(--shadow);
}

.future-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(204, 251, 241, 0.66), rgba(255, 255, 255, 0.92)),
    #fff;
  box-shadow: 0 18px 54px rgba(7, 17, 31, 0.08);
}

.future-copy {
  align-self: center;
  padding: 20px;
}

.future-copy p {
  color: #526176;
  font-size: 17px;
  line-height: 1.68;
}

.future-roadmap {
  display: grid;
  gap: 12px;
}

.future-roadmap article {
  border: 1px solid rgba(7, 17, 31, 0.1);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.future-roadmap span {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 6px 9px;
  color: #087f7b;
  background: rgba(20, 184, 166, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.future-roadmap strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.future-roadmap p {
  margin: 0;
  color: #526176;
  line-height: 1.55;
}

.process-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 40px;
  padding: 42px;
}

.process-panel .eyebrow,
.cta-card .eyebrow {
  color: #67e8f9;
}

.process-panel ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-panel li {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.process-panel span,
.cta-card p {
  color: #b9c8d8;
}

.cta-card {
  text-align: center;
  padding: 54px 28px;
}

.cta-card h2,
.cta-card p {
  margin-left: auto;
  margin-right: auto;
}

.cta-card .button.primary {
  margin-top: 16px;
  color: var(--ink);
  background: #ccfbf1;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  animation: reveal-up 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 90ms;
}

.delay-2 {
  transition-delay: 160ms;
  animation-delay: 160ms;
}

.delay-1 {
  animation-delay: 90ms;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    align-items: flex-start;
  }

  nav {
    max-width: 52vw;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero,
  .project-card.feature,
  .future-panel,
  .process-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 32px;
    padding-top: 28px;
    overflow: visible;
  }

  .hero-copy {
    max-width: 420px;
  }

  h1 {
    font-size: clamp(38px, 10vw, 54px);
    line-height: 0.98;
  }

  .project-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .source-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .site-header {
    width: min(100% - 20px, 1180px);
    display: grid;
  }

  nav {
    max-width: 100%;
    border-radius: var(--radius);
  }

  nav a {
    white-space: nowrap;
  }

  .section-shell,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .hero-actions {
    display: grid;
    max-width: 340px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.04;
    max-width: 340px;
  }

  .hero-text {
    font-size: 16px;
    max-width: 340px;
  }

  .hero-visual {
    width: 100%;
    max-width: 360px;
  }

  .signal-row {
    max-width: 340px;
  }

  .hero-visual {
    padding: 12px;
  }

  .audit-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 126px;
  }

  .score {
    font-size: 58px;
  }

  .score-ring {
    width: 88px;
    height: 88px;
  }

  .project-media {
    min-height: 220px;
  }

  .process-panel {
    padding: 26px;
  }

  .site-footer {
    display: grid;
  }
}

/* ── Tour section ────────────────────────────────────────────────────────── */
.tour-section { background: var(--ink); }
.tour-section .section-heading h2,
.tour-section .section-heading p { color: rgba(255,255,255,.85); }
.tour-section .eyebrow { color: var(--cyan); }

.tour-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.tour-item { display: flex; flex-direction: column; gap: 12px; }

.tour-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cyan);
}

.mock-screen {
  background: #0d1829;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mock-bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.mock-bar em { font-style: normal; font-size: .72rem; color: rgba(255,255,255,.3); margin-left: auto; }

.mock-body { padding: 16px; }

/* KPI row */
.mock-kpi-row { display: flex; gap: 12px; margin-bottom: 14px; }
.mock-kpi {
  flex: 1; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px; padding: 10px 12px;
}
.kpi-num { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.kpi-label { font-size: .68rem; color: rgba(255,255,255,.4); margin-top: 4px; display: block; }

/* Bar chart */
.mock-chart-row { height: 60px; }
.mock-bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 100%; padding: 0 4px; }
.mc-bar { flex: 1; border-radius: 3px 3px 0 0; opacity: .8; }

/* Source list */
.mock-source-list { display: flex; flex-direction: column; gap: 9px; }
.mock-source { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.src-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mock-source strong { width: 90px; color: rgba(255,255,255,.8); font-weight: 500; }
.src-track { flex: 1; height: 5px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.src-fill { height: 100%; background: #6366f1; border-radius: 3px; }
.mock-source em { font-style: normal; font-size: .75rem; color: rgba(255,255,255,.4); width: 30px; text-align: right; }

/* Gap list */
.mock-gap-list { display: flex; flex-direction: column; gap: 6px; }
.mock-gap-item {
  padding: 7px 10px; border-radius: 6px; font-size: .78rem; font-weight: 500;
}
.mock-gap-item.red    { background: rgba(239,68,68,.1);  color: #fca5a5; border-left: 3px solid #ef4444; }
.mock-gap-item.amber  { background: rgba(245,158,11,.1); color: #fcd34d; border-left: 3px solid #f59e0b; }
.mock-gap-item.green  { background: rgba(34,197,94,.1);  color: #86efac; border-left: 3px solid #22c55e; }

/* Citation list */
.mock-cite-list { display: flex; flex-direction: column; gap: 12px; }
.mock-cite {}
.cite-domain { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 4px; }
.cite-meta { display: flex; gap: 6px; margin-bottom: 6px; }
.cite-badge {
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.5);
}
.cite-badge.blue { background: rgba(99,102,241,.2); color: #a5b4fc; }
.cite-badge.amber { background: rgba(245,158,11,.2); color: #fcd34d; }
.cite-bar { height: 4px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; }
.cite-bar div { height: 100%; background: linear-gradient(90deg,#6366f1,#06b6d4); border-radius: 2px; }

.tour-caption { font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.5; }

@media (max-width: 680px) {
  .tour-grid { grid-template-columns: 1fr; }
}

/* ── Contact form ────────────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
  text-align: center;
}

.form-status--ok  { color: #0d9488; }
.form-status--err { color: #dc2626; }

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
