@charset "UTF-8";

:root {
  color-scheme: light;
  --page: #f4f6f3;
  --surface: #ffffff;
  --surface-soft: #e8f1e9;
  --text: #1e2b23;
  --muted: #46554b;
  --subtle: #5d6b62;
  --border: #d8e0d9;
  --accent: #28704f;
  --accent-hover: #1e5a3e;
  --font: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body[data-theme="ocean"] {
  --page: #f2f6f9;
  --surface: #ffffff;
  --surface-soft: #e7f0f6;
  --text: #202c36;
  --muted: #455767;
  --subtle: #5b6b78;
  --border: #d5e0e8;
  --accent: #24688c;
  --accent-hover: #1c5372;
}

body[data-theme="warm"] {
  --page: #f8f4ee;
  --surface: #fffefa;
  --surface-soft: #f4eade;
  --text: #33291f;
  --muted: #594d42;
  --subtle: #716356;
  --border: #e6dace;
  --accent: #a4582c;
  --accent-hover: #874322;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 15px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 30; padding: 10px 16px; background: var(--accent); color: white; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.6px; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 4px; }
.brand-name { margin-left: 4px; font-size: 17px; letter-spacing: .3px; }
.brand small { display: block; margin-top: 5px; color: var(--subtle); font-size: 7px; font-weight: 500; letter-spacing: 1.7px; }
nav { display: flex; align-items: center; gap: 25px; min-height: 72px; }
.nav-link { position: relative; display: flex; align-items: center; height: 72px; color: var(--muted); font-size: 13px; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--accent); content: ""; }
.theme-picker { display: flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 11px; }
.theme-picker select { max-width: 94px; padding: 6px 22px 6px 8px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); color: var(--text); font-size: 11px; }
.header-cta { display: flex; align-items: center; gap: 14px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 3px; font-size: 12px; }
.header-cta:hover { background: var(--surface-soft); }
.header-cta span { color: var(--accent); font-size: 17px; }
.menu-toggle { width: 40px; height: 40px; padding: 9px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); }
.menu-toggle span { display: block; height: 1px; margin: 6px 0; background: var(--text); }

.hero { display: grid; grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 48px; }
.hero-copy { max-width: 700px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1.2px; }
.status-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
h1 { margin-top: 17px; font-size: clamp(36px, 4.2vw, 54px); font-weight: 700; letter-spacing: -1.4px; line-height: 1.3; }
h1 > span { color: var(--accent); }
.hero-description { margin-top: 15px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 23px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 14px; padding: 9px 15px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; font-weight: 600; }
.button span { font-size: 17px; line-height: 1; }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-hover); }
.button-outline { border-color: var(--border); background: var(--surface); color: var(--text); }
.button-outline:hover { background: var(--surface-soft); }
.text-link { display: flex; gap: 9px; color: var(--muted); font-size: 12px; }
.text-link:hover { color: var(--accent); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 25px; color: var(--muted); font-size: 11px; }
.hero-notes span { display: flex; align-items: center; gap: 6px; }
.hero-notes i { color: var(--accent); font-size: 13px; font-style: normal; }
.brand-strip { border-block: 1px solid var(--border); background: var(--surface); }
.brand-strip .container { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 11px; }
.brand-strip .container > span:last-child { display: flex; align-items: center; gap: 16px; color: var(--subtle); font-size: 8px; letter-spacing: 1px; }
.brand-strip i { color: var(--accent); font-size: 10px; font-style: normal; }

.projects { padding-top: 48px; padding-bottom: 48px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-kicker { margin-bottom: 6px; color: var(--muted); font-size: 9px; letter-spacing: 1.4px; }
h2 { font-size: 28px; font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.heading-dot { margin-left: 3px; color: var(--accent); }
.section-heading p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.collection-label { display: flex; align-items: center; gap: 9px; padding: 5px 7px 5px 10px; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.collection-label > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 2px; background: var(--surface-soft); color: var(--text); font-size: 10px; }
.project-list { display: grid; gap: 16px; }
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.project-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 36%, var(--border)); box-shadow: 0 10px 24px color-mix(in srgb, var(--text) 10%, transparent); }
.project-card-heading { display: flex; min-height: 78px; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-soft); }
.project-symbol-wrap { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 5px; background: var(--surface); color: var(--accent); transition: transform .22s ease, background .22s ease; }
.project-card:hover .project-symbol-wrap { transform: rotate(-4deg) scale(1.05); background: var(--surface); }
.project-symbol { display: block; width: 28px; height: 28px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.8; }
.project-heading-copy { min-width: 0; }
.cover-index { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .8px; }
.project-heading-copy h3 { color: var(--text); font-size: 22px; font-weight: 750; line-height: 1.3; }
.project-cover-gold .project-symbol-wrap { color: #8b6926; }
.project-content { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 17px 18px 15px; }
.project-id { color: var(--subtle); font-size: 9px; letter-spacing: .8px; }
.project-card-heading .project-id { margin-left: auto; align-self: flex-start; padding-top: 5px; white-space: nowrap; }
.project-description { color: var(--muted); font-size: 13px; line-height: 1.7; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.project-tags > span { padding-right: 8px; border-right: 1px solid var(--border); color: var(--muted); font-size: 11px; line-height: 1.3; }
.project-tags > span:last-child { border: 0; }
.pricing-panel { margin-top: 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-left: 4px solid var(--accent); border-radius: 3px; background: var(--surface-soft); }
.pricing-heading { display: inline; flex: 0 0 auto; margin: 0; color: var(--accent); font-size: 13px; font-weight: 800; }
.pricing-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.pricing-line strong { color: var(--accent); font-size: 16px; font-weight: 800; }
.pricing-note { display: block; margin-top: 8px; padding: 6px 9px; border-radius: 2px; background: #fff0e5; color: #8c421d; font-size: 12px; font-weight: 600; line-height: 1.5; }
.pricing-note strong { color: #a43f13; font-size: 13px; font-weight: 800; }
.demo-credentials { margin-top: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); }
.credentials-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: var(--text); font-size: 11px; font-weight: 600; }
.credentials-title > span:first-child { display: flex; align-items: center; gap: 6px; }
.credentials-title svg { width: 14px; height: 14px; color: var(--accent); }
.public-label { color: var(--muted); font-size: 10px; font-weight: 400; }
.credentials-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.credential-field { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) 26px; align-items: center; gap: 1px 4px; padding: 5px 7px; border: 1px solid var(--border); border-radius: 2px; background: var(--page); }
.field-label { grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1.4; }
.credential-field code { grid-row: 2; overflow-wrap: anywhere; color: var(--text); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 600; user-select: all; }
.copy-button { display: flex; width: 26px; height: 26px; grid-column: 2; grid-row: 2; align-items: center; justify-content: center; padding: 4px; border: 0; border-radius: 2px; background: transparent; color: var(--muted); }
.copy-button:hover { background: var(--surface-soft); color: var(--accent); }
.copy-button svg { width: 15px; height: 15px; }
.copy-button.copied { color: var(--accent); }
.project-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 13px; }
.project-actions .button { min-height: 39px; justify-content: space-between; padding: 7px 10px; font-size: 12px; }
.external-note { margin-top: 7px; color: var(--muted); font-size: 10px; text-align: center; }
.external-note span { margin-right: 4px; }
.collection-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.collection-footer > span:last-child { font-size: 9px; letter-spacing: .8px; }

.guide-section { padding: 38px 0 42px; border-block: 1px solid var(--border); background: var(--surface); }
.guide-section h2 { font-size: 25px; }
.section-heading .guide-intro { color: var(--muted); font-size: 12px; }
.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0 0; padding: 0; list-style: none; }
.guide-list li { display: flex; align-items: flex-start; gap: 12px; padding-right: 14px; border-right: 1px solid var(--border); }
.guide-list li:last-child { padding-right: 0; border: 0; }
.step-number { color: var(--accent); font: 600 12px/2 Consolas, monospace; }
.guide-list h3 { margin-bottom: 4px; font-size: 14px; font-weight: 650; }
.guide-list p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.step-arrow { margin-left: auto; color: var(--accent); font-size: 16px; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 38px; }
.closing h2 { font-size: 23px; }
.closing .section-kicker { font-size: 9px; }
.round-link { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--accent); font-size: 22px; }
.round-link:hover { background: var(--surface-soft); }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { font-size: 17px; font-weight: 700; letter-spacing: -.4px; }
.footer-brand span { margin-left: 5px; font-size: 12px; font-weight: 500; }
.footer-inner p { color: var(--muted); font-size: 10px; }
.page-version { display: inline-block; margin-left: 8px; color: var(--subtle); font-size: 9px; }
.back-top { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.back-top span { color: var(--accent); font-size: 15px; }
.toast { position: fixed; z-index: 30; bottom: 22px; left: 50%; max-width: calc(100% - 32px); padding: 10px 16px; transform: translate(-50%, 12px); border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); font-size: 12px; text-align: center; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s; pointer-events: none; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.contact-widget { position: fixed; z-index: 15; right: 18px; bottom: 18px; display: flex; width: 210px; flex-direction: column; align-items: stretch; gap: 7px; }
.contact-panel { padding: 12px 12px 7px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.contact-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.telegram-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 4px; background: var(--surface-soft); color: var(--accent); }
.telegram-icon svg { width: 18px; height: 18px; }
.contact-heading strong { display: block; font-size: 11px; font-weight: 650; line-height: 1.5; }
.contact-heading div > span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; letter-spacing: .8px; }
.contact-item { display: flex; align-items: center; gap: 9px; padding: 7px 4px; border-radius: 3px; }
.contact-item:hover { background: var(--page); }
.contact-item-icon { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border); border-radius: 3px; color: var(--accent); font: 10px Consolas, monospace; }
.contact-item small { display: block; color: var(--muted); font-size: 9px; }
.contact-item strong { display: block; color: var(--text); font-size: 11px; font-weight: 600; line-height: 1.6; }
.contact-item-arrow { margin-left: auto; color: var(--accent); font-size: 14px; }
.contact-channel { margin-top: 4px; padding-top: 9px; border-top: 1px solid var(--border); }
.contact-toggle { display: flex; min-height: 38px; align-items: center; justify-content: center; align-self: flex-end; gap: 8px; padding: 7px 12px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: white; font-size: 11px; }
.contact-toggle:hover { background: var(--accent-hover); }
.contact-toggle svg { width: 15px; height: 15px; }
.contact-toggle-arrow { font-size: 14px; line-height: 1; }
.contact-toggle[aria-expanded="false"] .contact-toggle-arrow { transform: rotate(180deg); }

@media (max-width: 900px) {
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 14px; }
  nav { gap: 16px; }
  .header-cta { display: none; }
  .project-content { padding: 15px; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 76px; }
  .header-inner { min-height: 66px; flex-wrap: wrap; gap: 0; }
  .brand { font-size: 20px; }
  .brand-name { font-size: 15px; }
  .brand img { width: 34px; height: 34px; }
  .brand small { font-size: 6px; letter-spacing: 1.2px; }
  .menu-toggle:not([hidden]) { display: block; }
  .header-inner nav { display: flex; width: 100%; min-height: auto; flex-wrap: wrap; justify-content: space-around; gap: 0; padding: 5px 0 11px; }
  .js-ready .header-inner nav:not(.open) { display: none; }
  .nav-link { height: 38px; padding: 0 10px; font-size: 12px; }
  .nav-link.active::after { bottom: 0; }
  .theme-picker { width: 100%; justify-content: center; padding-top: 6px; }
  .header-inner:has(nav.open) { padding-top: 9px; }
  .hero { padding-top: 34px; padding-bottom: 30px; }
  h1 { font-size: clamp(34px, 8vw, 44px); }
  .hero-description { font-size: 13px; }
  .hero-notes { gap: 13px; font-size: 10px; }
  .brand-strip .container { min-height: 48px; }
  .brand-strip .container > span:last-child { gap: 7px; font-size: 7px; }
  .projects { padding-top: 34px; padding-bottom: 32px; }
  .section-heading { gap: 10px; }
  h2 { font-size: 24px; }
  .section-heading p { font-size: 12px; }
  .project-grid { grid-template-columns: 1fr; gap: 13px; }
  .project-card-heading { min-height: 70px; gap: 9px; padding: 10px 12px; }
  .project-symbol-wrap { width: 38px; height: 38px; }
  .project-symbol { width: 25px; height: 25px; }
  .project-heading-copy h3 { font-size: 19px; }
  .project-card-heading .project-id { font-size: 8px; }
  .project-content { padding: 14px; }
  .project-content h3 { font-size: 20px; }
  .project-description { font-size: 13px; }
  .pricing-line { gap: 3px 9px; font-size: 10px; }
  .credentials-fields { gap: 6px; }
  .project-actions { gap: 7px; }
  .project-actions .button { min-height: 40px; font-size: 11px; }
  .collection-footer { font-size: 10px; }
  .collection-footer > span:last-child { font-size: 7px; }
  .guide-section { padding-block: 30px; }
  .guide-list { grid-template-columns: 1fr; gap: 0; margin-top: 12px; }
  .guide-list li { gap: 14px; padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .guide-list li:last-child { padding-bottom: 0; border: 0; }
  .guide-intro { display: none; }
  .step-arrow { display: block; }
  .closing { padding-block: 28px; }
  .closing h2 { font-size: 20px; }
  .footer-inner { position: relative; min-height: 94px; flex-wrap: wrap; gap: 7px; padding-block: 16px 57px; }
  .footer-inner p { order: 3; width: 100%; font-size: 9px; }
  .page-version { margin-left: 4px; font-size: 8px; }
  .back-top { font-size: 10px; }
  .contact-widget { right: 10px; bottom: 10px; width: 190px; }
  .contact-panel { padding: 10px; }
  .contact-item { padding-block: 5px; }
  .contact-widget:has(.contact-panel:not([hidden])) ~ .toast { bottom: 275px; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 32px); }
  .credentials-fields { grid-template-columns: 1fr; }
  .collection-footer > span:last-child { display: none; }
  .project-tags { gap: 6px; }
  .project-tags > span { padding-right: 6px; font-size: 10px; }
  .project-card-heading .project-id { display: none; }
}

.motion-ready .project-card:not(.is-visible) { transform: translateY(12px); opacity: 0; }
.motion-ready .project-card.is-visible { transform: translateY(0); opacity: 1; transition-delay: var(--enter-delay, 0ms); }
.motion-ready .project-card.is-visible:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .motion-ready .project-card { transform: none !important; opacity: 1 !important; }
}
