/* ==========================================================================
   Orivo — main stylesheet
   Tokens mirror the Orivo app (orivo.jomos.com.my).
   ========================================================================== */

:root {
	--orivo-primary: #1a237e;
	--orivo-secondary: #283593;
	--orivo-indigo: #3f51b5;
	--orivo-blue: #3d5afe;
	--orivo-accent: #d4af37;
	--orivo-ink: #0f172a;
	--orivo-text: #1e293b;
	--orivo-muted: #64748b;
	--orivo-line: #e2e8f0;
	--orivo-line-2: #e8ebf3;
	--orivo-field: #f8fafc;
	--orivo-soft: #f5f7ff;
	--orivo-night: #0b1033;

	--serif: "Playfair Display", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--grad: linear-gradient(135deg, var(--orivo-primary), var(--orivo-blue));
	--grad-nav: linear-gradient(135deg, #1a237e, #3f51b5);
	--grad-hero: linear-gradient(125deg, #151c6b 0%, #283593 45%, #3f51b5 100%);
	--card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(26, 35, 126, .06);
	--lift-shadow: 0 14px 34px rgba(26, 35, 126, .14);
	--radius: 16px;
	--container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--orivo-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: var(--orivo-primary); }
h3 { font-size: 1.08rem; font-weight: 700; color: var(--orivo-text); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

.sr-only, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--orivo-primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orivo-blue); outline-offset: 3px; border-radius: 6px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: 600 .92rem/1 var(--sans);
	letter-spacing: .01em;
	padding: 12px 18px;
	border-radius: 10px;
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease, color .2s;
}
.btn i { font-size: .85em; }
.btn-lg { padding: 15px 22px; font-size: .98rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(26, 35, 126, .25); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 24px rgba(26, 35, 126, .3); }
.btn-white { background: #fff; color: var(--orivo-primary); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(4px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }

.eyebrow {
	display: inline-block;
	font-size: .75rem; font-weight: 600;
	letter-spacing: .14em; text-transform: uppercase;
	color: var(--orivo-indigo);
	margin-bottom: 14px;
}
.lead { font-size: 1.08rem; color: var(--orivo-muted); max-width: 36em; }

/* Brand mark (same as app) ---------------------------------------------- */
.brand-mark { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark-icon {
	width: 40px; height: 40px; border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
	color: var(--orivo-accent); font-size: 1.05rem;
}
.brand-mark-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }

/* Header (app navbar gradient) ------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--grad-nav);
	box-shadow: 0 2px 12px rgba(26, 35, 126, 0);
	transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11, 16, 51, .35); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
	display: block; padding: 9px 14px; border-radius: 8px;
	text-decoration: none; font-size: .95rem; color: rgba(255, 255, 255, .85);
	transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-actions { display: flex; gap: 10px; }
.nav-actions .btn { padding: 10px 16px; }

.nav-toggle {
	display: none; width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
	background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 1.1rem;
}

@media (max-width: 1060px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.primary-nav {
		position: fixed; inset: 70px 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		background: var(--orivo-primary); padding: 16px 24px 24px;
		box-shadow: 0 20px 40px rgba(11, 16, 51, .4);
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.admin-bar .primary-nav { top: 102px; }
	.nav-open .primary-nav { transform: none; opacity: 1; visibility: visible; }
	.nav-links { flex-direction: column; }
	.nav-links a { padding: 12px 14px; font-size: 1.02rem; }
	.nav-actions { flex-direction: column; }
}

/* Glowing background (same GIF + overlay as the app login) --------------- */
.glow-bg {
	position: relative;
	background: var(--orivo-night) url("../img/ArtGlowing.gif") no-repeat center center;
	background-size: cover;
	color: #fff;
	overflow: hidden;
}
.glow-bg::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(160deg, rgba(26, 35, 126, .88) 0%, rgba(13, 20, 72, .78) 45%, rgba(8, 11, 38, .72) 100%);
}
.glow-bg > * { position: relative; z-index: 1; }
.glow-bg .eyebrow { color: var(--orivo-accent); }
.glow-bg h2 { color: #fff; }
.glow-bg .lead { color: rgba(255, 255, 255, .82); }

/* Hero ------------------------------------------------------------------- */
.hero { padding: 88px 0 104px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }

.brand-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.brand-features li { display: flex; align-items: flex-start; gap: 14px; font-size: .95rem; }
.brand-features li > i {
	flex: 0 0 34px; height: 34px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(61, 90, 254, .28); border: 1px solid rgba(255, 255, 255, .18);
	color: #c5cae9; font-size: .9rem;
}
.brand-features strong { display: block; color: #fff; font-weight: 600; }
.brand-features span { color: rgba(255, 255, 255, .72); font-size: .86rem; }

/* App mockup */
.hero-visual { position: relative; }
.app-window {
	background: #f4f6fb; border-radius: 18px; overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .25);
	box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .55);
	color: var(--orivo-text); font-size: .78rem;
}
.app-nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--grad-nav); color: #fff; }
.app-brand { font-weight: 700; font-size: .95rem; display: inline-flex; gap: 6px; align-items: center; }
.app-links { display: flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .85); }
.app-links > span { padding: 5px 8px; border-radius: 6px; }
.app-links i { margin-right: 3px; }
.app-links .active { background: rgba(255, 255, 255, .16); color: #fff; }
.app-links .avatar { width: 24px; height: 24px; padding: 0; border-radius: 50%; background: var(--orivo-blue); display: grid; place-items: center; font-size: .6rem; font-weight: 700; margin-left: 4px; }
.app-body { padding: 14px; display: grid; gap: 12px; }
.app-hero {
	position: relative; overflow: hidden;
	border-radius: 14px; padding: 16px 18px; color: #fff;
	background: var(--grad-hero); box-shadow: 0 12px 28px rgba(26, 35, 126, .28);
	display: grid; gap: 6px; justify-items: start;
}
.app-hero::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(129, 140, 248, .55), transparent 65%); }
.app-hero > * { position: relative; }
.app-hero small { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; font-weight: 600; }
.app-hero strong { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.app-hero .focus { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); font-size: .72rem; }
.app-hero .dot { width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .7); } 70%, 100% { box-shadow: 0 0 0 8px rgba(0, 0, 0, 0); } }
.app-hero-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.app-hero-btns span { padding: 5px 9px; border-radius: 7px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-weight: 600; font-size: .7rem; }
.app-hero-btns .primary { background: #fff; color: var(--orivo-primary); }
.app-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.app-stat {
	position: relative; background: #fff; border: 1px solid var(--orivo-line-2); border-radius: 12px;
	padding: 10px 10px 10px; display: grid; gap: 2px; overflow: hidden;
}
.app-stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.app-stat small { font-size: .56rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orivo-muted); }
.app-stat b { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.app-stat i { position: absolute; right: 8px; top: 12px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: .62rem; }
.app-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--orivo-line-2); border-radius: 12px; padding: 10px 12px; }
.case-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #eef1fb; color: var(--orivo-indigo); flex-shrink: 0; }
.case-main { flex: 1; min-width: 0; display: grid; }
.case-main small { color: var(--orivo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .66rem; font-weight: 600; white-space: nowrap; }
.pill-type { background: #f1f5f9; color: #475569; }
.pill-active { background: #dcfce7; color: #15803d; }
.pdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.float-card {
	position: absolute; display: flex; align-items: center; gap: 10px;
	background: #fff; color: var(--orivo-text);
	border: 1px solid var(--orivo-line-2); border-radius: 14px;
	padding: 10px 14px; font-size: .78rem;
	box-shadow: 0 18px 40px rgba(11, 16, 51, .35);
	animation: float 6s ease-in-out infinite;
}
.float-card small { display: block; color: var(--orivo-muted); font-size: .68rem; }
.float-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: .85rem; }
.float-icon.green { background: linear-gradient(135deg, #059669, #34d399); }
.float-1 { left: -40px; bottom: -58px; }
.float-2 { right: -28px; top: 96px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 1000px) {
	.hero { padding: 56px 0 80px; }
	.hero-grid { grid-template-columns: 1fr; gap: 64px; }
	.float-1 { left: 8px; }
	.float-2 { right: 8px; }
}
@media (max-width: 560px) {
	.app-links > span:not(.active):not(.avatar) { display: none; }
	.app-stats { grid-template-columns: repeat(2, 1fr); }
	.app-row .pill-type { display: none; }
	.float-2 { display: none; }
}

/* Sections --------------------------------------------------------------- */
.section { padding: 104px 0; }
.section-soft { background: var(--orivo-field); border-top: 1px solid var(--orivo-line-2); border-bottom: 1px solid var(--orivo-line-2); }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--orivo-muted); font-size: 1.08rem; }
@media (max-width: 720px) { .section { padding: 72px 0; } .section-head { margin-bottom: 40px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } }

/* Features (dash-card style) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
	background: #fff; border: 1px solid var(--orivo-line-2); border-radius: var(--radius);
	box-shadow: var(--card-shadow); padding: 26px;
	transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--lift-shadow); }
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.06); }
.feature-card p { color: var(--orivo-muted); font-size: .94rem; margin: 0; }
.feature-icon {
	width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
	display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.15rem;
	background: var(--tone); box-shadow: 0 8px 18px var(--tone-shadow);
	transition: transform .2s ease;
}
.tone-indigo { --tone: linear-gradient(135deg, #3949ab, #5c6bc0); --tone-shadow: rgba(57, 73, 171, .3); }
.tone-violet { --tone: linear-gradient(135deg, #7c3aed, #a78bfa); --tone-shadow: rgba(124, 58, 237, .3); }
.tone-blue   { --tone: linear-gradient(135deg, #1a237e, #3d5afe); --tone-shadow: rgba(61, 90, 254, .3); }
.tone-amber  { --tone: linear-gradient(135deg, #f59e0b, #fbbf24); --tone-shadow: rgba(245, 158, 11, .3); }
.tone-rose   { --tone: linear-gradient(135deg, #e11d48, #fb7185); --tone-shadow: rgba(225, 29, 72, .28); }
.tone-green  { --tone: linear-gradient(135deg, #059669, #34d399); --tone-shadow: rgba(5, 150, 105, .3); }
.tone-sky    { --tone: linear-gradient(135deg, #0284c7, #38bdf8); --tone-shadow: rgba(2, 132, 199, .3); }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* Check list */
.check-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list li > i {
	flex: 0 0 38px; height: 38px; border-radius: 11px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #e8eaf6; color: var(--orivo-primary); font-size: .92rem;
}
.check-list strong { display: block; color: var(--orivo-text); font-weight: 600; }
.check-list span { color: var(--orivo-muted); font-size: .92rem; }
.check-list.light li > i { background: rgba(61, 90, 254, .28); border: 1px solid rgba(255, 255, 255, .18); color: #c5cae9; }
.check-list.light strong { color: #fff; }
.check-list.light span { color: rgba(255, 255, 255, .72); }

/* AI chat mock */
.chat-mock {
	background: #fff; border: 1px solid var(--orivo-line-2); border-radius: 18px;
	box-shadow: 0 30px 60px -20px rgba(26, 35, 126, .28); overflow: hidden; font-size: .9rem;
}
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--grad-nav); color: #fff; }
.chat-title { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.chat-title i { color: var(--orivo-accent); }
.chat-case { font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .15); }
.chat-body { padding: 20px 18px; display: grid; gap: 12px; background: var(--orivo-soft); }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; line-height: 1.5; }
.msg.user { justify-self: end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { justify-self: start; background: #fff; border: 1px solid var(--orivo-line-2); border-bottom-left-radius: 4px; color: var(--orivo-text); }
.msg.ai ul { margin: 6px 0 8px; padding-left: 18px; }
.msg.ai em { font-style: normal; font-weight: 600; color: var(--orivo-indigo); }
.msg-actions { display: flex; gap: 8px; }
.msg-actions span { font-size: .72rem; font-weight: 600; color: var(--orivo-indigo); background: #eef1fb; padding: 4px 9px; border-radius: 7px; }
.msg.typing { display: flex; gap: 4px; padding: 14px 16px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9fa8da; animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; }
.msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-input { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 14px 18px; border-top: 1px solid var(--orivo-line-2); color: #94a3b8; }
.chat-input i { color: var(--orivo-blue); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
	position: relative; background: #fff; border: 1px solid var(--orivo-line-2); border-radius: var(--radius);
	box-shadow: var(--card-shadow); padding: 26px 22px; overflow: hidden;
}
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.step-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eef1fb; color: var(--orivo-indigo); font-size: 1.05rem; margin-bottom: 16px; }
.step-num { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orivo-accent); margin-bottom: 6px; }
.step p { color: var(--orivo-muted); font-size: .94rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Roles (demo-tile style, on glow background) */
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.role-tile {
	display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center;
	padding: 16px; border-radius: 14px;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
	backdrop-filter: blur(6px);
	transition: background .2s, transform .2s;
}
.role-tile:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.role-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #e8eaf6; color: var(--orivo-primary); }
.role-tile strong { font-size: .95rem; }
.role-tile > span:last-child { font-size: .82rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 480px) { .role-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--orivo-line-2); border-radius: 14px; padding: 0 22px; box-shadow: var(--card-shadow); }
.faq-item summary {
	list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
	font-weight: 600; color: var(--orivo-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "\f078"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: .8rem;
	position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	color: var(--orivo-indigo); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq-item p { color: var(--orivo-muted); padding-bottom: 18px; margin: 0; }

/* Contact */
.contact-split { align-items: start; }
.demo-cta {
	display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px 18px;
	border: 1px solid var(--orivo-line); border-radius: 14px; text-decoration: none; color: var(--orivo-primary);
	transition: background .2s, border-color .2s, box-shadow .2s;
}
.demo-cta:hover { background: var(--orivo-soft); border-color: var(--orivo-blue); box-shadow: 0 4px 12px rgba(26, 35, 126, .1); }
.demo-cta-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex-shrink: 0; }
.demo-cta strong { display: block; }
.demo-cta small { color: var(--orivo-muted); font-size: .86rem; }
.demo-cta > span:nth-child(2) { flex: 1; }

.demo-form {
	background: #fff; border: 1px solid var(--orivo-line-2); border-radius: 18px;
	padding: 30px; box-shadow: 0 30px 60px -24px rgba(26, 35, 126, .25); display: grid; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span:first-child { font-size: .82rem; font-weight: 600; color: #334155; }
.input-wrap { position: relative; display: block; }
.input-wrap i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: .9rem; pointer-events: none; transition: color .2s; }
.input-wrap:focus-within i { color: var(--orivo-blue); }
.demo-form input, .demo-form select, .demo-form textarea {
	font: inherit; font-size: .97rem; color: var(--orivo-ink);
	width: 100%; height: 48px; padding: 10px 14px 10px 42px;
	background: var(--orivo-field); border: 1.5px solid var(--orivo-line); border-radius: 10px;
	transition: border-color .2s, box-shadow .2s, background .2s;
	-webkit-appearance: none; appearance: none;
}
.demo-form select { background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.demo-form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus {
	outline: none; border-color: var(--orivo-blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(61, 90, 254, .12);
}
.notice { padding: 12px 16px; border-radius: 10px; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.notice-success { background: #dcfce7; color: #15803d; }
.notice-error { background: #fee2e2; color: #b91c1c; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } .demo-form { padding: 22px 18px; } }

/* Generic pages ---------------------------------------------------------- */
.page-content { padding: 80px 0 104px; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { color: var(--orivo-primary); }
.meta { color: var(--orivo-muted); font-size: .9rem; }
.entry-content { font-size: 1.05rem; color: var(--orivo-text); }
.entry-content a { color: var(--orivo-secondary); }
.entry-card { padding: 28px 0; border-bottom: 1px solid var(--orivo-line); }
.entry-card h2 { font-size: 1.5rem; margin-bottom: .2em; }
.entry-card h2 a { text-decoration: none; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--orivo-night); color: rgba(255, 255, 255, .65); padding: 72px 0 28px; font-size: .94rem; }
.site-footer .brand-mark { margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { max-width: 30em; }
.footer-col h4 { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orivo-accent); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a:not(.btn) { text-decoration: none; transition: color .2s; }
.footer-col a:not(.btn):hover { color: #fff; }
.footer-note { margin-bottom: 16px; }
.footer-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: rgba(255, 255, 255, .55);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal animation ------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.float-card, .app-hero .dot, .msg.typing span { animation: none; }
}

/* Late additions */
.section-dark { color: #fff; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .wave { animation: none; } }

/* Pricing */
.btn-outline { background: #fff; color: var(--orivo-primary); border: 1.5px solid var(--orivo-line); }
.btn-outline:hover { border-color: var(--orivo-blue); background: var(--orivo-soft); transform: translateY(-1px); }
.price-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; align-items: stretch; }
.price-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--orivo-line-2); border-radius: 20px;
	box-shadow: var(--card-shadow); padding: 32px; overflow: hidden;
}
.price-card.featured { border-color: rgba(61, 90, 254, .35); box-shadow: 0 30px 60px -24px rgba(26, 35, 126, .35); }
.price-card.featured::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }
.price-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #eef1fb; color: var(--orivo-indigo); font-size: .8rem; font-weight: 600; }
.price-amount { font-family: var(--sans); font-size: 3.2rem; font-weight: 800; color: var(--orivo-primary); letter-spacing: -0.02em; line-height: 1; margin: 22px 0 10px; }
.price-amount .cur { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; vertical-align: top; margin-right: 4px; position: relative; top: 6px; }
.price-amount .per { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--orivo-muted); margin-left: 4px; letter-spacing: 0; }
.price-amount.small { font-size: 2rem; margin-top: 26px; margin-bottom: 14px; }
.price-note { color: var(--orivo-muted); }
.price-list { list-style: none; margin: 4px 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; align-content: start; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--orivo-text); }
.price-list li > i { flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #15803d; font-size: .65rem; }
.price-foot { max-width: 920px; margin: 28px auto 0; padding: 14px 18px; border-radius: 12px; background: var(--orivo-field); border: 1px solid var(--orivo-line-2); color: var(--orivo-muted); font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; }
.price-foot i { color: var(--orivo-indigo); margin-top: 4px; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } .price-card { padding: 26px 22px; } }

/* Contact extras */
.demo-cta + .demo-cta { margin-top: 12px; }
.footer-note a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-note a i { color: var(--orivo-accent); margin-right: 4px; }

/* Video ------------------------------------------------------------------ */
.video-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; }
.video-card { margin: 0; }
.video-frame {
	position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
	background: var(--orivo-night); box-shadow: var(--lift-shadow); border: 1px solid var(--orivo-line-2);
}
.video-card.featured .video-frame { box-shadow: 0 24px 60px rgba(26, 35, 126, .22); outline: 3px solid rgba(212, 175, 55, .55); outline-offset: -3px; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-card figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.video-card figcaption strong { color: var(--orivo-ink); font-size: 1.02rem; }
.video-card figcaption span { color: var(--orivo-muted); font-size: .9rem; }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr; } }

/* New tone colours -------------------------------------------------------- */
.tone-teal   { --tone: linear-gradient(135deg, #0f766e, #2dd4bf); --tone-shadow: rgba(15, 118, 110, .3); }
.tone-orange { --tone: linear-gradient(135deg, #c2410c, #fb923c); --tone-shadow: rgba(194, 65, 12, .3); }
.tone-cyan   { --tone: linear-gradient(135deg, #0369a1, #22d3ee); --tone-shadow: rgba(3, 105, 161, .3); }

/* Screenshots grid -------------------------------------------------------- */
.screens-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.screen-card { margin: 0; }
.screen-frame {
	position: relative; border-radius: var(--radius); overflow: hidden;
	background: var(--orivo-night); box-shadow: var(--lift-shadow);
	border: 1px solid var(--orivo-line-2); aspect-ratio: 16 / 10;
}
.screen-frame img {
	display: block; width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.screen-card figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.screen-card figcaption strong { color: var(--orivo-ink); font-size: .97rem; font-weight: 600; }
.screen-card figcaption span { color: var(--orivo-muted); font-size: .88rem; }
@media (max-width: 960px) { .screens-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .screens-grid { grid-template-columns: 1fr; } }
