/* ═══════════════════════════════════════════════════════════
   Xiomos — Shared Design System
   site.css · v1.0
═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --bg:        #06080f;
  --bg-2:      #0c1322;
  --bg-3:      rgba(255,255,255,0.025);
  --bg-4:      rgba(255,255,255,0.05);
  --bd:        rgba(255,255,255,0.07);
  --bd-2:      rgba(255,255,255,0.12);
  --teal:      #0d9488;
  --teal-2:    #14b8a6;
  --teal-3:    #2dd4bf;
  --teal-glow: rgba(13,148,136,0.14);
  --blue:      #3b82f6;
  --t1:        #f1f5f9;
  --t2:        #94a3b8;
  --t3:        #475569;
  --t4:        #1e293b;
  --r:         12px;
  --r-lg:      18px;
  --r-xl:      24px;
  --ease:      0.18s ease;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--t1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-3); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

/* ─── LAYOUT ─── */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px;  margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 620px;  margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-xs { padding: 32px 0; }

/* ─── NAVBAR ─── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  height: 60px;
  background: rgba(6,8,15,0.84);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--bd);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-size: 17px; font-weight: 900; color: #fff; letter-spacing: -0.02em;
  text-decoration: none; transition: opacity var(--ease);
}
.nav-brand:hover { opacity: 0.85; text-decoration: none; color: #fff; }
.nav-brand-spark { font-size: 18px; }
.nav-links {
  display: flex; align-items: center; gap: 2px; list-style: none; flex: 1;
  justify-content: center;
}
.nav-links a {
  display: block; padding: 6px 13px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--t2);
  transition: color var(--ease), background var(--ease); text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.07); text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 8px 16px; border-radius: 9px;
  background: var(--teal); color: #fff;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  text-decoration: none; transition: opacity var(--ease), transform 0.1s;
}
.nav-cta:hover { opacity: 0.86; text-decoration: none; }
.nav-cta:active { transform: scale(0.96); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--t2); font-size: 20px; padding: 4px; line-height: 1;
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open { height: auto; }
  .site-nav.open .nav-inner { flex-wrap: wrap; padding-bottom: 12px; }
  .site-nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    flex: 0 0 100%; order: 3; justify-content: flex-start;
    border-top: 1px solid var(--bd); padding-top: 8px; margin-top: 4px;
  }
  .site-nav.open .nav-links a { border-radius: 0; padding: 11px 4px; color: var(--t2); }
  .site-nav.open .nav-links a:hover { color: #fff; background: none; }
}

/* ─── FOOTER ─── */
.site-footer {
  border-top: 1px solid var(--bd);
  background: var(--bg-2);
  padding: 64px 24px 36px;
  margin-top: 80px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--bd); margin-bottom: 28px;
}
.footer-brand-name {
  font-size: 16px; font-weight: 900; color: #fff; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
}
.footer-brand p { font-size: 13px; color: var(--t3); line-height: 1.75; max-width: 220px; }
.footer-col-title {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--t3); margin-bottom: 14px;
}
.footer-link-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-link-list a {
  font-size: 13px; color: var(--t3); text-decoration: none;
  transition: color var(--ease);
}
.footer-link-list a:hover { color: var(--t2); text-decoration: none; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 12px; color: var(--t4); }
.footer-sub-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-sub-links a { font-size: 12px; color: var(--t4); transition: color var(--ease); }
.footer-sub-links a:hover { color: var(--t3); text-decoration: none; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── TYPOGRAPHY ─── */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-2); margin-bottom: 14px; display: block;
}
.text-gradient {
  background: linear-gradient(130deg, #2dd4bf 0%, #6ee7b7 45%, #38bdf8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.35; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r);
  font-size: 14px; font-weight: 700; cursor: pointer; border: none;
  transition: opacity var(--ease), transform 0.1s; text-decoration: none;
}
.btn:hover { opacity: 0.87; text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-outline {
  background: transparent; color: var(--t1);
  border: 1px solid var(--bd-2);
}
.btn-outline:hover { background: rgba(255,255,255,0.05); }
.btn-lg { padding: 15px 32px; font-size: 15px; border-radius: var(--r-lg); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }

/* ─── CARDS ─── */
.card {
  background: var(--bg-3); border: 1px solid var(--bd);
  border-radius: var(--r-xl); padding: 28px;
  transition: border-color var(--ease), transform var(--ease);
}
.card:hover { border-color: rgba(255,255,255,0.13); transform: translateY(-2px); }
.card-icon { font-size: 28px; margin-bottom: 14px; }
.card-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.card-body { font-size: 14px; color: var(--t2); line-height: 1.72; }

/* ─── SECTION HEADER ─── */
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header h2 { margin-top: 6px; color: #fff; }
.section-header p { margin-top: 14px; font-size: 16px; color: var(--t2); max-width: 600px; line-height: 1.75; }
.section-header.center p { margin: 14px auto 0; }

/* ─── GRID ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── TRUST BADGES ─── */
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--bd);
  font-size: 12px; color: var(--t2); font-weight: 500;
}

/* ─── DIVIDER ─── */
.divider { border: none; border-top: 1px solid var(--bd); }

/* ─── GLASS ─── */
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bd); border-radius: var(--r-xl);
}

/* ─── PROSE (legal pages) ─── */
.prose { font-size: 15px; line-height: 1.85; color: var(--t2); }
.prose h2 {
  font-size: 1.25rem; font-weight: 700; color: #fff;
  margin: 44px 0 14px; padding-top: 8px; border-top: 1px solid var(--bd);
}
.prose h2:first-child { border-top: none; margin-top: 0; }
.prose h3 { font-size: 1rem; font-weight: 600; color: var(--t1); margin: 24px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { padding-inline-start: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--teal-3); }
.prose strong { color: var(--t1); font-weight: 600; }
.prose blockquote {
  border-inline-start: 3px solid var(--teal); padding-inline-start: 16px;
  color: var(--t2); margin: 24px 0; font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.prose th, .prose td {
  padding: 10px 14px; text-align: start; font-size: 14px;
  border-bottom: 1px solid var(--bd);
}
.prose th { color: var(--t1); font-weight: 600; }

/* ─── STEP LIST ─── */
.step-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.step-item { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-glow); border: 1px solid rgba(13,148,136,0.3);
  color: var(--teal-3); font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-body { padding-top: 4px; }
.step-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--t2); line-height: 1.65; }

/* ─── PAGE HEADER (inner pages) ─── */
.page-header {
  padding: 72px 0 56px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--teal-glow) 0%, transparent 60%), var(--bg);
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; margin-top: 10px; }
.page-header p { font-size: 16px; color: var(--t2); max-width: 520px; margin: 14px auto 0; line-height: 1.75; }

/* ─── PAGE HELP BUTTON ─── */
.page-help-wrap { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; position: relative; justify-content: center; }
.page-help-btn {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  color: var(--t3); font-size: 12px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.page-help-btn:hover { background: rgba(255,255,255,0.13); color: #e2e8f0; }
.page-help-tooltip {
  display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: rgba(10,15,30,0.97); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px; padding: 12px 14px; width: 260px; z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5); backdrop-filter: blur(20px);
  text-align: right; direction: rtl;
}
.page-help-tooltip .help-label { font-size: 11px; font-weight: 700; color: var(--teal-3); margin-bottom: 6px; letter-spacing: 0.05em; }
.page-help-tooltip .help-text  { font-size: 12px; color: var(--t2); line-height: 1.7; }
.page-help-wrap:focus-within .page-help-tooltip,
.page-help-wrap:hover .page-help-tooltip { display: block; }

/* ─── CTA SECTION ─── */
.cta-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(13,148,136,0.12) 0%, transparent 65%), var(--bg-2);
  border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd);
  padding: 80px 24px; text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { font-size: 16px; color: var(--t2); max-width: 480px; margin: 0 auto 32px; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── INFO CALLOUT ─── */
.callout {
  display: flex; gap: 14px; padding: 16px 20px; border-radius: var(--r);
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.18);
  margin: 20px 0;
}
.callout.info {
  background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.18);
}
.callout.success {
  background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.18);
}
.callout-icon { font-size: 16px; flex-shrink: 0; padding-top: 1px; }
.callout p { font-size: 13px; color: var(--t2); line-height: 1.65; margin: 0; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}
.fade-up   { animation: fadeUp 0.55s ease both; }
.fade-up-2 { animation: fadeUp 0.55s ease 0.1s both; }
.fade-up-3 { animation: fadeUp 0.55s ease 0.2s both; }
.fade-up-4 { animation: fadeUp 0.55s ease 0.3s both; }
