:root {
  --bg: #eef1f4;
  --bg-soft: #f7f8fa;
  --surface: #ffffff;
  --ink: #15171a;
  --muted: #6b7380;
  --line: #e3e7ec;
  --teal: #2d93ad;
  --teal-deep: #1f7388;
  --orange: #f28c63;
  --orange-hot: #ff8a3d;
  --dark: #121417;
  --shadow: 0 18px 50px rgba(21, 23, 26, 0.08);
  --shadow-sm: 0 8px 24px rgba(21, 23, 26, 0.06);
  --radius: 28px;
  --radius-sm: 18px;
  --header-h: 72px;
  --font-display: "Outfit", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 8%, rgba(242, 140, 99, 0.16), transparent 60%),
    radial-gradient(700px 480px at 10% 20%, rgba(45, 147, 173, 0.12), transparent 55%),
    linear-gradient(180deg, #f4f6f8 0%, #e9edf1 45%, #f7f8fa 100%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(247, 248, 250, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 231, 236, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark img {
  width: 36px;
  height: 36px;
}

.site-footer .brand-mark img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand-name {
  font-size: 1.15rem;
}

.nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-lg {
  min-height: 52px;
  padding: 0.85rem 1.4rem;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark .arrow {
  color: var(--orange-hot);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Hero */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2rem;
  position: relative;
  overflow: clip;
}

.hero-copy {
  max-width: 36rem;
  z-index: 2;
  animation: rise 0.8s ease both;
}

.brand-lockup {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--ink);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.hero-sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  animation: float-in 1s ease 0.15s both;
  z-index: 1;
}

.hero-wash {
  position: absolute;
  inset: 10% 5% 0;
  border-radius: 40% 40% 20% 20%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.9), transparent 65%),
    radial-gradient(circle at 70% 60%, rgba(242, 140, 99, 0.18), transparent 50%);
  filter: blur(8px);
}

.hero-building {
  position: relative;
  width: min(100%, 640px);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 28px 50px rgba(21, 23, 26, 0.22);
  animation: bob 6s ease-in-out infinite;
}

.hero-watermark {
  position: absolute;
  right: -2%;
  top: 8%;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 7rem);
  letter-spacing: -0.06em;
  color: rgba(21, 23, 26, 0.05);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  pointer-events: none;
  user-select: none;
}

/* Snapshot / dashboard */
.snapshot,
.insights,
.workflow,
.cta {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.snapshot-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.snapshot h2,
.insights h2,
.workflow h2,
.cta h2,
.feature-copy h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.snapshot h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.muted {
  margin: 0;
  color: var(--muted);
}

.muted.light {
  color: rgba(255, 255, 255, 0.7);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.kpi {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.kpi span,
.metric-card span,
.phase span,
.panel-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.kpi-warn strong {
  color: var(--orange);
}

.dash-grid,
.workflow-grid {
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.panel-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-top.between {
  align-items: flex-start;
}

.panel-label {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--ink);
}

.panel-thumb {
  width: 110px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  opacity: 0.98;
}

.big-stat {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.big-stat small {
  font-size: 0.42em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.big-stat.money small {
  font-size: 0.38em;
}

.big-stat.right {
  text-align: right;
  margin-top: 1rem;
}

.risk-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.risk-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: var(--bg-soft);
  font-size: 0.92rem;
}

.chip {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.progress-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf0f3;
  margin-bottom: 0.55rem;
}

.progress-bar i {
  display: block;
  width: var(--w);
  height: 100%;
}

.progress-bar i:nth-child(1) { background: var(--teal); }
.progress-bar i:nth-child(2) { background: var(--orange); }
.progress-bar i:nth-child(3) { background: #cfd6de; }

.progress-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 120px;
  margin: 1.1rem 0 0.9rem;
}

.bar {
  flex: 1;
  height: 100%;
  border-radius: 999px;
  background: #edf1f4;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bar i {
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: inherit;
  background: linear-gradient(180deg, #49b4c9, var(--teal));
  transform-origin: bottom;
  animation: grow 1s ease both;
}

.split-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.wave {
  width: 100%;
  height: auto;
  margin: 0.4rem 0 0.8rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge.ok {
  background: rgba(45, 147, 173, 0.12);
  color: var(--teal-deep);
}

.dark-panel {
  background: linear-gradient(160deg, #1a1d22, #0f1114);
  color: #fff;
  box-shadow: var(--shadow);
}

.dark-panel .panel-label {
  color: #fff;
}

.ring-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0.5rem auto 1rem;
}

.ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 10;
}

.ring-value {
  fill: none;
  stroke: var(--orange-hot);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 82 18;
}

.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring-label strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.ring-label span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}

/* Insights */
.section-intro {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.section-intro h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metric-card,
.phase {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.metric-card strong,
.phase strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.phase-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Workflow */
.feature-hero {
  display: grid;
  gap: 1rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 70% 40%, rgba(242, 140, 99, 0.12), transparent 45%);
}

.feature-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 14ch;
}

.text-link {
  color: var(--teal);
  font-weight: 600;
}

.feature-building {
  width: min(100%, 460px);
  margin-inline: auto;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(21, 23, 26, 0.16);
  animation: bob 7s ease-in-out infinite;
}

.feature-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.avatars {
  display: flex;
  align-items: center;
}

.av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid #fff;
  margin-left: -8px;
}

.av:first-child {
  margin-left: 0;
}

.crew {
  margin-left: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.arcs {
  width: 100%;
  max-width: 280px;
  margin: 0.5rem auto;
  display: block;
}

.phase-legend {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
}

.dot.teal { background: var(--teal); }
.dot.orange { background: var(--orange); }
.dot.dark { background: var(--dark); }

.seg {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--bg-soft);
}

.seg button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.seg button.active {
  background: var(--teal);
  color: #fff;
}

.heat {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.heat span {
  aspect-ratio: 1;
  border-radius: 10px;
  background: #e8edf1;
}

.heat span.on {
  background: linear-gradient(145deg, #49b4c9, var(--teal));
}

/* CTA */
.cta-inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 20% 0%, rgba(45, 147, 173, 0.14), transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(242, 140, 99, 0.16), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow);
}

.cta .brand-lockup {
  font-size: clamp(2rem, 5vw, 3rem);
}

.cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.4rem auto 0.8rem;
  max-width: 28rem;
}

.waitlist input {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 1.2rem;
  background: var(--bg-soft);
  outline: none;
}

.waitlist input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 147, 173, 0.18);
}

.fine {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes grow {
  from { transform: scaleY(0.2); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions .btn-ghost {
    display: inline-flex;
  }

  .metric-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .dash-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .workflow-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .waitlist {
    flex-direction: row;
    max-width: 34rem;
  }

  .waitlist input {
    flex: 1;
  }

  .site-footer {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    padding-top: 2rem;
  }

  .hero-copy {
    max-width: 34rem;
  }

  .hero-visual {
    min-height: 560px;
    justify-self: end;
    width: 100%;
  }

  .snapshot-head {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
  }

  .dash-grid {
    grid-template-columns: 1.15fr 0.95fr 0.95fr 0.85fr;
  }

  .workflow-grid {
    grid-template-columns: 1.45fr 0.9fr 1.1fr;
  }

  .site-footer {
    grid-template-columns: 1.5fr 1fr auto;
    align-items: center;
  }

  .copyright {
    grid-column: auto;
    text-align: right;
  }
}

@media (max-width: 719px) {
  .header-actions .btn-ghost,
  .header-actions .btn-primary {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: rgba(247, 248, 250, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.open a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
