/* ============================================================
   Standalone landing page — styles mirrored from the docs homepage
   ============================================================ */

:root {
  --color-brand: #0052d9;
  --color-brand-foreground: #ffffff;
  --color-brand-secondary: #3b6cff;
  --color-brand-200: #b8d4ff;
  --color-landing-foreground: #1e3a5f;
  --color-landing-foreground-200: #5b7a9d;
  --color-fd-background: #ffffff;
  --color-fd-foreground: #0a0a0a;
  --color-fd-muted: #f4f4f5;
  --color-fd-muted-foreground: #71717a;
  --color-fd-border: #e4e4e7;
  --color-fd-card: #ffffff;
  --color-fd-secondary: #f4f4f5;
  --color-fd-secondary-foreground: #18181b;
  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial,
    sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  --max-w: 1400px;
  --header-h: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-landing-foreground);
  background-color: #f8faff;
  overscroll-behavior-y: none;
  font-feature-settings: 'rlig' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ---------- Page background ---------- */
.landing-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background-color: #f8faff;
  background-image:
    radial-gradient(ellipse 110% 70% at 8% -10%, rgba(59, 108, 255, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 90% 55% at 92% 4%, rgba(168, 85, 247, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse 100% 65% at 50% 105%, rgba(99, 102, 241, 0.18) 0%, transparent 58%),
    linear-gradient(165deg, #eef3ff 0%, #ffffff 28%, #ffffff 52%, #f7f2ff 78%, #ffffff 100%);
  background-attachment: scroll;
  background-repeat: no-repeat;
}

.landing-main {
  flex: 1;
  width: 100%;
  padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .landing-main {
    padding-bottom: 3rem;
  }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid rgba(228, 228, 231, 0.8);
  background: rgba(248, 250, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header-inner {
  margin: 0 auto;
  display: flex;
  height: 100%;
  max-width: var(--max-w);
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .site-header-inner {
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-fd-foreground);
}

.site-brand img {
  width: 1.25rem;
  height: 1.25rem;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-fd-foreground);
  transition: background-color 0.15s ease;
}

.nav-link:hover {
  background-color: rgba(0, 82, 217, 0.06);
}

.nav-link.is-active {
  color: var(--color-brand);
  background-color: rgba(0, 82, 217, 0.08);
}

.mobile-menu a.is-active {
  color: var(--color-brand);
  background-color: rgba(0, 82, 217, 0.08);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 60;
  display: none;
  width: 320px;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--color-fd-border);
  background: var(--color-fd-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 0.75rem;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  display: block;
}

.nav-dropdown-preview {
  margin: -0.75rem -0.75rem 0.75rem;
  overflow: hidden;
}

.nav-dropdown-preview img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, white 60%, transparent);
  mask-image: linear-gradient(to bottom, white 60%, transparent);
}

.nav-dropdown-title {
  margin: 0 0 0.25rem;
  font-size: 15px;
  font-weight: 500;
}

.nav-dropdown-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-fd-muted-foreground);
}

.mobile-menu-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
}

.site-header-actions {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .site-header-actions {
    display: inline-flex;
  }

  .mobile-menu-btn {
    margin-left: 0;
  }
}

.header-login {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-landing-foreground);
  border: 1px solid rgba(0, 82, 217, 0.25);
  background: rgba(255, 255, 255, 0.7);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.header-login:hover {
  background-color: rgba(0, 82, 217, 0.06);
  border-color: rgba(0, 82, 217, 0.4);
}

.header-register {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-brand-foreground);
  background: var(--color-brand);
  transition: background-color 0.15s ease;
}

.header-register:hover {
  background: #0048c8;
}

.mobile-menu-auth {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-fd-border);
}

.mobile-menu-auth .header-login,
.mobile-menu-auth .header-register {
  justify-content: center;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--color-fd-border);
  background: rgba(255, 255, 255, 0.98);
  padding: 0.75rem 1rem 1rem;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: block;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.mobile-menu a:hover {
  background-color: rgba(0, 82, 217, 0.06);
}

/* ---------- Layout helpers ---------- */
.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

.container {
  margin: 0 auto;
  width: 100%;
  max-width: var(--max-w);
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 2.5rem;
  }
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-landing-foreground);
  line-height: 1.3;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 1.875rem;
  }
}

.section-header-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .section-header-meta {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

.section-header-meta p {
  margin: 0;
  max-width: 48rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-landing-foreground-200);
}

@media (min-width: 768px) {
  .section-header-meta p {
    font-size: 1rem;
  }
}

.link-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-brand);
}

.link-brand:hover {
  text-decoration: underline;
}

.link-brand svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* ---------- Buttons ---------- */
.landing-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: var(--color-brand);
  color: var(--color-brand-foreground);
  transition: background-color 0.2s ease;
}

.landing-btn-primary:hover {
  background-color: #0048c8;
}

.landing-btn-primary.sm {
  padding: 0.625rem 1.25rem;
}

.landing-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(0, 82, 217, 0.25);
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--color-landing-foreground);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.landing-btn-outline:hover {
  background-color: rgba(0, 82, 217, 0.06);
  border-color: rgba(0, 82, 217, 0.4);
}

.landing-btn-outline svg,
.landing-btn-primary svg {
  width: 1rem;
  height: 1rem;
}

/* ---------- Cards ---------- */
[data-card] {
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-fd-border);
  border-radius: 0.75rem;
}

[data-card]:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ---------- Scroll reveal ---------- */
.scroll-reveal {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(2rem);
  opacity: 0;
}

.scroll-reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.scroll-reveal.is-visible[data-card]:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

/* ---------- Hero banner ---------- */
.hero-video-wrap {
  position: relative;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
}

.hero-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner-content {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  display: flex;
  min-height: 560px;
  max-width: var(--max-w);
  flex-direction: column;
  justify-content: center;
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  .hero-banner-content {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.hero-banner-title {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #1e3a5f;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-banner-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-banner-title {
    font-size: 3rem;
  }
}

.hero-banner-desc {
  margin: 0 0 2rem;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #5b7a9d;
}

@media (min-width: 768px) {
  .hero-banner-desc {
    font-size: 1rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-banner-content .landing-btn-primary {
  background-color: #0052d9;
  color: #ffffff;
}

.hero-banner-content .landing-btn-primary:hover {
  background-color: #0048c8;
}

.hero-banner-content .landing-btn-outline {
  border: 1px solid rgba(0, 82, 217, 0.25);
  background-color: rgba(255, 255, 255, 0.7);
  color: #1e3a5f;
}

.hero-banner-content .landing-btn-outline:hover {
  background-color: rgba(0, 82, 217, 0.06);
  border-color: rgba(0, 82, 217, 0.4);
}

.activity-list {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.activity-list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .activity-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
}

.activity-list > li {
  min-width: 260px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .activity-list > li {
    min-width: 0;
  }
}

.activity-list [data-card] {
  height: 100%;
}

.activity-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 1rem;
}

.activity-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.activity-card-head span:first-child {
  font-size: 0.875rem;
  font-weight: 600;
}

.tag-brand {
  border-radius: 9999px;
  background: rgba(0, 82, 217, 0.1);
  color: var(--color-brand);
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.activity-card p {
  margin: 0 0 0.75rem;
  flex: 1;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--color-fd-muted-foreground);
}

.activity-card .cta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-brand);
}

/* ---------- Quick experience ---------- */
.models-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .models-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.model-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 1.25rem;
}

.model-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.model-card-top img {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.model-card-meta {
  min-width: 0;
  flex: 1;
}

.model-card-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.model-card-name-row h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.tag-outline {
  border-radius: 9999px;
  border: 1px solid rgba(0, 82, 217, 0.3);
  color: var(--color-brand);
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
}

.model-card-meta p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-fd-muted-foreground);
}

.model-card .try-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-brand);
}

.model-card .try-link:hover {
  text-decoration: underline;
}

.model-card .try-link svg {
  width: 0.875rem;
  height: 0.875rem;
}

.capability-card .try-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-brand);
}

.capability-card .try-link:hover {
  text-decoration: underline;
}

/* ---------- Product intro ---------- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  overflow: hidden;
  background: #fff;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.product-card-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card-name img {
  width: 2rem;
  height: 2rem;
}

.product-intro-name {
  font-weight: 600;
  color: #1e3a5f;
}

.product-intro-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #5b7a9d;
}

.product-card-shot {
  border-top: 1px solid var(--color-fd-border);
  padding: 0.5rem 1rem 1rem;
}

.product-card-shot img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
}

/* ---------- Advantages ---------- */
.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.advantage-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.advantage-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(244, 244, 245, 0.3);
}

.advantage-card-media img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: contain;
}

.advantage-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
}

.advantage-card-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.advantage-card-body p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-fd-muted-foreground);
}

/* ---------- Model plan ---------- */
.gradient-text {
  background-image: linear-gradient(to right, var(--color-brand), #7053ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text-v {
  background-image: linear-gradient(to bottom, var(--color-brand), #7053ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.model-plan-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .model-plan-desktop {
    display: block;
  }
}

.model-plan-desktop-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

@media (min-width: 1280px) {
  .model-plan-desktop-inner {
    gap: 68px;
  }
}

.model-plan-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.model-plan-headline {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2rem;
  color: var(--color-landing-foreground);
}

@media (min-width: 768px) {
  .model-plan-headline {
    font-size: 28px;
  }
}

.model-plan-sub {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-landing-foreground-200);
}

.feature-item {
  position: relative;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.25rem 0;
  transition: color 0.3s;
}

.feature-item-title {
  color: var(--color-landing-foreground);
  font-size: 1rem;
  font-weight: 500;
  line-height: normal;
  transition: all 0.3s ease-out;
}

.feature-item.is-active .feature-item-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2rem;
}

.feature-item-desc {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.5s ease-in-out;
}

.feature-item.is-active .feature-item-desc {
  margin-top: 0.5rem;
  grid-template-rows: 1fr;
}

.feature-item-desc > div {
  min-height: 0;
  overflow: hidden;
}

.feature-item-desc p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-landing-foreground-200);
}

.feature-item-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-image: linear-gradient(to right, var(--color-brand), #7053ff);
  transition: width 0.4s ease-out;
}

.feature-item.is-active .feature-item-bar {
  width: 100%;
}

.model-plan-media {
  position: relative;
  width: 55%;
  flex-shrink: 0;
  align-self: flex-start;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 2px solid #fff;
  background: #fff;
}

@media (min-width: 1280px) {
  .model-plan-media {
    width: 810px;
  }
}

.model-plan-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.model-plan-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.model-plan-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.model-plan-mobile {
  display: block;
}

@media (min-width: 1024px) {
  .model-plan-mobile {
    display: none;
  }
}

.model-plan-mobile-headline {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 2rem;
  color: var(--color-landing-foreground);
}

.mobile-feature {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-feature-btn {
  display: flex;
  width: 100%;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  text-align: left;
}

.mobile-feature-btn span {
  color: var(--color-landing-foreground);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s;
}

.mobile-feature.is-open .mobile-feature-btn span {
  font-size: 1.25rem;
  font-weight: 600;
}

.mobile-feature-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--color-landing-foreground-200);
  transition: transform 0.3s;
}

.mobile-feature.is-open .mobile-feature-btn svg {
  transform: rotate(180deg);
}

.mobile-feature-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.5s ease-in-out;
}

.mobile-feature.is-open .mobile-feature-panel {
  grid-template-rows: 1fr;
}

.mobile-feature-panel > div {
  min-height: 0;
  overflow: hidden;
}

.mobile-feature-panel p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-landing-foreground-200);
}

.mobile-feature-panel img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

/* ---------- Media content sections ---------- */
.media-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .media-row {
    flex-direction: row;
    gap: 2.5rem;
  }

  .media-row.image-right {
    flex-direction: row-reverse;
  }
}

.media-row-image {
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.75rem;
}

@media (min-width: 1024px) {
  .media-row-image {
    width: 55%;
  }
}

.media-row-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.media-row-copy {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .media-row-copy {
    width: 45%;
  }
}

.media-row-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-landing-foreground);
}

.media-row-copy p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-landing-foreground-200);
}

@media (min-width: 768px) {
  .media-row-copy p {
    font-size: 1rem;
  }
}

/* ---------- Tabs ---------- */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab-list.underline {
  justify-content: center;
  border-bottom: 1px solid var(--color-fd-border);
  gap: 0;
}

.tab-btn {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-btn.pill {
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  background: var(--color-fd-secondary);
  color: var(--color-fd-secondary-foreground);
}

.tab-btn.pill:hover:not(.is-active) {
  background-color: rgba(0, 82, 217, 0.05);
}

.tab-btn.pill.is-active {
  background: var(--color-brand);
  color: var(--color-brand-foreground);
  border-color: var(--color-brand);
}

.tab-btn.underline {
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
  color: var(--color-landing-foreground-200);
}

.tab-btn.underline:hover:not(.is-active) {
  color: var(--color-landing-foreground);
}

.tab-btn.underline.is-active {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}

/* ---------- Capabilities ---------- */
.capabilities-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .capabilities-layout {
    flex-direction: row-reverse;
  }
}

.capabilities-copy {
  flex: 1;
}

.capabilities-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-landing-foreground);
}

.capabilities-copy > p {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-landing-foreground-200);
}

@media (min-width: 768px) {
  .capabilities-copy > p {
    font-size: 1rem;
  }
}

.cap-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cap-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cap-features {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1280px) {
  .cap-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cap-feature {
  border-radius: 0.75rem;
  border: 1px solid var(--color-fd-border);
  padding: 1rem;
}

.cap-feature h4 {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.cap-feature p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--color-fd-muted-foreground);
}

.capabilities-media {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .capabilities-media {
    width: 45%;
  }
}

.capabilities-media .media-frame {
  overflow: hidden;
  border-radius: 0.75rem;
}

.capabilities-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- Scenarios ---------- */
.scenarios-body {
  margin: 0 auto;
  max-width: 48rem;
}

.scenarios-body > p {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-landing-foreground-200);
}

@media (min-width: 768px) {
  .scenarios-body > p {
    font-size: 1rem;
  }
}

.scenarios-body .media-frame {
  overflow: hidden;
  border-radius: 0.75rem;
}

.scenarios-body img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-fd-border);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.footer-inner {
  margin: 0 auto;
  max-width: var(--max-w);
  padding: 3rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 3rem;
  }
}

.footer-grid h3 {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-fd-foreground);
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-grid a {
  font-size: 0.875rem;
  color: var(--color-fd-muted-foreground);
  transition: color 0.15s ease;
}

.footer-grid a:hover {
  color: var(--color-fd-foreground);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border-top: 1px solid var(--color-fd-border);
  padding-top: 2rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-fd-muted-foreground);
}

.footer-legal p {
  margin: 0;
}

.footer-beian {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .footer-beian {
    flex-direction: row;
    gap: 0.75rem;
  }
}

.footer-beian a:hover {
  color: var(--color-fd-foreground);
}

/* ---------- Icon sizing helpers ---------- */
.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Subpage hero / content ---------- */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 3.5rem 0 2rem;
  }
}

.page-hero-inner {
  max-width: 52rem;
}

.page-hero-split {
  position: relative;
}

.page-hero-copy {
  max-width: 36rem;
}

.page-hero-visual {
  position: absolute;
  top: -20px;
  right: 0;
  width: 470px;
}

.page-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.page-hero-title {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-landing-foreground);
}

@media (min-width: 768px) {
  .page-hero-title {
    font-size: 2.25rem;
  }
}

.page-hero-subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-landing-foreground-200);
}

@media (min-width: 768px) {
  .page-hero-subtitle {
    font-size: 1.125rem;
  }
}

.page-lead {
  margin: 0;
  max-width: 52rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-landing-foreground-200);
}

.page-lead p {
  margin: 0 0 0.75rem;
}

.page-lead p:last-child {
  margin-bottom: 0;
}

.section-lead {
  margin: -0.5rem auto 2rem;
  max-width: 48rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-landing-foreground-200);
}

@media (min-width: 768px) {
  .section-lead {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }
}

.capability-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
}

.capability-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.capability-card-head img {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.capability-card-head > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.capability-card-code {
  display: inline-flex;
  width: fit-content;
  border-radius: 0.375rem;
  background: rgba(0, 82, 217, 0.08);
  color: var(--color-brand);
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.capability-card h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-landing-foreground);
}

.capability-card p {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-fd-muted-foreground);
}

.capability-card-scene {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-landing-foreground-200);
}

.capability-card-scene strong {
  color: var(--color-landing-foreground);
  font-weight: 500;
}

.safety-list,
.bullet-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .safety-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .bullet-list.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .bullet-list.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bullet-list.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.safety-item,
.bullet-item {
  height: 100%;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
}

.safety-item h3,
.bullet-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-landing-foreground);
}

.safety-item p,
.bullet-item p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-fd-muted-foreground);
}

.scene-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
}

.scene-card-tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 9999px;
  border: 1px solid rgba(0, 82, 217, 0.25);
  color: var(--color-brand);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.scene-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-landing-foreground);
}

.scene-card-pitch {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-landing-foreground-200);
}

.scene-card dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scene-card dt {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-landing-foreground);
}

.scene-card dd {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-fd-muted-foreground);
}

.scene-card a {
  color: var(--color-brand);
  font-weight: 500;
}

.scene-card a:hover {
  text-decoration: underline;
}

.scenes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .scenes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--color-fd-muted-foreground);
  text-align: center;
}

.page-note a {
  color: var(--color-brand);
  font-weight: 500;
}

.page-note a:hover {
  text-decoration: underline;
}

#ai-detect,
#content-safety,
#models,
#llm-scenes,
#safety-scenes,
#deepseek-v4-pro,
#doubao-seed-2,
#qwen37-max,
#kimi-k26,
#minimax-m3,
#glm-52 {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.contact-table {
  width: 100%;
  max-width: 40rem;
  margin: -0.5rem auto 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.contact-table th,
.contact-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-fd-border);
  text-align: left;
  vertical-align: top;
}

.contact-table th {
  width: 7rem;
  background: rgba(0, 82, 217, 0.04);
  font-weight: 600;
  color: var(--color-landing-foreground);
}

.contact-table td {
  color: var(--color-landing-foreground-200);
}

/* ---------- Register form ---------- */
.register-page {
  display: flex;
  justify-content: center;
  padding: 2.5rem 1rem 3rem;
}

.register-card {
  width: 100%;
  max-width: 450px;
  background: #fff;
  border: 1px solid var(--color-fd-border);
  border-radius: 0.75rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
}

@media (min-width: 480px) {
  .register-card {
    padding: 2rem;
  }
}

.register-card h1 {
  margin: 0 0 1rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-fd-foreground);
}

.register-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.5rem;
  background: rgba(0, 82, 217, 0.08);
  color: var(--color-brand);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.register-alert svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.register-field label,
.register-field .field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fd-foreground);
}

.register-field .required {
  color: #e11d48;
  margin-left: 0.125rem;
}

.register-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.register-radios label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
}

.register-radios input {
  accent-color: var(--color-brand);
}

.register-field input[type='text'],
.register-field input[type='email'],
.register-field textarea {
  width: 100%;
  border: 1px solid var(--color-fd-border);
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--color-fd-foreground);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.register-field textarea {
  min-height: 6rem;
  resize: vertical;
}

.register-field input:focus,
.register-field textarea:focus {
  border-color: rgba(0, 82, 217, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.12);
}

.register-field.has-error input,
.register-field.has-error textarea {
  border-color: #e11d48;
}

.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #e11d48;
}

.register-field.has-error .field-error {
  display: block;
}

[data-agree-error]:not([hidden]) {
  display: block;
  margin-top: -0.35rem;
  margin-bottom: 0.25rem;
}

.register-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-landing-foreground-200);
}

.register-agree input {
  margin-top: 0.2rem;
  accent-color: var(--color-brand);
}

.register-agree a {
  color: var(--color-brand);
}

.register-agree a:hover {
  text-decoration: underline;
}

.register-agree.has-error {
  color: #e11d48;
}

.register-submit {
  width: 100%;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background: var(--color-brand);
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.register-submit:hover:not(:disabled) {
  background: #0048c8;
}

.register-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.register-back {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-fd-foreground);
}

.register-back:hover {
  color: var(--color-brand);
}

.register-success {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.register-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.register-success h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-fd-foreground);
}

.register-success p {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-landing-foreground-200);
  text-align: left;
}

.register-reset {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.75rem;
  color: var(--color-fd-muted-foreground);
}

.register-reset:hover {
  color: var(--color-brand);
}

/* ---------- Legal document pages ---------- */
.legal-page {
  padding: 2rem 0 3rem;
}

.legal-doc {
  max-width: 48rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-fd-border);
  border-radius: 0.75rem;
  padding: 1.75rem 1.25rem;
}

@media (min-width: 768px) {
  .legal-doc {
    padding: 2.5rem 2.75rem;
  }
}

.legal-doc h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-fd-foreground);
}

.legal-effective {
  margin: 0 0 1.75rem;
  font-size: 0.8125rem;
  color: var(--color-fd-muted-foreground);
}

.legal-doc h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-landing-foreground);
}

.legal-doc p,
.legal-doc li {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-landing-foreground-200);
}

.legal-doc ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 0.75rem;
}
