/* interXdata — site styles. Self-contained, no external dependencies. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-elev: #ffffff;
  --fg: #0e1726;
  --fg-muted: #4a5568;
  --fg-subtle: #6b7688;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --navy: #002663;
  --accent: #006fcf;
  --accent-hover: #005fb3;
  --accent-fg: #ffffff;
  --accent-soft: #eaf3fc;
  --grid-line: rgba(0, 111, 207, 0.08);
  --code-bg: #0e1726;
  --code-fg: #e6edf3;
  --code-accent: #7ee2b8;
  --code-key: #79c0ff;
  --code-str: #a5d6ff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --maxw: 1120px;
  --font: "Helvetica Neue", Helvetica, Arial, "Inter", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1017;
    --bg-alt: #10161f;
    --bg-elev: #141c27;
    --fg: #e7edf5;
    --fg-muted: #a7b3c4;
    --fg-subtle: #7f8da0;
    --border: #1f2a38;
    --border-strong: #2b3a4d;
    --accent: #4f9df0;
    --accent-hover: #6fb0f5;
    --navy: #0a1f47;
    --accent-fg: #06101c;
    --accent-soft: #12233a;
    --grid-line: rgba(79, 157, 240, 0.09);
    --code-bg: #060b12;
    --code-fg: #e6edf3;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1rem; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-alt); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.15rem; color: var(--fg); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { display: inline-flex; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a.navlink { color: var(--fg-muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a.navlink:hover { color: var(--fg); text-decoration: none; }

@media (max-width: 720px) {
  .nav-links .navlink { display: none; }
}

/* Logo mark */
.logo-x { width: 26px; height: 26px; }

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 78% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg));
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 70% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: 1rem; }
.hero .lede { font-size: 1.2rem; color: var(--fg-muted); margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--fg-subtle); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 56px 0 40px; }
}

/* Code panel */
.code-panel {
  background: var(--code-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--mono);
}
.code-head {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.r { background: #ff5f56; } .dot.y { background: #ffbd2e; } .dot.g { background: #27c93f; }
.code-file { margin-left: 0.5rem; color: #93a4bd; font-size: 0.8rem; }
.code-panel pre { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: 0.86rem; line-height: 1.65; color: var(--code-fg); }
.code-panel .cmt { color: #6b7d95; }
.code-panel .kw { color: var(--code-key); }
.code-panel .str { color: var(--code-str); }
.code-panel .fn { color: var(--code-accent); }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--fg-muted); font-size: 1.1rem; margin-bottom: 0; }

/* Trust strip */
.trust { padding: 28px 0; border-bottom: 1px solid var(--border); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; justify-content: center; }
.trust-label { color: var(--fg-subtle); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.trust-item { color: var(--fg-muted); font-weight: 600; font-size: 0.95rem; }
.trust-sep { color: var(--border-strong); }

/* Pillars grid */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 780px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.pillar:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.pillar .icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 14px;
}
.pillar h3 { margin-bottom: 0.4rem; }
.pillar p { color: var(--fg-muted); font-size: 0.98rem; margin-bottom: 0; }
.pillar .tag { display: inline-block; margin-top: 14px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-subtle); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }

/* Feature split (API-first) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.feature-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.feature-list li { position: relative; padding-left: 30px; margin-bottom: 1rem; color: var(--fg-muted); }
.feature-list li strong { color: var(--fg); font-weight: 650; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 16px; height: 16px; border-radius: 5px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.step .n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 0.95rem; margin-bottom: 12px; }
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--fg-muted); font-size: 0.96rem; margin-bottom: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-card {
  background: linear-gradient(135deg, var(--accent), var(--navy));
  color: #fff;
  border-radius: 18px;
  padding: 56px 32px;
  box-shadow: var(--shadow);
}
.cta-card h2 { color: #fff; }
.cta-card p { color: rgba(255,255,255,0.86); font-size: 1.12rem; max-width: 560px; margin: 0 auto 1.8rem; }
.cta-card .btn-primary { background: #fff; color: var(--accent); }
.cta-card .btn-primary:hover { filter: brightness(0.96); }
.cta-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-card .btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; background: var(--bg-alt); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--fg-subtle); font-size: 0.92rem; margin-top: 0.6rem; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-subtle); margin: 0 0 0.8rem; }
.footer-col a { display: block; color: var(--fg-muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--fg); text-decoration: none; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--fg-subtle); font-size: 0.88rem; }

/* Login page */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background:
  radial-gradient(900px 420px at 50% -10%, var(--accent-soft), transparent 60%), var(--bg); }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 40px 36px;
}
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 0.55rem; font-weight: 700; font-size: 1.2rem; color: var(--fg); margin-bottom: 6px; }
.auth-brand:hover { text-decoration: none; }
.auth-card h1 { font-size: 1.4rem; text-align: center; margin: 14px 0 4px; }
.auth-sub { text-align: center; color: var(--fg-muted); font-size: 0.95rem; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--fg); }
.field input {
  width: 100%; padding: 0.7rem 0.85rem; font-size: 0.98rem;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--bg); color: var(--fg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; margin: -4px 0 18px; }
.auth-notice {
  margin-top: 22px; padding: 12px 14px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 10px; font-size: 0.85rem; color: var(--fg-muted); text-align: center;
}
.auth-back { text-align: center; margin-top: 20px; font-size: 0.9rem; }

/* 404 */
.err-wrap { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.err-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; letter-spacing: -0.04em; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.err-wrap p { color: var(--fg-muted); font-size: 1.1rem; max-width: 440px; margin: 0 auto 1.6rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
