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

:root {
  --white:      #ffffff;
  --off:        #f7f8fc;
  --light:      #eef1f8;
  --border:     #e2e6f0;
  --black:      #08090f;
  --dark:       #111320;
  --muted:      #6b7280;
  --blue:       #1a56ff;
  --blue-light: #e8edff;
  --blue-mid:   #4f75ff;
  --cyan:       #00d4ff;
  --live:       #10b981;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

/* =========================
   PAGE HERO (all pages)
========================= */
.page-hero {
  padding: 140px 40px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(26,86,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(0,212,255,0.06) 0%, transparent 60%);
}

.page-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

.page-hero-inner { position: relative; z-index: 1; }

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--white);
  padding: 6px 16px; border-radius: 100px;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(26,86,255,0.08);
}

.hero-label-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); animation: blink 2s infinite; flex-shrink: 0;
}

.page-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -2px; color: var(--dark);
  margin-bottom: 20px;
}

.page-hero h1 .highlight {
  color: var(--blue); position: relative;
}

.page-hero h1 .highlight::after {
  content: '';
  position: absolute; bottom: 4px; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px; opacity: 0.35;
}

.page-hero p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--muted); line-height: 1.7;
  max-width: 500px; margin: 0 auto 32px;
  font-weight: 300;
}

/* =========================
   SHARED UTILITIES
========================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 48px);
}

.section-label {
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 16px; font-weight: 500;
}

.section-h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800; letter-spacing: -1.5px;
  color: var(--dark); margin-bottom: 48px;
  line-height: 1.1;
}

.info-box {
  background: var(--blue-light);
  border: 1px solid rgba(26,86,255,0.18);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: var(--dark); line-height: 1.6;
  margin: 24px 0;
}

.info-box i { color: var(--blue); font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.info-box a { color: var(--blue); }

.btn-primary {
  background: var(--blue); color: #fff;
  padding: 13px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; border: none;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 8px 28px rgba(26,86,255,0.28);
  transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}

.btn-primary:hover {
  background: var(--blue-mid); transform: translateY(-1px);
  color: #fff; text-decoration: none;
}

.btn-secondary {
  background: var(--white); color: var(--dark);
  padding: 13px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 400;
  cursor: pointer; border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--blue); color: var(--blue); text-decoration: none;
}

/* =========================
   SIDEBAR LAYOUT
   (API Reference + Privacy)
========================= */
.docs-layout,
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px clamp(1.5rem, 4vw, 48px) 100px;
  gap: 60px;
  align-items: start;
}

.docs-sidebar,
.legal-sidebar {
  position: sticky; top: 90px;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 0;
}

.sidebar-label {
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted);
  padding: 0 20px 12px; font-weight: 500;
}

.sidebar-section {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.sidebar-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sidebar-link {
  display: block; padding: 8px 20px;
  font-size: 13px; color: var(--muted);
  text-decoration: none; transition: all 0.15s;
  border-left: 2px solid transparent;
  line-height: 1.4;
}

.sidebar-link:hover { color: var(--dark); text-decoration: none; }
.sidebar-link.active {
  color: var(--blue); font-weight: 500;
  border-left-color: var(--blue);
  background: rgba(26,86,255,0.04);
}

/* DOC / LEGAL SECTIONS */
.docs-main,
.legal-main { min-width: 0; }

.doc-section,
.legal-section {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

.doc-section:last-child,
.legal-section:last-child { border-bottom: none; }

.doc-badge {
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 16px; font-weight: 500;
}

.doc-section h1,
.legal-section h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -1px;
  color: var(--dark); margin-bottom: 16px;
}

.doc-section h2,
.legal-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700; letter-spacing: -0.5px;
  color: var(--dark); margin-bottom: 16px;
}

.doc-section h3,
.legal-section h3 {
  font-size: 15px; font-weight: 600;
  color: var(--dark); margin: 24px 0 10px;
}

.doc-section h4,
.legal-section h4 {
  font-size: 13px; font-weight: 600;
  color: var(--dark); margin: 20px 0 10px;
  text-transform: uppercase; letter-spacing: 1px;
}

.doc-lead {
  font-size: 16px; color: var(--muted);
  line-height: 1.75; font-weight: 300;
}

.doc-section p,
.legal-section p {
  font-size: 14px; color: var(--muted);
  line-height: 1.8; font-weight: 300;
  margin-bottom: 14px;
}

.doc-section a,
.legal-section a { color: var(--blue); }

/* CODE BLOCKS */
.code-block {
  background: var(--dark);
  border-radius: 10px; overflow: hidden;
  margin: 16px 0;
  border: 1px solid rgba(255,255,255,0.06);
}

.code-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 11px; letter-spacing: 1px;
  color: rgba(255,255,255,0.35); text-transform: uppercase;
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
  font-size: 13px; line-height: 1.7;
}

.code-block code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: #a8d8a8;
}

.copy-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-family: 'Inter', sans-serif;
  font-size: 10px; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 4px;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}

.copy-btn:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* ENDPOINT BADGE */
.endpoint {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--off); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; margin-bottom: 16px;
}

.method {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
  letter-spacing: 1px; font-family: 'Inter', sans-serif;
}

.method.post { background: rgba(26,86,255,0.1); color: var(--blue); }
.method.get  { background: rgba(16,185,129,0.1); color: var(--live); }
.method.del  { background: rgba(239,68,68,0.1);  color: #ef4444; }

.endpoint-path { color: var(--dark); }
.code-inline {
  background: var(--light); color: var(--blue);
  padding: 2px 8px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
}

/* TABLES */
.doc-table,
.legal-table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0; font-size: 13px;
}

.doc-table th,
.legal-table th {
  text-align: left; padding: 10px 14px;
  background: var(--off); color: var(--dark);
  font-weight: 600; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.doc-table td,
.legal-table td {
  padding: 12px 14px; color: var(--muted);
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

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

/* LEGAL LIST */
.legal-list {
  padding-left: 0; list-style: none;
  margin: 12px 0 16px;
}

.legal-list li {
  font-size: 14px; color: var(--muted);
  line-height: 1.8; padding: 6px 0 6px 24px;
  position: relative; font-weight: 300;
  border-bottom: 1px solid var(--border);
}

.legal-list li:last-child { border-bottom: none; }

.legal-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--blue); font-weight: 600;
}

.legal-list li strong { color: var(--dark); font-weight: 500; }

/* RIGHTS GRID */
.rights-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin: 24px 0;
}

.right-card {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px;
  transition: all 0.2s;
}

.right-card:hover { border-color: var(--blue); }

.right-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 16px;
  margin-bottom: 12px;
}

.right-card h4 {
  font-size: 13px; font-weight: 600;
  color: var(--dark); margin-bottom: 6px;
  text-transform: none; letter-spacing: 0;
}

.right-card p {
  font-size: 12px; color: var(--muted);
  line-height: 1.6; margin: 0;
}

/* =========================
   CAREERS PAGE
========================= */
.mission-section {
  padding: clamp(60px,8vw,100px) clamp(1.5rem,4vw,48px);
  background: var(--off);
}

.mission-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,80px); align-items: center;
  max-width: 1200px; margin: 0 auto;
}

.mission-text .section-label { margin-bottom: 12px; }

.mission-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -1.5px;
  color: var(--dark); margin-bottom: 20px; line-height: 1.1;
}

.mission-text p {
  font-size: 15px; color: var(--muted);
  line-height: 1.8; font-weight: 300;
  margin-bottom: 16px;
}

.mission-stats {
  display: flex; flex-direction: column; gap: 24px;
}

.mstat {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 28px;
  border-left: 3px solid var(--blue);
}

.mstat-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px,5vw,56px);
  font-weight: 800; color: var(--blue); line-height: 1;
  margin-bottom: 6px;
}

.mstat-label {
  font-size: 13px; color: var(--muted); font-weight: 300;
}

.values-section {
  padding: clamp(60px,8vw,100px) clamp(1.5rem,4vw,48px);
  background: var(--white);
  max-width: 1200px; margin: 0 auto;
}

.values-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

.value-card {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 24px;
  transition: all 0.2s;
}

.value-card:hover { border-color: var(--blue); transform: translateY(-2px); }

.value-icon { font-size: 28px; margin-bottom: 16px; }

.value-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--dark); margin-bottom: 10px;
}

.value-card p { font-size: 13px; color: var(--muted); line-height: 1.7; font-weight: 300; }

.roles-section {
  padding: clamp(60px,8vw,100px) clamp(1.5rem,4vw,48px);
  background: var(--off);
  text-align: center;
}

.roles-section .section-label { text-align: center; }
.roles-sub {
  font-size: 15px; color: var(--muted);
  max-width: 520px; margin: 0 auto 40px;
  line-height: 1.75; font-weight: 300;
}

.roles-empty {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 56px 40px;
  max-width: 560px; margin: 0 auto;
}

.roles-empty-icon { font-size: 40px; margin-bottom: 16px; }
.roles-empty h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 10px;
}

.roles-empty p { font-size: 14px; color: var(--muted); margin-bottom: 28px; font-weight: 300; }
.roles-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.perks-section {
  padding: clamp(60px,8vw,100px) clamp(1.5rem,4vw,48px);
  background: var(--dark);
}

.perks-section .section-label { color: var(--cyan); }
.perks-section .section-h2 { color: var(--white); }

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

.perk {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 28px 24px;
}

.perk-icon { font-size: 28px; margin-bottom: 14px; display: block; }
.perk h4 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.perk p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.65; font-weight: 300; }

/* =========================
   SUPPORT PAGE
========================= */
.search-wrap {
  position: relative; max-width: 480px; margin: 0 auto;
}

.search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px;
}

.search-wrap input {
  width: 100%; padding: 14px 16px 14px 44px;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 15px;
  color: var(--dark); outline: none;
  transition: border-color 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.search-wrap input:focus { border-color: var(--blue); }

.quick-section {
  padding: clamp(40px,6vw,72px) clamp(1.5rem,4vw,48px);
  background: var(--off);
}

.quick-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 16px; max-width: 1200px; margin: 0 auto;
}

.quick-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 24px;
  text-decoration: none; transition: all 0.2s;
}

.quick-card:hover {
  border-color: var(--blue); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,86,255,0.08);
  text-decoration: none;
}

.quick-icon { font-size: 28px; margin-bottom: 14px; }
.quick-card h3 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.quick-card p { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.5; }

.faq-section {
  padding: clamp(60px,8vw,100px) clamp(1.5rem,4vw,48px);
  background: var(--white);
  max-width: 860px; margin: 0 auto;
}

.faq-group { margin-bottom: 48px; }

.faq-group-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--dark); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--border);
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%; background: none; border: none;
  padding: 18px 0; display: flex;
  justify-content: space-between; align-items: center;
  font-family: 'Inter', sans-serif; font-size: 15px;
  font-weight: 500; color: var(--dark);
  cursor: pointer; text-align: left; gap: 16px;
  transition: color 0.2s;
}

.faq-q:hover { color: var(--blue); }
.faq-item.open .faq-q { color: var(--blue); }

.faq-chevron {
  flex-shrink: 0; font-size: 14px;
  transition: transform 0.3s ease;
  color: var(--muted);
}

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

.faq-a {
  display: none; padding-bottom: 20px;
}

.faq-item.open .faq-a { display: block; }

.faq-a p {
  font-size: 14px; color: var(--muted);
  line-height: 1.8; font-weight: 300;
}

.faq-a a { color: var(--blue); }

.contact-section {
  padding: clamp(60px,8vw,100px) clamp(1.5rem,4vw,48px);
  background: var(--off);
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,80px); align-items: start;
  max-width: 1100px; margin: 0 auto;
}

.contact-text .section-label { margin-bottom: 12px; }

.contact-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px,3.5vw,38px);
  font-weight: 800; letter-spacing: -1.5px;
  color: var(--dark); margin-bottom: 14px;
}

.contact-text > p {
  font-size: 14px; color: var(--muted);
  line-height: 1.75; font-weight: 300; margin-bottom: 28px;
}

.contact-methods { display: flex; flex-direction: column; gap: 14px; }

.contact-method {
  display: flex; gap: 16px; align-items: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px;
  text-decoration: none; transition: all 0.2s;
}

.contact-method:hover { border-color: var(--blue); text-decoration: none; }

.cm-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}

.cm-title { font-size: 12px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.cm-val { font-size: 13px; color: var(--blue); }

.contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
}

.contact-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--dark); margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--dark); margin-bottom: 7px; letter-spacing: 0.5px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--dark); background: var(--white);
  outline: none; transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }

/* =========================
   KEYFRAMES
========================= */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .docs-layout,
  .legal-layout { grid-template-columns: 200px 1fr; gap: 40px; }
  .values-grid { grid-template-columns: repeat(2,1fr); }
  .perks-grid  { grid-template-columns: repeat(2,1fr); }
  .rights-grid { grid-template-columns: repeat(2,1fr); }
  .quick-grid  { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .docs-layout,
  .legal-layout { grid-template-columns: 1fr; }
  .docs-sidebar,
  .legal-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
  .sidebar-section { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .sidebar-link { padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border); border-left: 1px solid var(--border); }
  .sidebar-link.active { background: var(--blue-light); border-color: var(--blue); }

  .mission-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid  { grid-template-columns: 1fr; }
  .perks-grid   { grid-template-columns: repeat(2,1fr); }
  .rights-grid  { grid-template-columns: 1fr; }
  .quick-grid   { grid-template-columns: repeat(2,1fr); }
  .page-hero    { padding: 120px 24px 72px; }
}

@media (max-width: 480px) {
  .perks-grid  { grid-template-columns: 1fr; }
  .quick-grid  { grid-template-columns: 1fr; }
  .roles-btns  { flex-direction: column; }
  .page-hero h1 { letter-spacing: -1.5px; }
}