:root {
  --bg-page: #080c14;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.25);
  --success: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-hover: 0 20px 40px -15px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.4);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.8);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.15);
  --accent: #0891b2;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --shadow-card: 0 10px 25px -8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 35px -10px rgba(79, 70, 229, 0.15), 0 0 0 1px var(--primary);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Background Atmosphere */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-orb-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
  filter: blur(100px);
  animation: auroraFloat 20s infinite alternate ease-in-out;
}

.aurora-orb-2 {
  position: absolute;
  top: 40%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
  filter: blur(90px);
  animation: auroraFloat 16s infinite alternate-reverse ease-in-out;
}

@keyframes auroraFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.1); }
  100% { transform: translate(-40px, 30px) scale(0.95); }
}

/* Header */
header.portal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--text-main) 60%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-slogan {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: -2px;
}

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

.theme-btn,
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.theme-btn:hover,
.theme-toggle-btn:hover {
  background: var(--border-strong);
  transform: rotate(15deg);
}

[data-theme="dark"] .sun-icon {
  display: block;
}
[data-theme="dark"] .moon-icon {
  display: none;
}
[data-theme="light"] .sun-icon {
  display: none;
}
[data-theme="light"] .moon-icon {
  display: block;
}

/* Language Dropdown Selector */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.lang-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.lang-btn:hover,
.lang-dropdown-wrapper.open .lang-btn {
  background: var(--border-strong);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.lang-globe-icon {
  display: flex;
  align-items: center;
  color: var(--primary);
}

.lang-chevron {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.lang-dropdown-wrapper.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu,
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 6px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: 380px;
  overflow-y: auto;
}

.lang-dropdown-wrapper.open .lang-menu,
.lang-dropdown-wrapper.open .lang-dropdown-menu {
  display: flex;
  animation: langMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes langMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}

.lang-item:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
}

.lang-item.active {
  background: rgba(99, 102, 241, 0.18);
  color: var(--primary);
  font-weight: 600;
}

.lang-item-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-flag {
  font-size: 15px;
  line-height: 1;
}

.lang-name {
  font-size: 13px;
}

.lang-check-icon {
  width: 14px;
  height: 14px;
  opacity: 0;
  color: var(--primary);
  transition: opacity 0.15s ease;
}

.lang-item.active .lang-check-icon {
  opacity: 1;
}

/* Main Content */
main.portal-main {
  position: relative;
  z-index: 10;
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

/* Hero */
.hero-section {
  text-align: center;
  margin-bottom: 48px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 24px;
}

/* Offline Privacy Banner */
.offline-privacy-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.offline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  display: inline-block;
}

/* Recent Tools Quick Access Bar */
.recent-tools-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.recent-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-dim);
}

.recent-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.recent-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.recent-pill:hover {
  background: var(--border-strong);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Search & Filter Bar */
.filter-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.search-box-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 50px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  font-size: 1rem;
  box-shadow: var(--shadow-card);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-input::placeholder {
  color: var(--text-dim);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

/* Tool Card */
.tool-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(99, 102, 241, 0.4);
}

.tool-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tool-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: transform 0.28s ease;
}

.tool-avatar img,
.tool-avatar svg {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.tool-card:hover .tool-avatar {
  transform: scale(1.08) rotate(3deg);
}

.tool-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tool-badge.p2p {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.25);
}

.tool-badge.wasm {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent);
  border-color: rgba(6, 182, 212, 0.28);
}

.tool-badge.secure {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.28);
}

.card-body {
  flex: 1;
  margin-bottom: 22px;
}

.tool-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.category-tag {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

.launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s ease;
}

.tool-card:hover .launch-btn {
  gap: 9px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.empty-state.show {
  display: block;
}

.empty-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  color: var(--text-dim);
}

.empty-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Platform Features / Pitch */
.platform-pitch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.pitch-item {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .pitch-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.pitch-item:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 28px -6px rgba(99, 102, 241, 0.15);
}

.pitch-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
  transition: transform 0.25s ease;
}

.pitch-item:hover .pitch-icon {
  transform: scale(1.06);
}

.pitch-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.pitch-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Footer */
footer.portal-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-logo {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.footer-brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}

.footer-links-group {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-nav a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* Legal & Content Document Pages */
.legal-page-container {
  max-width: 920px;
  margin: 36px auto 80px;
  padding: 0 20px;
  width: 100%;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.legal-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-breadcrumb a:hover {
  color: var(--primary);
}

.legal-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.legal-tab-item {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.legal-tab-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.legal-tab-item.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.legal-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.legal-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-title {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 14px;
}

.legal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.legal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 14px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 22px 0 10px;
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.legal-content ul, .legal-content ol {
  color: var(--text-muted);
  margin: 12px 0 20px 24px;
  line-height: 1.75;
  font-size: 0.95rem;
}

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

.legal-highlight {
  background: rgba(99, 102, 241, 0.06);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 24px 0;
}

.legal-highlight strong {
  color: var(--text-main);
}

.legal-grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.legal-feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, border-color 0.2s;
}

.legal-feature-box:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.legal-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-feature-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
}

.legal-feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Contact Specific Styles */
.contact-hero-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.contact-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  padding: 12px 26px;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary-action,
a.btn-primary-action,
.legal-content a.btn-primary-action {
  background: var(--primary);
  color: #ffffff !important;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-primary-action svg,
a.btn-primary-action svg {
  color: #ffffff;
  stroke: currentColor;
}

.btn-primary-action:hover,
a.btn-primary-action:hover,
.legal-content a.btn-primary-action:hover {
  background: var(--primary-hover);
  color: #ffffff !important;
  box-shadow: 0 4px 16px var(--primary-glow);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.btn-secondary-action,
a.btn-secondary-action,
.legal-content a.btn-secondary-action {
  background: var(--bg-surface);
  color: var(--text-main) !important;
  border: 1px solid var(--border-strong);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-secondary-action:hover,
a.btn-secondary-action:hover,
.legal-content a.btn-secondary-action:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--primary);
  color: var(--primary) !important;
  text-decoration: none !important;
}

.contact-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.contact-cat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.contact-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-cat-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.contact-cat-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Toast Message */
.toast-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10b981;
  color: #fff;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999999;
  pointer-events: none;
  max-width: 90vw;
  box-sizing: border-box;
}

.toast-toast svg {
  flex-shrink: 0;
}

.toast-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .platform-pitch {
    grid-template-columns: 1fr;
  }
  .footer-container {
    gap: 36px;
  }
  .footer-links-group {
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
    word-break: keep-all;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
    padding: 0 4px;
  }
  .filter-container {
    gap: 14px;
  }
  .search-input {
    height: 46px;
    font-size: 0.9rem;
    padding: 0 16px 0 44px;
  }
  .search-icon {
    left: 14px;
    width: 18px;
    height: 18px;
  }
  .category-tabs {
    gap: 6px;
  }
  .tab-btn {
    padding: 6px 14px;
    font-size: 0.8125rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .header-inner {
    padding: 0 8px;
  }
  .lang-btn {
    padding: 0 10px;
    font-size: 12px;
  }
  .footer-container {
    flex-direction: column;
    gap: 32px;
  }
  .footer-links-group {
    width: 100%;
    justify-content: space-between;
    gap: 24px;
  }
  .legal-card {
    padding: 24px 18px;
  }
  .legal-title {
    font-size: 1.6rem;
  }
  .contact-email-badge {
    font-size: 1rem;
    padding: 10px 18px;
  }
}

@media (max-width: 480px) {
  main.portal-main {
    padding: 30px 16px 60px;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .lang-btn {
    padding: 0 8px;
    gap: 6px;
  }
  #currentLangLabel {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tool-card {
    padding: 18px;
    border-radius: var(--radius-lg);
  }
}

/* Legal pages polish */
[data-theme="light"] .legal-tab-item:hover { background: rgba(15, 23, 42, 0.06); }
.legal-nav-tabs { scrollbar-width: thin; }
.legal-content { overflow-wrap: anywhere; }
.legal-content > h2:first-child, .legal-content > div > h2:first-child { margin-top: 0; }
.legal-content a:not(.btn-primary-action):not(.btn-secondary-action) { color: var(--primary); text-underline-offset: 3px; }
.legal-content a:not(.btn-primary-action):not(.btn-secondary-action):hover { text-decoration: underline; }
.legal-content ul li::marker { color: var(--primary); }
.legal-content h3 { margin-top: 26px; }
.legal-content h3 + p { margin-top: -2px; }
.legal-content strong { color: var(--text-main); }
.legal-feature-desc, .contact-cat-desc { overflow-wrap: anywhere; }
.contact-email-badge { max-width: 100%; word-break: break-all; }
@media (max-width: 480px) {
  .legal-title { gap: 10px; }
  .legal-title svg { width: 24px; height: 24px; flex-shrink: 0; }
  .legal-content h2 { font-size: 1.2rem; }
  .contact-email-badge { font-size: 0.95rem; padding: 10px 16px; }
}

/* Comparison Table Styles */
.legal-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.legal-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.legal-comparison-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.legal-comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  vertical-align: middle;
  line-height: 1.5;
}

.legal-comparison-table tr:last-child td {
  border-bottom: none;
}

.legal-comparison-table tr:hover td {
  background: rgba(99, 102, 241, 0.03);
}

.legal-comparison-table .highlight-col {
  color: var(--text-main);
  font-weight: 500;
}

/* Verification Guide Card */
.legal-verify-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 24px 0;
}

.legal-verify-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.legal-verify-title svg {
  color: #10b981;
}

.legal-verify-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.legal-verify-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* CTA Card */
.legal-cta-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  margin: 36px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.legal-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.legal-cta-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 580px;
  line-height: 1.6;
}

.legal-cta-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

/* ==============================================================================
   Share & Bookmark CTA Component
   ============================================================================== */
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
}

.share-btn:hover {
  background: var(--border-strong);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.share-btn:active {
  transform: scale(0.95);
}

.share-btn.bookmarked {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: #f59e0b;
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.share-btn.bookmarked svg {
  fill: #f59e0b;
}

.share-cta-section {
  margin: 36px 0 28px;
}

.share-cta-card {
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.05) 50%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.share-cta-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 16px 44px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.share-cta-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
}

.share-cta-body {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.share-cta-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.share-cta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.share-cta-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 0;
}

.share-cta-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
}

.share-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.btn-share-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.btn-share-action.primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-share-action.primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-share-action.secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-share-action.secondary:hover {
  background: var(--border-strong);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-share-action:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 900px) {
  .share-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px;
    gap: 18px;
  }
  .share-cta-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .btn-share-action {
    flex: 1;
    min-width: 150px;
    justify-content: center;
  }
}

/* ==============================================================================
   Unified Portal SEO Landing, Architecture & FAQ Showcase Section
   ============================================================================== */
.seo-landing-section {
  width: 100%;
  max-width: 1200px;
  margin: 56px auto 36px;
  padding: 48px 36px 44px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.03) 60%, transparent 100%), var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

[data-theme="light"] .seo-landing-section {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.05) 0%, rgba(6, 182, 212, 0.02) 60%, transparent 100%), #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.seo-landing-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 180px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

[data-theme="light"] .seo-landing-section::before {
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}

.seo-hero-block {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.seo-highlight-badge-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.seo-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.08));
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.28);
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1);
  transition: all 0.25s ease;
}

.seo-highlight-badge:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}

.seo-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 16px 0;
  line-height: 1.35;
  color: var(--text-main);
}

.seo-intro-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0 auto 28px;
  max-width: 760px;
}

/* ==============================================================================
   Architecture & Security Trust Matrix (3 Clamped Cards with Lightweight Expand)
   ============================================================================== */
.arch-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 12px;
  text-align: left;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .arch-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.arch-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(99, 102, 241, 0.15);
}

.arch-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.arch-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.arch-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.arch-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.arch-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.01em;
}

.arch-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* 1 句话核心价值（粗体） */
.arch-headline {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
  display: block;
}

/* 深度技术原理解释（默认通过 -webkit-line-clamp: 2 截断） */
.arch-detail {
  font-size: 0.825rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: all 0.3s ease;
}

.arch-card.is-expanded .arch-detail {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* 展开技术细节交互按钮 */
.arch-expand-trigger {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.2s ease;
}

.arch-expand-trigger:hover {
  color: var(--primary-hover);
}

.arch-expand-icon {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-card.is-expanded .arch-expand-icon {
  transform: rotate(180deg);
}

/* Backward compatibility aliases */
.seo-trust-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 12px;
}
.seo-trust-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==============================================================================
   FAQ Accordion Section (Native HTML5 details/summary)
   ============================================================================== */
.seo-faq-header {
  text-align: center;
  margin: 44px 0 20px;
  position: relative;
  z-index: 1;
}

.seo-faq-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 8px;
}

.seo-section-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin: 0;
}

.seo-faq-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* Accordion Group Container */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  text-align: left;
}

/* Individual FAQ Accordion Item */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 6px 18px -4px rgba(99, 102, 241, 0.12);
}

.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 10px 24px -6px rgba(99, 102, 241, 0.18), 0 0 0 1px rgba(99, 102, 241, 0.15);
  background: var(--bg-surface-elevated);
}

[data-theme="light"] .faq-item[open] {
  background: #fdfdfd;
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 24px -6px rgba(99, 102, 241, 0.1);
}

/* Summary Trigger */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-main);
  list-style: none;
  transition: color 0.2s ease;
}

/* Hide default browser summary triangle */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  display: none;
  content: "";
}

.faq-question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq-question-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  padding-right: 12px;
}

.faq-q-badge {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.faq-item[open] .faq-q-badge {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.faq-question-text {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.faq-item[open] .faq-question-text {
  color: var(--primary);
}

/* Custom Chevron Indicator with Smooth Rotation */
.faq-chevron-wrap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.faq-item:hover .faq-chevron-wrap {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
}

.faq-chevron {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item[open] .faq-chevron-wrap {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--primary);
}

/* Answer Container & Smooth Reveal Animation */
.faq-answer {
  padding: 0 22px 20px 60px;
}

@keyframes faqExpandSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item[open] .faq-answer {
  animation: faqExpandSlide 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .seo-landing-section {
    padding: 36px 20px;
    margin-top: 40px;
  }
  .arch-matrix {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .seo-h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 600px) {
  .seo-landing-section {
    padding: 28px 16px;
    border-radius: var(--radius-lg);
  }
  .seo-h1 {
    font-size: 1.45rem;
  }
  .faq-question {
    padding: 16px 14px;
  }
  .faq-question-main {
    gap: 10px;
  }
  .faq-question-text {
    font-size: 0.92rem;
  }
  .faq-answer {
    padding: 0 14px 16px 14px;
  }
}
