/* orivix.ai — self-contained styles.
   CSP: fonts and styles served from 'self' only; no external requests. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
}

:root {
  --ink: #101828;
  --body: #3d4658;
  --muted: #64708a;
  --line: #e4e8ef;
  --paper: #ffffff;
  --accent: #2447d6;
  --accent-dark: #1c38ab;
  --accent-soft: #e8edfc;
  --periwinkle: #7e9af2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 66rem;
  width: 100%;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

h1, h2 { color: var(--ink); }

::selection { background: var(--accent-soft); color: var(--ink); }

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------ Buttons ------------------------------ */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(36, 71, 214, 0.5);
}

.btn-primary:active { transform: translateY(0); }

.btn:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------ Header ------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark { width: 1.875rem; height: 1.875rem; }
.brand-mark line { stroke: var(--ink); stroke-width: 1.6; }
.brand-mark .brand-node { fill: var(--ink); }
.brand-mark .brand-node-accent { fill: var(--accent); }
.brand-mark .brand-node-alt { fill: var(--periwinkle); }

.brand-tagline {
  margin-left: 1.1rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.header-mail {
  margin-left: auto;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9375rem;
}

.header-mail:hover { color: var(--ink); }

/* -------------------------------- Hero -------------------------------- */

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 0 0 auto;
  position: relative;
  isolation: isolate;
  padding: 5rem 0 3rem;
  text-align: center;
}

/* memory field: a dot grid that dissolves around the headline */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, #ccd6e8 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(42rem 26rem at 50% 2rem, #000 0%, transparent 72%);
  mask-image: radial-gradient(42rem 26rem at 50% 2rem, #000 0%, transparent 72%);
}

/* soft bloom behind the headline */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(46rem 24rem at 50% -6rem, rgba(232, 237, 252, 0.9) 0%, rgba(232, 237, 252, 0) 70%);
}

.hero h1 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4.8vw, 3.6rem);
  font-variation-settings: "opsz" 56;
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* wide screens get controlled line breaks that follow the phrasing —
   "security vendors" must never split; on narrow screens text flows free */
@media (min-width: 641px) {
  .h1-row { display: block; }
}

/* the promise gets its own line, set off with a touch more air
   than the headline's own leading */
.h1-line {
  display: block;
  margin-top: 0.24em;
  color: var(--accent);
}

/* the problem, stated small — sets up the headline */
.hero-kicker {
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

/* ------------------------------- Signup ------------------------------- */

.signup {
  margin: 3.25rem auto 0;
  display: flex;
  gap: 0.4rem;
  max-width: 29rem;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid #d9e0ec;
  border-radius: 999px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 14px 34px -14px rgba(36, 71, 214, 0.22);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.signup:hover { border-color: #c3cde0; }

.signup:focus-within {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px var(--accent-soft),
    0 14px 34px -14px rgba(36, 71, 214, 0.22);
}

.signup input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-radius: 999px;
}

.signup input::placeholder { color: var(--muted); }

/* the pill itself carries the focus ring via :focus-within */
.signup input:focus-visible { outline: none; }

.signup-note {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* --------------------------- Capabilities ----------------------------- */
/* Three capabilities, each headed by a glyph drawn in the brand's
   node-and-edge language. Parallel capabilities — no sequence. */

.capabilities {
  flex: 1 0 auto;
  padding: 3.75rem 0 4.75rem;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
}

.cap { text-align: center; }

.cap-glyph {
  width: 3rem;
  height: 3rem;
  display: block;
  margin: 0 auto 1.25rem;
  overflow: visible;
}

.cap-glyph .g-ring {
  fill: none;
  stroke: #b9c3d9;
  stroke-width: 1.4;
  stroke-dasharray: 2.5 3;
}

.cap-glyph .g-arc {
  fill: none;
  stroke: var(--periwinkle);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.cap-glyph .g-edge {
  stroke: #b9c3d9;
  stroke-width: 1.4;
}

.cap-glyph .g-node-ink    { fill: var(--ink); }
.cap-glyph .g-node-accent { fill: var(--accent); }
.cap-glyph .g-node-peri   { fill: var(--periwinkle); }
.cap-glyph .g-sat         { fill: var(--periwinkle); }
.cap-glyph .g-note        { fill: var(--accent); }

/* signals blink softly — the intelligence is live */
@keyframes ping {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

.cap-glyph .g-arc-1 { animation: ping 2.6s ease-in-out infinite; }
.cap-glyph .g-arc-2 { animation: ping 2.6s ease-in-out 0.35s infinite; }

.cap h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.cap p { font-size: 0.9375rem; }

/* ----------------------------- Responsive ----------------------------- */

@media (max-width: 640px) {
  .brand-tagline { display: none; }

  .hero { padding: 3.75rem 0 4.25rem; }

  .signup {
    margin-top: 2.75rem;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 1.6rem;
  }

  .signup input {
    border: 1px solid var(--line);
    padding: 0.7rem 1.1rem;
  }

  .signup .btn { width: 100%; }

  .capabilities { padding: 3.25rem 0 3.5rem; }

  .cap-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }
}

/* ------------------------------- Footer ------------------------------ */

.site-footer-min { border-top: 1px solid var(--line); }

.footer-min-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.3rem;
  padding-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-min-inner nav { display: flex; gap: 1.5rem; }

.footer-min-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-min-inner a:hover { color: var(--ink); }

/* -------------------- Thanks page (centered hero) --------------------- */

.center-hero {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 4.75rem 1.5rem 0;
  text-align: center;
}

.center-hero h1 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-variation-settings: "opsz" 72;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 1.2rem auto 0;
  font-size: 1.0625rem;
  max-width: 34rem;
}

.hero-sub a { color: var(--accent); }

.hero-line {
  margin-top: 2.6rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

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

/* --------------------------- Legal pages ----------------------------- */

/* same measure as .container, matching the About page: text aligns
   with the header's brand on the left and the About link on the right */
.legal {
  flex: 1;
  width: 100%;
  max-width: 66rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
}

.legal h1 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-variation-settings: "opsz" 56;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.legal .legal-updated { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }
.legal h2 { font-size: 1.2rem; font-weight: 700; margin: 2.2rem 0 0.6rem; }
.legal p { margin-top: 0.6rem; }
.legal a { color: var(--accent); }

/* ----------------------------- About page ---------------------------- */
/* Company page in the site's voice: serif headline, the leak diagram,
   then the story in body copy. */

/* same measure as .container so the text aligns with the header's
   brand on the left and the About link on the right */
.about {
  flex: 1;
  width: 100%;
  max-width: 66rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
}

.about h1 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4.8vw, 3.6rem);
  font-variation-settings: "opsz" 56;
  line-height: 1.28;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* "go dark" dims like the dots it describes — blue stays the win color */
.about h1 em { font-style: normal; color: var(--muted); }

/* the count of the lost, in Google red */
.about h1 .h1-lost { color: #ea4335; }

/* the story reads in the site's body voice — same as the front page */
.about p { margin-top: 1.5rem; }

.about a { color: var(--accent); }

/* leads going dark across the cycle */
.leak { margin: 3rem 0 0; }
.leak svg { display: block; width: 100%; height: auto; }
.leak-axis { stroke: var(--line); stroke-width: 1; }
.leak-dots { fill: var(--ink); }

/* the two of ten who make it to the buying moment — with you */
.leak .dot-kept { fill: var(--accent); }

/* extra air between the diagram and the first paragraph */
.leak + p { margin-top: 2.6rem; }

.leak-months {
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  fill: var(--muted);
}

/* ----------------------------- 404 page ------------------------------ */

.notfound {
  flex: 1;
  width: 100%;
  max-width: 66rem;
  margin: 0 auto;
  padding: 7rem 1.5rem;
}

.notfound h1 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-variation-settings: "opsz" 56;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.notfound p { margin-top: 1rem; color: var(--muted); }
.notfound a { color: var(--accent); }
