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

:root {
  --bg-dark: #06060c;
  --bg-section: #0a0a14;
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.6);
  --text-dim: rgba(240, 240, 245, 0.35);
  --accent: #4a9eff;
  --accent-dim: rgba(74, 158, 255, 0.12);
  --border: rgba(255, 255, 255, 0.08);
}

html {
  overflow: hidden;
  height: 100%;
}

body {
  overflow: hidden;
  height: 100%;
}

.sections-container {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  position: relative;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.sections-container::-webkit-scrollbar {
  display: none;
}

/* ── Language Selector ── */

.lang-selector {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-selector button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1;
}

.lang-selector button.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.lang-selector button:hover:not(.active) {
  color: var(--text-secondary);
}

/* ── Section Nav ── */

.section-nav {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-nav a {
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.section-nav a:hover {
  color: var(--text-secondary);
}

.section-nav a.active {
  color: var(--accent);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  background: var(--bg-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Background Crossfade Layers ── */

.bg-layers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-layer.active {
  opacity: 1;
}

.bg-layer .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 6, 12, 0.5);
}

/* ── Sections ── */

section {
  height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 1.5rem;
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

/* ── Vision ── */

.vision {
  text-align: center;
}

.vision-content {
  max-width: 760px;
}

.company-name {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 3.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 2.5rem;
  opacity: 0.6;
}

.vision-statement {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 2;
  color: var(--text-primary);
  font-weight: 300;
  background: rgba(6, 6, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-hint.down {
  bottom: 2.5rem;
}

.scroll-hint.up {
  top: 2.5rem;
  flex-direction: column-reverse;
}

.scroll-arrow {
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--text-dim);
  border-bottom: 1px solid var(--text-dim);
  animation: bounce-down 2s ease infinite;
}

.scroll-hint.up .scroll-arrow {
  animation-name: bounce-up;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(6px) rotate(45deg); }
}

@keyframes bounce-up {
  0%, 100% { transform: translateY(0) rotate(-135deg); }
  50% { transform: translateY(-6px) rotate(-135deg); }
}

/* ── Product ── */

.product {
}

.product-content {
  max-width: 960px;
  width: 100%;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.product-statement {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.product-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-primary);
  margin-bottom: 3.5rem;
  max-width: 560px;
  line-height: 1.8;
  background: rgba(6, 6, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.product-card {
  background: rgba(6, 6, 12, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.product-card:hover {
  border-color: rgba(74, 158, 255, 0.3);
}

.card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ── Training ── */

.training {
  text-align: center;
}

.training-content {
  max-width: 760px;
}

.training-statement {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.training-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-primary);
  line-height: 1.8;
  background: rgba(6, 6, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Contact ── */

.contact {
  text-align: center;
  min-height: auto;
  padding: 6rem 1.5rem;
}

.contact-content {
  max-width: 480px;
  background: rgba(6, 6, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-item span:first-child {
  font-size: 1.1rem;
}

.footer {
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Responsive ── */

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

  .product-grid {
    gap: 0.5rem;
  }

  .product-card {
    padding: 0.75rem 0.5rem;
  }

  .card-icon {
    font-size: 2.5rem;
  }

  .product-card h3 {
    font-size: 0.85rem;
  }

  section {
    padding: 2rem 1rem;
  }
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  section {
    padding: 6rem 3rem;
  }
}
