:root {
  color-scheme: dark;
  --bg: #090f1d;
  --bg-deep: #060a14;
  --surface: #10182a;
  --surface-soft: rgba(17, 24, 40, 0.92);
  --surface-card: rgba(16, 24, 42, 0.88);
  --line: rgba(86, 115, 175, 0.22);
  --line-soft: rgba(100, 129, 191, 0.12);
  --text: #eef3ff;
  --muted: #9ca8c5;
  --cyan: #2de2ff;
  --blue: #2d7cff;
  --purple: #b34cff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  color: var(--text);
}

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

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 12%, rgba(45, 124, 255, 0.18), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(179, 76, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #0a1020 0%, #0a101c 100%);
}

.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 0 0 24px;
}

.full-bleed-hero {
  width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 20px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 170px;
  max-width: 24vw;
  height: 54px;
  display: block;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
}

.brand-sub,
.nav-links,
.lead,
.section-head p,
.feature-card p,
.showcase-copy p,
.project-card p,
.contact-panel p,
.showcase-copy li {
  color: var(--muted);
}

.brand-sub {
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.hero-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.98fr) minmax(520px, 1.02fr);
  gap: 0;
  min-height: 660px;
  padding: 56px 0 0;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(45, 124, 255, 0.2), transparent 26%),
    radial-gradient(circle at 86% 80%, rgba(179, 76, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(8, 12, 25, 0.96), rgba(8, 12, 25, 1));
  box-shadow: inset 0 -120px 140px rgba(0, 0, 0, 0.12);
  width: 100%;
  margin: 0;
  padding-left: max(32px, calc((100vw - 1200px) / 2 + 20px));
  padding-right: 0;
  position: relative;
}

.hero-copy {
  padding-top: 28px;
  max-width: 500px;
  position: relative;
  z-index: 2;
  padding-left: 18px;
  padding-right: 8px;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-fade-top {
  top: 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(6, 10, 20, 0.78), rgba(6, 10, 20, 0));
}

.hero-fade-bottom {
  bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(6, 10, 20, 0), rgba(6, 10, 20, 0.72));
}

.eyebrow,
.project-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

.hero-copy h1,
.section-head h2,
.showcase-copy h2,
.contact-panel h2 {
  margin: 14px 0 14px;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  max-width: 480px;
}

.lead,
.section-head p,
.feature-card p,
.showcase-copy p,
.project-card p,
.contact-panel p,
.showcase-copy li {
  line-height: 1.8;
}

.lead {
  max-width: 460px;
  font-size: 17px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 28px rgba(45, 124, 255, 0.22);
}

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

.hero-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

.hero-showcase {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding-bottom: 70px;
  padding-left: 0;
  margin-left: -168px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 84%, transparent 100%);
}

.hero-showcase::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 92px;
  background: linear-gradient(90deg, rgba(8, 12, 25, 0.98), rgba(8, 12, 25, 0.7) 28%, rgba(8, 12, 25, 0.18) 68%, rgba(8, 12, 25, 0));
  filter: blur(12px);
  pointer-events: none;
  z-index: 2;
}

.screen-main-clean {
  border-radius: 22px;
}

.screen {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(100, 129, 191, 0.1);
  background: rgba(9, 16, 29, 0.96);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.3);
}

.screen-top {
  height: 26px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.screen-top.small {
  height: 20px;
}

.screen-body {
  padding: 18px;
}

.screen-main {
  right: 52px;
  top: 34px;
  width: min(39vw, 560px);
  transform: rotate(-3deg);
}

.screen-float {
  width: min(14vw, 168px);
  transform: rotate(-2deg);
  opacity: 0.88;
}

.screen-a {
  right: 316px;
  top: 300px;
}

.screen-b {
  right: 62px;
  top: 316px;
}

.clean-hero-stack {
  display: grid;
  gap: 14px;
}

.hero-primary {
  min-height: 228px;
}

.hero-mini-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-mini {
  min-height: 92px;
}

.dashboard-grid,
.compact-grid {
  display: grid;
  gap: 12px;
}

.dashboard-grid {
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 94px 88px;
}

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

.compact-grid.single-shot {
  grid-template-rows: 1fr;
}

.panel {
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(24, 40, 70, 0.72), rgba(14, 23, 39, 0.96));
  border: 1px solid rgba(104, 132, 194, 0.14);
  overflow: hidden;
}

.stat-panel.large {
  min-height: 94px;
}

.stat-panel,
.chart-panel,
.list-panel,
.small-chart,
.small-list {
  min-height: 84px;
}

.media-panel img,
.media-fill img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.98) brightness(0.88) contrast(1.02);
}

.media-panel.large {
  min-height: 94px;
}

.media-panel.tall {
  min-height: 148px;
}

.hero-main-shot {
  grid-row: span 2;
  min-height: 194px;
}

.hero-primary {
  min-height: 228px;
}

.hero-side-shot {
  min-height: 88px;
}

.hero-wide-shot {
  min-height: 88px;
}

.clean-shot {
  min-height: 148px;
}

.product-shot img,
.product-tilt img {
  object-position: top left;
}

.hero-main-shot img,
.hero-primary img {
  object-position: center top;
}

.hero-wide-shot img {
  object-position: left top;
}

.screen::after,
.tilt-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 19, 0.08), rgba(5, 10, 19, 0.22));
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: -1px;
  height: 160px;
  background:
    radial-gradient(circle at 20% 120%, rgba(45, 226, 255, 0.92), transparent 28%),
    radial-gradient(circle at 40% 120%, rgba(45, 124, 255, 0.88), transparent 26%),
    radial-gradient(circle at 58% 120%, rgba(179, 76, 255, 0.84), transparent 24%),
    radial-gradient(circle at 74% 120%, rgba(45, 226, 255, 0.7), transparent 20%);
  filter: blur(22px);
  opacity: 0.38;
}

.hero-panel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 52px;
  background: linear-gradient(90deg, rgba(8, 12, 25, 0), rgba(8, 12, 25, 0.96));
  pointer-events: none;
}

.section {
  padding: 42px 0 24px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.narrow {
  max-width: 700px;
}

.feature-grid,
.project-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.project-card,
.showcase-card,
.contact-panel {
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: var(--surface-card);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.feature-card,
.project-card,
.contact-panel {
  padding: 28px;
}

.showcase-card,
.contact-panel {
  border-radius: 14px;
}

.showcase-card {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.project-card {
  min-height: 228px;
  display: flex;
  flex-direction: column;
}

.project-card a {
  margin-top: auto;
}

.project-card.featured {
  background: linear-gradient(180deg, rgba(20, 34, 60, 0.94), rgba(11, 18, 33, 0.98));
}

.project-card.featured.bright {
  background: linear-gradient(180deg, rgba(28, 26, 58, 0.94), rgba(11, 18, 33, 0.98));
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45, 124, 255, 0.22), rgba(45, 226, 255, 0.12));
  border: 1px solid rgba(45, 226, 255, 0.18);
  position: relative;
}

.feature-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 8px;
  border: 2px solid rgba(45, 226, 255, 0.92);
}

.feature-icon.chain::after { transform: rotate(45deg); }
.feature-icon.folder::after { border-radius: 4px; }
.feature-icon.webhook::after { border-radius: 999px 999px 999px 2px; }
.feature-icon.cloud::after { border-radius: 999px; }
.feature-icon.plugin::after { border-radius: 6px; transform: rotate(45deg); }
.feature-icon.search::after { border-radius: 999px; box-shadow: 10px 10px 0 -6px rgba(45,226,255,0.92); }

.showcase-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: 28px;
  padding: 34px;
}

.showcase-card.reverse {
  grid-template-columns: minmax(380px, 1.1fr) minmax(0, 0.9fr);
}

.showcase-copy ol {
  margin: 0 0 18px;
  padding-left: 20px;
}

.showcase-visual {
  position: relative;
  min-height: 320px;
}

.ghost-text {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 82px;
  font-weight: 800;
  color: rgba(45, 124, 255, 0.09);
  letter-spacing: 0.08em;
}

.tilt-screen {
  position: absolute;
  right: 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 24, 40, 0.98), rgba(9, 16, 29, 0.98));
  border: 1px solid rgba(104, 132, 194, 0.18);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.media-fill {
  background: #0d1627;
}

.tilt-screen.large {
  width: 340px;
  height: 194px;
  top: 66px;
  transform: rotate(-4deg);
}

.tilt-screen.medium {
  width: 228px;
  height: 138px;
  top: 146px;
  right: 104px;
  transform: rotate(-5deg);
}

.tilt-screen.alt {
  left: 32px;
  right: auto;
  transform: rotate(-5deg);
}

.tilt-screen.alt-2 {
  left: 140px;
  right: auto;
  transform: rotate(-7deg);
}

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

.project-card h3 {
  margin: 16px 0 12px;
}

.project-tag {
  margin-bottom: 12px;
}

.project-card a {
  display: inline-flex;
  color: var(--cyan);
  font-weight: 600;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 1100px) {
  .hero-panel,
  .showcase-card,
  .showcase-card.reverse,
  .feature-grid,
  .project-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 34px;
  }

  .hero-showcase {
    min-height: 430px;
    padding-bottom: 56px;
  }

  .screen-a {
    right: 220px;
    top: 240px;
  }

  .screen-b {
    right: 20px;
    top: 258px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1200px);
  }

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

  .brand-logo {
    width: 146px;
    max-width: 100%;
    height: 42px;
  }

  .hero-panel,
  .feature-card,
  .showcase-card,
  .project-card,
  .contact-panel {
    padding: 20px;
  }

  .hero-panel {
    width: 100%;
    margin: 0;
    padding-left: 20px;
    padding-right: 0;
    padding-top: 34px;
    min-height: auto;
  }

  .hero-showcase {
    margin-left: -20px;
  }

  .hero-showcase::before {
    width: 54px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .lead {
    font-size: 16px;
  }

  .hero-showcase {
    min-height: 320px;
    padding-bottom: 38px;
    padding-left: 0;
  }

  .screen-main {
    width: 82%;
    right: 0;
    top: 10px;
    transform: rotate(-7deg);
  }

  .screen-a,
  .screen-b {
    width: 44%;
  }

  .screen-a {
    right: 76px;
    top: 118px;
  }

  .screen-b {
    right: 0;
    top: 156px;
  }

  .showcase-visual {
    min-height: 240px;
  }

  .tilt-screen.large {
    width: 78%;
    height: 146px;
    right: 0;
  }

  .tilt-screen.medium {
    width: 58%;
    height: 108px;
    right: 34px;
    top: 118px;
  }

  .tilt-screen.alt {
    left: 0;
  }

  .tilt-screen.alt-2 {
    left: 60px;
  }
}
