:root {
  --ink: #111312;
  --ink-soft: #242827;
  --muted: #5e6662;
  --paper: #f6f4ef;
  --paper-soft: #eeece5;
  --line: rgba(17, 19, 18, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --accent: #00b8d9;
  --accent-dark: #0087a3;
  --white: #ffffff;
  --warning: #e0b84b;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

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

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  width: min(100%, 760px);
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 7vw, 5.95rem);
  font-weight: 780;
  overflow-wrap: break-word;
}

h1 span {
  display: inline;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.4vw, 4.25rem);
  font-weight: 740;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  font-weight: 760;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 32px, var(--max-width));
  margin: 16px auto 0;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(17, 19, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  flex: 0 0 auto;
}

.brand-mark {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.site-nav {
  flex: 0 1 auto;
  justify-content: flex-end;
  gap: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  white-space: nowrap;
}

.site-nav a {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--ink);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background-image: url("assets/hero-ai-vision.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 19, 18, 0.92) 0%, rgba(17, 19, 18, 0.78) 42%, rgba(17, 19, 18, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 19, 18, 0.68) 0%, rgba(17, 19, 18, 0) 46%);
}

.hero-content {
  display: flex;
  align-items: center;
  width: calc(100% - 40px);
  max-width: var(--max-width);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 132px 0 72px;
}

.hero-copy-block {
  width: 100%;
  max-width: 790px;
  min-width: 0;
}

.hero-eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy {
  width: 100%;
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 12px;
  margin-bottom: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 0;
  max-width: 100%;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 820;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--ink);
  background: var(--accent);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #42d2e8;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.trust-line {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  overflow-wrap: break-word;
}

.section {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 92px 0;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.95fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: start;
}

.section-grid > p,
.section-heading > p,
.contact-copy p {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.5vw, 1.22rem);
}

.overview {
  padding-top: 74px;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 38px;
}

.monitoring-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.monitor-card {
  display: grid;
  grid-template-rows: 54px minmax(54px, auto) auto;
  flex: 1 1 calc((100% - 42px) / 4);
  max-width: calc((100% - 42px) / 4);
  min-height: 294px;
  row-gap: 26px;
  align-content: start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(17, 19, 18, 0.06);
}

.icon-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 34px;
  color: var(--accent-dark);
  background: rgba(0, 184, 217, 0.1);
  border: 1px solid rgba(0, 135, 163, 0.18);
  border-radius: 8px;
}

.monitor-card .icon-frame {
  margin-bottom: 0;
}

.icon-frame svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.icon-frame .flare-icon {
  width: 34px;
  height: 34px;
}

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

.monitor-card h3 {
  margin-bottom: 0;
}

.dashboard-section {
  padding-top: 68px;
}

.feature-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.value-card {
  display: flex;
  min-height: 226px;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(17, 19, 18, 0.05);
}

.feature-card p,
.value-card p {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
}

.feature-icon svg {
  width: 29px;
  height: 29px;
}

.cloud-section {
  width: 100%;
  padding: 98px max(20px, calc((100vw - var(--max-width)) / 2));
  color: var(--white);
  background: var(--ink-soft);
}

.cloud-layout {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cloud-section .section-kicker {
  color: #62dbea;
}

.cloud-section .section-heading > p {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.architecture-grid article {
  min-height: 226px;
  padding: 26px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.architecture-grid span {
  display: block;
  margin-bottom: 46px;
  color: #62dbea;
  font-size: 0.78rem;
  font-weight: 900;
}

.architecture-grid h3 {
  color: var(--white);
}

.architecture-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}

.value-section {
  padding-top: 88px;
}

.how-section {
  width: 100%;
  max-width: none;
  padding: 98px max(20px, calc((100vw - var(--max-width)) / 2));
  color: var(--white);
  background: var(--ink);
}

.how-section .section-kicker {
  color: #62dbea;
}

.how-section .section-heading > p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.flow-list li {
  position: relative;
  min-height: 196px;
  padding: 24px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.flow-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
  background: var(--ink);
}

.flow-list span {
  display: block;
  margin-bottom: 52px;
  color: #62dbea;
  font-size: 0.78rem;
  font-weight: 900;
}

.flow-list strong {
  display: block;
  max-width: 220px;
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  line-height: 1.12;
}

.teams-section {
  padding-bottom: 68px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.team-grid span {
  min-height: 56px;
  padding: 16px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 760;
}

.demo-note {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 0 0 76px;
}

.demo-note p {
  margin: 0;
  padding: 18px 20px;
  color: var(--muted);
  background: rgba(0, 135, 163, 0.08);
  border-left: 4px solid var(--accent-dark);
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
}

.contact-section {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto 24px;
  padding: 84px 0 92px;
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.92fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 22px;
}

.contact-copy p {
  max-width: 650px;
  margin-bottom: 0;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 135, 163, 0.42);
  box-shadow: 0 18px 36px rgba(17, 19, 18, 0.08);
}

.contact-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 780;
}

.contact-card strong {
  align-self: end;
  overflow-wrap: anywhere;
  font-size: 1.04rem;
}

.primary-contact {
  color: var(--ink);
  background: var(--accent);
  border-color: rgba(0, 135, 163, 0.38);
}

.primary-contact span {
  color: rgba(17, 19, 18, 0.72);
}

.founder-link {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--accent-dark);
  font-size: 0.94rem;
  font-weight: 780;
}

.founder-link:hover,
.founder-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 26px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1080px) {
  .monitor-card {
    flex-basis: calc((100% - 28px) / 3);
    max-width: calc((100% - 28px) / 3);
    min-height: 260px;
  }

  .feature-grid,
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .site-header {
    align-items: center;
    gap: 8px;
    border-radius: 999px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .site-nav {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 2px;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: visible;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 7px 8px;
    text-align: center;
  }

  .hero,
  .hero-content {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-content {
    padding-top: 116px;
    padding-bottom: 54px;
  }

  .hero-media {
    background-position: 64% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(17, 19, 18, 0.9) 0%, rgba(17, 19, 18, 0.72) 70%, rgba(17, 19, 18, 0.38) 100%),
      linear-gradient(0deg, rgba(17, 19, 18, 0.74) 0%, rgba(17, 19, 18, 0) 50%);
  }

  .section-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .feature-grid,
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monitor-card {
    flex-basis: calc((100% - 14px) / 2);
    max-width: calc((100% - 14px) / 2);
  }

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

  .flow-list li {
    min-height: auto;
  }

  .flow-list li:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -10px;
    transform: translateX(50%) rotate(135deg);
  }

  .flow-list span {
    margin-bottom: 28px;
  }

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

  .architecture-grid article {
    min-height: auto;
  }

  .architecture-grid span {
    margin-bottom: 28px;
  }
}

@media (max-width: 560px) {
  .hero-content,
  .section,
  .contact-section,
  .demo-note,
  .site-footer {
    width: calc(100% - 32px);
    max-width: none;
  }

  .site-header {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    margin-top: 10px;
    padding: 8px 10px;
    gap: 12px;
    transform: none;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand-mark {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px;
    color: var(--white);
    background: rgba(17, 19, 18, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
    backdrop-filter: blur(18px);
  }

  .site-nav a {
    justify-content: flex-start;
    min-height: 42px;
    padding: 11px 12px;
    font-size: 0.92rem;
  }

  .site-header.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero,
  .hero-content {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero {
    width: 100vw;
  }

  .hero-content {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-right: 16px;
    margin-left: 16px;
    padding-top: 100px;
    padding-bottom: 34px;
  }

  .hero-media {
    background-position: 70% center;
  }

  h1 {
    font-size: clamp(2.15rem, 9vw, 2.55rem);
  }

  h1 span {
    display: block;
  }

  .hero-copy-block {
    width: min(100%, 358px);
    max-width: 100%;
  }

  .hero-copy,
  .trust-line {
    width: 100%;
    max-width: 358px;
    font-size: 1.02rem;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    width: min(100%, 358px);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }

  .button {
    width: 100%;
  }

  .section,
  .contact-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .overview {
    padding-top: 58px;
  }

  .how-section {
    width: 100%;
    max-width: none;
    padding-right: 14px;
    padding-left: 14px;
  }

  .cloud-section {
    padding: 68px 14px;
  }

  .team-grid,
  .feature-grid,
  .value-grid,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .monitor-card,
  .feature-card,
  .value-card {
    min-height: 236px;
    padding: 22px;
  }

  .feature-card {
    min-height: 226px;
  }

  .monitor-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .icon-frame {
    margin-bottom: 28px;
  }

  .demo-note {
    padding-bottom: 58px;
  }

  .contact-card {
    min-height: 104px;
  }
}

@media (max-width: 360px) {
  .site-header {
    right: 6px;
    left: 6px;
    width: auto;
    max-width: none;
    padding: 7px 8px;
  }

  .hero-copy-block {
    width: 100%;
    max-width: 100%;
  }

  .hero-content,
  .section,
  .contact-section,
  .demo-note,
  .site-footer {
    max-width: none;
  }

  .how-section {
    max-width: none;
  }

  h1 {
    font-size: 2.1rem;
  }
}
