/* OneNetSpace marketing site -- single stylesheet, no preprocessor.
   Keeping it dependency-free so the page is fast (< 50 ms first paint
   on broadband) and there is no build step to maintain alongside the
   product app. If we ever migrate to Astro this becomes the global
   stylesheet. */

/* ── Design tokens ────────────────────────────────────────────────
   Mirror the agent UI palette so going from onenetspace.com to
   app.onenetspace.com feels like one product.                      */
:root {
  --c-ink:        #0f172a;   /* primary text */
  --c-ink-soft:   #334155;   /* secondary text */
  --c-mute:       #64748b;   /* tertiary text */
  --c-line:       #e2e8f0;   /* borders / dividers */
  --c-bg:         #ffffff;
  --c-bg-soft:    #f8fafc;   /* alternating sections */
  --c-bg-cta:     #0f172a;   /* dark cta band */
  --c-brand:      #0ea5e9;   /* sky blue -- matches agent warn shield */
  --c-brand-deep: #0284c7;
  --c-brand-soft: #e0f2fe;
  --c-accent:     #22c55e;   /* matches agent ok shield */

  --max-w:        1180px;
  --radius:       12px;
  --shadow-sm:    0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md:    0 4px 12px rgba(15, 23, 42, 0.08);
}

/* ── Reset + base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand-deep); text-decoration: none; }
a:hover { color: var(--c-brand); }
h1, h2, h3 { color: var(--c-ink); margin: 0 0 0.5em; line-height: 1.2; }
p  { margin: 0 0 1em; color: var(--c-ink-soft); }
ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--c-ink-soft); }

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

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms, color 120ms, border-color 120ms, transform 80ms;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--c-brand);
  color: #fff;
}
.btn-primary:hover { background: var(--c-brand-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-ghost:hover { background: var(--c-bg-soft); color: var(--c-ink); border-color: #cbd5e1; }
.btn-lg { padding: 12px 22px; font-size: 15px; }

/* ── Top nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); font-weight: 700; }
.brand:hover { color: var(--c-ink); }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-size: 17px; letter-spacing: -0.01em; }
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: 16px;
  flex: 1;
}
.nav-links a {
  color: var(--c-ink-soft);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--c-ink); }
.nav-cta { display: flex; gap: 8px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(ellipse 800px 480px at 80% -10%, var(--c-brand-soft), transparent 70%),
    radial-gradient(ellipse 600px 400px at 10% 110%, #f0fdf4, transparent 70%),
    var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.hero-inner { max-width: 820px; text-align: center; margin: 0 auto; padding: 0 24px; }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--c-ink-soft);
  max-width: 680px;
  margin: 0 auto 32px;
}
.hero-cta { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-foot {
  margin-top: 28px;
  font-size: 13px;
  color: var(--c-mute);
  letter-spacing: 0.02em;
}

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--c-bg-soft); border-block: 1px solid var(--c-line); }
.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.015em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
}
.section-lede {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  color: var(--c-ink-soft);
}

/* ── Platform tile grid ───────────────────────────────────────── */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.tile {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms, box-shadow 160ms, border-color 160ms;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--c-brand-soft);
  color: var(--c-brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.tile-icon svg { width: 22px; height: 22px; }
.tile h3 {
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.tile p { font-size: 0.95rem; color: var(--c-ink-soft); margin: 0; }

/* ── Audience cards ──────────────────────────────────────────── */
.aud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}
.aud-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.aud-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: var(--c-brand-deep);
}
.aud-card p { font-size: 0.98rem; }
.aud-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.aud-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--c-ink);
  font-size: 0.95rem;
}
.aud-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 4px;
  border-left: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
}

/* ── How it works ─────────────────────────────────────────────── */
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.how-steps li {
  position: relative;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 24px 22px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--c-brand);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.35);
}
.how-steps h3 {
  font-size: 1.1rem;
  margin: 12px 0 8px;
}
.how-steps p { font-size: 0.95rem; margin: 0; }

/* ── Trust grid ───────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.trust-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.trust-card h3 {
  font-size: 1rem;
  letter-spacing: -0.005em;
  margin-bottom: 10px;
  color: var(--c-ink);
}
.trust-card p { font-size: 0.93rem; margin: 0; }

/* ── Final CTA band ──────────────────────────────────────────── */
.section-cta {
  background:
    radial-gradient(ellipse 700px 380px at 50% 0%, rgba(14, 165, 233, 0.18), transparent 70%),
    var(--c-bg-cta);
  color: #e2e8f0;
  border-block: 1px solid var(--c-bg-cta);
}
.section-cta h2 { color: #fff; }
.section-cta p  { color: #cbd5e1; }
.cta-inner {
  text-align: center;
  max-width: 720px;
}
.cta-inner h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  margin-bottom: 14px;
}
.cta-inner p { font-size: 1.05rem; margin-bottom: 28px; }
.cta-actions { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.section-cta .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
}
.section-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-ink); }
.footer-mark { width: 22px; height: 22px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  flex: 1;
  justify-content: center;
}
.footer-links a {
  color: var(--c-ink-soft);
  font-size: 13.5px;
}
.footer-links a:hover { color: var(--c-ink); }
.footer-legal {
  margin: 0;
  color: var(--c-mute);
  font-size: 12.5px;
}

/* ── Mobile tightening ───────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-links { display: none; }      /* hide section links on small screens; brand + sign-in stays */
  .nav-cta .btn-ghost { display: none; }  /* one CTA on mobile */
  .hero { padding: 64px 0 56px; }
  .section { padding: 60px 0; }
  .footer-links { justify-content: flex-start; }
  .aud-card, .tile { padding: 22px; }
}

/* ── Eyebrow label ────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-brand-deep);
  background: var(--c-brand-soft);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow-center { display: table; margin-left: auto; margin-right: auto; }

/* ── Browser frame (wraps product screenshots) ────────────────── */
.browser {
  margin: 0;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.28), var(--shadow-md);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-line);
}
.browser-bar .dot { width: 11px; height: 11px; border-radius: 999px; background: #cbd5e1; }
.browser-bar .dot:nth-child(1) { background: #f87171; }
.browser-bar .dot:nth-child(2) { background: #fbbf24; }
.browser-bar .dot:nth-child(3) { background: #34d399; }
.browser-url {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--c-mute);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: 3px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.browser img { display: block; width: 100%; }
.hero-shot { max-width: 1040px; margin: 56px auto 0; }

/* ── Replaces-your-stack strip ────────────────────────────────── */
.strip { background: var(--c-bg-soft); border-bottom: 1px solid var(--c-line); }
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding: 22px 24px;
}
.strip-lead {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-mute);
  text-transform: uppercase;
}
.strip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.strip-list li {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-ink-soft);
  border: 1px solid var(--c-line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 13px;
}

/* ── Platform pillars ─────────────────────────────────────────── */
/* Explicit 4-up so the four pillars always form one clean row on
   desktop. auto-fit landed on 3+1 at our container width (4 tracks
   need ~1134px, container offers ~1132px) -- so we step down at
   breakpoints instead: 4 -> 2x2 -> 1, never an orphan card. */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1040px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms, box-shadow 160ms, border-color 160ms;
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.pillar-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--c-brand), var(--c-brand-deep));
  color: #fff;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.30);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar-head h3 { font-size: 1.15rem; margin: 0; }
.pillar-list { list-style: none; margin: 0; padding: 0; }
.pillar-list li {
  font-size: 0.9rem;
  color: var(--c-ink-soft);
  padding: 9px 0;
  border-top: 1px solid var(--c-line);
  line-height: 1.45;
}
.pillar-list li:first-child { border-top: 0; padding-top: 0; }
.pillar-list strong { color: var(--c-ink); font-weight: 600; }

/* ── Product tour ─────────────────────────────────────────────── */
.tour { display: flex; flex-direction: column; gap: 64px; }
.tour-row {
  margin: 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;
}
.tour-row-rev .browser { order: 2; }
.tour-copy h3 { font-size: 1.4rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.tour-copy p { font-size: 1rem; margin: 0; }

/* ── Stat band ────────────────────────────────────────────────── */
.stat-band { padding: 56px 0; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-brand-deep);
  line-height: 1;
}
.stat-label { font-size: 0.92rem; color: var(--c-mute); }

/* ── Tour / pillar mobile tightening ──────────────────────────── */
@media (max-width: 860px) {
  .tour-row { grid-template-columns: 1fr; gap: 22px; }
  .tour-row-rev .browser { order: 0; }
  .tour { gap: 48px; }
  .hero-shot { margin-top: 40px; }
}

/* ── Print / reduced motion / a11y ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .btn { transition: none; }
}
:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 2px;
  border-radius: 4px;
}
