@charset "UTF-8";

@font-face {
  font-family: Geist;
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f8f7f3;
  --ink: #34332e;
  --muted: #8c877e;
  --accent: #b5755b;
  --line: #e3dfd5;
  font-family: Geist, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.page { width: min(1280px, calc(100% - 96px)); margin: 0 auto; }
.header { height: 80px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.site-name { font-size: 18px; font-weight: 500; letter-spacing: 1px; }
.site-name, .nav-link { color: inherit; text-decoration: none; }
.nav-link { display: inline-block; padding: 8px 0; color: #777268; font-size: 13px; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.hero { padding: 52px 0 40px; text-align: center; }
h1 { margin: 0 0 20px; font-size: clamp(24px, 3.4vw, 54px); font-weight: 400; letter-spacing: 2px; line-height: 1.4; white-space: nowrap; }
h1 span { color: var(--accent); }
.hero-description { margin: 0; color: #898378; font-size: 14px; letter-spacing: 2px; }
.hero-actions { margin-top: 25px; display: flex; justify-content: center; gap: 12px; }
.button { min-width: 132px; padding: 13px 19px; border-radius: 6px; font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.button span { font-size: 17px; line-height: 1; }
.button-primary { color: #faf8f3; background: var(--ink); border: 1px solid var(--ink); }
.button-secondary { border: 1px solid #dcd7cd; }
.hero-actions .button, .notice-close { cursor: pointer; }

.notice-dialog {
  width: min(480px, calc(100% - 40px));
  padding: 0;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 65px rgb(52 51 46 / 16%);
}
.notice-dialog::backdrop { background: rgb(52 51 46 / 28%); }
.notice-panel { padding: clamp(22px, 5vw, 32px); }
.notice-panel h2 {
  margin: 0 0 26px;
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 400;
  line-height: 1.6;
}
.notice-panel form { display: flex; justify-content: flex-end; }
.notice-panel .notice-close { min-width: 0; padding: 10px 18px; }

@media (prefers-reduced-motion: no-preference) {
  .notice-dialog[open] { animation: notice-enter 180ms ease-out; }
  @keyframes notice-enter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.connection { width: min(1120px, 100%); margin: 0 auto 48px; padding: 24px 30px 30px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf7; }
.diagram-heading { display: flex; align-items: center; justify-content: space-between; color: #8e887e; font-size: 12px; }
.diagram-label { font-size: 10px; letter-spacing: 1px; color: #b1aa9e; }

/* Identical groups make the rightward loop seamless, including its final gap. */
.model-marquee {
  overflow: hidden;
  margin: 25px -30px 0;
  padding: 5px 0;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.model-track {
  display: flex;
  width: max-content;
  animation: marquee-right 48s linear infinite;
  will-change: transform;
}
.model-group { display: flex; flex-shrink: 0; align-items: center; gap: 20px; padding-right: 20px; }
.model-card { position: relative; display: block; flex: 0 0 auto; width: clamp(240px, 23vw, 320px); height: auto; border: 1px solid #ded8cc; border-radius: 12px; overflow: hidden; user-select: none; }
.model-card-base { display: block; width: 100%; height: auto; }
.model-logo { position: absolute; top: 0; left: 50%; width: 56%; height: 72%; transform: translateX(-50%); object-fit: contain; pointer-events: none; }
.model-logo-deepseek { top: -9%; width: 70%; height: 90%; }
.model-logo-kimi { top: -6%; width: 68%; height: 84%; }
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.pricing { width: min(920px, 100%); margin: 0 auto; padding: 54px 0 40px; }
.pricing-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf7; }
.pricing-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pricing-table th, .pricing-table td { padding: 13px 24px; border-bottom: 1px solid var(--line); }
.pricing-table thead th { background: #f2efe9; color: #706b62; font-size: 12px; font-weight: 500; }
.pricing-table tr > :first-child { text-align: left; }
.pricing-table tr > :not(:first-child) { width: 20%; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricing-table tbody tr:last-child > * { border-bottom: 0; }
.pricing-table tbody th { font-weight: 500; line-height: 1.4; }
.pricing-family { display: block; margin-bottom: 4px; color: #706b62; font-size: 11px; font-weight: 400; }
.pricing-table a { color: inherit; text-decoration: none; }
.pricing-table a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 800px) {
  .page { width: calc(100% - 48px); }
  .hero { padding-top: 44px; }
  .connection { padding-left: 24px; padding-right: 24px; }
  .model-marquee { margin-left: -24px; margin-right: -24px; }
}
@media (max-width: 600px) {
  .page { width: calc(100% - 40px); }
  .header { height: 68px; gap: 14px; }
  .site-name { font-size: 15px; letter-spacing: 0; }
  .nav-link { font-size: 11px; }
  .hero { padding: 38px 0 32px; }
  h1 { font-size: clamp(19px, 5.4vw, 30px); letter-spacing: 0; margin-bottom: 17px; }
  .hero-description { font-size: 12px; }
  .hero-actions { margin-top: 23px; }
  .button { min-width: 121px; padding: 12px 15px; }
  .connection { padding: 20px 20px 24px; margin-bottom: 32px; }
  .diagram-heading { font-size: 10px; }
  .model-marquee { margin: 22px -20px 0; }
  .model-group { gap: 16px; padding-right: 16px; }
  .model-card { width: clamp(210px, 60vw, 270px); border-radius: 12px; }
  .pricing { padding-top: 34px; }
  .pricing-table { font-size: 13px; }
  .pricing-table th, .pricing-table td { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .model-marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .model-track { animation: none; transform: none; will-change: auto; }
  .model-group { padding: 0 20px; }
  .model-group[aria-hidden="true"] { display: none; }
}
