:root {
  color-scheme: light;
  --ink: #071114;
  --ink-muted: #4a5b5f;
  --paper: #f7f3ec;
  --paper-soft: #fffaf2;
  --line: rgba(7, 17, 20, 0.14);
  --teal: #0e766f;
  --mint: #5fd6be;
  --coral: #e95f46;
  --gold: #d9a441;
  --night: #071114;
  --night-soft: #102126;
  --white: #ffffff;
  --max: 1180px;
  --header-height: 72px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body::selection {
  color: var(--white);
  background: var(--teal);
}

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

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

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 56px);
  color: var(--white);
  background: rgba(7, 17, 20, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 700;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-name {
  font-size: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header-height) + 72px) 0 96px;
  color: var(--white);
  background: var(--night);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 62% center;
  opacity: 0.92;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 17, 20, 0.94) 0%, rgba(7, 17, 20, 0.82) 34%, rgba(7, 17, 20, 0.34) 72%, rgba(7, 17, 20, 0.5) 100%),
    linear-gradient(0deg, rgba(7, 17, 20, 0.82) 0%, rgba(7, 17, 20, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
  max-width: 920px;
  margin-left: clamp(20px, 8vw, calc((100vw - var(--max)) / 2));
}

.eyebrow {
  margin: 0;
  color: var(--coral);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

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

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

h1 {
  margin-bottom: 0;
  max-width: 920px;
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 850;
}

.title-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.lead {
  margin-bottom: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 5vw, 56px);
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  position: relative;
}

.arrow::before,
.arrow::after {
  position: absolute;
  content: "";
  background: currentColor;
}

.arrow::before {
  top: 12px;
  left: 21px;
  width: 1px;
  height: 18px;
}

.arrow::after {
  top: 23px;
  left: 17px;
  width: 9px;
  height: 9px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  background: transparent;
  transform: rotate(45deg);
}

.products {
  padding: clamp(84px, 11vw, 148px) 0;
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-heading h2,
.careers h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 830;
}

.careers h2 {
  max-width: 820px;
}

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

.product-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.product-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.14fr) minmax(280px, 0.86fr);
}

.product-card:nth-child(even) .product-media {
  order: 2;
}

.product-media {
  position: relative;
  min-height: 360px;
  background: var(--night-soft);
  overflow: hidden;
}

.product-visual-design .product-media {
  background:
    linear-gradient(135deg, rgba(14, 118, 111, 0.88), rgba(7, 17, 20, 0.96) 58%),
    var(--night-soft);
}

.product-visual-connect .product-media {
  background:
    linear-gradient(135deg, rgba(233, 95, 70, 0.78), rgba(7, 17, 20, 0.96) 62%),
    var(--night-soft);
}

.commerce-stage,
.network-stage {
  position: absolute;
  inset: 44px;
}

.photo-frame {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 14px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.frame-large {
  inset: 8% 17% 19% 0;
}

.frame-small {
  right: 0;
  bottom: 2%;
  width: 42%;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(217, 164, 65, 0.86), rgba(255, 255, 255, 0.06)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 16px);
}

.poster-strip {
  position: absolute;
  left: 10%;
  right: 33%;
  bottom: 9%;
  height: 16px;
  border-radius: 999px;
  background: var(--mint);
}

.phone-shell {
  position: absolute;
  z-index: 2;
  top: 2%;
  left: 50%;
  width: min(44%, 190px);
  aspect-ratio: 9 / 18;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(95, 214, 190, 0.2), rgba(233, 95, 70, 0.18));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.phone-shell::before {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 52px;
  height: 5px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transform: translateX(-50%);
}

.phone-shell::after {
  position: absolute;
  inset: 56px 18px 24px;
  content: "";
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.16) 48% 52%, transparent 52%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.network-line {
  position: absolute;
  height: 1px;
  background: rgba(255, 255, 255, 0.34);
  transform-origin: left center;
}

.line-one {
  top: 35%;
  left: 6%;
  width: 70%;
  transform: rotate(18deg);
}

.line-two {
  right: 6%;
  bottom: 22%;
  width: 72%;
  transform: rotate(-27deg);
}

.node {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: var(--coral);
}

.node-a {
  top: 27%;
  left: 4%;
}

.node-b {
  top: 44%;
  right: 8%;
  background: var(--mint);
}

.node-c {
  bottom: 14%;
  left: 18%;
  background: var(--gold);
}

.product-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(34px, 5vw, 72px);
}

.product-kicker {
  margin-bottom: 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.product-content h3 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 830;
}

.product-tagline {
  margin-bottom: 0;
  color: var(--coral);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 760;
  line-height: 1.3;
}

.product-content p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 17px;
}

.careers {
  padding: clamp(86px, 10vw, 148px) 0;
  color: var(--white);
  background: var(--night);
}

.careers-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
}

.careers-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.28;
}

.primary-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--night);
  background: var(--mint);
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--white);
  transform: translateY(-2px);
}

.site-footer {
  padding: 44px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #030809;
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  margin-bottom: 6px;
  color: var(--white);
  font-weight: 800;
}

.site-footer p,
.site-footer address {
  margin-bottom: 0;
}

.site-footer address {
  font-style: normal;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    align-items: flex-start;
    height: auto;
    min-height: var(--header-height);
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 12px 20px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .site-nav {
    width: 100%;
    gap: 0;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 2px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .section-inner {
    width: min(calc(100% - 32px), var(--max));
  }

  .hero {
    min-height: 760px;
    padding: 150px 0 72px;
  }

  .hero-image {
    object-position: 68% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 17, 20, 0.92) 0%, rgba(7, 17, 20, 0.76) 46%, rgba(7, 17, 20, 0.9) 100%),
      linear-gradient(90deg, rgba(7, 17, 20, 0.78), rgba(7, 17, 20, 0.28));
  }

  .hero-content {
    margin-left: auto;
  }

  h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .title-line {
    width: auto;
  }

  .lead {
    font-size: 22px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .scroll-cue {
    left: 16px;
    right: auto;
    bottom: 22px;
  }

  .section-heading,
  .careers-inner {
    grid-template-columns: 1fr;
  }

  .product-card,
  .product-card:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-card:nth-child(even) .product-media {
    order: 0;
  }

  .product-media {
    min-height: 310px;
  }

  .commerce-stage,
  .network-stage {
    inset: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .site-nav {
    gap: 18px;
    justify-content: flex-start;
  }

  .hero {
    min-height: 720px;
    padding-bottom: 68px;
  }

  .section-heading h2,
  .careers h2 {
    font-size: 34px;
  }

  .product-media {
    min-height: 260px;
  }

  .product-content {
    padding: 30px 24px 34px;
  }

  .product-content h3 {
    font-size: 36px;
  }

  .primary-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 30px;
  }

  .section-heading h2,
  .careers h2 {
    font-size: 31px;
  }
}

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