:root {
  --bg-main: #05070f;
  --bg-soft: #0b1020;
  --panel: rgba(12, 19, 38, 0.66);
  --panel-strong: rgba(16, 25, 49, 0.92);
  --text-main: #eef5ff;
  --text-muted: #95a6c9;
  --line: rgba(149, 166, 201, 0.3);
  --aqua: #2ee9ff;
  --blue: #1f8dff;
  --pink: #ff3f8f;
  --gold: #ffbb39;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-1: 0 30px 70px rgba(3, 9, 24, 0.55);
  --shadow-2: 0 15px 40px rgba(20, 90, 255, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Sora", sans-serif;
  line-height: 1.5;
}

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

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
}

.bg-glow {
  z-index: -2;
  background:
    radial-gradient(560px 260px at 8% 14%, rgba(31, 141, 255, 0.45), transparent 70%),
    radial-gradient(400px 260px at 84% 16%, rgba(255, 63, 143, 0.28), transparent 70%),
    radial-gradient(520px 340px at 55% 70%, rgba(46, 233, 255, 0.22), transparent 80%);
}

.bg-stars {
  z-index: -1;
  opacity: 0.85;
  background-image:
    radial-gradient(1px 1px at 24% 34%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(1px 1px at 76% 20%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 58% 78%, rgba(255, 255, 255, 0.62), transparent 60%),
    radial-gradient(2px 2px at 14% 72%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(2px 2px at 92% 80%, rgba(255, 255, 255, 0.34), transparent 60%);
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 24px auto 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 29, 0.72);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 14px;
  z-index: 12;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(149, 166, 201, 0.34);
  box-shadow: 0 10px 24px rgba(4, 11, 24, 0.45);
}

.brand-text {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
  gap: 20px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.93rem;
}

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

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(149, 166, 201, 0.46);
  background: rgba(5, 10, 20, 0.5);
}

.lang-link {
  min-width: 34px;
  padding: 6px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #a7bbdf;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.lang-link:hover {
  color: #dde8fb;
}

.lang-link.active {
  color: #031224;
  background: linear-gradient(110deg, #2ee9ff, #3e9eff);
  box-shadow: 0 8px 24px rgba(27, 132, 255, 0.3);
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: 38px;
  padding: 56px 0 22px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(46, 233, 255, 0.42);
  color: #9befff;
  font-size: 0.8rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(110deg, #2ee9ff 10%, #2a89ff 52%, #ff5da4 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 58ch;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

/* Hero features list */
.hero-features {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 60ch;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.hero-features .icon {
  font-size: 1.05rem;
  color: var(--aqua);
}

/* Ecosystem interactive diagram */
.ecosystem .section-head p {
  max-width: 70ch;
}
.ecosystem-container {
  position: relative;
  width: 100%;
  margin-top: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(11, 16, 31, 0.66);
  backdrop-filter: blur(10px);
  overflow: auto;
}

.flow-showcase-controls {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.flow-showcase-btn {
  appearance: none;
  border: 1px solid rgba(129, 165, 223, 0.42);
  background: rgba(9, 17, 34, 0.82);
  color: #c5d7f7;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.flow-showcase-btn.active {
  border-color: rgba(97, 223, 255, 0.76);
  background: linear-gradient(120deg, rgba(55, 177, 255, 0.28), rgba(118, 108, 255, 0.24));
  color: #f2f8ff;
}

.flow-canvas {
  position: relative;
  min-width: 1120px;
  height: 620px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 18% 20%, rgba(32, 134, 255, 0.18), transparent 38%),
    radial-gradient(circle at 84% 16%, rgba(255, 83, 157, 0.16), transparent 44%),
    linear-gradient(140deg, rgba(9, 16, 33, 0.9), rgba(12, 20, 41, 0.84));
}

.flow-showcase {
  display: none;
}

.flow-showcase.active {
  display: block;
}

.flow-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(70, 119, 198, 0.09) 0 1px,
      transparent 1px 54px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(70, 119, 198, 0.08) 0 1px,
      transparent 1px 54px
    );
  opacity: 0.48;
  pointer-events: none;
}

.ecosystem-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.eco-line {
  fill: none;
  stroke: rgba(167, 245, 255, 1);
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 6;
  filter: drop-shadow(0 0 6px rgba(73, 189, 255, 0.34));
  transition: stroke-dashoffset 0.4s ease, opacity 0.4s ease, stroke 0.35s ease;
  opacity: 0.96;
  animation: eco-flow 4.8s linear infinite;
}

@keyframes eco-flow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -180;
  }
}

.flow-card {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 220px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(129, 165, 223, 0.5);
  background: linear-gradient(160deg, rgba(37, 77, 145, 0.78), rgba(23, 44, 85, 0.88));
  color: var(--text-main);
  box-shadow: 0 14px 32px rgba(2, 7, 18, 0.42);
  text-align: center;
  z-index: 3;
}

.flow-card h4 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0f6ff;
}

.flow-card p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #c8d8f8;
}

.flow-card.engine {
  width: 390px;
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(120, 229, 255, 0.28), transparent 45%),
    linear-gradient(155deg, rgba(47, 107, 196, 0.88), rgba(33, 62, 121, 0.94));
  border-color: rgba(122, 223, 255, 0.62);
}

.flow-card.output {
  width: 230px;
  min-height: 102px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flow-card.led {
  width: 230px;
}

.flow-card.source {
  width: 206px;
  min-height: 146px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, rgba(34, 76, 146, 0.84), rgba(22, 45, 87, 0.92));
}

.flow-card.operator {
  width: 206px;
  min-height: 146px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, rgba(44, 89, 166, 0.85), rgba(26, 51, 101, 0.94));
}

.flow-canvas .source-a {
  left: 10%;
  top: 13.8%;
}

.flow-canvas .source-b {
  left: 30%;
  top: 13.8%;
}

.flow-canvas .source-c {
  left: 50%;
  top: 13.8%;
}

.flow-canvas .operator-1 {
  left: 70%;
  top: 13.8%;
}

.flow-canvas .operator-2 {
  left: 90%;
  top: 13.8%;
}

.flow-canvas .engine {
  left: 50%;
  top: 50%;
}

.flow-canvas .led {
  left: 16%;
  top: 83%;
}

.flow-canvas .stage {
  left: 39%;
  top: 83%;
}

.flow-canvas .mobile {
  left: 62%;
  top: 83%;
}

.flow-canvas .tv {
  left: 85%;
  top: 83%;
}

.flow-label {
  position: static;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.67rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b8cced;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(123, 152, 199, 0.44);
  background: rgba(8, 16, 34, 0.74);
  box-shadow: 0 8px 18px rgba(2, 8, 20, 0.35);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.flow-label-row {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  z-index: 4;
}

.flow-label-row-top-s1 {
  top: 201px;
  width: min(1080px, calc(100% - 32px));
  grid-template-columns: 1.65fr 0.95fr;
  gap: 22px;
}

.flow-label-row-top-s1 .flow-label:first-child {
  width: 100%;
}

.flow-label-row-top-s1 .flow-label:last-child {
  width: min(390px, 100%);
  justify-self: end;
}

.flow-label-row-top-s2 {
  top: 201px;
  width: min(1080px, calc(100% - 32px));
  grid-template-columns: 1.32fr 1.18fr 0.72fr;
  gap: 14px;
}

.flow-label-row-mid {
  top: 417px;
}

/* Architecture & Integrations Section */
.architecture {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 70px 30px;
  margin-top: 100px;
  background: rgba(11, 16, 31, 0.66);
  backdrop-filter: blur(12px);
}
/* decorative background for architecture section */
.architecture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/images/abstract-arch-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: blur(10px);
  z-index: -1;
}
.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.arch-block {
  background: rgba(8, 14, 30, 0.84);
  border: 1px solid rgba(149, 166, 201, 0.26);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-1);
}
.arch-block h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}
.arch-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.arch-block li strong {
  color: var(--text-main);
}

/* UI Gallery styles */
.ui-gallery {
  position: relative;
  margin-top: 80px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
}

/* decorative background inside the gallery */
.ui-gallery .gallery-bg {
  display: none;
}

.ui-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 20px;
}

.ui-tab {
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(5, 10, 20, 0.55);
  border: 1px solid rgba(149, 166, 201, 0.45);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.ui-tab:hover {
  background: rgba(8, 14, 28, 0.65);
}

.ui-tab.active {
  color: #031224;
  background: linear-gradient(110deg, #2ee9ff, #3e9eff);
  box-shadow: var(--shadow-2);
  border-color: rgba(46, 233, 255, 0.6);
}

.ui-previews {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(149, 166, 201, 0.3);
  box-shadow: var(--shadow-1);
  height: 640px;
}

.ui-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: inherit;
}

.ui-preview.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #041019;
  background: linear-gradient(110deg, #2ee9ff, #3e9eff);
  box-shadow: var(--shadow-2);
}

.btn-primary:hover {
  box-shadow: 0 18px 45px rgba(27, 132, 255, 0.36);
}

.btn-ghost {
  color: #d9e7ff;
  border: 1px solid rgba(149, 166, 201, 0.45);
  background: rgba(8, 12, 22, 0.55);
}

.btn-outline {
  color: #d4e2fb;
  border: 1px solid rgba(149, 166, 201, 0.5);
  background: rgba(5, 10, 20, 0.55);
  padding: 10px 16px;
  flex-shrink: 0;
}

.hero-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-stats article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
}

.hero-stats h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.32rem;
}

.hero-stats p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  justify-self: end;
}

.hero-device {
  margin: 0;
  border-radius: var(--radius-lg);
  padding: 12px;
  border: 1px solid rgba(148, 167, 200, 0.26);
  background: linear-gradient(165deg, rgba(14, 23, 46, 0.95), rgba(8, 12, 22, 0.93));
  box-shadow: var(--shadow-1);
  transform: perspective(900px) rotateY(-8deg) rotateX(3deg);
  transform-style: preserve-3d;
}

.hero-screenshot {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(149, 166, 201, 0.24);
}

.hero-logo-rail {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-logo-rail img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 16px;
  border: 1px solid rgba(149, 166, 201, 0.24);
  box-shadow: 0 10px 24px rgba(4, 11, 24, 0.4);
  background: #060d1a;
}

.mock-shell {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 12px;
  border: 1px solid rgba(148, 167, 200, 0.25);
  background: linear-gradient(165deg, rgba(14, 23, 46, 0.95), rgba(8, 12, 22, 0.93));
  box-shadow: var(--shadow-1);
  transform: perspective(900px) rotateY(-8deg) rotateX(3deg);
  transform-style: preserve-3d;
}

.mock-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.mock-topbar span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(170, 186, 220, 0.8);
}

.mock-ui {
  display: grid;
  grid-template-columns: 0.28fr 1fr 0.26fr;
  gap: 10px;
  min-height: 328px;
}

.mock-panel {
  border-radius: 12px;
  background: rgba(8, 14, 30, 0.84);
  border: 1px solid rgba(149, 166, 201, 0.2);
  padding: 14px 12px;
}

.mock-panel h4 {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: #dbe8ff;
}

.mock-panel p {
  margin: 8px 0;
  color: #8ea4d0;
  font-size: 0.8rem;
}

.mock-canvas {
  border-radius: 12px;
  border: 1px solid rgba(149, 166, 201, 0.2);
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #090f1f, #060b16);
}

.galaxy {
  height: 74%;
  background:
    radial-gradient(circle at 24% 20%, rgba(87, 141, 255, 0.72), transparent 40%),
    radial-gradient(circle at 75% 30%, rgba(223, 102, 255, 0.5), transparent 42%),
    radial-gradient(circle at 44% 70%, rgba(89, 232, 255, 0.38), transparent 46%),
    linear-gradient(110deg, #0d1223 8%, #131d3d 50%, #2a1a45 100%);
}

.preview-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  border-top: 1px solid rgba(149, 166, 201, 0.2);
  background:
    linear-gradient(110deg, rgba(10, 20, 44, 0.9), rgba(16, 25, 54, 0.9)),
    repeating-linear-gradient(
      90deg,
      rgba(44, 164, 255, 0.12) 0 22px,
      rgba(255, 255, 255, 0.03) 22px 44px
    );
}

.mock-controls {
  margin-top: 10px;
  display: inline-flex;
  gap: 9px;
}

.mock-controls span {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(149, 166, 201, 0.28);
  color: #b5c6e8;
  font-size: 0.72rem;
  padding: 5px 10px;
}

.hero-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -70px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 176, 255, 0.35), rgba(63, 176, 255, 0));
  filter: blur(8px);
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 850px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.product-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 140, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.product-logo {
  width: 68px;
  height: 68px;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(149, 166, 201, 0.24);
  margin-bottom: 12px;
  background: #060d1a;
}

.chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(46, 233, 255, 0.38);
  color: #9ef3ff;
}

.chip-satellite {
  border-color: rgba(137, 138, 255, 0.4);
  color: #c2c8ff;
}

.chip-display {
  border-color: rgba(255, 188, 58, 0.43);
  color: #ffe8ad;
}

.product-card h3 {
  margin: 12px 0 8px;
  font-size: 1.32rem;
}

.product-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.product-card li {
  margin: 10px 0;
  color: #d2dff8;
  font-size: 0.9rem;
}

.product-card li::before {
  content: ">";
  margin-right: 8px;
  color: #57c8ff;
}

.capability-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.capability-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.capability-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.qa {
  padding-top: 72px;
}

.qa .section-head > p:last-child {
  margin: 12px 0 0;
  max-width: 62ch;
  color: #c8d5ef;
}

.qa-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.qa-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.qa-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.qa-card code {
  color: #c9f5ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9em;
}

.timeline-panel {
  border-radius: 26px;
  background:
    linear-gradient(130deg, rgba(16, 28, 59, 0.95), rgba(9, 15, 30, 0.92)),
    linear-gradient(180deg, rgba(55, 145, 255, 0.2), rgba(255, 77, 154, 0.06));
  border: 1px solid rgba(127, 149, 194, 0.36);
  padding: clamp(22px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  box-shadow: var(--shadow-1);
}

.workflow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}

.workflow-tab {
  appearance: none;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(149, 166, 201, 0.45);
  background: rgba(6, 12, 25, 0.58);
  color: #b8c9e9;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 16px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.workflow-tab:hover {
  background: rgba(11, 19, 38, 0.74);
}

.workflow-tab.active {
  color: #041223;
  border-color: rgba(69, 221, 255, 0.62);
  background: linear-gradient(112deg, #2de7ff, #469bff);
  box-shadow: var(--shadow-2);
}

.workflow-pane {
  display: none;
}

.workflow-pane.active {
  display: grid;
}

.timeline-panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.timeline-panel p {
  margin: 14px 0 0;
  color: #c0d0ee;
}

.timeline-shot {
  margin: 18px 0 0;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(127, 149, 194, 0.3);
  background:
    linear-gradient(180deg, rgba(13, 22, 44, 0.75), rgba(8, 14, 29, 0.78));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.timeline-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.workflow-slider {
  position: relative;
  display: grid;
  isolation: isolate;
}

.workflow-slider .workflow-slide {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease-in-out;
  will-change: opacity;
}

.workflow-slider .workflow-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.workflow-slider-dots {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.workflow-dot {
  appearance: none;
  cursor: pointer;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(170, 188, 220, 0.88);
  background: rgba(10, 18, 35, 0.74);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  padding: 0;
}

.workflow-dot:hover {
  transform: scale(1.08);
}

.workflow-dot.active {
  background: linear-gradient(110deg, #32e8ff, #4099ff);
  border-color: rgba(72, 220, 255, 0.96);
}

.timeline-steps {
  display: grid;
  gap: 12px;
}

.timeline-steps div {
  border-radius: 14px;
  border: 1px solid rgba(127, 149, 194, 0.28);
  background: rgba(9, 16, 33, 0.62);
  padding: 14px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}

.timeline-steps span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(130deg, #35dfff, #1d7dff);
  color: #00101f;
  font-weight: 700;
  font-size: 0.8rem;
}

.timeline-steps p {
  margin: 0;
  color: #c0d0ee;
  font-size: 0.92rem;
}

.cta {
  padding-top: 72px;
}

.cta-box {
  border-radius: 22px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 20%, rgba(46, 233, 255, 0.17), transparent 46%),
    radial-gradient(circle at 90% 70%, rgba(255, 83, 157, 0.15), transparent 52%),
    var(--panel-strong);
  box-shadow: var(--shadow-1);
}

.cta-box h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
}

.cta-box p {
  margin: 12px 0 0;
  max-width: 62ch;
  color: #c8d5ef;
}

.cta-form {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-form input {
  flex: 1 1 260px;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid rgba(149, 166, 201, 0.55);
  background: rgba(5, 11, 23, 0.88);
  color: var(--text-main);
  padding: 13px 16px;
  font: inherit;
}

.cta-form input:focus {
  outline: 2px solid rgba(48, 190, 255, 0.5);
  outline-offset: 2px;
}

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 64px auto 26px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
  flex-wrap: wrap;
  color: #8fa3ca;
  font-size: 0.86rem;
}

.site-footer div {
  display: flex;
  gap: 14px;
}

.site-footer a:hover {
  color: #d5e3fb;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    transform 660ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 540ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding-top: 28px;
  }

  .hero-visual {
    justify-self: stretch;
    width: 100%;
  }

  .hero-device {
    transform: none;
  }

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

  .timeline-panel {
    grid-template-columns: 1fr;
  }

  .flow-canvas {
    min-width: 1040px;
    height: 600px;
  }

  .flow-label-row {
    width: min(940px, calc(100% - 36px));
    gap: 12px;
  }
}

@media (max-width: 780px) {
  .site-header {
    width: min(1180px, calc(100% - 24px));
    margin-top: 12px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 12px;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
  }

  .header-actions {
    justify-self: end;
    gap: 8px;
  }

  .btn-outline {
    padding: 9px 12px;
    font-size: 0.85rem;
  }

  .lang-link {
    min-width: 32px;
    padding: 5px 7px;
    font-size: 0.72rem;
  }

  main {
    width: min(1180px, calc(100% - 24px));
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .mock-ui {
    min-height: 250px;
    grid-template-columns: 0.28fr 1fr;
  }

  .mock-panel.right {
    display: none;
  }

  .product-grid,
  .capability-grid,
  .qa-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo-rail {
    justify-content: flex-start;
  }

  .ui-tabs {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 22px 0 16px;
  }

  .ui-tab {
    padding: 9px 14px;
    font-size: 0.84rem;
  }

  .flow-canvas {
    min-width: 980px;
    height: 580px;
  }

  .flow-card {
    width: 210px;
    padding: 12px;
  }

  .flow-card.output {
    width: 225px;
  }

  .flow-card.engine,
  .flow-card.led {
    width: 270px;
  }

  .flow-label-row {
    width: min(900px, calc(100% - 28px));
  }
}

@media (max-width: 780px) and (orientation: portrait) {
  .ui-previews {
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    max-height: 62vh;
  }

  .ui-preview {
    object-fit: contain;
    background: #050a14;
  }

  .flow-showcase-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .flow-showcase-btn {
    padding: 7px 12px;
    font-size: 0.76rem;
  }

  .ecosystem-container {
    overflow: hidden;
  }

  .flow-canvas {
    min-width: 0;
    height: auto;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .flow-showcase {
    display: none;
  }

  .flow-showcase.active {
    display: grid;
  }

  .flow-canvas::before,
  .ecosystem-svg,
  .flow-label-row {
    display: none;
  }

  .flow-canvas .flow-card {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    min-height: 0;
    padding: 10px;
    text-align: left;
  }

  .flow-card h4 {
    margin-bottom: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  .flow-card p {
    font-size: 0.66rem;
    line-height: 1.35;
  }

  .flow-canvas .flow-card.engine {
    grid-column: 1 / -1;
    text-align: center;
    padding: 12px;
  }

  .flow-canvas .flow-card.engine,
  .flow-canvas .flow-card.source,
  .flow-canvas .flow-card.operator,
  .flow-canvas .flow-card.output,
  .flow-canvas .flow-card.led {
    width: auto;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
