:root {
  --bg: #f3f9ff;
  --text: #071936;
  --muted: #53647d;
  --blue: #0a8fe8;
  --blue-2: #1664ff;
  --deep: #0e2b52;
  --border: rgba(15, 35, 65, 0.12);
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 26px 80px rgba(22, 100, 255, 0.13);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1500px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 32%, rgba(91, 169, 255, 0.18) 0 5%, transparent 12%),
    radial-gradient(circle at 88% 44%, rgba(87, 172, 255, 0.18) 0 6%, transparent 14%),
    radial-gradient(circle at 84% 0%, rgba(36, 139, 255, 0.22), transparent 34%),
    linear-gradient(120deg, #ffffff 0%, #f4faff 38%, #d9ecff 100%);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42vh;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0, 144, 255, 0.22), transparent 56%),
    repeating-radial-gradient(ellipse at center, rgba(65, 157, 255, 0.22) 0 2px, transparent 2px 18px);
  mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  opacity: 0.45;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

/* Header */
.header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand img {
  height: 115px;
  width: auto;
  object-fit: contain;
  margin-right: -18px;
}

.logo-text {
  font-family: 'Montserrat', Inter, sans-serif;
  font-weight: 700;
  font-size: 46px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo-text .token {
  color: #0f2b50;
}

.logo-text .sea {
  color: #1688e8;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  color: #1d2c44;
  backdrop-filter: blur(14px);
  font: inherit;
  cursor: pointer;
}

.btn {
  border: 0;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #0759d9);
  color: #fff;
  box-shadow: 0 18px 42px rgba(14, 113, 220, 0.3);
}

.btn-secondary {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--border);
  color: #13233d;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, 0.92fr);
  align-items: center;
  gap: 54px;
  padding: 50px 0 56px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(14, 143, 232, 0.24);
  background: rgba(255, 255, 255, 0.68);
  color: #075fb5;
  font-weight: 800;
  box-shadow: 0 8px 25px rgba(14, 143, 232, 0.08);
  backdrop-filter: blur(18px);
  font-size: 14px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #20c365;
  box-shadow: 0 0 0 5px rgba(32, 195, 101, 0.12);
  flex-shrink: 0;
}

.hero-copy h1 {
  margin: 34px 0 26px;
  max-width: 780px;
  font-size: clamp(48px, 5.9vw, 86px);
  line-height: 1.08;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.hero-copy h1 .gradient {
  background: linear-gradient(90deg, #0889cf, #1189f6 40%, #265dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 23px;
  line-height: 1.55;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 22px;
  margin-top: 46px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #11213b;
  font-weight: 900;
}

.trust-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #0b86da;
  background: rgba(226, 244, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  font-size: 24px;
}

.trust-item small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
}

/* Code Card */
.code-card {
  border: 1px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.72);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 560px;
  overflow: hidden;
}

.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.language-select {
  height: 42px;
  min-width: 170px;
  border: 1px solid rgba(15,35,65,.09);
  background: rgba(255,255,255,.78);
  border-radius: 14px;
  padding: 0 16px;
  font-weight: 700;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23636c7d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #61718a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.copy-button:hover { color: var(--text); }

.code-panels {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15,35,65,.1);
  background: rgba(248, 251, 255, 0.82);
}

.code-panel,
.code-panel pre {
  height: 100%;
}

.code-panel {
  display: none;
}

.code-panel.active {
  display: block;
}

.code-card pre {
  margin: 0;
  padding: 24px;
  overflow: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14.5px;
  line-height: 1.75;
  color: #101828;
  background: transparent;
  border: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.code-card pre::-webkit-scrollbar { display: none; }

.code-card code {
  display: block;
  min-height: 100%;
  font-size: 14.5px;
  line-height: 1.75;
  font-family: inherit;
}

/* Syntax highlighting overrides for light code bg */
.code-card pre code.hljs {
  background: transparent !important;
  padding: 0 !important;
  color: #101828;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-title.function_ {
  color: #1664ff !important;
  font-weight: 800;
}

.hljs-string,
.hljs-title,
.hljs-section,
.hljs-attribute {
  color: #0c9f49 !important;
  font-weight: 700;
}

.hljs-number,
.hljs-literal,
.hljs-symbol {
  color: #ea580c !important;
  font-weight: 800;
}

.hljs-comment {
  color: #8896aa !important;
}

.code-card code::selection {
  background: rgba(10, 143, 232, 0.2);
}

/* Note */
.note {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #0765bd;
  font-weight: 800;
  font-size: 13px;
}

.ok {
  width: 22px;
  height: 22px;
  border: 2px solid #21b86b;
  color: #21b86b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

/* Features */
.features {
  margin: 48px auto 42px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.feature {
  padding: 46px 58px;
  min-height: 250px;
}

.feature + .feature {
  border-left: 1px solid rgba(15,35,65,.12);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #e9f6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature h3 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.feature p {
  margin: 0;
  color: #44556f;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
}

/* Models */
.models {
  padding: 0 0 70px;
  text-align: center;
}

.models h2 {
  margin: 0 0 24px;
  font-size: 30px;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.model-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(22, 100, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24,168,255,0.28);
  box-shadow: 0 12px 32px rgba(18,152,237,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
}

.model-card img {
  width: 80%;
  height: 70%;
  object-fit: contain;
  border-radius: 12px;
  opacity: 0.62;
  filter: grayscale(1) brightness(0.82) contrast(0.9);
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}

.model-card:hover img {
  opacity: 1;
  filter: grayscale(0.15) brightness(1.12) contrast(1.05);
  transform: scale(1.05);
}

/* Stats Panel */
.stats-panel {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 24px;
  min-height: 122px;
  border-radius: 20px;
  margin-bottom: 52px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  padding: 24px 32px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 0;
  justify-content: center;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #0b86da;
  background: rgba(226, 244, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  flex-shrink: 0;
}

.stat-item > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-item strong,
.stat-item span {
  display: block;
}

.stat-item strong {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--text);
}

.stat-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 54px;
  padding: 50px 0 48px;
  border-top: 1px solid var(--border);
  align-items: start;
}

.footer-brand p,
.footer-cta p,
.copyright {
  color: var(--muted);
}

.footer-brand p {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
}

.footer-brand .brand img {
  height: 42px;
}

.footer-brand .copyright {
  margin-top: 24px;
  font-size: 14px;
}

.footer-cta {
  justify-self: end;
}

.footer-cta p {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 500;
}

.footer-cta .btn {
  min-height: 56px;
  padding-inline: 26px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 24px;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 32px;
  }
  .code-card {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .model-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature + .feature {
    border-left: 0;
    border-top: 1px solid rgba(15,35,65,.12);
  }
  .stats-panel {
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    padding: 32px;
  }
  .stat-item {
    flex: 1 1 40%;
    min-width: 160px;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 28px, var(--max-width));
  }
  .header {
    height: auto;
    padding: 16px 0;
    gap: 16px;
    flex-wrap: wrap;
  }
  .hero-copy h1 {
    font-size: 42px;
  }
  .subtitle {
    font-size: 18px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .trust-row {
    gap: 16px;
  }
  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-panel {
    flex-direction: column;
    gap: 24px;
  }
  .stat-item {
    flex: 1 1 auto;
    width: 100%;
  }
  .feature {
    padding: 34px 28px;
  }
  .feature h3 {
    font-size: 22px;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-cta {
    justify-self: start;
  }
  .footer-cta .btn {
    width: 100%;
  }
}
