/* Inorbis.ai — static marketing site
   Brand palette (authoritative): shared/brand/palette.md in inorbis-presentations.
   Conventions (tokens, font stack, fade-in, radii, spacing) mirror the product
   design system: inorbis/docs/design/web-design-system.md. Never hard-code hex
   outside :root. */

:root {
  /* Surfaces */
  --bg:            #0F1629; /* deep navy — page body */
  --bg-deep:       #0B1020; /* deeper band (footer/cta) */
  --surface:       #1A2340; /* card */
  --surface-2:     #141B33; /* alt surface band */
  --raised:        #232B45; /* chips, inset blocks */
  --border:        #2A3456; /* default 1px divider */
  --border-subtle: #20294a;

  /* Text */
  --fg:       #E8ECF4; /* primary */
  --muted:    #B8C0D8; /* secondary body */
  --muted-2:  #8B95B0; /* tertiary metadata */

  /* Brand accents */
  --indigo:        #6366F1;
  --indigo-hover:  #818CF8;
  --indigo-ghost:  rgba(99, 102, 241, 0.12);
  --cyan:          #22D3EE;
  --emerald:       #34D399;
  --amber:         #FBBF24;
  --red:           #F87171;

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", monospace;

  /* Radii */
  --r-md: 8px;
  --r-lg: 12px;
  --r-full: 999px;

  /* Layout */
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

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

strong { color: var(--fg); font-weight: 600; }
.nowrap { white-space: nowrap; }
.accent-cyan { color: var(--cyan); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--fg);
  padding: 10px 16px; border-radius: var(--r-md); z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--indigo-hover);
}
.eyebrow--cyan { color: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-hover); }
.btn--secondary { background: transparent; color: var(--fg); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--indigo-hover); background: var(--indigo-ghost); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 22, 41, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand__mark { display: inline-flex; }
.brand__word { font-size: 18px; letter-spacing: -0.01em; }
.brand__tld { color: var(--cyan); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav__links a:hover { color: var(--fg); text-decoration: none; }
.nav__links .btn { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero__glow {
  position: absolute; inset: -20% 0 auto 0; height: 560px; pointer-events: none;
  background:
    radial-gradient(620px 300px at 22% 12%, rgba(99,102,241,0.26), transparent 70%),
    radial-gradient(560px 280px at 82% 0%, rgba(34,211,238,0.18), transparent 70%);
}
.hero__inner { position: relative; max-width: 820px; }
.hero__title {
  margin: 0; font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(38px, 6vw, 60px); line-height: 1.05;
}
.hero__sub {
  margin: 22px 0 0; max-width: 620px;
  font-size: clamp(16px, 2.1vw, 19px); color: var(--muted);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 40px 0 0; color: var(--muted-2); font-size: 13px;
}
.hero__arrow { color: var(--indigo-hover); font-weight: 700; padding: 0 4px; }

.tag {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: var(--r-full);
  background: var(--raised); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.tag--out { border-color: rgba(52,211,153,0.4); color: var(--emerald); }

/* ---------- Positioning band ---------- */
.band { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band__inner { padding: 56px 0; max-width: 880px; }
.band__lead { margin: 0; font-size: clamp(20px, 3vw, 26px); line-height: 1.45; color: var(--muted); font-weight: 400; }
.band__lead strong { color: var(--cyan); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 40px 0 64px; }
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__title { margin: 0; font-size: clamp(26px, 3.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
}
.card__title { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--fg); }
.card__body { margin: 0; font-size: 15px; color: var(--muted); }

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.step { position: relative; padding-top: 28px; }
.step__n {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--font-mono); font-size: 12px; color: var(--indigo-hover);
  letter-spacing: 0.08em;
}

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { padding: 28px; }

/* Sources */
.sources { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.sources li {
  padding: 12px 18px; border-radius: var(--r-md);
  background: var(--raised); border: 1px solid var(--border);
  color: var(--fg); font-size: 15px; font-weight: 500;
}
.sources__more { color: var(--muted-2) !important; font-weight: 400 !important; }

/* ---------- CTA ---------- */
.cta { background: var(--bg-deep); border-top: 1px solid var(--border); }
.cta__inner { padding: 88px 0; text-align: center; max-width: 640px; }
.cta__title { margin: 0; font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; }
.cta__sub { margin: 14px 0 30px; color: var(--muted); font-size: 17px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; flex-wrap: wrap; }
.footer__word { font-weight: 700; letter-spacing: 0.22em; font-size: 14px; color: var(--muted); }
.footer__meta { color: var(--muted-2); font-size: 13px; }

/* ---------- Animation (mirrors design-system fade-in/stagger) ---------- */
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.animate-fade-in { animation: fade-in .5s ease both; }
.stagger-1 { animation-delay: .05s; }
.stagger-2 { animation-delay: .10s; }
.stagger-3 { animation-delay: .15s; }
.stagger-4 { animation-delay: .20s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-fade-in { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
  .nav__links a:not(.btn) { display: none; }
  .steps { grid-template-columns: 1fr; }
}
