/* Oryvin corporate site */
:root {
	--navy: #0a1b3d;
	--navy-2: #11295c;
	--blue: #1b64d8;
	--blue-dark: #134ba3;
	--cyan: #19b7ea;
	--green: #1aa05a;
	--ink: #0f1b33;
	--text: #2b3a55;
	--muted: #5a6882;
	--line: #e1e7f0;
	--bg: #f5f8fc;
	--white: #fff;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(10, 27, 61, 0.1);
	--shadow-lg: 0 24px 60px rgba(10, 27, 61, 0.22);
	--max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font: 17px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--bg); text-decoration: none; }
.nav a.on { color: var(--blue); }
.nav .btn { margin-left: 10px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 650; font-size: 0.98rem; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: transform 0.12s, box-shadow 0.12s, background 0.12s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(27, 100, 216, 0.35); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #dbe6ff; background: radial-gradient(1100px 520px at 85% -10%, rgba(25, 183, 234, 0.28), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(27, 100, 216, 0.35), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero::after { content: ""; position: absolute; right: -120px; top: -80px; width: 640px; height: 640px; background: url("../img/mark.png") center/contain no-repeat; opacity: 0.07; pointer-events: none; filter: brightness(2); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.hero h1 { color: #fff; }
.hero h1 span { background: linear-gradient(90deg, #5fd0ff, #8fb4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .eyebrow { color: #7cc8ff; }
.hero p.lead { color: #b9c9ec; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #cfdbf6; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 420px; height: 420px; background: url("../img/mark.png") center/contain no-repeat; opacity: 0.06; filter: brightness(2); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 44px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 28ch; margin-bottom: 0.35em; }
.page-hero .lead { color: #b9c9ec; margin-bottom: 0; font-size: 1.1rem; }
.page-hero .eyebrow { color: #7cc8ff; }

/* device frame for screenshots */
.frame { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.2); }
.frame img { width: auto; max-width: 100%; height: auto; display: block; }
.frame-light { border: 1px solid var(--line); box-shadow: var(--shadow); }
.caption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
.hero .caption { color: #8fa6d6; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg); }
section.dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #cfdbf6; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark .lead { color: #b9c9ec; }
section.dark .eyebrow { color: #7cc8ff; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.center .section-head, .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-bottom: 0; }

.trust { padding: 26px 0; background: #fff; border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 30px; color: var(--muted); font-weight: 650; font-size: 0.9rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--green); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; }
a.card { color: inherit; display: block; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c9d6ea; text-decoration: none; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 650; font-size: 0.93rem; color: var(--blue); }
.icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #e6f0ff, #d6ecfb); display: grid; place-items: center; margin-bottom: 18px; color: var(--blue); }
.icon svg { width: 24px; height: 24px; }
section.dark .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
section.dark .card p { color: #b9c9ec; }
section.dark .icon { background: rgba(124, 200, 255, 0.14); color: #7cc8ff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .lead { max-width: none; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
section.dark .checks li { color: #d5e0fa; }

/* flow diagram */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.flow .step { position: relative; padding: 0 14px; text-align: center; }
.flow .step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.15rem; box-shadow: 0 6px 16px rgba(27, 100, 216, 0.35); position: relative; z-index: 1; }
.flow .step::after { content: ""; position: absolute; top: 26px; left: 50%; width: 100%; height: 2px; background: linear-gradient(90deg, var(--blue), #9fc3f7); z-index: 0; }
.flow .step:last-child::after { display: none; }
.flow h3 { font-size: 1.05rem; margin-bottom: 4px; }
.flow p { font-size: 0.92rem; color: var(--muted); margin: 0; }
section.dark .flow p { color: #b9c9ec; }

/* two-lane diagram */
.lanes { display: grid; gap: 16px; }
.lane { border-radius: 14px; padding: 22px 24px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); }
.lane h3 { font-size: 1.05rem; margin-bottom: 4px; }
.lane p { margin: 0; font-size: 0.95rem; color: #b9c9ec; }
.lane .tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.lane.general .tag { background: rgba(25, 183, 234, 0.2); color: #7cdcff; }
.lane.private { border-color: rgba(26, 160, 90, 0.55); background: rgba(26, 160, 90, 0.1); }
.lane.private .tag { background: rgba(26, 160, 90, 0.25); color: #6fe3a6; }
.lane-gate { text-align: center; font-size: 0.85rem; color: #8fa6d6; font-weight: 650; letter-spacing: 0.04em; }

/* data protection diagram */
.pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 14px; }
.pipeline .node { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-align: center; }
.pipeline .node h3 { font-size: 1.05rem; margin-bottom: 6px; }
.pipeline .node p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.pipeline .node.core { border-color: var(--blue); box-shadow: 0 8px 24px rgba(27, 100, 216, 0.15); }
.pipeline .arrow { display: grid; place-items: center; color: var(--blue); }
.pipeline .arrow svg { width: 30px; height: 30px; }
.pipeline2 { display: grid; grid-template-columns: 2.5fr auto 1fr; gap: 14px; align-items: stretch; }
.pipeline2 .node { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-align: center; }
.pipeline2 .node h3 { font-size: 1.05rem; margin-bottom: 6px; }
.pipeline2 .node p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.pipeline2 .node.core { border-color: var(--blue); box-shadow: 0 8px 24px rgba(27, 100, 216, 0.15); }
.pipeline2 .arrow { display: grid; place-items: center; color: var(--blue); }
.pipeline2 .arrow svg { width: 30px; height: 30px; }
.boundary { border: 2px dashed #9fc3f7; border-radius: 16px; padding: 30px 18px 18px; position: relative; background: #f8fbff; }
.boundary .inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.boundary-label { position: absolute; top: -13px; left: 20px; background: #fff; padding: 2px 12px; border-radius: 999px; border: 1px solid #9fc3f7; color: var(--blue); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* component table */
.components { display: grid; gap: 14px; }
.component { display: grid; grid-template-columns: 220px 1fr; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; align-items: start; }
.component h3 { margin: 0; font-size: 1.1rem; }
.component .role { font-size: 0.85rem; color: var(--blue); font-weight: 700; margin-top: 2px; }
.component p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* downloads */
.dl-card { display: grid; grid-template-columns: 96px 1fr auto; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.dl-card + .dl-card { margin-top: 24px; }
.dl-card img { width: 80px; height: auto; }
.dl-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.dl-card .ver { color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; }
.dl-card .desc { margin-bottom: 12px; }
.dl-files { margin: 14px 0 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.dl-files li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 0; border-top: 1px solid var(--line); align-items: center; }
.dl-files .nm { font-weight: 700; color: var(--ink); min-width: 150px; }
.dl-files code { font: 12px/1.4 ui-monospace, Consolas, monospace; color: #52617d; word-break: break-all; }
.dl-actions { display: grid; gap: 10px; justify-items: stretch; }
.req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.req .card { padding: 22px; }

/* quote / statement */
.statement { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.4; font-weight: 650; color: var(--ink); max-width: 28em; letter-spacing: -0.01em; }
.statement em { font-style: normal; color: var(--blue); }

/* cta band */
.cta { background: linear-gradient(120deg, var(--blue-dark), var(--blue) 55%, #2a8fe8); color: #fff; text-align: center; padding: 72px 0; }
.cta h2 { color: #fff; }
.cta p { color: #d6e6ff; max-width: 56ch; margin: 0 auto 28px; font-size: 1.12rem; }
.cta .btn-primary { background: #fff; color: var(--blue-dark); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2); }
.cta .btn-primary:hover { background: #eef5ff; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 0.97rem; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--bg); color: var(--ink); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.tbl tr:last-child td { border-bottom: 0; }

/* footer */
.site-footer { background: var(--navy); color: #a9bbe0; padding: 64px 0 28px; font-size: 0.95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #a9bbe0; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.85rem; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 980px) {
	.hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
	.split.flip > :first-child { order: 0; }
	.grid-3, .grid-4, .req { grid-template-columns: repeat(2, 1fr); }
	.flow { grid-template-columns: 1fr; gap: 26px; }
	.flow .step::after { display: none; }
	.pipeline, .pipeline2, .boundary .inner { grid-template-columns: 1fr; }
	.pipeline .arrow, .pipeline2 .arrow { transform: rotate(90deg); }
	.component { grid-template-columns: 1fr; gap: 8px; }
	.dl-card { grid-template-columns: 1fr; text-align: left; }
	.site-footer .cols { grid-template-columns: 1fr 1fr; }
	.hero::after { opacity: 0.04; }
}
@media (max-width: 860px) {
	.menu-btn { display: block; }
	.nav { position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 20px; display: none; box-shadow: var(--shadow); }
	.nav.open { display: flex; }
	.nav .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 620px) {
	section { padding: 60px 0; }
	.grid-2, .grid-3, .grid-4, .req { grid-template-columns: 1fr; }
	.site-footer .cols { grid-template-columns: 1fr; }
	.hero .wrap { padding-top: 56px; padding-bottom: 64px; }
}

/* screenshots are shown at their own size (no scaling) */
.shot { max-width: 788px; margin: 0 auto; }
.shot .frame { display: inline-block; max-width: 100%; }
/* home hero: headline on the left, the viewer window beside it at its own size, all in the first screen */
.hero-split .wrap { max-width: 1340px; gap: 40px; grid-template-columns: minmax(300px, 400px) minmax(0, 788px); justify-content: center; }
.hero-split h1 { font-size: clamp(2.1rem, 3.5vw, 2.9rem); }
.hero-split .lead { font-size: 1.12rem; }
.hero-split .hero-cta { margin-top: 24px; }
.hero-shot { width: 100%; max-width: 788px; }
.hero-shot .frame { line-height: 0; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
@media (max-width: 980px) { .hero-split .wrap { grid-template-columns: 1fr; } .hero-shot { max-width: 788px; } }

/* compact banners on inner pages: the content should start in the first screen */
.page-hero .wrap { padding-top: 30px; padding-bottom: 34px; }
.page-hero h1 { max-width: none; font-size: clamp(1.7rem, 3.1vw, 2.35rem); }
.page-hero .lead { max-width: 92ch; }
.page-hero .eyebrow { margin-bottom: 8px; }
.page-hero + section { padding-top: 52px; }
.page-hero::after { width: 300px; height: 300px; top: -40px; }
section.page-hero, section.hero { padding: 0; }

/* a story told in steps (In action) */
.story-step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; max-width: 900px; margin: 0 auto; }
.story-step h2 { margin-bottom: 0.4em; }
.story-step .lead + .lead { margin-top: 0.9em; }
.story-num { width: 48px; height: 48px; border-radius: 50%; background: var(--blue, #2563eb); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; margin-top: 4px; }
.shot-wide { max-width: 1010px; margin-top: 34px; }
.shot-wide .frame { display: inline-block; max-width: 100%; }
@media (max-width: 620px) { .story-step { grid-template-columns: 1fr; gap: 12px; } }

/* fine print at the foot of a page */
section.notes { padding: 40px 0 56px; border-top: 1px solid var(--line); }
section.notes h2 { font-size: 1.05rem; margin-bottom: 0.7em; }
section.notes ol { margin: 0; padding-left: 1.3em; max-width: 900px; color: var(--muted); font-size: 0.92rem; }
section.notes li { margin-bottom: 0.7em; }
section.notes strong { color: var(--ink); }

/* the viewers page */
.viewer-card { padding: 36px; display: flex; flex-direction: column; gap: 0; }
.viewer-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.viewer-head img { width: 64px; height: 64px; flex: none; }
.viewer-head h2 { font-size: 1.6rem; margin: 0; }
.viewer-sub { color: var(--muted); margin: 2px 0 0; font-weight: 600; font-size: 0.95rem; }
.viewer-lead { color: var(--ink); font-size: 1.05rem; margin: 0; }
.viewer-card .checks { margin: 20px 0 22px; flex: 1; }
.viewer-card .checks li { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips span { font-size: 0.8rem; font-weight: 650; color: var(--blue-dark); background: rgba(27, 100, 216, 0.09); border-radius: 999px; padding: 5px 12px; }
.viewer-card .btn { align-self: flex-start; }
