/* EasyHub site refresh: keep the app's blue, mascot and illustrated UI. */
:root {
  --ink: #17243a;
  --ink-2: #3e506b;
  --muted: #60728f;
  --line: #dde6f3;
  --bg: #f6f9fe;
  --blue: #2f6bfe;
  --blue-deep: #174fcf;
  --blue-soft: #e8f0ff;
  --blue-softer: #f1f6ff;
  --radius: 20px;
  --shadow: 0 28px 72px -32px rgba(32, 73, 146, .37);
  --font: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

html { scroll-padding-top: 86px; }
body { letter-spacing: -.008em; }
.wrap { max-width: 1320px; padding-inline: 34px; }
section { padding-block: 110px; }
.sec-head { max-width: 750px; margin-bottom: 48px; }
.sec-kicker { font-size: 12px; font-weight: 800; letter-spacing: .06em; margin-bottom: 14px; }
.sec-title { font-size: clamp(30px, 3.25vw, 45px); line-height: 1.23; letter-spacing: -.045em; }
.sec-sub { color: var(--ink-2); line-height: 1.85; max-width: 660px; }

.nav { background: rgba(255, 255, 255, .94); border-bottom-color: #e4ebf6; }
.nav-inner { height: 70px; }
.brand { font-size: 20px; letter-spacing: -.035em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav-links { gap: 2px; }
.nav-links a { font-size: 13px; font-weight: 650; border-radius: 10px; }
.nav-links .nav-cta { box-shadow: 0 7px 18px rgba(47, 107, 254, .18); }
.language-switch { border-radius: 11px; }
.language-switch a { min-width: 31px; text-align: center; }
.theme-toggle {
  width: 39px; height: 39px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 11px;
  color: var(--ink-2); background: #fff; cursor: pointer;
  transition: color .22s, background-color .22s, border-color .22s, transform .22s;
}
.theme-toggle:hover { color: var(--blue-deep); transform: translateY(-2px); }
.theme-toggle .theme-sun, .theme-toggle .theme-moon { grid-area: 1 / 1; width: 22px; height: 22px; }
html[data-theme="light"] .theme-sun, html[data-theme="dark"] .theme-moon { display: none; }

.btn { border-radius: 12px; }
.btn:focus-visible, .nav a:focus-visible, .language-switch a:focus-visible, .theme-toggle:focus-visible,
.nav-toggle:focus-visible, .download a:focus-visible, summary:focus-visible {
  outline: 3px solid #9fc1ff;
  outline-offset: 3px;
}
.btn-primary { box-shadow: 0 12px 24px -12px rgba(47, 107, 254, .64); }

/* Give the illustration the same prominence as the product promise. */
.hero {
  padding: 74px 0 96px;
  background: radial-gradient(ellipse at 87% 11%, #eaf2ff 0, transparent 35%),
              linear-gradient(180deg, #fff 0%, #f5f8fe 100%);
}
.hero-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(26px, 4vw, 58px); }
.hero-badge {
  padding: 7px 13px;
  background: #eef4ff;
  border-color: #d9e6ff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(42px, 3.4vw, 50px); line-height: 1.2; letter-spacing: -.055em; }
.hero h1 .accent { display: inline-block; }
.hero p.lead { margin-top: 23px; color: var(--ink-2); font-size: 16px; line-height: 1.85; max-width: 520px; }
.hero-actions { gap: 8px; margin-top: 30px; }
.hero-actions .btn { min-height: 48px; font-size: 12px; padding-inline: 8px; }
.hero-android-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 17px; color: var(--blue-deep); font-size: 13px; font-weight: 750; text-underline-offset: 3px; }
.hero-android-link svg { width: 17px; height: 17px; flex: none; }
.hero-android-link:hover { text-decoration: underline; }
.hero-android-link:focus-visible { outline: 3px solid #9fc1ff; outline-offset: 4px; border-radius: 4px; }
.hero-meta { gap: 16px; margin-top: 27px; }
.hero-meta div { color: #59708e; font-size: 11px; }
.stage {
  padding: 64px 22px 38px;
  min-width: 0;
  border: 1px solid #dce9ff;
  border-radius: 30px;
  background: radial-gradient(circle at 84% 12%, rgba(255,255,255,.95) 0 16%, transparent 16.2%),
              linear-gradient(145deg, #e5efff, #f2f7ff 55%, #e8f1ff);
  box-shadow: 0 28px 55px -45px rgba(34, 78, 154, .55);
}
.stage .window { box-shadow: 0 30px 65px -34px rgba(22, 50, 101, .45); }
.stage .win-body { min-height: 367px; }
.stage .win-bar { height: 47px; }
.stage .win-main { padding: 16px; }
.stage .mock-project { padding: 13px 15px; }
.stage .mock-project-icon { width: 37px; height: 37px; }
.stage .mock-project-title h3 { font-size: 14px; }
.stage .mock-project-info p { font-size: 10px; }
.stage .mock-status { font-size: 9px; }
.stage .mock-panel { padding: 12px 13px; }
.stage .mock-panel-head { font-size: 11px; }
.stage .mock-panel h4 { font-size: 11px; }
.stage .mock-panel p, .stage .mock-issue { font-size: 9px; }
.stage .mock-history strong { font-size: 10px; }
.float-toast { top: 13px; right: 43px; border-radius: 13px; }
.hero-plant { left: -17px; bottom: 2px; width: 95px; }

/* Problems read as three editorial statements instead of three equal boxes. */
.pain { background: #fff; }
.pain .sec-head { max-width: 850px; }
.pain-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.pain-card {
  display: grid;
  grid-template-columns: 50px minmax(180px, .55fr) minmax(0, 1.2fr) minmax(225px, .85fr);
  align-items: center;
  gap: 22px;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.pain-card .pc-ico { width: 44px; height: 44px; margin: 0; background: #eaf2ff; }
.pain-card .pc-ico svg { stroke: var(--blue); }
.pain-card h3 { font-size: 18px; margin: 0; }
.pain-card p { font-size: 13px; line-height: 1.75; color: var(--muted); }
.pain-card .arrow { justify-content: flex-end; text-align: right; margin: 0; font-size: 12px; }

#features { background: #f7faff; }
.ai-spotlight {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  padding: clamp(30px, 4vw, 52px);
  gap: 44px;
  border-radius: 27px;
  background: linear-gradient(126deg, #e9f1ff, #f4f8ff 64%, #fff);
  border-color: #d5e4ff;
  margin-bottom: 22px;
}
.ai-spotlight h3 { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.035em; }
.ai-spotlight p { font-size: 15px; }
.ai-preview { transform: rotate(1deg); padding: 20px; box-shadow: 0 22px 44px -28px rgba(39, 75, 139, .38); }
.ai-preview-head { font-size: 14px; }
.ai-preview-result strong { font-size: 13px; }
.ai-preview-result p { font-size: 12px; }
.feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feat-card { border-radius: 20px; padding: 29px 31px; }
.feat-card:nth-child(1), .feat-card:nth-child(4) { background: #eef4ff; border-color: #d9e6ff; }
.feat-card h3 { font-size: 18px; letter-spacing: -.02em; }
.feat-card p { color: var(--ink-2); font-size: 13px; }

.trending-showcase { background: #fff; }
.trend-layout { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 60px; }
.trend-copy .sec-title { max-width: 440px; }
.trend-window { transform: rotate(-1deg); box-shadow: 0 34px 62px -38px rgba(40, 79, 147, .42); }
.trend-points li { font-size: 14px; }

.workflow { background: #f1f6ff; }
.steps { gap: 0; border-top: 2px solid #b7d0ff; }
.step { padding: 30px 24px 5px 0; background: none; border: 0; border-radius: 0; }
.step:not(:last-child) { margin-right: 18px; }
.step .num { color: var(--blue-deep); }
.step svg { right: 24px; top: 29px; }
.step h3 { font-size: 18px; }
.step p { color: var(--ink-2); }

.compare { background: #fff; }
.compare-expand { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #f8fbff; }
.compare-expand > summary {
  padding: 20px 25px;
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.compare-expand > summary::-webkit-details-marker { display: none; }
.compare-expand > summary::after { content: "+"; float: right; font-size: 22px; font-weight: 400; line-height: 1; }
.compare-expand[open] > summary::after { content: "−"; }
.compare-expand .table-scroll { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.compare-expand .legend { padding: 0 22px 18px; }
.matrix thead th { background: #eaf2ff; color: #284573; }
.matrix tbody tr.easyhub { background: #f1f6ff !important; }
.compare-note { gap: 15px; }
.cn-card { border-radius: 18px; }

/* Keep the download choices clear and easy to scan. */
.download { background: #f7faff; }
.dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl-card { border-radius: 20px; background: #fff; padding: 30px; }
.dl-card:first-child {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  padding: 36px 42px;
  background: #eaf2ff;
  border-color: #d1e1ff;
}
.dl-card:first-child::before {
  content: "";
  position: absolute;
  right: 44px;
  top: 48px;
  width: 220px;
  height: 220px;
  background: url("easyhub-icon.svg") center / contain no-repeat;
  opacity: .075;
  pointer-events: none;
}
.dl-card:first-child > * { position: relative; }
.dl-card:first-child h3 { font-size: 25px; letter-spacing: -.035em; }
.dl-card:first-child p { max-width: 690px; color: var(--ink-2); font-size: 14px; }
.dl-card:first-child .dl-source { font-size: 13px; }
.dl-card:first-child .dl-links { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
.dl-links a { min-height: 43px; border-radius: 10px; }
.dl-card:first-child .dl-links a { background: #fff; }
.dl-card.mac-card { grid-column: 1 / -1; padding: 32px 42px; }
.mac-card h3 { font-size: 23px; }
.mac-card .dl-links { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
.mac-card .mac-install-note { margin-top: 16px; }
.mac-install-note a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.dl-card.android-card {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  background: #fff;
  border-color: #dce7f7;
  padding: 32px 42px;
}
.android-card > :not(.android-phone) { position: relative; z-index: 1; }
.android-card::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 38%; background: linear-gradient(145deg, #f4f8ff, #eaf2ff); }
.android-card .dl-ico { color: #2363d8; background: #eaf2ff; }
.android-card .dl-ico svg { stroke: currentColor; }
.android-card h3 { font-size: 23px; }
.android-card > p { max-width: 750px; color: var(--ink-2); }
.android-card .dl-links { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
.android-card .android-hint { margin-top: 14px; font-size: 12px; color: var(--muted); }
.android-page-link { display: inline-flex; align-items: center; gap: 7px; margin: 14px 0 4px; color: var(--blue-deep); font-size: 13px; font-weight: 750; }
.android-page-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.android-phone {
  position: absolute; right: clamp(55px, 8vw, 125px); top: 34px;
  width: 205px; height: 345px; padding: 13px 12px 15px;
  border: 6px solid #20365d; border-radius: 29px;
  background: #f9fbff; box-shadow: 0 22px 40px -24px rgba(30, 67, 132, .5);
  transform: rotate(5deg);
}
.phone-speaker { position: absolute; width: 48px; height: 5px; border-radius: 5px; background: #20365d; top: 7px; left: calc(50% - 24px); }
.phone-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 5px 18px; }
.phone-brand { color: #20365d; font-size: 12px; font-weight: 800; }
.phone-user { width: 20px; height: 20px; border-radius: 50%; background: #d7e7ff; border: 2px solid #fff; }
.phone-greeting { width: 104px; height: 9px; margin: 0 5px 8px; border-radius: 8px; background: #264676; }
.phone-greeting.short { width: 133px; height: 5px; margin-bottom: 20px; background: #a6bad6; }
.phone-card { display: flex; align-items: center; gap: 8px; height: 58px; padding: 8px; margin: 0 0 8px; border: 1px solid #dfe8f5; border-radius: 11px; background: #fff; }
.phone-tile { width: 36px; height: 36px; flex: none; border-radius: 9px; background: #dceaff; }
.phone-tile.violet { background: #ede5ff; }
.phone-tile.mint { background: #def4ea; }
.phone-lines { display: grid; gap: 5px; flex: 1; }
.phone-lines i { display: block; height: 6px; border-radius: 5px; background: #4d6689; }
.phone-lines i + i { width: 70%; height: 4px; background: #b4c4d9; }
.phone-card b { width: 7px; height: 7px; align-self: flex-start; border-radius: 50%; background: #2ecb80; }
.phone-tabs { position: absolute; bottom: 12px; left: 16px; right: 16px; display: flex; justify-content: space-around; padding-top: 12px; border-top: 1px solid #e3eaf5; }
.phone-tabs span { width: 15px; height: 15px; border: 3px solid #9db2d3; border-radius: 5px; }
.phone-tabs span:first-child { border-color: #2f6bfe; background: #e7efff; }
.dl-card:nth-child(n+2) .dl-ico { background: #dfeaff; }
.dl-card:nth-child(n+2) .dl-ico svg { stroke: var(--blue); }

footer { background: #edf3fc; color: #536887; border-top: 1px solid #dce6f5; }
.footer-brand b { color: var(--ink); }
.footer-links a { color: #415674; }
.footer-links a:hover { color: var(--blue-deep); }
.footer-note, .footer-copy { color: #647995; }
.footer-copy { margin-top: 22px; }
.reveal { opacity: 1; transform: none; }
html.motion-ready .reveal:not(.in) { opacity: 0; transform: translateY(20px); }
html.motion-ready .reveal.in { opacity: 1; transform: none; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes stage-enter { from { opacity: 0; transform: translateY(18px) rotate(1deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
html.motion-ready .hero-badge { animation: hero-enter .5s .06s both; }
html.motion-ready .hero h1 { animation: hero-enter .55s .14s both; }
html.motion-ready .hero .lead { animation: hero-enter .55s .22s both; }
html.motion-ready .hero-actions { animation: hero-enter .55s .3s both; }
html.motion-ready .hero-meta { animation: hero-enter .55s .38s both; }
html.motion-ready .stage { animation: stage-enter .68s .26s both; }
.btn, .feat-card, .dl-links a, .theme-toggle { transition-property: transform, box-shadow, background-color, border-color, color; transition-duration: .22s; }
.btn:hover, .dl-links a:hover { transform: translateY(-2px); }
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -25px rgba(28, 72, 150, .45); }

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-grid > :first-child { max-width: 690px; }
  .stage { width: min(100%, 760px); max-width: 760px; }
  .hero-meta { flex-wrap: wrap; }
  .pain-card { grid-template-columns: 50px minmax(180px, .65fr) minmax(0, 1.35fr); }
  .pain-card .arrow { grid-column: 3; justify-content: flex-start; text-align: left; }
}

@media (max-width: 900px) {
  .wrap { padding-inline: 24px; }
  .nav-links { top: 70px; }
  .theme-toggle { margin-left: auto; }
  .language-switch { margin-left: 0; }
  section { padding-block: 82px; }
  .hero { padding: 52px 0 74px; }
  .trend-layout { grid-template-columns: 1fr; gap: 38px; }
  .trend-window { max-width: 680px; }
  .ai-spotlight { grid-template-columns: 1fr; }
  .stage { margin-inline: auto; }
}

@media (max-width: 680px) {
  .wrap { padding-inline: 20px; }
  section { padding-block: 72px; }
  .hero { padding: 44px 0 65px; }
  .hero-badge { font-size: 10px; padding: 6px 10px; margin-bottom: 19px; }
  .hero h1 { font-size: clamp(33px, 9.4vw, 43px); line-height: 1.22; }
  .hero p.lead { font-size: 14px; margin-top: 19px; }
  .hero-actions { gap: 7px; margin-top: 26px; }
  .hero-actions .btn { font-size: 12px; min-height: 44px; }
  .hero-meta { margin-top: 24px; gap: 8px; }
  .hero-meta div { font-size: 10px; }
  .stage { border-radius: 19px; padding: 55px 8px 21px; }
  .float-toast { top: 10px; right: 14px; }
  .hero-plant { left: -11px; width: 70px; }
  .stage .win-body { min-height: 318px; }
  .stage .win-main { padding: 9px 7px; }
  .stage .mock-project { padding: 8px; }
  .stage .mock-project-icon { width: 31px; height: 31px; }
  .stage .mock-project-title h3 { font-size: 11px; }
  .stage .mock-project-info p { font-size: 8px; }
  .stage .mock-status { font-size: 8px; }
  .stage .mock-panel { padding: 9px 10px; }
  .pain-card { grid-template-columns: 43px 1fr; gap: 6px 13px; padding: 19px 0; }
  .pain-card h3 { font-size: 16px; }
  .pain-card p, .pain-card .arrow { grid-column: 2; }
  .pain-card .arrow { font-size: 11px; }
  .feat-grid, .dl-grid, .compare-note, .steps { grid-template-columns: 1fr; }
  .feat-card { padding: 24px; }
  .ai-spotlight { padding: 26px 21px; }
  .steps { border-top: none; border-left: 2px solid #b7d0ff; }
  .step { padding: 0 0 28px 22px; }
  .step:not(:last-child) { margin-right: 0; }
  .step svg { top: 1px; right: 0; }
  .dl-card:first-child { padding: 27px 23px; }
  .dl-card:first-child h3 { font-size: 21px; }
  .dl-card:first-child .dl-links { grid-template-columns: 1fr 1fr; }
  .dl-card:first-child::before { width: 160px; height: 160px; right: 10px; top: 52px; }
  .dl-card:first-child .dl-links a { font-size: 12px; }
  .dl-card.mac-card { padding: 27px 23px; }
  .mac-card .dl-links a { font-size: 12px; }
  .dl-card.android-card { padding: 27px 23px; }
  .android-card::before, .android-phone { display: none; }
  .android-card .dl-links { grid-template-columns: 1fr 1fr; }
  .android-card .dl-links a { font-size: 12px; }
}

@media (max-width: 390px) {
  .nav-inner { gap: 8px; }
  .brand { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .theme-toggle { width: 34px; height: 34px; }
  .language-switch a { min-width: 27px; padding-inline: 5px; }
}

html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] {
    --bg: #101a2a; --card: #16243a; --ink: #f1f5fc; --ink-2: #c6d3e6;
    --muted: #a6b7d0; --line: #31425e; --blue-soft: #1c3568; --blue-softer: #172b52;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .pain, html[data-theme="dark"] .trending-showcase,
html[data-theme="dark"] .compare, html[data-theme="dark"] .download,
html[data-theme="dark"] #features, html[data-theme="dark"] .workflow { background: #101a2a; }
html[data-theme="dark"] .nav { background: rgba(16, 26, 42, .95); border-bottom-color: var(--line); }
html[data-theme="dark"] .nav-toggle, html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .language-switch, html[data-theme="dark"] .feat-card,
html[data-theme="dark"] .dl-card, html[data-theme="dark"] .cn-card.alt,
html[data-theme="dark"] .compare-expand { background: #16243a; }
/* Desktop links must stay transparent over the frosted header. */
html[data-theme="dark"] .nav-links { background: transparent; }
html[data-theme="dark"] .hero { background: radial-gradient(ellipse at 85% 10%, #1b3357, transparent 38%), #101a2a; }
html[data-theme="dark"] .hero-badge { background: #1b3357; border-color: #2d4c82; color: #adc9ff; }
html[data-theme="dark"] .hero-meta div { color: #a8b9d2; }
html[data-theme="dark"] .stage { background: linear-gradient(145deg, #1d3355, #243d66); border-color: #3b5782; }
html[data-theme="dark"] .float-toast { color: #17243a; }
html[data-theme="dark"] .pain-card .pc-ico { background: #1c3568; }
html[data-theme="dark"] .ai-spotlight, html[data-theme="dark"] .dl-card:first-child,
html[data-theme="dark"] .feat-card:nth-child(1), html[data-theme="dark"] .feat-card:nth-child(4) { background: #192d4c; border-color: #34517e; }
html[data-theme="dark"] .cn-card.key, html[data-theme="dark"] .matrix tbody tr.easyhub { background: #192d4c !important; }
html[data-theme="dark"] .compare-expand > summary, html[data-theme="dark"] .matrix thead th { background: #1c3568; color: #dbe8ff; }
html[data-theme="dark"] .matrix tbody tr:nth-child(even) { background: #182941; }
html[data-theme="dark"] .dl-links a, html[data-theme="dark"] .dl-card:first-child .dl-links a,
html[data-theme="dark"] .ai-points span { background: #233956; color: #e7f0ff; border-color: #3a5883; }
html[data-theme="dark"] .mac-install-note a { color: #adc9ff; }
html[data-theme="dark"] .download .dl-source img[src$="github.svg"] { filter: invert(1); }
html[data-theme="dark"] footer { background: #14223a; border-color: #31425e; }
html[data-theme="dark"] .footer-links a, html[data-theme="dark"] .footer-brand b,
html[data-theme="dark"] .footer-note, html[data-theme="dark"] .footer-copy { color: #ccd9ed; }
html[data-theme="dark"] .window, html[data-theme="dark"] .ai-preview, html[data-theme="dark"] .trend-window {
    --ink: #17243a; --ink-2: #3e506b; --muted: #60728f; --line: #e3eaf5;
    --blue-soft: #e8f0ff; --blue-softer: #f1f6ff;
    color: var(--ink);
}
html[data-theme="dark"] .ai-preview-result { background: #f7faff; }
@media (max-width: 900px) {
  html[data-theme="dark"] .nav-links { background: #101a2a; }
}

@media (prefers-reduced-motion: reduce) {
  html.motion-ready .reveal:not(.in) { opacity: 1; transform: none; }
  html.motion-ready .hero-badge, html.motion-ready .hero h1, html.motion-ready .hero .lead,
  html.motion-ready .hero-actions, html.motion-ready .hero-meta, html.motion-ready .stage { animation: none; }
  .float-toast, .hero-plant { animation: none; }
  .ai-preview, .trend-window { transform: none; }
  .btn, .feat-card, .dl-links a, .theme-toggle { transition: none; }
}
