:root {
  --bg: #fffaf2;
  --surface: #fffdf9;
  --surface-strong: #fff3e2;
  --text: #14213d;
  --muted: #5f6b7a;
  --border: #f0dcc3;
  --accent: #ff6b35;
  --accent-2: #1f8a70;
  --shadow: 0 10px 35px rgba(20, 33, 61, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, #fff1df 0%, #fffaf2 35%, #fff6ed 100%);
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  z-index: -1;
  filter: blur(8px);
  opacity: 0.45;
}

.orb-a {
  width: 320px;
  height: 320px;
  top: -90px;
  right: -70px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.5), rgba(255, 107, 53, 0));
}

.orb-b {
  width: 380px;
  height: 380px;
  bottom: -130px;
  left: -90px;
  background: radial-gradient(circle, rgba(31, 138, 112, 0.45), rgba(31, 138, 112, 0));
}

.hero,
main,
.footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  padding: 3.75rem 0 2rem;
  animation: fadeUp 0.7s ease both;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  max-width: 880px;
}

.hero-copy {
  margin-top: 1rem;
  max-width: 820px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-meta {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-meta span {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.86rem;
}

main {
  padding-bottom: 2rem;
}

.demo-section {
  margin-top: 1.25rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 80%, white 20%);
  box-shadow: var(--shadow);
  animation: fadeUp 0.8s ease both;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
}

.section-head p {
  color: var(--muted);
}

.card-grid,
.language-grid {
  display: grid;
  gap: 0.9rem;
}

.dual-showcase,
.stack-showcase,
.stack-grid,
.speed-grid {
  display: grid;
  gap: 0.9rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

#cross-it-grid,
#cross-yue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#cross-it-grid .language-card,
#cross-yue-grid .language-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#cross-it-grid .target-text,
#cross-yue-grid .target-text {
  margin-bottom: 0.5rem;
}

#cross-it-grid .audio-wrap,
#cross-yue-grid .audio-wrap {
  margin-top: auto;
}

.language-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

#other-model-grid {
  grid-template-columns: 1fr;
}

.other-model-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
}

.other-model-row h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.other-model-row audio {
  margin-top: 0;
}

@media (max-width: 760px) {
  .other-model-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.dual-showcase {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.stack-showcase {
  grid-template-columns: 1fr;
}

.speed-grid {
  grid-template-columns: 1fr;
}

.speed-source {
  margin-bottom: 0.9rem;
}

.sub-demo {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(120deg, #fffdf9, #fff8ef);
  padding: 0.9rem;
}

.sub-copy {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
}

.demo-card,
.language-card,
.source-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 0.9rem;
}

.demo-card,
.language-card {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInStagger 0.6s ease forwards;
}

.demo-card h3,
.language-card h3,
.source-card h3 {
  font-size: 1rem;
}

.meta-line {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.audio-wrap {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.3rem;
}


.audio-wrap label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  text-transform: none;
}

.audio-wrap .audio-helper-text {
  margin: 0.05rem 0 0.28rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.target-text {
  font-family: "Space Grotesk", "Instrument Sans", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.target-text-block {
  margin-bottom: 0.7rem;
}

audio {
  width: 100%;
  height: 34px;
}

.source-card {
  margin-bottom: 0.9rem;
  background: linear-gradient(120deg, #fffaf4, #f6fff9);
}

.source-card h3 {
  margin-bottom: 0.6rem;
}

.source-label {
  color: var(--accent-2);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.source-text {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.language-card p {
  color: var(--muted);
  font-size: 0.87rem;
  margin-top: 0.35rem;
}

#emotion-grid .demo-card,
#speed-grid .language-card {
  animation-delay: 0s;
}

.footer {
  padding: 1.5rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .hero {
    padding-top: 2.7rem;
  }

  .demo-section {
    padding: 1rem;
  }

  .hero-meta span {
    font-size: 0.8rem;
  }

  #intra-grid {
    grid-template-columns: 1fr;
  }

  #cross-it-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  #intra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #cross-it-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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