:root {
  --font-main: "PP Neue Montreal", "Neue Montreal", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --bg: #f7f3e8;
  --bg-alt: #efe7d8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #1b2331;
  --text-soft: #3f4d64;
  --text-muted: #6f7b8f;
  --line: rgba(27, 35, 49, 0.16);
  --line-soft: rgba(27, 35, 49, 0.1);
  --brand: #1f6feb;
  --brand-strong: #135ac4;
  --brand-soft: rgba(31, 111, 235, 0.12);
  --mint: #4bb39f;
  --gold: #f2b84b;
  --danger: #cf5b56;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 14px 34px rgba(33, 44, 63, 0.12);
  --shadow-card: 0 20px 42px rgba(27, 35, 49, 0.11);
  --content: 1160px;
  --gutter: clamp(16px, 4vw, 30px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(75, 179, 159, 0.22), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(31, 111, 235, 0.24), transparent 38%),
    radial-gradient(circle at 52% 120%, rgba(242, 184, 75, 0.26), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  transform: translateY(-150%);
  background: #111827;
  color: #ffffff;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  z-index: 999;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.58);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - var(--gutter) * 2), var(--content));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(14px);
  background: rgba(247, 243, 232, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

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

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: var(--shadow-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.site-nav a.active {
  background: rgba(31, 111, 235, 0.14);
  color: var(--brand-strong);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  margin: 5px 0;
}

.section {
  padding: clamp(64px, 7vw, 110px) 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.25));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.eyebrow {
  font-family: var(--font-mono);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.02;
}

h1,
h2 {
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: -0.028em;
}

h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(2.2rem, 1.2rem + 5vw, 5.6rem);
}

h1 span {
  color: var(--brand);
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3.4rem);
}

h2 span {
  color: var(--brand-strong);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.1rem, 0.8rem + 1vw, 1.4rem);
  letter-spacing: -0.015em;
}

p,
li {
  color: var(--text-soft);
  font-size: clamp(0.99rem, 0.9rem + 0.2vw, 1.1rem);
}

.hero {
  padding-top: clamp(54px, 8vw, 120px);
}

.hero-grid {
  display: grid;
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
}

.hero-copy {
  position: relative;
}

.hero-lead {
  margin: 0;
  max-width: 60ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.72rem 1.22rem;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(31, 111, 235, 0.28);
}

.button-primary:hover {
  background: var(--brand-strong);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
}

.hero-meta {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-meta > div {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
}

.meta-label {
  font-family: var(--font-mono);
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.hero-meta p {
  margin: 0.45rem 0 0;
}

.hero-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  background: var(--surface-strong);
  transform: rotate(-1deg);
}

.hero-visual img,
.hero-visual video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-lead {
  margin-top: 0;
  max-width: 72ch;
}

.gap-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.card li {
  margin-bottom: 0.45rem;
}

.tagline {
  font-family: var(--font-mono);
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--brand-strong);
  font-weight: 600;
}

.stats-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
}

.stat-value {
  margin: 0;
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  line-height: 1;
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--brand);
}

.stat-body {
  margin: 0.8rem 0 0;
}

.problem-spaces {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.problem-spaces article {
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.hmw {
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.2rem;
  border-left: 5px solid var(--brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--brand-soft);
  color: var(--text);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.45rem);
}

.solution-layout {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  gap: 1rem;
}

.solution-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #f4f5f8;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.feature-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1rem 1.05rem;
}

.feature p {
  margin: 0;
}

.feature-focus {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(31, 111, 235, 0.14), rgba(75, 179, 159, 0.13));
}

.demo-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1));
}

.demo-content {
  position: static;
}

.demo-grid {
  margin-top: 1.2rem;
  display: block;
}

.flow-steps {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: flow;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.flow-steps li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.55rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.72);
}

.flow-steps li::before {
  counter-increment: flow;
  content: counter(flow) ".";
  position: absolute;
  left: 1rem;
  top: 0.92rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-strong);
}

.flow-steps p {
  margin: 0.35rem 0 0;
}

.impact-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.impact-card {
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.impact-label {
  font-family: var(--font-mono);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.impact-value {
  margin: 0.35rem 0 0;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.15rem);
  color: var(--brand);
}

.impact-quote {
  margin: 1.1rem 0 0;
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--text);
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.5rem);
}

.team-panel {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.5));
  box-shadow: var(--shadow-soft);
}

.team-panel h2 {
  margin-bottom: 0.6rem;
}

.team-panel p {
  margin: 0.55rem 0 0;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 580ms ease, transform 580ms ease;
}

html.enhanced .reveal {
  opacity: 0;
  transform: translateY(18px);
}

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

@media (max-width: 980px) {
  .hero-grid,
  .solution-layout,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .problem-spaces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    transform: none;
  }

  .team-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: var(--gutter);
    right: var(--gutter);
    display: grid;
    gap: 0.2rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
    transform-origin: top center;
    transform: scaleY(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav a {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .gap-grid,
  .stats-grid,
  .problem-spaces,
  .feature-grid,
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .feature-focus {
    grid-column: auto;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

}
