/* ContextEcho landing — OLED-first + CE brand (#FC7E11), ui-ux-pro-max aligned */

:root {
  --brand: #fc7e11;
  --brand-mid: #ff9b3d;
  --brand-deep: #d95f00;
  --brand-glow: rgba(252, 126, 17, 0.45);
  --indigo-deep: #1e1b4b;
  --bg: #07060a;
  --bg-elevated: rgba(22, 20, 18, 0.72);
  --surface: rgba(255, 255, 255, 0.03);
  --text: #f8fafc;
  --text-muted: rgba(248, 250, 252, 0.58);
  --border: rgba(252, 126, 17, 0.14);
  --border-strong: rgba(252, 126, 17, 0.28);
  --radius: 16px;
  --radius-lg: 22px;
  --font-sans: "Noto Sans SC", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* —— Ambient layers (single decorative stack; motion gated) —— */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.ambient__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(252, 126, 17, 0.19), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(49, 46, 129, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 45% at 0% 80%, rgba(252, 126, 17, 0.08), transparent 45%);
  animation: mesh-drift 28s var(--ease-out) infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .ambient__mesh {
    animation: none;
  }
}

@keyframes mesh-drift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-2%, 3%) scale(1.03);
    opacity: 0.92;
  }
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.ambient__glow--1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -8%;
  right: -10%;
  background: rgba(252, 126, 17, 0.35);
}

.ambient__glow--2 {
  width: min(380px, 65vw);
  height: min(380px, 65vw);
  bottom: 10%;
  left: -15%;
  background: rgba(49, 46, 129, 0.4);
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 15%, transparent 70%);
  opacity: 0.55;
}

.ambient__noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--brand);
  color: #1a0f06;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  z-index: 100;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  outline: none;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.wrap {
  width: min(56rem, calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .wrap {
    width: min(58rem, calc(100% - 3rem));
  }
}

/* —— Top nav —— */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.65rem 0;
  border-bottom: 1px solid transparent;
  background: rgba(7, 6, 10, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.top-nav.is-scrolled,
.top-nav:hover {
  border-bottom-color: var(--border);
}

.top-nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  border-radius: 10px;
  transition: opacity 0.2s ease;
}

.logo-lockup:hover {
  opacity: 0.88;
}

.logo-lockup__mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
  box-shadow: 0 0 22px var(--brand-glow);
}

.logo-lockup__text {
  font-family: var(--font-en);
}

.top-nav__links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .top-nav__links {
    display: flex;
  }
}

.top-nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.top-nav__link:hover {
  color: var(--text);
}

.btn-compact {
  padding: 0.55rem 1rem !important;
  font-size: 0.88rem !important;
}

/* —— Hero —— */
.hero {
  display: grid;
  gap: 2.75rem;
  padding: 2rem 0 4.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    padding: 3rem 0 5rem;
  }
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-mid);
}

/* Apple 商标写法：不受 eyebrow 的 uppercase 影响 */
.eyebrow__brand {
  text-transform: none;
  letter-spacing: 0.06em;
}

.hero__title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.9rem, 4.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.hero__accent {
  background: linear-gradient(105deg, var(--brand) 0%, var(--brand-mid) 45%, #ffd9a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(252, 126, 17, 0.25);
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.hero__lead strong {
  color: var(--text);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.25s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn:focus {
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-mid);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.98);
}

.btn__ico {
  flex-shrink: 0;
  opacity: 0.9;
}

.btn-lg {
  padding: 0.95rem 1.65rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  color: #1a0f06;
  box-shadow: 0 6px 32px rgba(252, 126, 17, 0.38);
}

.btn-primary:hover {
  box-shadow: 0 10px 40px rgba(252, 126, 17, 0.48);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: rgba(252, 126, 17, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.micro-hint {
  margin-top: 1.15rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.55;
}

/* Phone mock */
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.phone-frame {
  width: min(280px, 82vw);
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 60px rgba(252, 126, 17, 0.12);
}

.phone-frame__inner {
  border-radius: 28px;
  padding: 1.1rem 1.15rem 1.35rem;
  background: linear-gradient(180deg, #121015 0%, #0a090c 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-frame__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.15rem;
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.phone-frame__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand-glow);
}

.phone-frame__time {
  letter-spacing: 0.02em;
}

.phone-frame__pill {
  width: 52px;
  height: 22px;
  border-radius: 999px;
  background: #1a181c;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-frame__label {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-family: var(--font-en);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.phone-frame__title {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(248, 250, 252, 0.92);
}

.wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 44px;
  margin-bottom: 1.15rem;
}

.wave__bar {
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-mid), var(--brand-deep));
  transform-origin: bottom center;
  animation: wave-pulse 1.1s var(--ease-out) infinite alternate;
}

.wave__bar:nth-child(1) {
  height: 38%;
  animation-delay: 0s;
}
.wave__bar:nth-child(2) {
  height: 72%;
  animation-delay: 0.08s;
}
.wave__bar:nth-child(3) {
  height: 100%;
  animation-delay: 0.16s;
}
.wave__bar:nth-child(4) {
  height: 55%;
  animation-delay: 0.24s;
}
.wave__bar:nth-child(5) {
  height: 88%;
  animation-delay: 0.32s;
}
.wave__bar:nth-child(6) {
  height: 48%;
  animation-delay: 0.4s;
}
.wave__bar:nth-child(7) {
  height: 66%;
  animation-delay: 0.48s;
}

@media (prefers-reduced-motion: reduce) {
  .wave__bar {
    animation: none;
    opacity: 0.85;
  }
}

@keyframes wave-pulse {
  0% {
    transform: scaleY(0.35);
    opacity: 0.65;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.phone-frame__marker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brand-mid);
  background: rgba(252, 126, 17, 0.1);
  border: 1px solid rgba(252, 126, 17, 0.22);
}

.hero__caption {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* —— Sections —— */
.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

section.block {
  padding: 3.25rem 0;
  border-top: 1px solid var(--border);
}

.grid-3 {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  backdrop-filter: blur(12px);
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.35s ease;
}

.card--lift:hover {
  transform: translateY(-4px);
  border-color: rgba(252, 126, 17, 0.35);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(252, 126, 17, 0.12),
    0 0 48px rgba(252, 126, 17, 0.08);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  color: var(--brand-mid);
  background: rgba(252, 126, 17, 0.1);
  border: 1px solid rgba(252, 126, 17, 0.18);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.58;
}

.card p strong {
  color: rgba(248, 250, 252, 0.88);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feature-list__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.feature-list__item:hover {
  border-color: rgba(252, 126, 17, 0.18);
  background: rgba(252, 126, 17, 0.04);
}

.feature-list__tick {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 0.1rem;
  border-radius: 8px;
  color: #1a0f06;
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
}

.feature-list__item strong {
  color: var(--text);
  font-weight: 600;
}

.two-col {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 760px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.panel-soft {
  background: rgba(49, 46, 129, 0.12);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.5rem;
  transition: border-color 0.25s ease, box-shadow 0.3s ease;
}

.panel-soft:hover {
  border-color: rgba(252, 126, 17, 0.22);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.panel-soft--rise {
  transition: transform 0.35s var(--ease-out);
}

.panel-soft--rise:hover {
  transform: translateY(-2px);
}

.panel-soft h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
}

.panel-soft ul {
  margin: 0;
  padding-left: 1.15rem;
}

.panel-soft li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  line-height: 1.55;
}

.panel-soft li:last-child {
  margin-bottom: 0;
}

.panel-soft strong {
  color: rgba(248, 250, 252, 0.9);
}

/* Final CTA */
.final-cta {
  padding: 4rem 0 4.5rem;
}

.final-cta__panel {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    radial-gradient(ellipse 80% 70% at 50% 120%, rgba(252, 126, 17, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.final-cta__panel h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.final-cta__lead {
  margin: 0 auto 1.65rem;
  max-width: 38ch;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.final-cta__actions {
  justify-content: center;
}

footer.site {
  padding: 2.25rem 0 3.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
}

footer.site p {
  margin: 0.4rem 0;
}

.tabular {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-en);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Links in prose */
a:not(.btn):not(.logo-lockup):not(.top-nav__link) {
  color: var(--brand-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:not(.btn):not(.logo-lockup):not(.top-nav__link):not(.lang-switch__btn):hover {
  color: var(--brand);
}

/* —— Language toggle —— */
html.is-lang-zh .i18n-en-only {
  display: none !important;
}

html.is-lang-en .i18n-zh-only {
  display: none !important;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  gap: 2px;
}

.lang-switch__btn {
  appearance: none;
  margin: 0;
  padding: 0.38rem 0.75rem;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.lang-switch__btn:hover {
  color: var(--text);
}

.lang-switch__btn:focus {
  outline: none;
}

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--brand-mid);
  outline-offset: 2px;
}

.lang-switch__btn.is-active {
  color: #1a0f06;
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
}

.top-nav__tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

@media (max-width: 639px) {
  .top-nav__inner {
    gap: 0.65rem;
  }

  .top-nav__tools {
    width: 100%;
    justify-content: flex-end;
  }
}

/* —— Toast —— */
.site-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 200;
  max-width: min(22rem, calc(100% - 2rem));
  padding: 0.85rem 1.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
  text-align: center;
  background: rgba(22, 20, 18, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s var(--ease-out),
    opacity 0.35s ease;
}

.site-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .site-toast {
    transition: opacity 0.2s ease;
  }

  .site-toast:not(.is-visible) {
    transform: translateX(-50%);
  }
}

