/* === Yijiang MedTech / Chunk Box — Modern Tech Website === */

:root {
  --bg: #020617;
  --bg-elevated: #0b1221;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #38bdf8;
  --primary-dark: #0284c7;
  --accent: #a855f7;
  --accent-glow: rgba(168, 85, 247, 0.35);
  --success: #34d399;
  --radius: 1.25rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Animated background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 85% 25%, rgba(168, 85, 247, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 50% 85%, rgba(56, 189, 248, 0.08) 0%, transparent 40%);
  animation: bgPulse 12s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
}

@keyframes bgPulse {
  from { opacity: 0.8; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--text);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 0.6rem;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.lang-switch {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  transition: all 0.2s;
}

.lang-switch:hover {
  color: var(--text);
  border-color: var(--primary);
  background: var(--surface-strong);
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #020617;
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(56, 189, 248, 0.38);
  color: #020617;
}

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

.btn-secondary:hover {
  background: var(--surface-strong);
  color: var(--text);
}

/* Sections */
section {
  padding: 7rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.hero p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.25rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .logo-card {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 2rem;
  background: radial-gradient(circle at 30% 30%, #fff8ed 0%, #ffecd2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 24px 80px rgba(168, 85, 247, 0.25),
    0 0 60px rgba(56, 189, 248, 0.15);
  animation: float 6s ease-in-out infinite;
}

.hero-visual .logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-visual .glow-ring {
  position: absolute;
  inset: -30px;
  border-radius: 2.4rem;
  border: 1px solid rgba(255,255,255,0.08);
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-badges {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Trust strip */
.trust-strip {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.trust-item strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.trust-item span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 30px rgba(56, 189, 248, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(168,85,247,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.feature-cards .card {
  display: flex;
  flex-direction: column;
}

.feature-cards .card p {
  flex-grow: 1;
}

.theory-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.theory-link:hover {
  color: var(--accent);
}

/* Product highlight */
.product-highlight {
  background: var(--bg-elevated);
  border-radius: 2rem;
  border: 1px solid var(--border);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.product-highlight .visual {
  display: flex;
  justify-content: center;
}

.product-highlight .logo-card {
  width: 280px;
  height: 280px;
  border-radius: 1.75rem;
  background: radial-gradient(circle at 30% 30%, #fff8ed 0%, #ffecd2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.product-highlight .logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-highlight h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.product-highlight p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.product-highlight ul {
  color: var(--text-muted);
  margin-left: 1.25rem;
  line-height: 1.9;
}

.product-highlight li {
  margin-bottom: 0.5rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

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

/* Contact */
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}

.contact-card h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.email-link:hover {
  color: var(--text);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer .links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

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

footer .links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .product-highlight,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual .logo-card {
    width: 260px;
    height: 260px;
  }

  nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .product-highlight {
    padding: 2rem;
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pricing */
.pricing {
  padding-top: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 30px rgba(56, 189, 248, 0.08);
}

.pricing-card.popular {
  border-color: rgba(168, 85, 247, 0.45);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08), var(--surface));
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.12);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #020617;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.price {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.price-note {
  font-size: 0.85rem;
  color: var(--success);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex-grow: 1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-guarantee {
  margin-top: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Hero small variant */
.hero-small {
  min-height: auto;
  padding-top: 10rem;
  padding-bottom: 4rem;
  text-align: center;
}

.hero-small .hero-inner {
  display: block;
}

.hero-small p.lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-small .hero-btns {
  justify-content: center;
}

/* CTA section */
.cta-section {
  text-align: center;
}

.cta-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 4rem 2rem;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* Responsive pricing */
@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .cta-content {
    padding: 2.5rem 1.25rem;
  }
}
