/* ============================================
   Dr.AP® Official Website
   物理抗凝富血小板血浆技术官方展示网站
   ============================================ */

:root {
  /* Color Palette */
  --burgundy-900: #4a151e;
  --burgundy-800: #6b1f2c;
  --burgundy-700: #8c2a3a;
  --burgundy-600: #a63848;
  --burgundy-500: #c04a5a;
  --burgundy-400: #d46b7a;
  --burgundy-300: #e89aa5;
  --burgundy-100: #f5dde1;
  --burgundy-50: #fbf2f4;

  --gold-700: #a67c3d;
  --gold-600: #c9a15a;
  --gold-500: #d8b877;
  --gold-400: #e6cf9a;
  --gold-200: #f2e6c9;
  --gold-100: #f9f2e3;

  --ink-900: #1a1412;
  --ink-800: #2a2320;
  --ink-700: #3d3633;
  --ink-600: #55504d;
  --ink-500: #7a7572;
  --ink-400: #a39f9c;
  --ink-300: #c8c5c3;
  --ink-200: #e4e2e1;
  --ink-100: #f1efee;
  --ink-50: #faf9f8;

  --bg-cream: #faf7f4;
  --bg-warm: #f5f0eb;
  --bg-deep: #1a1412;

  /* Typography */
  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* Spacing */
  --section-py: 120px;
  --section-py-mobile: 72px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(74, 21, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(74, 21, 30, 0.08);
  --shadow-lg: 0 20px 60px rgba(74, 21, 30, 0.12);
  --shadow-glow: 0 0 80px rgba(166, 124, 61, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink-800);
  background-color: var(--bg-cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
  backdrop-filter: blur(0);
}

.nav.scrolled {
  background: rgba(250, 247, 244, 0.92);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo .logo-mark {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--burgundy-800);
  letter-spacing: 0.02em;
  display: inline-block;
}

.nav-logo .logo-mark sup {
  font-size: 0.45em;
  vertical-align: super;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold-600);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--burgundy-700);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  background: var(--burgundy-700);
  color: #fff;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--burgundy-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* --- Language Switcher --- */
.lang-switcher {
  position: relative;
  z-index: 100;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--ink-200);
  border-radius: 100px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  border-color: var(--burgundy-400);
  color: var(--burgundy-700);
}

.nav.scrolled .lang-toggle {
  border-color: var(--ink-200);
}

.lang-flag {
  font-size: 14px;
  line-height: 1;
}

.lang-current {
  min-width: 38px;
  text-align: center;
}

.lang-chevron {
  width: 10px;
  height: 8px;
  transition: transform 0.3s ease;
  color: var(--ink-400);
}

.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-100);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.lang-option:hover {
  background: var(--burgundy-50);
}

.lang-option.active {
  background: var(--burgundy-100);
}

.lang-option.active .option-label {
  color: var(--burgundy-800);
  font-weight: 600;
}

.option-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-800);
}

.option-sub {
  font-size: 11px;
  color: var(--ink-400);
  letter-spacing: 0.05em;
}

/* --- Language-specific font adjustments --- */
body.lang-ja {
  font-family: 'Noto Sans JP', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body.lang-ja .section-title,
body.lang-ja .hero-title,
body.lang-ja h1,
body.lang-ja h2,
body.lang-ja h3,
body.lang-ja h4,
body.lang-ja h5,
body.lang-ja .badge-num,
body.lang-ja .spec-value,
body.lang-ja .info-num,
body.lang-ja .footer-logo,
body.lang-ja .logo-mark {
  font-family: 'Noto Serif JP', 'Noto Serif SC', 'Songti SC', serif;
}

body.lang-en .section-title,
body.lang-en .hero-title,
body.lang-en h1,
body.lang-en h2,
body.lang-en h3,
body.lang-en h4,
body.lang-en h5,
body.lang-en .badge-num,
body.lang-en .spec-value,
body.lang-en .info-num,
body.lang-en .footer-logo,
body.lang-en .logo-mark {
  font-family: 'Noto Serif SC', 'Noto Serif JP', 'Songti SC', serif;
  letter-spacing: -0.01em;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.plasma-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(216, 184, 119, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(192, 74, 90, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 80%, rgba(166, 124, 61, 0.1) 0%, transparent 60%);
}

.centrifuge-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  opacity: 0.4;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--gold-400);
  border-radius: 50%;
  opacity: 0.5;
}

.ring-1 {
  width: 300px;
  height: 300px;
  animation: spin 40s linear infinite;
  border-top-color: var(--burgundy-500);
  border-right-color: var(--burgundy-500);
}

.ring-2 {
  width: 480px;
  height: 480px;
  animation: spin 60s linear infinite reverse;
  border-left-color: var(--gold-500);
  border-bottom-color: var(--gold-500);
}

.ring-3 {
  width: 680px;
  height: 680px;
  animation: spin 90s linear infinite;
  border-top-color: var(--burgundy-300);
  border-left-color: var(--burgundy-300);
}

.ring-4 {
  width: 880px;
  height: 880px;
  animation: spin 120s linear infinite reverse;
  border-right-color: var(--gold-300);
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 48px;
  padding-top: 80px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  color: var(--gold-700);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: none;
}

.eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold-500);
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.35;
  color: var(--ink-900);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.title-line {
  display: block;
}

.title-line.accent {
  color: var(--burgundy-700);
  font-weight: 700;
  background: linear-gradient(135deg, var(--burgundy-800), var(--burgundy-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--ink-600);
  margin-bottom: 56px;
  line-height: 2;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.badge-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--burgundy-700);
  letter-spacing: 0.02em;
}

.badge-label {
  font-size: 13px;
  color: var(--ink-500);
  letter-spacing: 0.1em;
}

.badge-divider {
  width: 1px;
  height: 48px;
  background: var(--ink-200);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--ink-400);
  font-size: 11px;
  letter-spacing: 0.2em;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-500), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ============================================
   Section Base Styles
   ============================================ */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-700);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.section-title.light {
  color: #fff;
}

.section-desc {
  font-size: 17px;
  color: var(--ink-600);
  line-height: 1.9;
  max-width: 680px;
  margin: 0 auto;
}

.section-tag.light {
  color: var(--gold-400);
}

/* ============================================
   Technology Section
   ============================================ */
.technology {
  background: var(--bg-warm);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 96px;
}

.tech-card {
  background: #fff;
  padding: 48px 36px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid var(--ink-100);
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--burgundy-100);
}

.tech-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy-600);
  background: var(--burgundy-50);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.tech-card:hover .tech-icon {
  background: var(--burgundy-700);
  color: #fff;
}

.tech-icon svg {
  width: 36px;
  height: 36px;
}

.tech-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 12px;
}

.tech-card p {
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.8;
}

/* Plasma Visual */
.plasma-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  background: linear-gradient(135deg, var(--burgundy-50), var(--gold-100));
  padding: 64px;
  border-radius: var(--radius-xl);
}

.plasma-tube {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tube-glass {
  width: 80px;
  height: 320px;
  border: 2px solid rgba(166, 124, 61, 0.3);
  border-top: none;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  box-shadow: inset 0 0 20px rgba(166, 124, 61, 0.1);
}

.tube-glass::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -10px;
  right: -10px;
  height: 16px;
  background: rgba(166, 124, 61, 0.2);
  border-radius: 50%;
  border: 2px solid rgba(166, 124, 61, 0.3);
}

.layer {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.3s ease;
}

.layer-label {
  font-size: 9px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.layer-tag {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.layer-plasma {
  top: 20px;
  height: 100px;
  background: linear-gradient(180deg, #f5e6c9 0%, #e8d9b0 100%);
}

.layer-plasma .layer-label,
.layer-plasma .layer-tag {
  color: var(--gold-700);
}

.layer-buffy {
  top: 120px;
  height: 36px;
  background: linear-gradient(180deg, #e89aa5 0%, #d46b7a 100%);
  box-shadow: 0 0 12px rgba(192, 74, 90, 0.4);
}

.layer-rbc {
  top: 156px;
  bottom: 0;
  background: linear-gradient(180deg, #8c2a3a 0%, #4a151e 100%);
  border-radius: 0 0 38px 38px;
}

.tube-base {
  width: 100px;
  height: 12px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  border-radius: 6px;
  margin-top: 8px;
}

.plasma-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 24px;
}

.info-num {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--burgundy-700);
  line-height: 1;
  min-width: 100px;
}

.info-text {
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.7;
}

/* ============================================
   Founder Section
   ============================================ */
.founder {
  background: var(--bg-cream);
  overflow: hidden;
}

.founder-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.founder-image {
  position: relative;
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(166, 124, 61, 0.3);
  border-radius: var(--radius-xl);
  pointer-events: none;
}

.portrait-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 180px;
  height: 180px;
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.founder-content .section-tag,
.founder-content .section-title {
  text-align: left;
  display: block;
}

.founder-content .section-title {
  margin-bottom: 16px;
}

.founder-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 15px;
  color: var(--burgundy-700);
  font-weight: 500;
  flex-wrap: wrap;
}

.title-accent {
  width: 32px;
  height: 1px;
  background: var(--gold-500);
}

.founder-bio {
  color: var(--ink-600);
  font-size: 16px;
  line-height: 2;
  margin-bottom: 32px;
}

.founder-bio p + p {
  margin-top: 16px;
}

.founder-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-100);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-700);
}

.highlight-icon {
  color: var(--gold-600);
  font-size: 8px;
}

/* ============================================
   Device Section
   ============================================ */
.device {
  background: linear-gradient(180deg, var(--bg-warm), var(--bg-cream));
}

.device-showcase {
  margin-bottom: 64px;
}

.device-main {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.device-main img {
  max-height: 420px;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.device-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(166, 124, 61, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.device-thumbs {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumb-item {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: #fff;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.thumb-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.thumb-item.active {
  border-color: var(--burgundy-600);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius-md) - 2px);
}

.device-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: #fff;
  padding: 36px 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ink-100);
}

.spec-item {
  text-align: center;
}

.spec-label {
  display: block;
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.spec-value {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--burgundy-700);
}

/* ============================================
   Applications Section
   ============================================ */
.applications {
  background: var(--bg-cream);
}

.app-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.app-column {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 1px solid var(--ink-100);
}

.app-column-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-100);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.column-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--burgundy-600);
  margin-bottom: 8px;
  box-shadow: 0 0 0 4px var(--burgundy-100);
}

.frontier .column-dot {
  background: var(--gold-600);
  box-shadow: 0 0 0 4px var(--gold-200);
}

.app-column-header h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-900);
}

.column-sub {
  font-size: 12px;
  color: var(--ink-400);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mature .app-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.app-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--ink-50);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.app-item:hover {
  background: var(--burgundy-50);
  transform: translateX(4px);
}

.frontier-item:hover {
  background: var(--gold-100);
}

.app-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy-600);
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.frontier-item .app-icon {
  color: var(--gold-700);
}

.app-icon svg {
  width: 22px;
  height: 22px;
}

.app-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.app-info p {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.6;
}

/* ============================================
   Cases Section
   ============================================ */
.cases {
  background: var(--bg-warm);
}

.case-block {
  margin-bottom: 80px;
}

.case-block:last-child {
  margin-bottom: 0;
}

.case-header {
  text-align: center;
  margin-bottom: 40px;
}

.case-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--burgundy-700);
  background: var(--burgundy-50);
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.case-header h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 12px;
}

.case-header p {
  font-size: 16px;
  color: var(--ink-600);
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 16px;
  background: linear-gradient(to top, rgba(26, 20, 18, 0.7), transparent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.case-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 28px;
  background: #fff;
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.8;
}

.note-icon {
  color: var(--gold-600);
  font-size: 16px;
  flex-shrink: 0;
}

/* Before / After */
.before-after {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.ba-item {
  text-align: center;
  flex: 1;
  max-width: 400px;
}

.ba-label {
  display: inline-block;
  padding: 6px 24px;
  background: var(--burgundy-700);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px 100px 0 0;
  letter-spacing: 0.1em;
}

.ba-label.after {
  background: #2a7d4f;
}

.ba-image {
  background: #fff;
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-desc {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.8;
}

.ba-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold-600);
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}

.ba-arrow svg {
  width: 60px;
  height: 24px;
}

/* ============================================
   Training Section
   ============================================ */
.training {
  background: var(--bg-cream);
}

.training-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
}

.training-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.training-item.wide {
  grid-column: span 2;
}

.training-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* training-6: show full people, not cropped */
.training-item.person-photo img {
  object-fit: contain;
  object-position: center;
  background: var(--ink-100);
}

.training-item:hover img {
  transform: scale(1.05);
}

.training-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 20, 18, 0.85) 0%, rgba(26, 20, 18, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
  transition: opacity 0.3s ease;
}

.training-place {
  font-size: 12px;
  color: var(--gold-400);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.training-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--burgundy-900) 0%, var(--burgundy-700) 50%, var(--burgundy-800) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 80% 50%, rgba(216, 184, 119, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 20% 80%, rgba(192, 74, 90, 0.2) 0%, transparent 60%);
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-content {
  text-align: left;
}

.cta-content .section-tag,
.cta-content .section-title {
  text-align: left;
  display: block;
}

.cta-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 2;
  margin-bottom: 40px;
  max-width: 520px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--gold-500);
  color: var(--ink-900);
}

.btn-primary:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(216, 184, 119, 0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  transform: translateY(-2px);
}

.cta-visual {
  display: flex;
  justify-content: center;
}

.cta-badge {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(216, 184, 119, 0.3);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.badge-ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold-500);
  border-radius: 50%;
  transform: translateX(-50%);
}

.badge-ring::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold-500);
  border-radius: 50%;
  transform: translateX(-50%);
}

.badge-inner {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 184, 119, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.badge-brand {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.badge-slogan {
  font-size: 10px;
  color: var(--gold-400);
  letter-spacing: 0.15em;
  text-align: center;
  line-height: 1.4;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-deep);
  color: var(--ink-300);
  padding: 72px 0 32px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
}

.footer-tagline {
  font-size: 14px;
  color: var(--ink-400);
  line-height: 2;
  font-family: var(--font-serif);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-400);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-400);
  padding: 6px 0;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-500);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-patent {
  color: var(--gold-500);
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .founder-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .founder-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .founder-content .section-tag,
  .founder-content .section-title {
    text-align: center;
  }

  .founder-title {
    justify-content: center;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto 72px;
  }

  .plasma-visual {
    flex-direction: column;
    gap: 48px;
    padding: 48px 32px;
  }

  .plasma-info {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .info-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .device-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-columns {
    grid-template-columns: 1fr;
  }

  .mature .app-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .training-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }

  .training-item.wide {
    grid-column: span 1;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .cta-content .section-tag,
  .cta-content .section-title,
  .cta-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-buttons {
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 24px;
  }

  .nav-cta {
    padding: 8px 18px;
    font-size: 13px;
  }

  .section {
    padding: var(--section-py-mobile) 0;
  }

  .section-inner {
    padding: 0 24px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .hero-badges {
    gap: 24px;
  }

  .badge-divider {
    display: none;
  }

  .badge-num {
    font-size: 28px;
  }

  .device-main {
    padding: 24px;
    min-height: 320px;
  }

  .device-main img {
    max-height: 280px;
  }

  .thumb-item {
    width: 70px;
    height: 70px;
  }

  .device-specs {
    padding: 28px 24px;
    gap: 20px;
  }

  .spec-value {
    font-size: 22px;
  }

  .mature .app-list {
    grid-template-columns: 1fr;
  }

  .app-column {
    padding: 32px 24px;
  }

  .case-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ba-arrow {
    transform: rotate(90deg);
    margin: 8px 0;
  }

  .before-after {
    flex-direction: column;
  }

  .training-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .cta-badge {
    width: 220px;
    height: 220px;
  }

  .badge-inner {
    width: 160px;
    height: 160px;
  }

  .badge-brand {
    font-size: 24px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .centrifuge-rings {
    width: 500px;
    height: 500px;
  }

  .ring-1 { width: 160px; height: 160px; }
  .ring-2 { width: 260px; height: 260px; }
  .ring-3 { width: 360px; height: 360px; }
  .ring-4 { width: 460px; height: 460px; }
}

/* ============================================
   Lightbox (click to enlarge)
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 20, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
  padding: 40px;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .lightbox {
    padding: 16px;
  }
  .lightbox-img {
    max-width: 96vw;
    max-height: 80vh;
  }
}
