/* Corpus 官网 — Nocturne tokens（与 design/_ds/styles.css 一致）+ 站点样式 */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/Inter-Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/Inter-Medium.ttf") format("truetype"); }

:root {
  --color-bg: #161826;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-accent: #9184d9;
  --color-accent-2: #a7a1db;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);
  --color-neutral-100: #f3f5fe; --color-neutral-200: #e4e7f5; --color-neutral-300: #cfd3e5; --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab; --color-neutral-600: #75798c; --color-neutral-700: #595d6c; --color-neutral-800: #3f424d; --color-neutral-900: #292b31;
  --color-accent-100: #f5f4ff; --color-accent-200: #e7e5fe; --color-accent-300: #d2cefd; --color-accent-400: #b5abfc; --color-accent-500: #968ae0;
  --color-accent-600: #796cbf; --color-accent-700: #5d5294; --color-accent-800: #423a6a; --color-accent-900: #2b2741;
  --color-section: #262a60; --color-section-glow: #353b80; --color-section-ghost: #4c5397;
  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px;
}
html[lang="zh-CN"] {
  --font-heading: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--color-text);
  text-wrap: pretty; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 720px at 82% -160px, color-mix(in srgb, var(--color-accent-900) 75%, transparent), transparent 60%),
    radial-gradient(1100px 800px at -10% 100%, color-mix(in srgb, black 30%, transparent), transparent 55%),
    var(--color-bg);
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-300); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

@keyframes ring { from { stroke-dasharray: 0 400; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 10px var(--color-accent); } 50% { box-shadow: 0 0 22px var(--color-accent); } }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- iPhone 外框（对应设计稿的 IOSDevice，402×874，深色） ---- */
.phone {
  width: 402px; height: 874px; border-radius: 48px; overflow: hidden; position: relative;
  background: #000; color: #fff;
  box-shadow: 0 40px 80px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.12);
  font-family: -apple-system, system-ui, sans-serif;
}
.phone .island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 126px; height: 37px; border-radius: 24px; background: #000; z-index: 50; }
.phone .statusbar { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 21px 24px 19px; height: 62px; pointer-events: none; }
.phone .statusbar .time { flex: 1; text-align: center; font-weight: 590; font-size: 17px; line-height: 22px; padding-top: 1.5px; }
.phone .statusbar .icons { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding-top: 1px; }
.phone .statusbar svg { display: block; }
.phone .phone-body { height: 100%; }
.phone .homebar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 60; height: 34px; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 8px; pointer-events: none; }
.phone .homebar i { width: 139px; height: 5px; border-radius: 100px; background: rgba(255,255,255,.7); display: block; }

/* ---- 首屏手机：四个页面轮播 ---- */
.panel.off { display: none !important; }
.tabbtn { color: var(--color-neutral-500); user-select: none; }
.tabbtn.on { color: var(--color-accent); }
.tabbtn .dot { background: transparent; }
.tabbtn.on .dot { background: var(--color-accent); }

/* ---- 响应式：设计稿是桌面版，这里补窄屏 ---- */
@media (max-width: 960px) {
  .topnav { gap: 18px !important; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr !important; padding: 48px 0 64px !important; gap: 44px !important; }
  .stats { grid-template-columns: 1fr 1fr !important; }
  .feat { grid-template-columns: minmax(32px, 56px) minmax(0, 1fr) !important; gap: 12px 20px !important; }
  .feat > p { grid-column: 2; }
  .dl { grid-template-columns: 1fr !important; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr !important; gap: 28px !important; }
  .feat { grid-template-columns: 1fr !important; }
  .feat > p { grid-column: auto; }
  .topnav a { font-size: 13px; }
}

/* hover states from the design's style-hover attributes */
.hv1:hover{background:color-mix(in srgb,var(--color-accent) 12%,transparent)}
.hv2:hover{border-color:var(--color-neutral-500)}
.hv3:hover{color:var(--color-accent)}
