:root {
  --bg: #fff9f0;
  --surface: #ffffff;
  --text: #2b2b2b;
  --muted: #6b7280;
  --primary: #ff6b6b;
  --primary-dark: #e85555;
  --accent: #ffb347;
  --accent-light: #ffd966;
  --green: #5b9a68;
  --green-light: #dff3e4;
  --border: rgba(255, 107, 107, 0.12);
  --shadow: 0 18px 50px rgba(255, 107, 107, 0.1);
  --shadow-hover: 0 24px 60px rgba(255, 107, 107, 0.18);
  --radius: 20px;
  --max: 1080px;
  --glass: rgba(255, 255, 255, 0.72);
  --gradient-warm: linear-gradient(135deg, #ff6b6b, #ffb347, #ffd966);
  --gradient-text: linear-gradient(135deg, #ff6b6b 0%, #ffb347 50%, #5b9a68 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a:hover {
  color: var(--primary-dark);
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

/* ── Background orbs ── */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.orb-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.35), transparent 70%);
  animation: floatOrb1 18s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.3), transparent 70%);
  animation: floatOrb2 22s ease-in-out infinite;
}

.orb-3 {
  width: 320px;
  height: 320px;
  top: 45%;
  right: 15%;
  background: radial-gradient(circle, rgba(91, 154, 104, 0.2), transparent 70%);
  animation: floatOrb3 20s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.08); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.05); }
}

@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 25px); }
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--glass);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(255, 107, 107, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark-img {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: rgba(255, 107, 107, 0.08);
  color: var(--primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 107, 107, 0.1), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(255, 217, 102, 0.12), transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  margin: 1.35rem 0 0;
  max-width: 38rem;
  color: #4a3728;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-warm);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(255, 107, 107, 0.45);
  color: #fff;
}

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

.btn-secondary:hover {
  border-color: rgba(255, 107, 107, 0.3);
  color: var(--primary);
}

.hero-card {
  padding: 2px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--gradient-warm);
  animation: cardGlow 4s ease-in-out infinite;
}

@keyframes cardGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(255, 107, 107, 0.15); }
  50% { box-shadow: 0 0 50px rgba(255, 179, 71, 0.25); }
}

.hero-card-inner {
  padding: 1.75rem;
  border-radius: var(--radius);
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-card-label {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-card-title {
  margin: 0.4rem 0 1.1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #4a3728;
}

.hero-card li {
  margin-bottom: 0.35rem;
}

.hero-card li::marker {
  color: var(--accent);
}

/* ── Sections ── */
.section {
  padding: 4rem 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(223, 243, 228, 0.35) 0%, rgba(255, 249, 240, 0.5) 100%);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  position: relative;
  padding-left: 1rem;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 4px;
  background: var(--gradient-warm);
}

.section-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 1rem;
}

.section-desc {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  max-width: 36rem;
}

/* ── Cards ── */
.about-grid,
.cards,
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

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

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-grid article,
.card,
.contact-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-grid article:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 107, 107, 0.25);
}

.card-dashed {
  border-style: dashed;
  border-color: rgba(255, 179, 71, 0.4);
  background: rgba(255, 255, 255, 0.6);
}

.card-dashed:hover {
  border-color: rgba(255, 179, 71, 0.6);
}

.about-grid h3,
.card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-light);
}

.card-icon-product {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(255, 217, 102, 0.15));
}

.card-icon-service {
  background: linear-gradient(135deg, rgba(91, 154, 104, 0.15), rgba(223, 243, 228, 0.5));
}

.card-tag {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--green-light);
  color: var(--green);
}

.card-tag-muted {
  background: rgba(255, 179, 71, 0.15);
  color: #b8860b;
}

/* ── Platform badges ── */
.platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.platform-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  min-width: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: badgeIn 0.6s ease backwards;
  animation-delay: calc(var(--delay, 0) * 0.08s);
}

.platform-badge:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 107, 107, 0.3);
}

.platform-badge svg {
  width: 32px;
  height: 32px;
  fill: var(--text);
}

.platform-badge span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.platform-note {
  text-align: center;
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto;
  font-size: 0.95rem;
}

@keyframes badgeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Contact ── */
.contact-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

dl {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.35rem;
  box-shadow: var(--shadow);
}

dl div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

dl div:last-child {
  border-bottom: 0;
}

dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

dd {
  margin: 0;
}

.contact-note {
  padding: 1.5rem;
}

.contact-logo {
  margin-bottom: 1rem;
  display: block;
}

.contact-note p {
  margin: 0;
  color: #4a3728;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #2b2b2b 0%, #1a1a1a 100%);
  color: #d1d5db;
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.footer-inner p {
  margin: 0.35rem 0;
}

.footer-en {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 85vw);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    background: var(--surface);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
    gap: 0.5rem;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .platform-badge {
    min-width: calc(50% - 0.5rem);
    flex: 1 1 calc(50% - 0.5rem);
  }
}

@media (max-width: 480px) {
  .platform-badge {
    min-width: 100%;
    flex: 1 1 100%;
  }

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

  .btn {
    width: 100%;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orb,
  .hero-card,
  .platform-badge {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .platform-badge:hover,
  .about-grid article:hover {
    transform: none;
  }
}
