:root,
html[data-theme="aurora"] {
  color-scheme: dark;
  --bg: #070a12;
  --bg-soft: #0b1020;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --ink: #f8fafc;
  --text: #cbd5e1;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(125, 211, 252, 0.32);
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --accent-3: #3b82f6;
  --card-radius: 20px;
  --module-radius: 28px;
  --button-radius: 999px;
  --max: 1160px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-soft: #eef2ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(59, 130, 246, 0.28);
  --accent: #6d28d9;
  --accent-2: #0891b2;
  --accent-3: #2563eb;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124, 58, 237, 0.32), transparent 34rem),
    radial-gradient(circle at 86% 12%, rgba(6, 182, 212, 0.22), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0%, #090d1a 48%, var(--bg) 100%);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.26);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav a {
  flex: 0 0 auto;
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.header-cta,
.language-toggle,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  font: inherit;
  font-weight: 780;
}

.header-cta,
.language-toggle {
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.language-toggle {
  width: 96px;
  cursor: pointer;
}

.button {
  padding: 12px 20px;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 14px 42px rgba(124, 58, 237, 0.32);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 20px;
}

.products {
  padding-bottom: 42px;
}

.values {
  padding-top: 42px;
}

.eyebrow,
.feature-key,
.direction-card span,
.value-card small,
.process-list small {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 44px;
  max-width: var(--max);
  min-height: calc(100svh - 73px);
  padding-top: 72px;
}

.hero-copy {
  max-width: 620px;
}

.hero h1,
.section-heading h2,
.contact-panel h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(46px, 6vw, 78px);
  word-break: keep-all;
}

.hero-lede,
.section-heading p,
.contact-panel p {
  color: var(--text);
}

.hero-lede {
  margin: 22px 0 0;
  font-size: 18px;
}

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

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--module-radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(7, 10, 18, 0.08), transparent 38%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

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

.section-heading h2,
.contact-panel h2 {
  font-size: clamp(32px, 4.3vw, 56px);
}

.section-heading p {
  margin: 16px 0 0;
  font-size: 17px;
}

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

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

.glass-card,
.feature-card,
.direction-card,
.value-card,
.process-list article,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.glass-card:hover,
.feature-card:hover,
.direction-card:hover,
.value-card:hover,
.process-list article:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.glass-card,
.feature-card,
.direction-card,
.value-card {
  padding: 24px;
}

.card-index,
.value-card span,
.process-list span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 850;
}

.glass-card h3,
.feature-card h3,
.direction-card h3,
.value-card h3,
.process-list h3 {
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.18;
}

.glass-card p,
.feature-card p,
.direction-card p,
.value-card p,
.process-list p {
  margin: 12px 0 0;
  color: var(--text);
}

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

.product-carousel {
  --product-control-size: 44px;
  position: relative;
  padding: 0 58px;
}

.product-viewport {
  position: relative;
  overflow: hidden;
}

.product-viewport::before,
.product-viewport::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 88px;
  content: "";
  pointer-events: none;
}

.product-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), rgba(7, 10, 18, 0));
}

.product-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), rgba(7, 10, 18, 0));
}

.product-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scroll-behavior: smooth;
  scroll-padding: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.product-grid::-webkit-scrollbar {
  display: none;
}

.product-grid:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.72);
  outline-offset: 6px;
}

.direction-card {
  flex: 0 0 clamp(270px, 24vw, 356px);
  min-height: 206px;
  padding: 22px;
  scroll-snap-align: start;
}

.direction-card h3 {
  margin-top: 18px;
}

.product-control {
  position: absolute;
  z-index: 4;
  top: calc(50% - 17px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--product-control-size);
  height: var(--product-control-size);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(18, 23, 38, 0.78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.product-control:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(31, 38, 58, 0.9);
}

.product-control:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.72);
  outline-offset: 3px;
}

.product-control:disabled {
  opacity: 0.38;
  cursor: default;
  transform: none;
}

.product-control span {
  display: block;
  margin-top: -2px;
  font-size: 34px;
  line-height: 1;
}

.product-control-prev {
  left: 0;
}

.product-control-next {
  right: 0;
}

.product-carousel.is-static {
  padding-right: 0;
  padding-left: 0;
}

.product-carousel.is-static .product-control,
.product-carousel.is-static .product-viewport::before,
.product-carousel.is-static .product-viewport::after {
  display: none;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.value-card {
  grid-column: span 2;
  min-height: 260px;
}

.value-card:nth-child(4),
.value-card:nth-child(5) {
  grid-column: span 3;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.process-list article {
  min-height: 270px;
  padding: 22px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 34px;
  border-radius: var(--module-radius);
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.22), transparent 34rem),
    radial-gradient(circle at 100% 70%, rgba(6, 182, 212, 0.2), transparent 28rem),
    var(--surface);
}

.contact-panel p {
  max-width: 640px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.footer-nav a {
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  text-align: right;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .statement-grid,
  .process-list,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    min-height: 0;
  }

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

  .value-card,
  .value-card:nth-child(4),
  .value-card:nth-child(5) {
    grid-column: auto;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 10px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .section {
    padding: 68px 20px;
  }

  .products {
    padding-bottom: 34px;
  }

  .values {
    padding-top: 34px;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-actions,
  .hero-actions .button,
  .contact-panel .button {
    width: 100%;
  }

  .hero-visual img {
    min-height: 0;
  }

  .capability-grid,
  .values-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .product-carousel {
    padding: 0 0 44px;
  }

  .product-viewport {
    overflow: visible;
  }

  .product-viewport::before,
  .product-viewport::after {
    display: none;
  }

  .direction-card {
    flex-basis: min(82vw, 330px);
  }

  .product-control {
    top: auto;
    bottom: -2px;
    width: 38px;
    height: 38px;
  }

  .product-control span {
    font-size: 29px;
  }

  .product-control-prev {
    right: 48px;
    left: auto;
  }

  .product-control-next {
    right: 0;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
