@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --page-bg: linear-gradient(180deg, #050814 0%, #0c1220 100%);
  --panel-bg: rgba(14, 20, 35, 0.92);
  --panel-border: rgba(148, 163, 184, 0.18);
  --text-strong: #edf2f7;
  --text-muted: #9aa7bd;
  --brand-primary: #0046fc;
  --brand-primary-strong: #5f8aff;
  --brand-primary-soft: rgba(0, 70, 252, 0.16);
  --brand-primary-border: rgba(0, 70, 252, 0.45);
  --brand-secondary: #00c7b2;
  --brand-secondary-strong: #54e0d1;
  --brand-secondary-soft: rgba(0, 199, 178, 0.14);
  --brand-secondary-border: rgba(0, 199, 178, 0.42);
  --shadow-color: rgba(2, 6, 23, 0.45);
  --surface: #0e1423;
  --surface-deep: #080d19;
  color: var(--text-strong);
  background: var(--page-bg);
  color-scheme: dark;
  font-family: 'IBM Plex Mono', monospace;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 10%, rgba(0, 70, 252, 0.14), transparent 30rem),
    radial-gradient(circle at 18% 28%, rgba(0, 199, 178, 0.08), transparent 26rem),
    var(--page-bg);
}

::selection {
  background: #123a34;
}

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

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

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

h1,
h2,
h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: 0;
}

p {
  color: var(--text-muted);
  line-height: 1.65;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  width: min(1180px, calc(100vw - 32px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(5, 8, 20, 0.82);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--text-strong);
  font-size: 0.96rem;
  font-weight: 600;
}

.brand-lockup img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.site-nav a {
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text-strong);
}

.nav-cta {
  border: 1px solid var(--brand-primary-border);
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--brand-primary-strong);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(820px, calc(100vh - 30px));
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 8, 20, 0.98) 0%, rgba(5, 8, 20, 0.88) 38%, rgba(5, 8, 20, 0.42) 68%, rgba(5, 8, 20, 0.76) 100%),
    linear-gradient(180deg, rgba(5, 8, 20, 0.32) 0%, rgba(12, 18, 32, 0.96) 100%);
  content: "";
}

.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  opacity: 0.92;
}

.hero-media img {
  width: min(980px, 80vw);
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.hero-copy {
  width: min(1180px, calc(100vw - 32px));
  align-self: center;
  margin: 0 auto;
  padding: 76px 0 128px;
}

.eyebrow,
.section-kicker {
  color: var(--brand-secondary-strong);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 700px;
  margin-top: 16px;
  color: var(--text-strong);
  font-size: clamp(4rem, 12vw, 10.6rem);
  line-height: 0.9;
}

.hero-lede {
  max-width: 640px;
  margin-top: 28px;
  color: #d8e4f2;
  font-size: clamp(1rem, 1.6vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 600;
}

.button-primary {
  border: 1px solid var(--brand-primary);
  background: var(--brand-primary);
  color: #f8fbff;
}

.button-primary:hover {
  border-color: var(--brand-primary-strong);
  background: var(--brand-primary-strong);
  color: #04102c;
}

.button-secondary {
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-strong);
}

.button-secondary:hover {
  border-color: var(--brand-secondary-border);
  color: var(--brand-secondary-strong);
}

.hero-proof {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: flex;
  max-width: min(720px, calc(100vw - 32px));
  flex-wrap: wrap;
  gap: 8px;
}

.hero-proof span {
  border: 1px solid rgba(0, 199, 178, 0.28);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(5, 8, 20, 0.72);
  color: var(--text-muted);
  font-size: 0.7rem;
}

.section,
.pos-band,
.contact-section {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.intro-section h2,
.section-heading h2,
.pos-copy h2,
.contact-section h2 {
  margin-top: 10px;
  color: var(--text-strong);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.intro-section p:last-child {
  max-width: 680px;
  font-size: 1rem;
}

.section-heading {
  max-width: 840px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.workflow-card {
  min-width: 0;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 18px;
  background: rgba(14, 20, 35, 0.62);
}

.step-number,
.note-label {
  color: var(--brand-secondary-strong);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.workflow-card h3 {
  margin-top: 42px;
  color: var(--text-strong);
  font-size: 1.28rem;
  line-height: 1.1;
}

.workflow-card p {
  margin-top: 12px;
  font-size: 0.78rem;
}

.pos-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 46px;
  align-items: center;
  border-block: 1px solid rgba(148, 163, 184, 0.14);
  padding: 78px 0;
}

.pos-copy p:last-child {
  max-width: 620px;
  margin-top: 18px;
}

.backend-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.backend-list li {
  min-height: 92px;
  border: 1px solid var(--brand-primary-border);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(0, 70, 252, 0.16), rgba(0, 199, 178, 0.08), rgba(14, 20, 35, 0.74)),
    var(--surface);
  color: var(--text-strong);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 600;
}

.screen-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  margin-top: 34px;
  align-items: start;
}

.screen-frame {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  margin: 0;
  background: var(--surface-deep);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.54);
}

.window-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 34px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.03);
}

.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(154, 167, 189, 0.52);
}

.window-bar span:first-child {
  background: var(--brand-primary);
}

.screen-frame img {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
  object-position: top center;
}

.screen-frame figcaption {
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.73rem;
}

.screen-notes {
  display: grid;
  gap: 10px;
}

.screen-notes div {
  min-width: 0;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 16px;
  background: rgba(14, 20, 35, 0.68);
}

.screen-notes p {
  margin-top: 8px;
  font-size: 0.78rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 86px 0 98px;
}

.contact-section p:last-child {
  max-width: 760px;
  margin-top: 16px;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 760px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(5, 8, 20, 0.96) 0%, rgba(5, 8, 20, 0.78) 48%, rgba(12, 18, 32, 0.98) 100%),
      linear-gradient(90deg, rgba(5, 8, 20, 0.95), rgba(5, 8, 20, 0.34));
  }

  .hero-media {
    align-items: flex-end;
    opacity: 0.7;
  }

  .hero-media img {
    width: 100%;
    height: 62%;
  }

  .hero-copy {
    align-self: start;
    padding-top: 74px;
  }

  .hero-proof {
    right: 16px;
    left: 16px;
  }

  .intro-section,
  .pos-band,
  .screen-showcase,
  .contact-section {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .contact-section .button {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-nav {
    gap: 10px;
    font-size: 0.72rem;
  }

  .nav-cta {
    padding: 8px 10px;
  }

  .hero {
    min-height: 720px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 20vw, 5.5rem);
  }

  .hero-lede {
    font-size: 0.96rem;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

  .workflow-grid,
  .backend-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-card h3 {
    margin-top: 26px;
  }

  .screen-frame img {
    max-height: 470px;
  }
}
