/*
  Momo Translate web concept · adapted from the project's Design System v4.3.
  Source: ../Momo Translate/design/Momo_Translate_Design_System_v4_3.html
*/
:root {
  --blue: #0b55ec;
  --blue-hover: #1e6cff;
  --blue-soft: #eaf1ff;
  --yellow: #ffde33;
  --ink: #1e293b;
  --muted: #758198;
  --line: #e6eaf1;
  --soft: #f6f8fc;
  --white: #ffffff;
  --success: #11956d;
  --shadow: #1f2e4a16;
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  --font-body: 16px;
  --font-small: 13px;
  --font-label: 11px;
  --font-title: 20px;
  --font-display: clamp(44px, 6.4vw, 82px);
  --font-weight-400: 400;
  --font-weight-600: 600;
  --font-weight-700: 700;
  --line-body: 1.7;
  --line-display: 0.98;
  --radius-sm: 8px;
  --radius: 11px;
  --radius-lg: 16px;
  --radius-xl: 28px;
  --motion-fast: 120ms;
  --motion-normal: 200ms;
  --motion-slow: 320ms;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-family);
  font-size: var(--font-body);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.04; }
h3 { font-size: 22px; line-height: 1.12; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.section-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  height: 78px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--white) 84%, transparent);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: 100px; color: var(--muted); font-size: 14px; }
.desktop-nav a, .mobile-nav a { transition: color var(--motion-fast) var(--ease); }
.desktop-nav a:hover, .mobile-nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: 14px; font-weight: 600; }
.menu-button, .mobile-nav { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr); align-items: center; gap: clamp(36px, 7vw, 110px); min-height: 700px; padding: 76px 0 110px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin-bottom: 20px; color: var(--blue); font-size: var(--font-label); font-weight: 700; letter-spacing: 0.14em; }
.hero h1 { max-width: 620px; font-size: var(--font-display); font-weight: 700; line-height: var(--line-display); }
.hero-lede { max-width: 450px; margin-top: 28px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: transform var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease); }
.button:hover { transform: translateY(-2px); }
.button-primary { border: 1px solid var(--blue); background: var(--blue); color: var(--white); box-shadow: 0 10px 24px #0b55ec24; }
.button-primary:hover { background: var(--blue-hover); box-shadow: 0 14px 30px #0b55ec32; }
.button-secondary { border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.button-secondary:hover { border-color: var(--blue); color: var(--blue); }
.button-mark { margin-left: 12px; font-size: 17px; line-height: 1; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 46px; color: var(--muted); font-size: 12px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.meta-dot.yellow { background: var(--yellow); }

.demo-wrap { position: relative; display: grid; place-items: center; min-height: 480px; }
.demo-orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 470px; height: 470px; }
.orbit-two { width: 590px; height: 300px; transform: rotate(-22deg); border-color: #eaf1ff; }
.translation-window { position: relative; z-index: 1; width: min(100%, 500px); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 28px 72px #1f2e4a1e, 0 3px 10px #1f2e4a10; }
.window-topbar { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.window-brand { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
.window-brand img { width: 22px; height: 22px; border-radius: 7px; }
.window-actions, .surface-tools { display: flex; align-items: center; gap: 2px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease); }
.icon-button:hover { background: var(--blue-soft); color: var(--blue); }
.icon-button.is-success { color: var(--success); background: #11956d12; }
[data-icon] { display: inline-flex; width: 17px; height: 17px; }
[data-icon] svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.translation-surface { padding: 0 18px 7px; background: var(--white); }
.source-surface { border-bottom: 0; }
.translation-surface textarea { display: block; width: 100%; height: 126px; padding: 18px 0 8px; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 17px; line-height: 1.65; }
.surface-footer { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.surface-note { color: var(--muted); font-size: 11px; }
.language-divider { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); align-items: center; height: 48px; background: linear-gradient(to bottom, var(--white) 0%, var(--white) 30%, var(--soft) 72%, var(--soft) 100%); }
.language-tab { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 14px; border: 0; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 700; }
.language-tab.target { background: var(--soft); }
.language-tab [data-icon] { width: 13px; height: 13px; color: var(--muted); }
.swap-button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: auto; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); }
.swap-button:hover { background: var(--blue-soft); color: var(--blue); }
.result-surface { background: var(--soft); }
.result-copy { min-height: 126px; padding: 18px 0 8px; font-size: 17px; line-height: 1.65; }
.provider-row { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-top: 1px solid var(--line); background: var(--white); font-size: 12px; }
.provider-mark { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 700; }
.provider-name { font-weight: 700; }
.provider-status { margin-left: auto; color: var(--success); font-size: 11px; }

.content-section { padding: 126px 0 60px; }
.section-intro { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr); column-gap: 70px; align-items: end; margin-bottom: 48px; }
.section-intro .eyebrow { grid-column: 1 / -1; }
.section-intro h2 { max-width: 480px; }
.section-intro > p:last-child { max-width: 500px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card { min-height: 330px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 12px 34px var(--shadow); transition: transform var(--motion-normal) var(--ease), box-shadow var(--motion-normal) var(--ease); }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px #1f2e4a1c; }
.feature-card-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.feature-card-white { background: var(--white); }
.feature-card-yellow { background: var(--yellow); border-color: var(--yellow); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 78px; border-radius: 12px; background: #ffffff24; color: currentColor; }
.feature-card-white .feature-icon { background: var(--blue-soft); color: var(--blue); }
.feature-card-yellow .feature-icon { background: #ffffff65; }
.feature-icon [data-icon] { width: 21px; height: 21px; }
.feature-index { margin-bottom: 11px; color: currentColor; opacity: .56; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.feature-card h3 { margin-bottom: 12px; }
.feature-card > p:last-child { max-width: 255px; color: currentColor; opacity: .76; font-size: 14px; line-height: 1.65; }

.workflow-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; padding: 130px 0; border-top: 1px solid var(--line); }
.workflow-copy > p:not(.eyebrow) { max-width: 360px; margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.inline-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 32px; color: var(--blue); font-size: 14px; font-weight: 700; }
.inline-link:hover { color: var(--blue-hover); }
.workflow-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.workflow-list li { display: grid; grid-template-columns: 55px 1fr; gap: 22px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.workflow-list li:first-child { padding-top: 8px; }
.workflow-number { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.workflow-list strong { display: block; font-size: 20px; }
.workflow-list p { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.principles-section { padding: 30px 0 130px; }
.principles-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 48px; border-radius: var(--radius-xl); background: var(--blue-soft); }
.principles-lede { align-self: end; max-width: 310px; color: var(--blue); font-size: 22px; font-weight: 700; line-height: 1.25; }
.principles-line { grid-column: 1 / -1; height: 1px; background: #0b55ec2c; }
.principles-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.principles-tags span { padding: 7px 11px; border: 1px solid #0b55ec2b; border-radius: 999px; color: var(--blue); font-size: 12px; font-weight: 700; }

.cta-section { padding-bottom: 110px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 48px; border-radius: var(--radius-xl); background: var(--ink); color: var(--white); }
.cta-card .eyebrow { color: var(--yellow); }
.cta-card h2 { max-width: 580px; }
.cta-card .button-primary { flex: 0 0 auto; background: var(--yellow); border-color: var(--yellow); color: var(--ink); box-shadow: none; }
.cta-card .button-primary:hover { background: #ffe867; }
.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 100px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .site-header { height: 70px; }
  .desktop-nav, .header-actions .text-button { display: none; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: var(--soft); }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 16px; height: 1.5px; background: var(--ink); content: ""; transition: transform var(--motion-fast) var(--ease); }
  .menu-lines::before { transform: translateY(-5px); }
  .menu-lines::after { transform: translateY(3.5px); }
  .menu-button[aria-expanded="true"] .menu-lines { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-lines::before { transform: translateY(0) rotate(90deg); }
  .menu-button[aria-expanded="true"] .menu-lines::after { opacity: 0; }
  .mobile-nav { position: absolute; top: 65px; right: 0; display: grid; min-width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 12px 34px var(--shadow); }
  .mobile-nav a { padding: 10px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: 14px; }
  .mobile-nav a:hover { background: var(--blue-soft); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 64px; }
  .demo-wrap { min-height: 470px; margin-top: 10px; }
  .section-intro, .workflow-section { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 270px; }
  .feature-icon { margin-bottom: 48px; }
  .workflow-section { gap: 56px; }
}

@media (max-width: 560px) {
  .section-shell, .site-header { width: min(100% - 32px, 1180px); }
  .hero { padding-bottom: 70px; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero-lede { font-size: 16px; }
  .hero-meta { gap: 10px 14px; }
  .demo-wrap { min-height: 410px; }
  .orbit-one { width: 320px; height: 320px; }
  .orbit-two { width: 360px; height: 220px; }
  .translation-window { width: 100%; }
  .translation-surface textarea, .result-copy { font-size: 16px; }
  .content-section, .workflow-section { padding-top: 92px; padding-bottom: 92px; }
  .principles-panel, .cta-card { grid-template-columns: 1fr; display: grid; padding: 28px; }
  .cta-card .button-primary { justify-self: start; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
