/* ============================================================
   开放平台 OpenAPI Portal — Prototype Styles
   Visual direction: deep ink + teal signal (B2B developer portal)
   Avoid: purple gradients, cream+serif, newspaper layouts
   ============================================================ */

:root {
  --ink: #07101c;
  --ink-2: #0e1a2b;
  --navy: #12304f;
  --teal: #0d9488;
  --teal-bright: #14b8a6;
  --teal-dim: rgba(13, 148, 136, 0.12);
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --surface: #f3f5f7;
  --surface-2: #e8ecef;
  --white: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --danger: #dc2626;
  --success: #059669;
  --shadow-sm: 0 1px 2px rgba(7, 16, 28, 0.06);
  --shadow-md: 0 8px 24px rgba(7, 16, 28, 0.08);
  --shadow-lg: 0 20px 50px rgba(7, 16, 28, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 68px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

code,
pre {
  font-family: var(--font-mono);
}

/* ---------- Skip / Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
}

/* ---------- Top Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

html[lang="en"] .brand-sub {
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--surface);
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.btn-primary:hover {
  background: #122033;
  box-shadow: var(--shadow-md);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-teal:hover {
  background: #0f766e;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--white);
  border-color: var(--ink);
}

.btn-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

/* ---------- Views ---------- */
.view {
  display: none;
  animation: fadeUp 0.45s var(--ease);
}

.view.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(13, 148, 136, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(217, 119, 6, 0.12), transparent 55%),
    linear-gradient(180deg, #07101c 0%, #0a1628 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(56px);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 88px;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-brand span {
  display: block;
  background: linear-gradient(105deg, #fff 30%, var(--teal-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 520px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-meta-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

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

.section-alt {
  background: var(--white);
}

.section-head {
  max-width: 560px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

/* ---------- Capability grid (not cards-as-hero; content sections OK for IA) ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cap-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cap-item {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.section-alt .cap-item {
  background: var(--surface);
}

.cap-item:hover {
  border-color: rgba(13, 148, 136, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cap-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-dim);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
}

.cap-item h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cap-item p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Page shell (inner pages) ---------- */
.page-hero {
  background: var(--ink-2);
  color: #fff;
  padding: 28px 0 24px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.22), transparent 65%);
  pointer-events: none;
}

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

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.page-hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.5;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb a:hover {
  color: #fff;
}

.page-body {
  padding: 48px 0 80px;
}

/* ---------- Docs layout ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  min-height: 640px;
}

.docs-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}

.docs-sidebar h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 8px 12px;
  margin-top: 8px;
}

.docs-nav {
  list-style: none;
}

.docs-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}

.docs-nav a:hover,
.docs-nav a.active {
  background: var(--teal-dim);
  color: var(--teal);
}

.docs-main {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 640px;
}

.docs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}

.docs-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--teal-dim);
  color: var(--teal);
}

.badge-amber {
  background: var(--amber-soft);
  color: #92400e;
}

.docs-embed {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.docs-panel {
  padding: 24px;
  border-right: 1px solid var(--border);
  overflow: auto;
}

.docs-panel:last-child {
  border-right: none;
  background: #0b1220;
  color: #e2e8f0;
}

.docs-panel h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 8px;
}

.docs-panel .desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.docs-panel:last-child .desc {
  color: rgba(226, 232, 240, 0.6);
}

.method-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.method {
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  background: #dcfce7;
  color: #166534;
}

.method.post {
  background: #dbeafe;
  color: #1e40af;
}

.endpoint {
  color: var(--text);
  word-break: break-all;
}

.docs-panel:last-child .endpoint {
  color: #94a3b8;
}

.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
}

.param-table th,
.param-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.param-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

.code-block {
  background: #111827;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
  color: #e2e8f0;
}

.code-block .cmt {
  color: #64748b;
}

.code-block .key {
  color: #7dd3fc;
}

.code-block .str {
  color: #86efac;
}

.apifox-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--amber-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #78350f;
  border-left: 3px solid var(--amber);
}

/* ---------- Console iframe mock ---------- */
.console-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  flex-wrap: wrap;
}

.console-bar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.console-bar-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.25);
}

.iframe-frame {
  position: relative;
  min-height: 520px;
  background: var(--surface);
}

.iframe-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(243, 245, 247, 0.92), rgba(243, 245, 247, 0.98)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(13, 148, 136, 0.03) 12px,
      rgba(13, 148, 136, 0.03) 24px
    );
}

.iframe-placeholder h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
}

.iframe-placeholder p {
  max-width: 480px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.saas-mock {
  width: min(100%, 720px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.saas-mock h4 {
  font-size: 15px;
  margin-bottom: 16px;
}

.usage-bars {
  display: grid;
  gap: 14px;
}

.usage-row label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.usage-row label span:last-child {
  color: var(--muted);
}

.bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  border-radius: 999px;
  animation: growBar 1.2s var(--ease) both;
}

@keyframes growBar {
  from {
    width: 0 !important;
  }
}

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-tier {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-tier.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow-lg);
  transform: scale(1.02);
}

.price-tier .tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-tier h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 6px;
}

.price-tier .price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
}

.price-tier .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.price-tier .price-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.price-tier ul {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.price-tier li {
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.price-tier li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
}

/* ---------- Timeline / changelog ---------- */
.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--border-strong);
  margin-left: 8px;
  padding-left: 24px;
}

.timeline-item {
  position: relative;
  padding: 0 0 32px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal);
}

.timeline-item .date {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 6px;
}

.timeline-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--muted);
}

.timeline-item ul {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 800px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Panels ---------- */
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
}

.panel > .sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ---------- Legal ---------- */
.legal-content {
  max-width: 900px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  overflow-x: auto;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 16px;
  line-height: 1.35;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 28px 0 12px;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 22px 0 10px;
}

.legal-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 8px;
}

.legal-content h2:first-child,
.legal-content h1:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.65;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-content code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--surface, #f4f6f8);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 13px;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
  line-height: 1.5;
}

.legal-content th {
  background: var(--surface, #f4f6f8);
  color: var(--ink);
  font-weight: 600;
}

.legal-content strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(13, 148, 136, 0.25), transparent 70%);
}

.cta-band .container {
  position: relative;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}

.cta-band .hero-cta {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #050b14;
  color: rgba(255, 255, 255, 0.65);
  padding: 56px 0 28px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  max-width: 260px;
  line-height: 1.55;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--teal-bright);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Two-col content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.feature-list .num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--teal-dim);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.feature-list strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.feature-list span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Contact form mock ---------- */
.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
}

.form-grid textarea {
  min-height: 120px;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(13, 148, 136, 0.35);
  border-color: var(--teal);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px);
  opacity: 0;
  transition: 0.35s var(--ease);
  z-index: 200;
  max-width: 320px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Brand / Lang switchers ---------- */
.switchers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seg {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--white);
  gap: 2px;
}

.seg[hidden] {
  display: none !important;
}

.seg button {
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.seg button.active {
  background: var(--ink);
  color: #fff;
}

.brand-chip {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--teal-dim);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Console tabs + real iframe ---------- */
.console-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.console-tabs button {
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.console-tabs button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.iframe-frame iframe {
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
  background: #fff;
}

.iframe-frame.has-iframe .iframe-placeholder {
  display: none;
}

.docs-iframe-wrap {
  position: relative;
  min-height: 720px;
  background: var(--surface);
}

.docs-iframe-wrap iframe {
  width: 100%;
  height: 720px;
  border: 0;
  display: block;
  background: #fff;
}

.docs-fallback {
  padding: 24px;
  display: none;
}

.docs-fallback.show {
  display: block;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill.pending {
  background: var(--amber-soft);
  color: #92400e;
}

.status-pill.approved {
  background: #d1fae5;
  color: #065f46;
}

.status-pill.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.flow-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.flow-box ol {
  margin: 12px 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.flow-box li {
  margin-bottom: 8px;
}

/* ---------- Apply / contact ---------- */
.apply-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.apply-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 12px;
}

.apply-status-row {
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.apply-prep {
  margin-top: 20px;
}

.apply-prep h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 12px;
}

.prep-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.prep-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.prep-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--teal-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230d9488' stroke-width='2'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.contact-card {
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(13, 148, 136, 0.06), transparent 42%),
    var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-card-head .eyebrow {
  display: inline-block;
  margin-bottom: 6px;
}

.contact-card-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.contact-card-head .sub {
  margin-bottom: 0;
  font-size: 13.5px;
  line-height: 1.55;
}

.contact-list {
  list-style: none;
  margin: 22px 0 0;
  display: grid;
  gap: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--teal);
  display: grid;
  place-items: center;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: none;
}

.contact-value {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-all;
}

a.contact-value:hover {
  color: var(--teal);
}

.contact-meta {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.contact-meta code {
  font-size: 11.5px;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 4px;
}

.contact-note {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  color: #78350f;
  font-size: 13px;
  line-height: 1.5;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 960px) {
  .apply-layout {
    grid-template-columns: 1fr;
  }
}

.price-tier .price-cta-label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 4px;
  color: var(--ink);
}

.dual-site {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.dual-site article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.dual-site h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
}

.dual-site p {
  font-size: 13px;
  color: var(--muted);
}

.dual-site code {
  font-size: 12px;
  color: var(--teal);
}

/* ---------- Solutions ---------- */
.sol-block {
  margin-bottom: 56px;
}

.sol-block-head {
  margin-bottom: 28px;
}

.sol-block-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.sol-block-head p {
  color: var(--muted);
  font-size: 15px;
  max-width: 640px;
}

.sol-general-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sol-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  min-height: 100%;
}

.sol-card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sol-card strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.sol-card > span:last-child {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.sol-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sol-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sol-icon--teal {
  background: var(--teal-dim);
  color: var(--teal);
}

.sol-icon--navy {
  background: rgba(18, 48, 79, 0.1);
  color: var(--navy);
}

.sol-icon--amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.sol-icon--ink {
  background: rgba(7, 16, 28, 0.08);
  color: var(--ink);
}

.sol-block--industry {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.sol-industry-group {
  margin-bottom: 28px;
}

.sol-industry-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.sol-industry-label::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--teal);
  flex-shrink: 0;
}

.sol-industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.sol-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.sol-chip:hover {
  border-color: rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.04);
  transform: translateY(-1px);
}

.sol-chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--teal);
  flex-shrink: 0;
}

.sol-chip-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sol-more {
  margin-top: 8px;
}

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .price-grid,
  .dual-site,
  .sol-general-grid,
  .sol-industry-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .docs-layout,
  .docs-embed,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

  .price-tier.featured {
    transform: none;
  }

  .nav-links,
  .nav-actions .console-link {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    align-items: stretch;
  }

  .nav-links.open a {
    padding: 12px 14px;
  }

  .switchers {
    gap: 6px;
  }

  .seg button {
    padding: 5px 8px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0 56px;
  }
}

@media (max-width: 560px) {
  .cap-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-lg {
    width: 100%;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .sol-general-grid,
  .sol-industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .cap-grid--3 {
    grid-template-columns: 1fr;
  }
}
