:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --soft: #f6f8fb;
  --panel: #ffffff;
  --line: #dce3ee;
  --accent: #2357d9;
  --accent-2: #0f9f8f;
  --warm: #f3b33d;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 10px 0;
  background: rgba(246, 248, 251, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  height: 58px;
  margin: 0 auto;
  padding: 0 14px;
  border: 1px solid rgba(220, 227, 238, 0.78);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 42px rgba(17, 24, 39, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  border-radius: 8px;
  background: linear-gradient(135deg, #2357d9, #0f9f8f);
  box-shadow: 0 10px 24px rgba(35, 87, 217, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  font-size: 14px;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  border-color: transparent;
  color: #ffffff;
  background: var(--accent);
}

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

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
}

h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

p {
  margin: 0;
}

.lead {
  max-width: 660px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 19px;
}

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

.clipvia-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 250, 254, 0.94) 42%, rgba(232, 240, 250, 0.88) 100%),
    linear-gradient(90deg, rgba(35, 87, 217, 0.10) 0%, rgba(15, 159, 143, 0.08) 100%);
}

.clipvia-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 78%);
  pointer-events: none;
}

.clipvia-hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: clamp(560px, calc(100vh - 132px), 700px);
  margin: 0 auto;
  padding: clamp(34px, 5vh, 56px) 0 clamp(50px, 8vh, 78px);
}

.clipvia-hero-copy {
  position: relative;
  z-index: 2;
  width: min(500px, 49%);
}

.clipvia-hero h1 {
  font-size: clamp(72px, 9vw, 118px);
  line-height: 0.88;
}

.clipvia-hero .lead {
  max-width: 500px;
  color: #4f5f73;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
}

.product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  padding: 7px 12px 7px 8px;
  border: 1px solid rgba(220, 227, 238, 0.86);
  border-radius: 999px;
  color: #2c3a4c;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.07);
  font-size: 13px;
  font-weight: 760;
}

.product-kicker img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(35, 87, 217, 0.18);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(220, 227, 238, 0.84);
  border-radius: 999px;
  color: #526174;
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 720;
}

.clipvia-hero-visual {
  position: absolute;
  z-index: 1;
  right: max(-42px, -4vw);
  top: 50%;
  width: min(650px, 55vw);
  transform: translateY(-48%);
}

.clipvia-hero-visual::before {
  content: "";
  position: absolute;
  inset: 36px 22px -30px -26px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(35, 87, 217, 0.12), rgba(15, 159, 143, 0.10));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 72vh, 680px);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8, 15, 29, 0.88) 0%, rgba(8, 15, 29, 0.70) 44%, rgba(8, 15, 29, 0.22) 100%),
    url("/assets/kernelbeam-hero.png") center / cover no-repeat;
  overflow: hidden;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 96px;
}

.home-hero h1 {
  color: #ffffff;
  font-size: clamp(64px, 10vw, 118px);
  line-height: 0.92;
}

.home-lead {
  max-width: 660px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.32;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow.light::before {
  background: var(--warm);
}

.button.light-button {
  color: #10233b;
  background: #ffffff;
}

.button.glass-button {
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
}

.hero-media {
  position: relative;
}

.product-visual {
  border: 1px solid rgba(220, 227, 238, 0.9);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff, #eef3fb);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.16);
  overflow: hidden;
}

.clipvia-hero .product-visual {
  position: relative;
  border-color: rgba(196, 207, 224, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
  box-shadow: 0 34px 90px rgba(17, 24, 39, 0.22);
}

.mock-window {
  padding: 18px;
}

.clipvia-hero .mock-window {
  padding: 16px;
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d0d7e4;
}

.dot.red {
  background: #ff6b65;
}

.dot.yellow {
  background: #f5c04f;
}

.dot.green {
  background: #58c775;
}

.mock-title {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 760;
}

.mock-grid {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.mock-sidebar {
  border-right: 1px solid var(--line);
  background: #f7f9fc;
  padding: 16px;
}

.mock-app {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-weight: 760;
}

.mock-app img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.mock-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  margin-bottom: 8px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.mock-nav-item.active {
  color: #ffffff;
  background: var(--accent);
}

.mock-content {
  padding: 18px;
}

.clipvia-hero .mock-content {
  border: 1px solid rgba(220, 227, 238, 0.86);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.mock-search {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 14px;
  color: #8a95a5;
  font-size: 14px;
  background: #fbfcff;
}

.mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.mock-chip {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1f4fbf;
  font-size: 12px;
  font-weight: 700;
}

.mock-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #eef2f7;
}

.mock-row.sensitive {
  margin-top: 2px;
  padding: 12px 10px;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  background: #f7fafc;
}

.mock-row-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--accent);
  font-weight: 800;
}

.mock-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.mock-row span {
  color: var(--muted);
  font-size: 12px;
}

.mock-row .mock-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 26px;
  border: 1px solid rgba(220, 227, 238, 0.92);
  border-radius: 999px;
  color: #314155;
  background: #ffffff;
  font-size: 12px;
  font-weight: 760;
}

.wide-media .product-visual {
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.12);
}

.section {
  padding: 72px 0;
}

.section.soft {
  background: var(--soft);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 560px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
}

.card p,
.legal p,
.legal li,
.statement p {
  color: var(--muted);
}

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

.statement {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.statement span,
.status-line {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.product-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.product-card.compact {
  max-width: 760px;
}

.product-card + .product-card {
  margin-top: 18px;
}

.app-icon {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1f4fbf;
  font-size: 12px;
  font-weight: 650;
}

.feature {
  min-height: 146px;
}

.feature strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
}

.legal {
  max-width: 820px;
}

.legal h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.legal h2 {
  margin-top: 42px;
  font-size: 26px;
}

.legal ul {
  padding-left: 20px;
}

.legal li + li {
  margin-top: 8px;
}

.notice {
  margin-top: 24px;
  border-left: 4px solid var(--accent-2);
  padding: 16px 18px;
  background: #eefaf8;
  color: #1f5f56;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 1040px) {
  .clipvia-hero-stage {
    display: block;
    min-height: auto;
    padding: 48px 0 60px;
  }

  .clipvia-hero-copy {
    width: min(680px, 100%);
  }

  .clipvia-hero-visual {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 720px;
    margin-top: 36px;
    transform: none;
  }

  .clipvia-hero-visual::before {
    inset: 26px 16px -20px -18px;
  }
}

@media (max-width: 860px) {
  .nav {
    height: auto;
    min-height: 58px;
    padding: 12px;
    align-items: center;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-grid,
  .split,
  .grid.two,
  .grid.three,
  .statement-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 28px;
  }

  .clipvia-hero-stage {
    padding: 44px 0 54px;
  }

  .clipvia-hero h1 {
    font-size: clamp(58px, 14vw, 86px);
  }

  .clipvia-hero-visual::before {
    inset: 24px 16px -18px -16px;
  }

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

  .mock-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 52px 0;
  }

  .home-hero {
    min-height: 560px;
    background:
      linear-gradient(90deg, rgba(8, 15, 29, 0.90) 0%, rgba(8, 15, 29, 0.78) 64%, rgba(8, 15, 29, 0.52) 100%),
      url("/assets/kernelbeam-hero.png") center / cover no-repeat;
  }

  .home-hero-inner {
    padding: 72px 0 78px;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }

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

@media (max-width: 560px) {
  .nav {
    width: min(100% - 24px, 1120px);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav-links {
    font-size: 13px;
    justify-content: flex-start;
  }

  .hero,
  .container,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 42px;
  }

  .home-hero h1 {
    font-size: clamp(52px, 14.5vw, 60px);
  }

  .lead {
    font-size: 17px;
  }

  .clipvia-hero-stage {
    width: min(100% - 24px, 1120px);
    padding: 34px 0 44px;
  }

  .clipvia-hero .lead {
    font-size: 17px;
  }

  .product-kicker {
    margin-bottom: 18px;
  }

  .hero-proof {
    margin-top: 20px;
  }

  .clipvia-hero .mock-window {
    padding: 12px;
  }

  .mock-content {
    padding: 14px;
  }

  .mock-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .mock-row .mock-action {
    display: none;
  }

  .product-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }
}
