/* Xiao Product Page */

:root {
  --bg-base: #0a0a0a;
  --bg-surface: #111111;
  --bg-elevated: #181818;
  --bg-card: #141414;
  --border: #252525;
  --text-primary: #f0f0f0;
  --text-secondary: #999999;
  --text-muted: #666666;
  --accent: #ff5722;
  --accent-hover: #ff7043;
  --accent-dim: rgba(255, 87, 34, 0.12);
  --accent-glow: rgba(255, 87, 34, 0.25);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 87, 34, 0.18) 0%, transparent 60%);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --radius: 8px;
  --radius-lg: 14px;
  --header-height: 64px;
  --max-width: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}

.header-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 40px;
}

.header-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.header-nav a:hover { color: var(--text-primary); }

.header-spacer { flex: 1; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: #444;
  background: var(--bg-elevated);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 28px var(--accent-glow);
}

.btn-lg {
  padding: 13px 28px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border-bottom: none; }

/* ── Hero ── */
.hero {
  padding: calc(var(--header-height) + 80px) 0 100px;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 40px rgba(255, 87, 34, 0.3), 0 0 0 1px rgba(255, 87, 34, 0.15);
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 87, 34, 0.25);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg { width: 15px; height: 15px; color: var(--accent); }

/* ── Sections ── */
section { padding: 80px 0; }

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.65;
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(255, 87, 34, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Two-column showcase ── */
.showcase {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.showcase-block h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.showcase-block p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.65;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.showcase-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
  width: 16px;
  height: 16px;
}

.showcase-visual {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.protocol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.protocol-tag {
  padding: 6px 12px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ── Audience ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.audience-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.audience-card .audience-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--accent);
}

.audience-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.audience-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Workflow ── */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.workflow-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 16.67%;
  right: 16.67%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 87, 34, 0.2));
  z-index: 0;
}

.workflow-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  background: var(--bg-elevated);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 16px;
}

.workflow-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.workflow-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── CTA ── */
.cta {
  text-align: center;
  padding: 100px 0;
  background: var(--gradient-hero);
  border-top: 1px solid var(--border);
}

.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-brand img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── Legal pages ── */
.legal-page {
  padding: calc(var(--header-height) + 48px) 0 80px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.legal-content .lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-content ul {
  color: var(--text-secondary);
  margin: 0 0 16px 1.25em;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content li strong {
  color: var(--text-primary);
}

.legal-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-primary);
}

.legal-footer-note {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .workflow-steps { grid-template-columns: 1fr; gap: 32px; }
  .workflow-steps::before { display: none; }
}

@media (max-width: 640px) {
  .header-nav, .header-actions .btn-ghost { display: none; }
  .menu-toggle { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding-bottom: 60px; }
}
