/* ============ CASEVORA — Phone Case Store ============ */
:root {
  --ink: #0f1222;
  --ink-soft: #4b5165;
  --ink-faint: #8a90a5;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-tint: #eef0fa;
  --accent: #5b4df5;
  --accent-dark: #4638d6;
  --accent-soft: #ece9ff;
  --gold: #f5a623;
  --border: #e5e7f0;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(15, 18, 34, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 18, 34, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 18, 34, 0.14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-zh: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
html:lang(zh-CN) body { font-family: var(--font-zh); }
html:lang(zh-CN) .hero h1 { line-height: 1.22; letter-spacing: 0; }
html:lang(zh-CN) .section-head h2, html:lang(zh-CN) .cta-box h2 { letter-spacing: 0; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1160px, 92%); margin: 0 auto; }
.section { padding: 88px 0; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--border); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.logo-mark { font-size: 22px; font-weight: 800; letter-spacing: 0.04em; }
.logo-mark span { color: var(--accent); }
.logo-mark.light { color: #fff; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 500; font-size: 15px; color: var(--ink-soft); transition: color 0.2s; }
.main-nav a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px; font: 600 13px var(--font);
  color: var(--ink); cursor: pointer; transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-caret { font-size: 10px; color: var(--ink-faint); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-md); list-style: none; min-width: 160px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.2s ease; overflow: hidden; padding: 6px; z-index: 120;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; color: var(--ink-soft);
}
.lang-menu li:hover { background: var(--bg-soft); color: var(--ink); }
.lang-menu li.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: 48px; padding: 72px 0 88px;
}
.hero-badge {
  display: inline-block; background: #fff; border: 1px solid var(--border);
  color: var(--ink-soft); font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-copy > p { margin: 20px 0 30px; font-size: 18px; color: var(--ink-soft); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-usps { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.usp { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }

.hero-visual { position: relative; }
.hero-img-wrap { position: relative; border-radius: 24px; }
.hero-img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; }
.hero-float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-md); animation: float 5s ease-in-out infinite;
}
.hero-float strong { display: block; font-size: 14px; line-height: 1.2; }
.hero-float small { color: var(--ink-faint); font-size: 12px; }
.chip-chip { top: 16%; left: -24px; }
.chip-drop { bottom: 14%; right: -20px; animation-delay: 1.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============ Trust Bar ============ */
.trustbar { background: var(--ink); color: #fff; }
.trustbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; text-align: center; }
.trust-item strong { display: block; font-size: 28px; font-weight: 800; color: #fff; }
.trust-item .star { color: var(--gold); }
.trust-item span { font-size: 13px; color: rgba(255, 255, 255, 0.65); }

/* ============ Section heads ============ */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-tag {
  display: inline-block; color: var(--accent); background: var(--accent-soft);
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.01em; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 17px; }

/* ============ Products ============ */
.products { background: var(--bg-soft); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.25s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-img { position: relative; background: var(--bg-tint); aspect-ratio: 1; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.product-info { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-size: 18px; font-weight: 700; }
.product-info p { color: var(--ink-soft); font-size: 14px; margin: 8px 0 16px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 20px; font-weight: 800; color: var(--accent-dark); }

/* ============ Features ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: all 0.25s ease;
}
.feature-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-soft); }

/* ============ Reviews ============ */
.reviews { background: var(--bg-soft); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
}
.stars { color: var(--gold); font-size: 17px; letter-spacing: 2px; }
.review-card blockquote { font-size: 15px; color: var(--ink-soft); flex: 1; }
.review-card figcaption strong { display: block; font-size: 15px; }
.review-card figcaption span { font-size: 13px; color: var(--ink-faint); }

/* ============ CTA ============ */
.cta-box {
  background: linear-gradient(135deg, var(--accent) 0%, #7a5cff 55%, #9a6bff 100%);
  border-radius: 24px; text-align: center; padding: 64px 32px; color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.cta-box > p { margin: 12px auto 30px; max-width: 480px; color: rgba(255, 255, 255, 0.85); }
.cta-form { display: flex; gap: 12px; justify-content: center; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.cta-form input {
  flex: 1; min-width: 220px; padding: 15px 22px; border-radius: 999px;
  border: none; font: 500 15px var(--font); outline: none;
}
.cta-form input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }
.cta-note { margin-top: 18px; font-size: 12.5px; color: rgba(255, 255, 255, 0.65); }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: #fff; padding-top: 64px; margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 14px; margin: 14px 0 20px; max-width: 300px; }
.socials { display: flex; gap: 14px; }
.socials a {
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25); padding: 7px 14px; border-radius: 999px;
  transition: all 0.2s;
}
.socials a:hover { background: #fff; color: var(--ink); }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.9); }
.footer-col a { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.6); margin-bottom: 11px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0 26px;
}
.footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .product-grid, .feature-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); }
  .chip-chip { left: 8px; } .chip-drop { right: 8px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 18px 5%; gap: 16px; box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 64px; }
  .hero-float { display: none; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .product-grid, .feature-grid, .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trustbar-grid { grid-template-columns: 1fr 1fr; }
}

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
