/* ORION public site — Luis Mendoza / Scraplay LLC */

:root {
  --bg: #070b14;
  --bg-alt: #0d1321;
  --surface: #141c2e;
  --border: #1e2a42;
  --text: #e8ecf4;
  --muted: #8b9bb8;
  --accent: #5b8def;
  --accent-glow: #3d6fd4;
  --accent-soft: rgba(91, 141, 239, 0.12);
  --success: #4ade80;
  --radius: 12px;
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switcher {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lang-btn {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  display: block;
}

.logo-icon {
  color: var(--accent);
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 5.5rem 1.5rem 3rem;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
}

#network-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(91, 141, 239, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 90% 60%, rgba(61, 111, 212, 0.08), transparent),
    radial-gradient(circle at 20% 80%, rgba(91, 141, 239, 0.05), transparent);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  pointer-events: none;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -3rem -2rem;
  z-index: -1;
  background: linear-gradient(
    105deg,
    rgba(7, 11, 20, 0.94) 0%,
    rgba(7, 11, 20, 0.82) 45%,
    rgba(7, 11, 20, 0.35) 75%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-content a,
.hero-content button {
  pointer-events: auto;
}

.hero-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(30, 42, 66, 0.6);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legend-item i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-bootstrap i {
  background: #5b8def;
  box-shadow: 0 0 10px rgba(91, 141, 239, 0.6);
}

.legend-publisher i {
  background: #7aa8f7;
  box-shadow: 0 0 8px rgba(122, 168, 247, 0.5);
}

.legend-resolver i {
  background: #a8c4fa;
  box-shadow: 0 0 6px rgba(168, 196, 250, 0.4);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding-left: max(1.5rem, calc((100vw - 1100px) / 2 + 1.5rem));
    padding-right: 1.5rem;
  }

  .hero-content {
    max-width: 520px;
    margin: 0;
  }

  .hero-visual {
    left: 42%;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-lead strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  color: #fff;
  box-shadow: 0 4px 24px rgba(91, 141, 239, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: 2rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Compare */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.compare-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-old h3 {
  color: #f87171;
}

.compare-new h3 {
  color: var(--success);
}

.compare-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.compare-card li {
  margin-bottom: 0.5rem;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(91, 141, 239, 0.4);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Flow */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.flow-step {
  flex: 1;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.flow-num {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.flow-step h4 {
  margin: 0 0 0.35rem;
}

.flow-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.flow-arrow {
  align-self: center;
  color: var(--muted);
  font-size: 1.25rem;
}

.code-block {
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 0;
}

.code-block code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #c5d0e6;
}

.example-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.example-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.example-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Helps / not-replace */
.helps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.helps-grid h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.helps-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.helps-list li {
  margin-bottom: 0.6rem;
}

.helps-yes li::marker {
  color: var(--success);
}

.helps-no li::marker {
  color: #f87171;
}

.container-narrow {
  max-width: 760px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.faq-item-highlight {
  border-color: rgba(91, 141, 239, 0.35);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface));
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-chevron {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -0.2rem;
}

.faq-open .faq-chevron {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
}

.faq-open .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Contact */
.contact-box {
  text-align: center;
}

.contact-box .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-org {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.scraplay-link {
  font-weight: 600;
  margin-left: 0.35rem;
}

/* Use cases */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.use-case-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.use-case-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.use-case-grid p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Docs — reserved for future public links */

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-inner p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-copy {
  font-size: 0.8rem !important;
}

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

  .flow-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-right {
    gap: 0.5rem;
  }
}

/* Status banner */
.status-banner {
  margin-top: 3.5rem;
  background: linear-gradient(90deg, rgba(91, 141, 239, 0.14), rgba(91, 141, 239, 0.06));
  border-bottom: 1px solid rgba(91, 141, 239, 0.25);
  padding: 0.65rem 1.5rem;
}

.status-banner p {
  margin: 0;
  font-size: 0.85rem;
  color: #c5d4f0;
  line-height: 1.55;
  text-align: center;
}

.status-banner a {
  color: var(--accent);
  font-weight: 600;
}

.status-banner-legal {
  margin-top: 3.5rem;
}

/* Adoption */
.adoption-list {
  margin: 1.25rem 0 1.75rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.adoption-list li {
  margin-bottom: 0.55rem;
}

.adoption-actions {
  justify-content: center;
}

.nav-active {
  color: var(--accent) !important;
}

/* Legal page */
.legal-page-body {
  background: var(--bg);
}

.legal-main {
  padding: 2.5rem 1.5rem 4rem;
}

.container-legal {
  max-width: 760px;
}

.legal-back {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

.legal-intro {
  margin-bottom: 1.75rem;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.legal-toc a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.legal-section {
  margin-bottom: 3rem;
  scroll-margin-top: 5rem;
}

.legal-section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.legal-prose {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.legal-prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.legal-prose p,
.legal-prose ul {
  margin: 0 0 0.85rem;
}

.legal-prose ul {
  padding-left: 1.25rem;
}

.legal-prose li {
  margin-bottom: 0.4rem;
}

.legal-notice-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #c5d0e6;
  overflow-x: auto;
  white-space: pre-wrap;
}

.legal-cta-box {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 141, 239, 0.3);
  border-radius: var(--radius);
  text-align: center;
}

.legal-cta-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}
