/* 骏辰三合 Official Site */
:root {
  --bg: #ffffff;
  --bg-subtle: #f6f7f9;
  --bg-muted: #eef0f4;
  --text: #111318;
  --text-secondary: #5a6170;
  --text-muted: #8b92a1;
  --ink: #111318;
  --accent: #2b5cff;
  --accent-hover: #1f46d6;
  --accent-secondary: #6d4aff;
  --accent-light: rgba(43, 92, 255, 0.08);
  --accent-gradient: linear-gradient(135deg, #2b5cff 0%, #6d4aff 100%);
  --border: #e4e7ee;
  --shadow-sm: 0 1px 2px rgba(17, 19, 24, 0.04);
  --shadow-md: 0 16px 40px rgba(17, 19, 24, 0.06);
  --shadow-lg: 0 28px 64px rgba(17, 19, 24, 0.08);
  --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-h: 68px;
  --radius: 2px;
  --radius-lg: 8px;
  --max-w: 1120px;
  --content-inset: max(4vw, calc((100vw - var(--max-w)) / 2));
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(var(--max-w), 92vw);
  margin: 0 auto;
}

main {
  position: relative;
  z-index: 1;
}

.accent { color: var(--accent); }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background var(--transition),
              border-color var(--transition);
}

.header.header-hidden {
  transform: translateY(-100%);
}

.header.scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-over-hero .nav.container {
  width: 100%;
  max-width: none;
  padding-left: var(--content-inset);
  padding-right: var(--content-inset);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  border: none;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-muted);
}

.nav-links a.active {
  color: var(--text);
  font-weight: 600;
}

/* Transparent header over hero (about page) */
.header-over-hero {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
}

.header-over-hero.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.header-over-hero .logo,
.header-over-hero .nav-links a {
  color: rgba(232, 238, 247, 0.86);
}

.header-over-hero .logo-text {
  color: #e8eef7;
}

.header-over-hero .logo-mark {
  background: rgba(62, 224, 200, 0.1);
  color: var(--accent);
}

.header-over-hero .nav-links a:hover,
.header-over-hero .nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.header-over-hero .nav-toggle span {
  background: #f5f8fc;
}

.header-over-hero.scrolled .logo,
.header-over-hero.scrolled .nav-links a {
  color: var(--text-secondary);
}

.header-over-hero.scrolled .logo-text {
  color: var(--text);
}

.header-over-hero.scrolled .logo-mark {
  background: #fff;
  color: var(--accent);
}

.header-over-hero.scrolled .nav-links a:hover,
.header-over-hero.scrolled .nav-links a.active {
  color: var(--text);
  background: var(--bg-muted);
}

.header-over-hero.scrolled .nav-toggle span {
  background: var(--text);
}

.nav-cta {
  color: var(--accent) !important;
  background: var(--accent-light) !important;
}

.nav-cta:hover {
  background: rgba(51, 112, 255, 0.15) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1002;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #1a2740;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(13, 21, 38, 0.16);
}

.btn-secondary {
  background: var(--bg-muted, #f0f2f5);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero Banner (ByteDance-style mission) */
.hero-banner {
  position: relative;
  margin-top: 0;
  background: #05080f;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  min-height: 620px;
}

.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-mission-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  padding: 48px var(--content-inset);
  pointer-events: none;
}

.hero-mission-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(22, 21, 19, 0.86) 0%,
    rgba(22, 21, 19, 0.58) 36%,
    rgba(22, 21, 19, 0.18) 60%,
    transparent 76%
  );
  pointer-events: none;
}

.hero-mission-card {
  position: relative;
  z-index: 1;
  background: none;
  padding: 0;
  max-width: min(480px, 46vw);
  pointer-events: auto;
}

.hero-banner .hero-slides {
  position: absolute;
  inset: 0;
}

.hero-banner .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-banner .hero-slide.active {
  opacity: 1;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.08) 0%,
    rgba(15, 23, 42, 0.02) 45%,
    rgba(15, 23, 42, 0.2) 100%
  );
  pointer-events: none;
}

/* Hero abstract backgrounds (fallback when no photos) */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide-bg.theme-mission {
  background: linear-gradient(135deg, #0c4a6e 0%, #00b8db 45%, #7c3aed 100%);
}

.hero-slide-bg.theme-man {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #a78bfa 100%);
}

.hero-slide-bg.theme-energy {
  background: linear-gradient(135deg, #c2410c 0%, #f97316 40%, #00b8db 100%);
}

.hero-slide-bg.theme-calm {
  background: linear-gradient(135deg, #134e4a 0%, #14b8a6 50%, #34d399 100%);
}

.hero-slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  z-index: 1;
}

.hero-slide-char {
  display: block;
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.hero-slide-content p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  opacity: 0.92;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.hero-mission-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
  margin: 16px 0 28px;
  max-width: 400px;
}

.hero-mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.14);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 50%, black 20%, transparent 80%);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: hero-orb-float 12s ease-in-out infinite;
}

.hero-orb.orb-1 {
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.25);
  top: 10%;
  right: 15%;
}

.hero-orb.orb-2 {
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.15);
  bottom: 20%;
  left: 10%;
  animation-delay: -4s;
}

.hero-orb.orb-3 {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.2);
  top: 40%;
  left: 40%;
  animation-delay: -8s;
}

@keyframes hero-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.95); }
}

.hero-watermark {
  position: absolute;
  right: 8%;
  bottom: 12%;
  font-size: clamp(8rem, 22vw, 16rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  user-select: none;
  letter-spacing: -0.02em;
}

.hero-slide-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fb-1 { background: linear-gradient(135deg, #4a5568 0%, #667eea 50%, #764ba2 100%); }
.fb-2 { background: linear-gradient(135deg, #3370ff 0%, #5b8def 50%, #00c6fb 100%); }
.fb-3 { background: linear-gradient(135deg, #2d3748 0%, #11998e 50%, #38ef7d 100%); }
.fb-4 { background: linear-gradient(135deg, #553c9a 0%, #ee0979 50%, #ff6a00 100%); }

.hero-mission-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 0;
  border: none;
  background: none;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-mission-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 600;
  line-height: 1.28;
  color: #f4efe6;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.28);
}

.hero-banner .hero-dots {
  position: absolute;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  margin-top: 0;
}

.hero-banner .hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
}

.hero-banner .hero-dots .dot.active {
  background: #fff;
  border-color: #fff;
  transform: none;
}

/* Legacy hero (unused) */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
}

.hero-mission {
  text-align: center;
  padding: 80px 24px 48px;
}

.hero-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.3em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: 0.02em;
}

.hero-carousel {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 60px;
}

.slide-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.slide-2 { background: linear-gradient(135deg, #3370ff 0%, #00c6fb 100%); }
.slide-3 { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.slide-4 { background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%); }

.slide-content {
  text-align: center;
  color: #fff;
}

.slide-char {
  display: block;
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.95;
}

.slide-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.9;
  font-weight: 400;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.hero-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.hero-dots .dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-header {
  text-align: left;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: 0.01em;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0;
  line-height: 1.75;
}

/* About */
.about {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.tech-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.about .container {
  position: relative;
  z-index: 1;
}

.about-scan {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 92, 255, 0.55), transparent);
  animation: about-scan 7s linear infinite;
}

@keyframes about-scan {
  0% { top: 8%; opacity: 0; }
  12% { opacity: 0.7; }
  88% { opacity: 0.7; }
  100% { top: 92%; opacity: 0; }
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-lead {
  font-size: 1.12rem;
  margin: 20px 0 16px;
  line-height: 1.85;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.about-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.about-trust span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 7px 12px;
  border: 1px solid rgba(43, 92, 255, 0.22);
  background: var(--accent-light);
  border-radius: 2px;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.meta-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 20px;
  background: transparent;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
}

.meta-item:last-child {
  border-bottom: none;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
  padding-top: 3px;
}

.meta-value {
  font-size: 0.95rem;
  line-height: 1.65;
}

.about-brand h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.brand-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 20px 20px 18px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}

.brand-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.brand-item--secure {
  border-left-color: var(--accent);
}

.brand-char {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(43, 92, 255, 0.18);
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-char--latin,
.value-char--latin {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-family: var(--font);
}

.brand-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.brand-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.product-detail-desc code,
.infra-card code {
  font-size: 0.82em;
  padding: 2px 6px;
  background: var(--bg-muted);
  border-radius: 4px;
  color: var(--text);
}

/* Products Showcase */
body[data-page="products"] {
  overflow: auto;
  height: auto;
}

body[data-page="products"] main {
  height: auto;
  margin-top: 0;
  overflow: visible;
}

.products-scroll-section {
  position: relative;
  height: 100%;
}

.products-scroll-sticky {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.products-showcase {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 0 24px;
  overflow: hidden;
}

.products-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.products-scroll-hint.is-last {
  opacity: 0;
}

.products-scroll-hint-arrow {
  width: 18px;
  height: 28px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  position: relative;
}

.products-scroll-hint-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  animation: scroll-hint-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.35; }
}

.products-showcase-header {
  text-align: center;
  margin-bottom: 12px;
  padding-top: 20px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.products-showcase-header .section-desc {
  margin: 0 auto;
  max-width: 560px;
}

.products-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.products-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(51, 112, 255, 0.15);
  top: -100px;
  right: 10%;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(107, 78, 255, 0.12);
  bottom: -80px;
  left: 5%;
}

.products-showcase-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr auto;
  gap: 40px;
  align-items: center;
  width: min(1280px, 94vw);
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  padding: 8px 0 48px;
}

/* Left: product detail */
.product-detail {
  position: relative;
  min-height: 220px;
}

.product-detail-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}

.product-detail-panel.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.product-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.product-detail-icon svg { width: 24px; height: 24px; }

.icon-app { background: rgba(26, 159, 92, 0.12); color: #1a9f5c; }
.icon-editor { background: var(--accent-light); color: var(--accent); }
.icon-engine { background: rgba(107, 78, 255, 0.12); color: #6b4eff; }

.product-detail-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.product-detail-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 20px;
  max-width: 340px;
}

.product-detail-features {
  list-style: none;
  margin-bottom: 28px;
}

.product-detail-features li {
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.product-detail-features li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.product-detail-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.product-detail-link:hover { text-decoration: underline; }

.product-detail-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Center: visual mockup */
.product-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-visual-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.product-visual-panel.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 380px;
}

.phone-frame {
  position: absolute;
  width: 180px;
  height: 360px;
  background: #1a1a2e;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-70%, -50%) rotate(-6deg);
}

.phone-frame-back {
  transform: translate(-20%, -45%) rotate(8deg);
  z-index: 1;
  opacity: 0.85;
}

.phone-notch {
  width: 60px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  margin: 4px auto 8px;
}

.phone-screen {
  background: linear-gradient(180deg, #ff6b9d 0%, #c44569 100%);
  border-radius: 20px;
  height: calc(100% - 20px);
  padding: 12px;
  overflow: hidden;
}

.theme-app .phone-screen { background: linear-gradient(180deg, #667eea 0%, #764ba2 100%); }

.mock-header {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  margin-bottom: 8px;
}

.mock-search {
  background: rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 0.55rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}

.mock-banner {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 20px 10px;
  font-size: 0.55rem;
  color: #fff;
  text-align: center;
  margin-bottom: 10px;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mock-card {
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  height: 50px;
}

.mock-play {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}

.mock-video {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  height: 120px;
}

/* Product screenshot (real UI) */
.product-screenshot {
  width: 100%;
  max-width: 560px;
}

.product-screenshot-frame {
  background: #1a2332;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-screenshot-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #121a26;
}

.product-screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Desktop mockup */
.desktop-mockup {
  width: 100%;
  max-width: 480px;
}

.desktop-frame {
  background: #2d2d3a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.desktop-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1e1e28;
}

.tb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.tb-dot:nth-child(2) { background: #febc2e; }
.tb-dot:nth-child(3) { background: #28c840; }

.tb-title {
  margin-left: 8px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
}

.desktop-screen {
  padding: 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 280px;
}

.mock-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.mock-track {
  height: 24px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}

.mock-track.active {
  background: rgba(51, 112, 255, 0.4);
  width: 70%;
}

.mock-preview {
  height: 140px;
  background: linear-gradient(135deg, rgba(51,112,255,0.3), rgba(107,78,255,0.2));
  border-radius: 8px;
  margin-bottom: 12px;
}

.mock-tools {
  display: flex;
  gap: 8px;
}

.mock-tools span {
  padding: 4px 10px;
  background: rgba(51, 112, 255, 0.2);
  border-radius: 4px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.8);
}

/* Engine mockup */
.engine-mockup {
  position: relative;
  width: 360px;
  height: 360px;
}

.engine-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.engine-ring {
  position: absolute;
  border: 2px solid rgba(107, 78, 255, 0.25);
  border-radius: 50%;
  animation: engine-spin 20s linear infinite;
}

.ring-1 { width: 280px; height: 280px; }
.ring-2 { width: 220px; height: 220px; animation-duration: 15s; animation-direction: reverse; border-color: rgba(51, 112, 255, 0.3); }
.ring-3 { width: 160px; height: 160px; animation-duration: 10s; }

@keyframes engine-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.engine-center {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b4eff, #3370ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 32px rgba(107, 78, 255, 0.4);
  z-index: 1;
}

.engine-center span { font-size: 1.8rem; font-weight: 700; }
.engine-center small { font-size: 0.6rem; opacity: 0.9; margin-top: 4px; }

.engine-nodes {
  position: absolute;
  inset: 0;
}

.engine-node {
  position: absolute;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.engine-node:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.engine-node:nth-child(2) { top: 50%; right: -10px; transform: translateY(-50%); }
.engine-node:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.engine-node:nth-child(4) { top: 50%; left: -10px; transform: translateY(-50%); }

/* Right: product sidebar */
.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 12px;
  background: var(--bg);
  border-radius: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.product-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
  width: 56px;
}

.product-tab:hover { background: var(--bg-muted); }

.product-tab.active {
  background: var(--accent-light);
}

.product-tab.active .tab-icon {
  box-shadow: 0 0 0 3px var(--accent);
}

.tab-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s;
}

.tab-icon svg { width: 22px; height: 22px; }

.tab-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.product-tab.active .tab-label { color: var(--accent); }

/* Mobile product tabs */
.product-tabs-mobile {
  display: none;
  justify-content: center;
  gap: 8px;
  padding: 0 16px 24px;
  flex-wrap: wrap;
}

.product-tab-mobile {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.product-tab-mobile.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Culture (ByteDance-style) */
.culture {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding: 100px 0 120px;
}

.culture-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.culture-pills {
  grid-column: 1 / -1;
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.culture-intro {
  display: block;
}

.culture-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

.culture-desc {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.9;
  max-width: 300px;
}

.culture-slider {
  min-width: 0;
}

.culture-slider-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.culture-slider-visual {
  height: 340px;
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
}

.culture-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease, transform 0.4s ease;
}

.culture-slider-visual.is-changing .culture-slider-img {
  opacity: 0.55;
  transform: scale(1.02);
}

.culture-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.culture-pill.active,
.culture-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.culture-slider-content {
  padding: 32px 40px 40px;
  background: var(--bg);
}

.culture-slider-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.culture-slider-title-row h3 {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.culture-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, opacity 0.2s;
}

.culture-arrow svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.culture-arrow:hover {
  color: var(--accent);
  opacity: 0.8;
}

.culture-slider-content ul {
  list-style: none;
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
}

.culture-slider-content li {
  padding: 2px 0 2px 14px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.8;
}

.culture-slider-content li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 700;
}

/* Legacy culture carousel */
.culture-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 max(4vw, calc((100vw - var(--max-w)) / 2 + 4vw));
}

.culture-track-wrap {
  flex: 1;
  overflow: hidden;
}

.culture-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.culture-card {
  flex: 0 0 min(420px, 80vw);
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.culture-visual {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.culture-body {
  padding: 28px;
}

.culture-body h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.culture-body ul {
  list-style: none;
}

.culture-body li {
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.culture-body li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Milestones (ByteDance-style) */
.milestones {
  position: relative;
  padding: 88px 0 100px;
  background: var(--bg);
  overflow: hidden;
}

.milestones-layout {
  position: relative;
  z-index: 1;
}

.milestones-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

.milestone-card {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 56px;
  min-height: 220px;
  max-width: 880px;
  transition: opacity 0.3s ease;
}

.milestone-card.is-changing {
  opacity: 0.6;
}

.milestone-card-brand {
  background: #0d1526;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 28px;
  color: #fff;
  border: 1px solid var(--border);
  border-right: none;
}

.milestone-logo-mark {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.milestone-logo-text {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.milestone-card-info {
  background: #fff;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border);
}

.milestone-date {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.milestone-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

.milestone-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 28px);
  padding: 16px 0;
  max-width: 880px;
}

.milestone-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 0;
}

.milestone-dot {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, width 0.3s, height 0.3s, background 0.3s;
}

.milestone-dot:hover {
  border-color: var(--accent);
}

.milestone-dot.active {
  width: 52px;
  height: 52px;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(51, 112, 255, 0.3);
}

.milestone-dot .dot-icon {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.milestone-dot.active .dot-icon {
  color: #fff;
}

.milestone-dot.active .dot-icon.brand-dot {
  font-size: 0.95rem;
}

/* Legacy timeline */
.timeline-wrap {
  overflow-x: auto;
  padding: 20px 0 40px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.timeline-wrap::-webkit-scrollbar { height: 4px; }
.timeline-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.timeline {
  display: flex;
  gap: 0;
  min-width: max-content;
  padding: 0 max(4vw, calc((100vw - var(--max-w)) / 2));
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 52px;
  left: max(4vw, calc((100vw - var(--max-w)) / 2));
  right: max(4vw, calc((100vw - var(--max-w)) / 2));
  height: 2px;
  background: var(--border);
}

.timeline-item {
  flex: 0 0 220px;
  padding: 0 20px;
  text-align: center;
  position: relative;
}

.timeline-year {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.timeline-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.carousel-btn svg { width: 20px; height: 20px; }

.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* Download */
.download { background: var(--bg-subtle); }

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.download-grid--single {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.download-platform-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 28px;
  max-width: 720px;
}

.download-platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.download-platform-tab:hover {
  border-color: rgba(0, 184, 219, 0.45);
  color: var(--accent);
}

.download-platform-tab.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-hover);
  box-shadow: var(--shadow-sm);
}

.download-platform-tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.download-platform-tab-icon.windows {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300b8db'%3E%3Cpath d='M3 5.5L10.5 4.5V11.5H3V5.5M10.5 12.5V19.5L3 18.5V12.5H10.5M11.5 4.5L21 3V11.5H11.5V4.5M21 12.5V21L11.5 19.5V12.5H21Z'/%3E%3C/svg%3E");
}

.download-platform-tab-icon.macos {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23374151'%3E%3Cpath d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E");
}

.download-platform-tab-icon.cloud {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300b8db'%3E%3Cpath d='M19.35 10.04A7.49 7.49 0 0012 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 000 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z'/%3E%3C/svg%3E");
}

.download-platform-tab-icon.android {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a9f5c'%3E%3Cpath d='M17.6 9.48l1.84-3.18c.16-.31.04-.69-.26-.85a.637.637 0 00-.87.22l-1.88 3.24a11.43 11.43 0 00-8.46 0L6.05 5.67a.643.643 0 00-.87-.22.637.637 0 00-.22.87L6.8 9.48C3.94 11.04 2 14.16 2 17.64h20c0-3.48-1.94-6.6-4.4-8.16zM7.5 15.75c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25zm9 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25z'/%3E%3C/svg%3E");
}

.download-platform-tab-icon.harmony {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e63946'%3E%3Cpath d='M12 2c2.2 0 4 1.8 4 4s-1.8 4-4 4-4-1.8-4-4 1.8-4 4-4zm0 10c3.9 0 7 3.1 7 7v3H5v-3c0-3.9 3.1-7 7-7z'/%3E%3C/svg%3E");
}

.download-platform-tab-icon.ios {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23374151'%3E%3Cpath d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E");
}

.download-coming-soon {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.download-card.featured {
  border-color: var(--accent);
}

.download-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.download-icon svg { width: 28px; height: 28px; }

.download-icon.android {
  background: rgba(61, 220, 132, 0.12);
  color: #1a9f5c;
}

.download-icon.windows,
.download-icon.cloud {
  background: rgba(51, 112, 255, 0.1);
  color: var(--accent);
}

.download-icon.macos,
.download-icon.ios {
  background: rgba(55, 65, 81, 0.1);
  color: #374151;
}

.download-icon.harmony {
  background: rgba(230, 57, 70, 0.1);
  color: #e63946;
}

.download-info h3 { font-size: 1.25rem; }

.download-platform {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 4px 0 12px;
}

.download-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.download-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.version-tag, .size-tag {
  padding: 4px 12px;
  background: var(--bg-muted);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.btn-download { align-self: flex-start; margin-top: auto; }

.download-package-hints {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.download-package-hints strong {
  color: var(--text);
  font-weight: 600;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  align-self: stretch;
}

.download-actions .btn-download {
  margin-top: 0;
  align-self: auto;
}

.download-actions .btn[hidden] {
  display: none !important;
}

.download-actions--primary {
  margin-top: 16px;
}

.download-install-steps {
  margin: 16px 0 0;
  padding: 16px 16px 16px 32px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.download-install-steps li + li {
  margin-top: 8px;
}

.download-advanced {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.download-advanced[hidden] {
  display: none !important;
}

.download-advanced summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  user-select: none;
  list-style: none;
}

.download-advanced summary::-webkit-details-marker {
  display: none;
}

.download-advanced summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.2s;
}

.download-advanced[open] summary::before {
  transform: rotate(90deg);
}

.download-advanced-inner {
  padding-top: 12px;
}

.download-advanced-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.download-actions--advanced {
  margin-top: 0;
}

.update-api-info {
  padding: 28px 32px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.update-api-info h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.update-api-info > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.api-endpoints {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.api-endpoints code {
  display: block;
  padding: 12px 16px;
  background: var(--bg-muted);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--accent);
  word-break: break-all;
}

/* Products preview (about page) */
.products-preview { background: var(--bg); }

.products-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.products-preview-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
}

.products-preview-note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

.infra-note {
  background: var(--bg-subtle);
  padding-top: 0;
}

.infra-card {
  padding: 36px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.infra-list {
  margin-top: 16px;
  padding-left: 1.2em;
  color: var(--text-secondary);
  line-height: 1.85;
}

.infra-list li {
  margin-bottom: 8px;
}

/* Product detail page (e.g. /products/editor/) */
.product-page-hero {
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 48px;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.product-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.product-breadcrumb a:hover {
  color: var(--accent);
}

.product-page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.product-page-icon {
  margin-bottom: 16px;
}

.product-page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.28;
  margin-bottom: 16px;
}

.product-page-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 520px;
}

.product-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.product-page-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-page-tags li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 6px 12px;
  background: var(--bg-muted);
  border-radius: 999px;
}

.product-page-hero-visual .product-screenshot {
  max-width: 100%;
}

.product-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-capability-card {
  padding: 28px 28px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.product-capability-card:hover {
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.1), var(--shadow-md);
}

.product-capability-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent-hover);
  font-size: 0.82rem;
  font-weight: 700;
}

.product-capability-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.product-capability-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.product-cloud-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.product-cloud-card {
  padding: 20px 18px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.product-cloud-group {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-hover);
  font-weight: 600;
}

.product-cloud-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.product-cloud-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.product-legal-note {
  margin: 28px 0 0;
  padding: 16px 20px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: var(--radius-lg);
  color: #9a3412;
  font-size: 0.86rem;
  line-height: 1.75;
}

.product-legal-note a {
  color: #c2410c;
}

.product-cloud-cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.product-workflow {
  background: var(--bg-subtle);
}

.product-workflow-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-workflow-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.product-workflow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.product-workflow-step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.product-workflow-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.product-specs-card {
  padding: 36px 40px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.product-specs-card .section-title {
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.product-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-specs-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}

.product-specs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.product-specs-list strong {
  color: var(--text);
  font-weight: 600;
}

.product-page-hero--app {
  background: linear-gradient(180deg, rgba(26, 159, 92, 0.06) 0%, var(--bg) 100%);
}

.product-page-phone {
  margin: 0 auto;
  max-width: 280px;
}

.product-painpoints {
  background: var(--bg-subtle);
}

.product-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-pain-card {
  padding: 28px 24px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--accent);
}

.product-pain-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  line-height: 1.45;
}

.product-pain-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.product-outcomes {
  background: var(--bg-subtle);
}

.product-outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-outcome-item {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.product-outcome-value {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.product-outcome-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.product-screenshot-photo {
  padding: 0;
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}

.product-screenshot-photo .product-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-hero-carousel {
  width: 100%;
}

.product-hero-carousel .product-screenshot-frame {
  position: relative;
}

.product-screenshot-frame--app {
  background: #12161c;
}

.product-screenshot-frame--app .product-screenshot-img {
  object-fit: contain;
  background: #12161c;
}

.product-hero-slides {
  position: relative;
  aspect-ratio: 1440 / 680;
  min-height: 220px;
  background: #12161c;
  overflow: hidden;
}

.product-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.product-hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.product-hero-slide .product-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #12161c;
}

.product-hero-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 40px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.5;
  backdrop-filter: blur(8px);
}

.product-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.product-hero-nav svg {
  width: 18px;
  height: 18px;
}

.product-hero-nav:hover {
  background: rgba(15, 23, 42, 0.78);
}

.product-hero-nav.prev { left: 12px; }
.product-hero-nav.next { right: 12px; }

.product-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.product-hero-dots .dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.product-hero-dots .dot.active {
  background: #fff;
  width: 22px;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .product-hero-slide {
    transition: none;
  }
}

.preview-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.preview-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-icon svg { width: 26px; height: 26px; }

.preview-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.preview-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex: 1;
}

.preview-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Contact */
.contact {
  background: var(--bg-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.contact .section-title {
  margin-bottom: 40px;
}

.contact-item {
  padding: 28px 28px 32px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-item h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  color: var(--accent);
}

.contact-item p {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.8;
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.contact-item a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-phone {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
  background: #0d1526;
  color: rgba(245, 248, 252, 0.68);
}

.footer .logo {
  color: #f5f8fc;
}

.footer .logo-mark {
  background: rgba(43, 92, 255, 0.16);
  border-color: rgba(43, 92, 255, 0.4);
  color: #c7d4ff;
}

.footer .logo-text {
  color: #f5f8fc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 14px;
  color: rgba(245, 248, 252, 0.52);
  font-size: 0.88rem;
  line-height: 1.75;
}

.footer-meta {
  max-width: 280px;
}

.footer-meta a {
  color: #9db4ff;
  text-decoration: none;
}

.footer-meta a:hover {
  color: #99f6e4;
}

.footer-links h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  color: #f5f8fc;
}

.footer-links ul { list-style: none; }

.footer-links a {
  color: rgba(245, 248, 252, 0.52);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 2.2;
}

.footer-links a:hover { color: #9db4ff; }

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(245, 248, 252, 0.08);
  text-align: center;
}

.footer-bottom p {
  color: rgba(245, 248, 252, 0.38);
  font-size: 0.82rem;
}

/* Legal pages (privacy / agreement) */
.legal-section {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
  background: var(--bg);
}

.legal-wrap {
  max-width: 800px;
}

.legal-eyebrow {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body a {
  color: var(--accent);
  text-decoration: none;
}

.legal-body a:hover {
  text-decoration: underline;
}

.legal-body p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 12px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px 1.2em;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.9;
}

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

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 36px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.legal-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-related {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.legal-related a {
  color: var(--accent);
  text-decoration: none;
}

.legal-related a:hover {
  text-decoration: underline;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-blob,
  .culture-blob,
  .milestones-blob {
    animation: none;
  }

  .hero-bg-blobs {
    transition: none;
  }
}

@media (max-width: 992px) {
  body[data-page="products"] {
    overflow: auto;
    height: auto;
  }

  body[data-page="products"] main {
    height: auto;
    overflow: visible;
  }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-cloud-grid { grid-template-columns: repeat(2, 1fr); }
  .milestone-card,
  .milestone-nav { max-width: none; }
  .products-scroll-section {
    height: auto;
  }
  .products-scroll-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
  }
  .products-scroll-hint {
    display: none;
  }
  .products-showcase-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
    padding-top: 20px;
  }
  .product-sidebar { display: none; }
  .product-tabs-mobile { display: flex; }
  .product-detail { min-height: 280px; }
  .product-visual { min-height: 340px; }
  .product-page-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-hero-slides {
    min-height: 220px;
  }

  .product-hero-nav {
    width: 32px;
    height: 32px;
  }

  .product-hero-caption {
    font-size: 0.78rem;
    left: 12px;
    right: 12px;
    bottom: 36px;
  }
  .product-capability-grid,
  .product-pain-grid,
  .product-cloud-grid {
    grid-template-columns: 1fr;
  }
  .product-outcome-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .products-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .products-preview-grid--two { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .carousel-btn { display: none; }
  .milestone-card { grid-template-columns: 1fr; }
  .milestone-card-brand { padding: 32px 24px; }
  .milestone-card-info { padding: 32px 24px; }
  .hero-inner {
    min-height: 460px;
  }

  .hero-mission-card {
    max-width: min(420px, 88%);
  }

  .hero-mission-overlay {
    padding: 40px var(--content-inset);
  }
}

@media (max-width: 860px) {
  .culture-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    width: min(var(--max-w), 92vw);
  }

  .culture-heading {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .culture-desc {
    max-width: none;
  }

  .culture-slider-visual {
    height: 260px;
  }

  .culture-slider-content {
    padding: 24px 24px 32px;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 1001;
    flex-direction: column;
    background: rgba(245, 248, 252, 0.98);
    backdrop-filter: blur(12px);
    padding: 16px 24px 24px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  /* Hero: mobile stacked layout */
  .products-scroll-section {
    height: auto;
  }

  .products-scroll-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
  }

  .products-showcase-header {
    padding-top: calc(var(--header-h) + 20px);
  }

  .products-showcase-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
    padding-top: 20px;
  }
  .product-sidebar { display: none; }
  .product-tabs-mobile { display: flex; }
  .product-detail { min-height: 200px; }
  .product-detail-desc { max-width: none; }
  .product-visual { min-height: 340px; }
  .products-scroll-hint { display: none; }

  .hero-inner {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .hero-stage {
    display: contents;
  }

  .hero-mission-overlay {
    position: relative;
    inset: auto;
    order: -1;
    display: block;
    padding: 28px 24px 32px;
    background: var(--bg);
    pointer-events: auto;
  }

  .hero-mission-overlay::before {
    display: none;
  }

  .hero-mission-card {
    max-width: none;
  }

  .hero-mission-label {
    background: var(--accent-light);
    border-color: rgba(143, 107, 56, 0.2);
    color: var(--accent-hover);
  }

  .hero-mission-title {
    color: var(--text);
    text-shadow: none;
  }

  .hero-mission-desc {
    color: var(--text-secondary);
    max-width: none;
  }

  .hero-mission-actions .btn-outline-light {
    color: var(--text);
    border-color: var(--border);
    background: transparent;
    backdrop-filter: none;
  }

  .hero-mission-actions .btn-outline-light:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
  }

  .hero-mission-actions {
    flex-direction: column;
  }

  .hero-mission-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .hero-slides {
    position: relative;
    height: min(50vh, 360px);
    min-height: 260px;
    order: 0;
  }

  .hero-banner .hero-dots {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    justify-content: center;
    order: 1;
    padding: 12px 0 20px;
    background: var(--bg-subtle);
  }

  .hero-banner .hero-dots .dot {
    width: 12px;
    height: 12px;
  }

  .values-strip-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .value-pill {
    padding: 18px 20px;
  }

  .culture-pills {
    display: flex;
  }

  .culture-slider-title-row h3 {
    font-size: 1.15rem;
  }

  .culture-arrow {
    width: 44px;
    height: 44px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-mission { padding: 60px 20px 32px; }
  .culture-card { flex: 0 0 min(320px, 85vw); }
  .milestone-nav { gap: 12px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .milestone-dot { width: 40px; height: 40px; flex-shrink: 0; }
  .milestone-dot.active { width: 48px; height: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .products-preview-grid,
  .products-preview-grid--two { grid-template-columns: 1fr; }

  .preview-card {
    padding: 24px 20px;
  }

  .download-platform-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .download-platform-tab {
    flex-shrink: 0;
  }

  .download-actions {
    flex-direction: column;
  }

  .download-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .product-workflow-steps {
    grid-template-columns: 1fr;
  }

  .product-page-actions {
    flex-direction: column;
  }

  .product-page-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .product-specs-card {
    padding: 28px 24px;
  }

  body[data-page="about"] .nav-links {
    background: transparent;
  }

  body[data-page="about"] .header-over-hero:not(.scrolled) .nav-links.open {
    background: #0d1526;
  }

  body[data-page="about"] .header-over-hero:not(.scrolled) .nav-links.open a {
    color: #f5f8fc;
  }
}

@media (max-width: 480px) {
  .hero-mission-title {
    font-size: 1.65rem;
  }

  .product-outcome-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .culture-heading {
    font-size: 1.75rem;
  }

  .culture-slider-visual {
    height: 200px;
  }

  .milestone-card-info {
    padding: 24px 20px;
  }

  .contact-grid {
    gap: 24px;
  }
}

@media (min-width: 993px) {
  .hero-inner {
    height: 100vh;
    max-height: 920px;
  }

  .hero-mission-overlay {
    padding: 56px var(--content-inset);
  }

  .hero-mission-card {
    max-width: 500px;
  }

  .values-strip-inner {
    gap: 28px;
  }

  .products-preview-grid {
    gap: 28px;
  }

  .preview-card {
    padding: 36px 32px;
  }
}

/* Single product landing */
.products-solo {
  padding: calc(var(--header-h) + 72px) 0 96px;
  min-height: calc(100vh - 220px);
}

.products-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 16px;
}

.products-solo-lead {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 16px 0 48px;
}

.products-solo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.products-solo-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 0 36px;
}

.products-solo-points li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.products-solo-points li p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.products-solo-visual {
  position: relative;
}

.products-solo-visual::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 16px;
  pointer-events: none;
  background: radial-gradient(circle at 70% 30%, rgba(43, 92, 255, 0.1), transparent 55%);
  z-index: 0;
}

.products-solo-visual .product-screenshot {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 1px rgba(43, 92, 255, 0.12), var(--shadow-lg);
}

.products-solo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 992px) {
  .products-solo {
    padding-top: calc(var(--header-h) + 40px);
  }

  .products-solo-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Floating tech spheres */
.tech-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.tech-orb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0);
  will-change: transform;
}

.tech-orb-spin {
  width: 100%;
  height: 100%;
  animation: tech-orb-idle 18s ease-in-out infinite;
}

.tech-orb.is-near .tech-orb-spin {
  animation-duration: 6s;
}

.tech-orb-core {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #fff 0%, rgba(255, 255, 255, 0.2) 22%, transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(43, 92, 255, 0.85), rgba(109, 74, 255, 0.35) 46%, transparent 72%);
  box-shadow: 0 0 36px rgba(43, 92, 255, 0.28);
  opacity: 0.9;
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.tech-orb--violet .tech-orb-core {
  background:
    radial-gradient(circle at 30% 28%, #fff 0%, rgba(255, 255, 255, 0.2) 22%, transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(109, 74, 255, 0.85), rgba(43, 92, 255, 0.28) 46%, transparent 72%);
}

.tech-orb.is-near .tech-orb-core {
  transform: scale(1.08);
  box-shadow: 0 0 48px rgba(43, 92, 255, 0.45);
}

.tech-orb.is-pulse .tech-orb-core {
  transform: scale(1.18);
}

.tech-orb-label {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0.85;
}

.tech-orb-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1.5px solid rgba(43, 92, 255, 0.35);
  transform: rotateX(66deg) rotateZ(18deg);
  animation: tech-orb-orbit 14s linear infinite;
}

.tech-orb-ring.ring-2 {
  inset: 0;
  border-color: rgba(109, 74, 255, 0.28);
  transform: rotateX(66deg) rotateZ(-24deg);
  animation-duration: 20s;
  animation-direction: reverse;
}

.tech-orb.is-near .tech-orb-ring {
  border-color: rgba(43, 92, 255, 0.7);
  animation-duration: 5s;
}

.tech-ripple {
  position: fixed;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 1px solid rgba(43, 92, 255, 0.5);
  box-shadow: 0 0 0 6px rgba(43, 92, 255, 0.08);
  pointer-events: none;
  z-index: 4;
  animation: tech-ripple 0.85s ease-out forwards;
}

.hero-hud {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
  margin: -8px 0 16px;
}

.hud-card {
  position: relative;
}

.hud-card::before,
.hud-card::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--accent);
  pointer-events: none;
}

.hud-card::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.hud-card::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

@keyframes tech-orb-idle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(10px, -14px) scale(1.03); }
  70% { transform: translate(-8px, 8px) scale(0.98); }
}

@keyframes tech-orb-orbit {
  to { transform: rotateX(66deg) rotateZ(378deg); }
}

@keyframes tech-ripple {
  to {
    transform: scale(18);
    opacity: 0;
  }
}

/* NLE / intelligent-edit motifs */
.hero-edit-hud {
  position: absolute;
  top: calc(var(--header-h) + 18px);
  right: var(--content-inset);
  z-index: 8;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.hero-edit-hud span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.78);
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 12, 22, 0.28);
  backdrop-filter: blur(8px);
}

.hero-edit-hud .is-live {
  color: #fff;
  border-color: rgba(43, 92, 255, 0.55);
  background: rgba(43, 92, 255, 0.28);
}

.edit-rail {
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.edit-rail--hero {
  position: absolute;
  left: var(--content-inset);
  right: var(--content-inset);
  bottom: 22px;
  z-index: 8;
}

.edit-rail--light {
  margin-top: 10px;
  padding: 8px 10px 10px;
  background: #fff;
  border: 1px solid var(--border);
}

.edit-tc {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  min-width: 7.4em;
}

.edit-rail--hero .edit-tc {
  color: rgba(255, 255, 255, 0.82);
}

.edit-rail--light .edit-tc {
  color: var(--accent);
}

.edit-track {
  position: relative;
  flex: 1;
  height: 46px;
  overflow: hidden;
}

.edit-rail--hero .edit-track {
  background: rgba(8, 12, 22, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.edit-rail--light .edit-track {
  background: #f6f8fc;
  border: 1px solid var(--border);
}

.edit-wave {
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 18px;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  padding: 0 8px;
  opacity: 0.7;
}

.edit-wave i {
  flex: 1;
  height: var(--h, 40%);
  background: var(--accent);
  opacity: 0.55;
  transform-origin: bottom;
  animation: edit-wave 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 40ms);
}

.edit-clips {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 14px;
  display: flex;
  gap: 4px;
}

.edit-clips i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(43, 92, 255, 0.55), rgba(109, 74, 255, 0.35));
}

.edit-rail--hero .edit-clips i {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.38), rgba(43, 92, 255, 0.55));
}

.edit-in,
.edit-out {
  position: absolute;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}

.edit-in { left: 10px; }
.edit-out { right: 10px; }

.edit-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12%;
  width: 1px;
  background: #ff4d6d;
  box-shadow: 0 0 0 1px rgba(255, 77, 109, 0.15);
  animation: edit-play 11s linear infinite;
}

.edit-playhead::before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #ff4d6d;
}

.edit-spline {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: min(420px, 46vw);
  height: auto;
  opacity: 0.38;
  pointer-events: none;
}

.edit-spline path {
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-dasharray: 6 8;
  animation: edit-dash 12s linear infinite;
}

.edit-spline circle {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 1.6;
}

.edit-stage {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.edit-stage .product-screenshot {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.ai-focus {
  position: absolute;
  top: 18%;
  left: 14%;
  width: 30%;
  height: 24%;
  z-index: 2;
  border: 1px dashed rgba(43, 92, 255, 0.7);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  padding: 6px 8px;
  pointer-events: none;
  background: rgba(43, 92, 255, 0.08);
  animation: ai-focus 16s ease-in-out infinite;
}

.ai-focus i,
.ai-focus::before,
.ai-focus::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--accent);
}

.ai-focus::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.ai-focus::after {
  top: -1px;
  right: -1px;
  border-left: 0;
  border-bottom: 0;
}

.ai-focus i {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.culture-slider-visual .ai-focus {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

@keyframes edit-play {
  from { left: 8%; }
  to { left: 90%; }
}

@keyframes edit-wave {
  0%, 100% { transform: scaleY(0.72); }
  50% { transform: scaleY(1); }
}

@keyframes edit-dash {
  to { stroke-dashoffset: -140; }
}

@keyframes ai-focus {
  0%, 100% { top: 16%; left: 12%; width: 28%; height: 22%; }
  35% { top: 38%; left: 46%; width: 24%; height: 28%; }
  65% { top: 22%; left: 58%; width: 32%; height: 20%; }
}

@media (max-width: 768px) {
  .hero-edit-hud,
  .edit-in,
  .edit-out,
  .edit-spline {
    display: none;
  }

  .hero-banner .hero-dots {
    bottom: 86px;
  }

  .edit-rail--hero {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .edit-track {
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-orb-spin,
  .tech-orb-ring,
  .tech-ripple,
  .edit-playhead,
  .edit-wave i,
  .edit-spline path,
  .ai-focus {
    animation: none;
  }
}

@media (max-width: 768px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
