:root {
  --ink: #0b1215;
  --paper: #f6f8f7;
  --muted: #5b686a;
  --line: #d9e1df;
  --teal: #1fb8a6;
  --teal-dark: #0d766d;
  --amber: #e9a83b;
  --coral: #df654f;
  --steel: #223236;
  --white: #ffffff;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #061012;
  background: var(--teal);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  font-size: 14px;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: #071014;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 13, 16, 0.96) 0%, rgba(7, 13, 16, 0.74) 42%, rgba(7, 13, 16, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 13, 16, 0.9) 0%, rgba(7, 13, 16, 0.02) 54%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(68px, 12vw, 156px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.18;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 54px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 800;
}

.primary-action {
  color: #061012;
  background: var(--amber);
}

.secondary-action {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 190px));
  gap: 12px;
  margin: 0;
}

.hero-stats div {
  padding: 16px;
  border-left: 3px solid var(--teal);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-stats dt {
  font-size: 24px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 112px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.contact p {
  color: var(--muted);
  font-size: 18px;
}

.problem-grid,
.market-grid,
.audience-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card,
.metric-card,
.audience-list article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.info-card p,
.metric-card p,
.audience-list p {
  color: var(--muted);
}

.icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.flow {
  display: grid;
  gap: 12px;
}

.flow-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 96px;
  padding: 20px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--steel);
}

.flow-step strong {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #061012;
  background: var(--teal);
}

.tech {
  width: 100%;
  padding-right: max(18px, calc((100% - 1180px) / 2));
  padding-left: max(18px, calc((100% - 1180px) / 2));
  background: #101c20;
  color: var(--white);
}

.tech .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.tech-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 18px;
  align-items: stretch;
}

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

.spec-list div {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.spec-list span,
.metric-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-weight: 800;
}

.spec-list strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
}

.gesture-panel {
  display: grid;
  gap: 12px;
}

.gesture-screen {
  order: 1;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-radius: var(--radius);
  background: #071014;
  border: 1px solid rgba(31, 184, 166, 0.42);
}

.gesture-state {
  display: none;
  min-height: 154px;
  flex-direction: column;
  justify-content: space-between;
}

.gesture-panel:has(#gesture-grab:checked) .state-grab,
.gesture-panel:has(#gesture-cursor:checked) .state-cursor,
.gesture-panel:has(#gesture-slide:checked) .state-slide,
.gesture-panel:has(#gesture-stop:checked) .state-stop {
  display: flex;
}

.gesture-name {
  color: var(--amber);
  font-size: 17px;
  font-weight: 800;
}

.gesture-command {
  max-width: 300px;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.signal-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 58px;
}

.signal-bars i {
  display: block;
  width: 24px;
  height: 28px;
  border-radius: 3px 3px 0 0;
  background: var(--teal);
  animation: pulse 1.2s ease-in-out infinite;
}

.signal-bars i:nth-child(2) { height: 38px; animation-delay: 0.08s; }
.signal-bars i:nth-child(3) { height: 54px; animation-delay: 0.16s; }
.signal-bars i:nth-child(4) { height: 44px; animation-delay: 0.24s; background: var(--amber); }
.signal-bars i:nth-child(5) { height: 32px; animation-delay: 0.32s; background: var(--coral); }

@keyframes pulse {
  0%, 100% { transform: scaleY(0.72); opacity: 0.66; }
  50% { transform: scaleY(1); opacity: 1; }
}

.gesture-buttons {
  order: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.gesture-button {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.gesture-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.gesture-button:has(input:checked),
.gesture-button:hover {
  color: #061012;
  background: var(--teal);
}

.market-grid {
  margin-bottom: 30px;
}

.metric-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.05;
}

.bars {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.bar-row {
  display: grid;
  grid-template-columns: 60px 1fr 145px;
  gap: 16px;
  align-items: center;
}

.bar-row div {
  height: 16px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7eeec;
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal-dark);
}

.bar-row strong {
  text-align: right;
}

.audience {
  padding-top: 10px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 28px;
  align-items: center;
  padding-top: 68px;
  border-top: 1px solid var(--line);
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--steel);
}

.contact-panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 20px;
  font-weight: 800;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.contact-panel .social-links a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  font-size: 15px;
  font-weight: 800;
}

.contact-panel .social-links a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-panel .social-links a:hover,
.footer-links a:hover {
  color: #061012;
  background: var(--teal);
}

.contact-panel span {
  color: rgba(255, 255, 255, 0.68);
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #061012;
  background: var(--amber);
  box-shadow: 0 18px 38px rgba(7, 16, 20, 0.28);
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--teal);
}

.footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  padding: 30px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.7);
  background: #071014;
}

.footer div:first-child {
  display: grid;
  gap: 4px;
}

.footer strong {
  color: var(--white);
  font-weight: 900;
}

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

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: 96svh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 13, 16, 0.96) 0%, rgba(7, 13, 16, 0.72) 100%),
      linear-gradient(0deg, rgba(7, 13, 16, 0.9) 0%, rgba(7, 13, 16, 0.08) 52%);
  }

  .hero-stats,
  .problem-grid,
  .market-grid,
  .audience-list,
  .split-section,
  .tech-layout,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .site-header {
    padding: 14px 18px;
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    padding-bottom: 34px;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-actions a {
    width: 100%;
  }

  .bar-row {
    grid-template-columns: 48px 1fr;
  }

  .bar-row strong {
    grid-column: 2;
    text-align: left;
  }

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

  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}
