/* Olventa website. Same design system as the portal: Inter, navy #1E40AF as the brand color.
   Lighter blues are only used for glows and gradients. No JavaScript anywhere. */

@font-face { font-family: "Inter"; src: url("/assets/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #1e40af;
  --navy-dark: #1e3a8a;
  --navy-soft: #eff6ff;
  --blue: #3b82f6;
  --blue-light: #93c5fd;
  --dark: #0a1030;
  --dark-2: #111c4d;
  --dark-3: #070b22;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg-alt: #f8fafc;
  --white: #ffffff;
  --on-dark: #cbd5e1;
  --on-dark-muted: #94a3b8;
  --line-dark: rgba(148, 163, 184, 0.16);
  --radius: 14px;
  --bar: 68px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --wrap: 1120px;
  --grid-line: rgba(255, 255, 255, 0.05);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); -webkit-text-size-adjust: 100%; background: var(--dark-3); }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
a:focus-visible, .btn:focus-visible, .pill:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 8px; }

h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.075rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
p { margin: 0; }

.wrap { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, box-shadow 0.15s, color 0.15s, transform 0.15s;
}
.btn-primary {
  background: var(--navy); color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(147, 197, 253, 0.28), 0 8px 24px -8px rgba(59, 130, 246, 0.6);
}
.btn-primary:hover { background: #2348c4; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(147, 197, 253, 0.45), 0 10px 30px -8px rgba(59, 130, 246, 0.75); }
.btn-ghost { color: #e2e8f0; }
.btn-ghost:hover { color: var(--white); }
.btn-ghost svg { transition: transform 0.15s; }
.btn-ghost:hover svg { transform: translateX(3px); }
.btn-white { background: var(--white); color: var(--navy); box-shadow: 0 8px 24px -10px rgba(7, 11, 34, 0.6); }
.btn-white:hover { background: var(--navy-soft); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar: dark glass, fixed, sits over the dark hero */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 16, 48, 0.62);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--bar); gap: 32px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--on-dark); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.15s; }
.nav a:hover { color: var(--white); }
.topbar .btn { flex: none; }

/* Dark sections share one look: navy gradient, faint grid, soft blue glow */
.dark { position: relative; overflow: hidden; isolation: isolate; background: var(--dark); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}
.dark::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: -260px; width: 900px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0));
}
.dark .eyebrow { color: var(--blue-light); }

/* Hero */
.hero { padding: calc(var(--bar) + 80px) 0 0; text-align: center; background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 55%, var(--dark) 100%); }
.hero::before {
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 15%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 15%, #000 25%, transparent 80%);
}
.hero h1 { max-width: 14ch; margin: 0 auto; }
.grad {
  background: linear-gradient(90deg, var(--blue-light) 0%, #dbeafe 45%, var(--white) 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .lead { max-width: 640px; margin: 24px auto 0; font-size: clamp(1.06rem, 1.8vw, 1.22rem); color: var(--on-dark); }
.hero .actions { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.28); background: rgba(30, 64, 175, 0.28);
  color: #dbeafe; font-size: 13.5px; font-weight: 500; text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.pill:hover { border-color: rgba(147, 197, 253, 0.5); background: rgba(30, 64, 175, 0.42); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22), 0 0 10px #60a5fa; }
.hero .shot { margin: 72px auto 0; padding-bottom: 96px; max-width: 1040px; }

/* Screenshot frames with glow */
.shot { position: relative; isolation: isolate; }
.shot::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 8%; right: 8%; top: 6%; height: 70%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.55), rgba(30, 64, 175, 0.25) 55%, rgba(30, 64, 175, 0));
  filter: blur(48px);
}
.tilt { perspective: 2400px; }
.browser {
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(7, 11, 34, 0.4), 0 40px 80px -24px rgba(2, 6, 23, 0.75), 0 0 60px -10px rgba(59, 130, 246, 0.35);
}
.tilt .browser { transform: rotateX(9deg); transform-origin: 50% 0; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.phone-shot { display: none; }
.phone {
  width: min(300px, 78vw); margin: 0 auto; padding: 10px;
  border-radius: 40px; background: #1e293b; border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -20px rgba(2, 6, 23, 0.8), 0 0 60px -10px rgba(59, 130, 246, 0.4);
}
.phone img { border-radius: 30px; }

/* Gentle fade-in on load (hero only) */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }
.d5 { animation-delay: 0.5s; }

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: block; margin-bottom: 14px; color: var(--navy); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.head { max-width: 680px; margin-bottom: 56px; }
.head-center { margin-left: auto; margin-right: auto; text-align: center; }
.head p { margin-top: 18px; font-size: 1.1rem; }

/* Challenge (dark, right under the hero) */
.challenge { border-top: 1px solid var(--line-dark); }
.challenge::after { top: -320px; }
.challenge .head { margin-bottom: 0; }
.challenge .head p { font-size: 1.2rem; color: var(--on-dark); }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px); border-color: rgba(30, 64, 175, 0.32);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.07), 0 16px 32px -14px rgba(30, 64, 175, 0.3);
}
.card p { margin-top: 8px; font-size: 15.5px; color: var(--text); }
.dark .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border-color: var(--line-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dark .card:hover {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(96, 165, 250, 0.18), 0 18px 40px -16px rgba(59, 130, 246, 0.5);
}
.dark .card p { color: var(--on-dark); }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 20px; border-radius: 11px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px -4px rgba(30, 64, 175, 0.5);
}
.badge .icon { width: 22px; height: 22px; }

/* How it works: three steps joined by a thin line */
.step { position: relative; padding-top: 4px; }
.step-num {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: var(--white);
  font-size: 15px; font-weight: 700;
  box-shadow: 0 0 0 6px var(--white), 0 6px 14px -4px rgba(30, 64, 175, 0.5);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 52px; right: -8px; height: 1px;
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.45), rgba(30, 64, 175, 0.12));
}
.step p { margin-top: 8px; font-size: 15.5px; }

/* Product (dark) */
.product .shot { margin-top: 72px; }
.caption { margin-top: 22px; text-align: center; color: var(--on-dark-muted); font-size: 14px; }

/* Who it's for */
.who { padding-bottom: 96px; }
.who .head { margin-bottom: 0; }
.who .head p { font-size: 1.25rem; color: var(--ink); line-height: 1.55; }

/* Founding partners */
.partners { padding: 0 0 112px; }
.partners-box {
  padding: 72px 48px; border-radius: 24px; text-align: center;
  background: linear-gradient(160deg, var(--dark-2) 0%, var(--navy) 100%);
  box-shadow: 0 30px 60px -30px rgba(30, 64, 175, 0.6);
}
.partners-box::before { -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 10%, transparent 70%); }
.partners-box::after { top: -300px; }
.partners-box p { max-width: 600px; margin: 18px auto 32px; font-size: 1.15rem; color: #dbeafe; }

/* Footer (dark) */
.footer { background: var(--dark-3); color: var(--on-dark-muted); padding: 48px 0 40px; font-size: 15px; border-top: 1px solid var(--line-dark); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer img { height: 30px; width: auto; }
.footer-links { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer-note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; }

/* Legal pages */
.legal { padding: calc(var(--bar) + 56px) 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.03em; }
.legal .updated { margin-top: 10px; color: var(--muted); font-size: 15px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 10px; letter-spacing: -0.015em; }
.legal p, .legal li { font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px; font-size: 15px; font-weight: 500; text-decoration: none; }
.back .icon { width: 16px; height: 16px; transform: rotate(180deg); }

/* 404 */
.notfound { padding: calc(var(--bar) + 120px) 0 140px; text-align: center; }
.notfound p { margin: 16px 0 32px; }

/* Tablet */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 20px; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --bar: 60px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .brand img { height: 26px; }
  .nav { display: none; }
  .hero { padding-top: calc(var(--bar) + 48px); }
  .pill { margin-bottom: 22px; font-size: 13px; }
  .hero .actions { flex-direction: column; gap: 4px; }
  .hero .actions .btn-primary { width: 100%; max-width: 340px; }
  .hero .shot { margin-top: 48px; padding-bottom: 64px; }
  .desktop-shot { display: none; }
  .phone-shot { display: block; }
  .section { padding: 72px 0; }
  .head { margin-bottom: 36px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 22px; }
  .badge { margin-bottom: 14px; }
  .steps { gap: 32px; }
  .step { padding-left: 58px; padding-top: 0; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .step:not(:last-child)::after { top: 46px; bottom: -26px; left: 19px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(30, 64, 175, 0.45), rgba(30, 64, 175, 0.12)); }
  .product .shot { margin-top: 44px; }
  .who { padding-bottom: 64px; }
  .partners { padding-bottom: 72px; }
  .partners-box { padding: 48px 22px; border-radius: 20px; }
  .partners-box .btn { width: 100%; max-width: 340px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .legal { padding-top: calc(var(--bar) + 32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  *, *::before, *::after { transition: none !important; }
  .card:hover { transform: none; }
}

@media (max-width: 760px) {
  .step h3 { padding-top: 8px; }
}

/* "Prefer email?" line under the demo buttons */
.alt-contact { margin-top: 16px; font-size: 14px; color: var(--on-dark-muted); }
.alt-contact a { color: var(--blue-light); text-decoration: underline; text-underline-offset: 3px; }
.alt-contact a:hover { color: #fff; }
.partners-box .alt-contact { margin-top: 18px; color: #dbeafe; }
.partners-box .alt-contact a { color: #fff; }
