/* ============================================================
   语音计算器 · Voice Calculator — showcase site
   ============================================================ */

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

:root {
  --navy-950: #0b1020;
  --navy-900: #0e1630;
  --navy-800: #16204a;
  --ink: #0f172a;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --accent: #6366f1;
  --accent-soft: #818cf8;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --grad-main: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #d946ef 100%);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-soft: 0 4px 16px -6px rgba(15, 23, 42, .12);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ============================ NAV ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 16, 32, .72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  letter-spacing: .2px;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(99, 102, 241, .8);
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14.5px;
}
.nav-links a {
  color: rgba(255, 255, 255, .74);
  transition: color .2s ease;
}
.nav-links a:hover { color: #fff; }
.lang-toggle {
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background .2s ease, border-color .2s ease;
}
.lang-toggle:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  padding: 150px 0 110px;
  background:
    radial-gradient(1000px 600px at 78% 8%, rgba(139, 92, 246, .28), transparent 62%),
    radial-gradient(760px 520px at 12% 92%, rgba(34, 211, 238, .16), transparent 60%),
    linear-gradient(165deg, #0b1020 0%, #101a3d 48%, #0d1530 100%);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow-a {
  width: 460px; height: 460px;
  top: -140px; right: -80px;
  background: rgba(99, 102, 241, .34);
}
.hero-glow-b {
  width: 380px; height: 380px;
  bottom: -160px; left: -60px;
  background: rgba(34, 211, 238, .16);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #c7d2fe;
  background: rgba(99, 102, 241, .16);
  border: 1px solid rgba(129, 140, 248, .38);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .18);
}
.hero-text h1 {
  font-size: clamp(40px, 5.6vw, 62px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #fff;
}
.subtitle {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 10px;
}
.tagline {
  font-size: 21px;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 18px;
}
.hero-desc {
  color: rgba(226, 232, 240, .72);
  font-size: 16px;
  max-width: 480px;
  margin-top: 14px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(139, 92, 246, .85);
}
.btn-primary:hover { box-shadow: 0 16px 34px -12px rgba(139, 92, 246, .95); transform: translateY(-1px); }
.btn-ghost {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .05);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .46); }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 13.5px;
  color: rgba(226, 232, 240, .58);
}
.meta-dot { opacity: .5; }

/* -------- Phone mockup -------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-glow {
  position: absolute;
  width: 340px; height: 340px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 92, 246, .5), transparent 68%);
  filter: blur(60px);
}
.phone {
  position: relative;
  width: 300px;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #1e293b, #0b1020);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, .75),
    inset 0 1px 1px rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .1);
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 104px; height: 24px;
  background: #060a16;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  border-radius: 36px;
  background: linear-gradient(180deg, #0f172a, #131c33);
  padding: 40px 16px 18px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.calc-display {
  text-align: right;
  padding: 26px 8px 20px;
}
.calc-expr {
  font-size: 15px;
  color: rgba(148, 163, 184, .85);
  letter-spacing: .4px;
}
.calc-result {
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
}
.calc-keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: auto;
}
.key {
  border: none;
  border-radius: 16px;
  padding: 15px 0;
  font-size: 18px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, .07);
  transition: background .15s ease;
}
.key:hover { background: rgba(255, 255, 255, .14); }
.key-fn { color: #a5b4fc; font-size: 15px; }
.key-op { color: #c4b5fd; }
.key-zero { grid-column: span 2; }
.key-eq {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(139, 92, 246, .9);
}
.calc-mic {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  background: rgba(99, 102, 241, .14);
  border: 1px solid rgba(129, 140, 248, .3);
  border-radius: 999px;
  padding: 10px 16px;
}
.mic-text { letter-spacing: .3px; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.wave i {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
  animation: wavePulse 1.1s ease-in-out infinite;
}
.wave i:nth-child(2) { animation-delay: .12s; }
.wave i:nth-child(3) { animation-delay: .24s; }
.wave i:nth-child(4) { animation-delay: .36s; }
.wave i:nth-child(5) { animation-delay: .48s; }
.wave i:nth-child(6) { animation-delay: .6s; }
.wave i:nth-child(7) { animation-delay: .72s; }
.wave-lg i { width: 4px; height: 10px; }
@keyframes wavePulse {
  0%, 100% { transform: scaleY(.55); opacity: .55; }
  50% { transform: scaleY(1.9); opacity: 1; }
}

/* ============================ SECTIONS ============================ */
.section { padding: 100px 0; }
.section-tint { background: var(--slate-50); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
}
.section-head p {
  margin-top: 12px;
  color: var(--slate-500);
  font-size: 16px;
}

/* -------- Features -------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: #c7d2fe;
}
.f-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.f-icon-indigo { background: rgba(99, 102, 241, .12); color: #4f46e5; }
.f-icon-violet { background: rgba(139, 92, 246, .13); color: #7c3aed; }
.f-icon-cyan { background: rgba(34, 211, 238, .14); color: #0891b2; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--slate-600); font-size: 14.5px; }

/* -------- Screenshots -------- */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.shot-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
}
.shot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.shot {
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #0f172a, #16204a);
  min-height: 230px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
}
.shot-label {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-600);
  padding: 14px 0 6px;
}
.shot-voice { align-items: center; gap: 20px; }
.shot-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #a5b4fc;
}
.shot-tag {
  font-size: 13px;
  color: #c7d2fe;
  background: rgba(99, 102, 241, .18);
  border: 1px solid rgba(129, 140, 248, .34);
  border-radius: 999px;
  padding: 5px 13px;
}
.shot-caption-en {
  font-size: 13px;
  color: rgba(148, 163, 184, .8);
  letter-spacing: .4px;
}
.shot-result { align-items: flex-end; text-align: right; }
.result-mini { font-size: 15px; color: rgba(148, 163, 184, .85); }
.result-big { font-size: 52px; font-weight: 700; color: #fff; letter-spacing: -1.5px; line-height: 1; }
.shot-history { gap: 9px; }
.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, .06);
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 13.5px;
  color: rgba(203, 213, 225, .9);
}
.history-row b { color: #a5b4fc; font-weight: 700; }

/* -------- Roadmap -------- */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.milestone {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
}
.milestone:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.ms-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  color: #fff;
  background: var(--grad-main);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.ms-badge-next {
  background: rgba(99, 102, 241, .1);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, .3);
}
.milestone h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.milestone p { color: var(--slate-600); font-size: 14.5px; margin-bottom: 16px; }
.ms-status {
  font-size: 13px;
  font-weight: 600;
  color: #047857;
  background: rgba(16, 185, 129, .12);
  padding: 5px 12px;
  border-radius: 999px;
}
.ms-status-next { color: #6d28d9; background: rgba(139, 92, 246, .12); }

/* -------- Download -------- */
.section-dark {
  background:
    radial-gradient(760px 420px at 50% 0%, rgba(99, 102, 241, .3), transparent 62%),
    linear-gradient(165deg, #0b1020, #131c33);
}
.download-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  padding: 52px 40px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.download-card h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.8px;
}
.download-desc { color: rgba(226, 232, 240, .7); margin-top: 14px; font-size: 15.5px; }
.notify-form {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.notify-input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.notify-input::placeholder { color: rgba(203, 213, 225, .5); }
.notify-input:focus { border-color: var(--accent-soft); background: rgba(255, 255, 255, .12); }
.notify-btn { flex: 0 0 auto; }
.download-note { margin-top: 16px; font-size: 13px; color: rgba(148, 163, 184, .75); }
.notify-done {
  margin-top: 30px;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, .14);
  border: 1px solid rgba(52, 211, 153, .36);
  color: #a7f3d0;
  font-size: 15px;
  font-weight: 600;
}

/* ============================ FOOTER ============================ */
footer {
  background: #080d1c;
  color: rgba(226, 232, 240, .7);
  padding: 46px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
}
.footer-meta { font-size: 14px; line-height: 1.9; }
.copyright { margin-left: auto; font-size: 13px; color: rgba(148, 163, 184, .7); }

/* ============================ REVEAL ============================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1), transform .65s cubic-bezier(.22, 1, .36, 1);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave i { animation: none; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .hero { padding: 128px 0 84px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; text-align: center; }
  .hero-text h1 { font-size: clamp(36px, 9vw, 48px); }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .cta-row, .hero-meta { justify-content: center; }
  .nav-links { display: none; }
  .lang-toggle { margin-left: auto; }
  .section { padding: 76px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .copyright { margin-left: 0; }
}
@media (max-width: 420px) {
  .phone { width: 268px; }
  .calc-result { font-size: 40px; }
  .download-card { padding: 40px 24px; }
}
