/* ------------------------------------------------------------
   5. HERO — dark ink + gradient mesh + grid
   ------------------------------------------------------------ */
.ord-hero {
	position: relative;
	background: var(--ink);
	color: var(--paper);
	padding: 96px 0 110px;
	overflow: clip;
}

/* Minimal mesh — one purple wash + one yellow glow, no rainbow. */
.ord-hero-mesh {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(48% 60% at 12% 12%, rgba(139, 92, 246, 0.34) 0%, rgba(139, 92, 246, 0) 72%),
		radial-gradient(44% 56% at 82% 86%, rgba(255, 210, 30, 0.16) 0%, rgba(255, 210, 30, 0) 72%),
		linear-gradient(180deg, #241046 0%, #1b0a38 100%);
	pointer-events: none;
}

/* Fine grid pattern masked radially */
.ord-hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(60% 70% at 50% 30%, #000 30%, transparent 100%);
	-webkit-mask-image: radial-gradient(60% 70% at 50% 30%, #000 30%, transparent 100%);
	pointer-events: none;
}

/* Ambient orbs */
.ord-hero-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.4;
	pointer-events: none;
	animation: ord-orb-drift 12s ease-in-out infinite alternate;
}

/* Ambient orbs */
.ord-hero-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.55;
	pointer-events: none;
	animation: ord-orb-drift 12s ease-in-out infinite alternate;
}

/* A 70px blur is an expensive layer to keep compositing; freeze the ambient
   layers while their section is off-screen (ord.js toggles the class). */
.ord-hero-orb.is-paused,
.ord-blob.is-paused {
	animation-play-state: paused;
}

.ord-hero-orb--1 {
	width: 420px;
	height: 420px;
	background: radial-gradient(circle, rgba(139, 92, 246, 0.8), transparent 70%);
	top: -120px;
	right: 4%;
}

.ord-hero-orb--2 {
	width: 380px;
	height: 380px;
	background: radial-gradient(circle, rgba(255, 210, 30, 0.45), transparent 70%);
	bottom: -140px;
	left: 6%;
	animation-delay: -4s;
}

.ord-hero-orb--3 {
	width: 280px;
	height: 280px;
	background: radial-gradient(circle, rgba(167, 139, 250, 0.7), transparent 70%);
	top: 30%;
	left: 38%;
	animation-delay: -8s;
}

@keyframes ord-orb-drift {
	0% { transform: translate(0, 0) scale(1); }
	100% { transform: translate(28px, -26px) scale(1.08); }
}

.ord-hero-inner {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}

/* Single-column hero — inner pages (e.g. Pricing) */
.ord-hero--solo .ord-hero-inner {
	grid-template-columns: 1fr;
	justify-items: center;
	text-align: center;
}

.ord-hero--solo .ord-hero-copy {
	width: 100%;
	max-width: 860px;
}

.ord-hero--solo .ord-hero-desc {
	margin-left: auto;
	margin-right: auto;
}

.ord-hero--solo .ord-hero-actions,
.ord-hero--solo .ord-hero-trust {
	justify-content: center;
}

/* Solo hero and the pricing section share the dark ink background. */
.ord-hero--solo + .ord-pricing-section {
	padding-top: 0;
}

.ord-hero-title {
	font-size: clamp(2.6rem, 5.6vw, 4.4rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.04;
	color: var(--paper);
	margin: 22px 0 20px;
}

.ord-hero-desc {
	font-size: clamp(1.02rem, 1.4vw, 1.18rem);
	color: rgba(246, 242, 255, 0.82);
	max-width: 540px;
	margin-bottom: 32px;
}

.ord-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 34px;
}

.ord-hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.ord-hero-trust-item {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(246, 242, 255, 0.78);
	padding-left: 20px;
}

.ord-hero-trust-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--mint);
	box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.25);
}

/* Rotating headline. `ord.js` locks the width of `.ord-rotating` to the widest
   word so the heading never reflows while words swap, so the highlight lives on
   the inner `.ord-rotating-text` box — a background on the locked box painted a
   full-width slab behind short words. The caret is its own element right after
   the highlight so the marker stays outside it. */
.ord-rotating {
	position: relative;
	white-space: nowrap;
}

.ord-rotating-caret {
	display: inline-block;
	width: 3px;
	height: 0.85em;
	margin-left: 6px;
	background: var(--mint);
	vertical-align: baseline;
	animation: ord-caret 1s steps(1) infinite;
}

@keyframes ord-caret {
	0%, 49% { opacity: 1; }
	50%, 100% { opacity: 0; }
}

/* Browser mockup */
.ord-hero-visual {
	position: relative;
}

.ord-browser {
	background: var(--paper);
	border: 2.5px solid var(--ink);
	border-radius: var(--ord-radius);
	box-shadow: 12px 12px 0 0 var(--ink);
	overflow: hidden;
}

.ord-browser-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13px 16px;
	border-bottom: 2.5px solid var(--ink);
	background: var(--mist);
}

.ord-browser-dot {
	width: 13px;
	height: 13px;
	border: 2px solid var(--ink);
	border-radius: 50%;
}

.ord-browser-dot--red { background: var(--violet); }
.ord-browser-dot--amber { background: #ffd21e; }
.ord-browser-dot--green { background: var(--violet-deep); }

.ord-browser-url {
	flex: 1;
	margin-left: 8px;
	background: var(--paper);
	border: 2px solid var(--ink);
	border-radius: var(--ord-pill);
	padding: 5px 14px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--muted);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	overflow: hidden;
	white-space: nowrap;
}

.ord-browser-url::before {
	content: '🔒';
	font-size: 0.72rem;
}

.ord-browser-body {
	padding: 22px;
	display: grid;
	gap: 16px;
}

.ord-browser-hero {
	background: linear-gradient(120deg, #6d28d9, #8b5cf6);
	border: 2px solid var(--ink);
	border-radius: 12px;
	padding: 18px;
	color: var(--paper);
	display: grid;
	gap: 10px;
}

.ord-browser-hero-line {
	height: 10px;
	background: rgba(255, 255, 255, 0.75);
	border-radius: 6px;
}

.ord-browser-hero-line--short { width: 55%; }
.ord-browser-hero-line--tiny { width: 34%; }

.ord-browser-hero-btn {
	justify-self: start;
	background: var(--paper);
	color: var(--ink);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 7px 16px;
	border: 2px solid var(--ink);
	border-radius: var(--ord-pill);
	box-shadow: 3px 3px 0 0 var(--ink);
}

.ord-browser-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.ord-browser-card {
	height: 64px;
	border: 2px solid var(--ink);
	border-radius: 10px;
	box-shadow: 3px 3px 0 0 var(--ink);
}

.ord-browser-card--violet { background: #dcd5ff; }
.ord-browser-card--mint { background: #fff4cc; }
.ord-browser-card--amber { background: #ffe9a8; }

.ord-browser-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.ord-browser-stat {
	border: 2px solid var(--ink);
	border-radius: 10px;
	padding: 10px;
	text-align: center;
	background: var(--paper);
}

.ord-browser-stat b {
	display: block;
	font-family: var(--ord-font-heading);
	font-size: 0.95rem;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.ord-browser-stat span {
	font-size: 0.66rem;
	font-weight: 600;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* Floating chips */
.ord-float-chip {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--paper);
	border: 2.5px solid var(--ink);
	border-radius: 14px;
	box-shadow: 6px 6px 0 0 var(--ink);
	padding: 10px 14px;
	z-index: 3;
	animation: ord-chip-bob 3.4s ease-in-out infinite;
}

.ord-float-chip-icon {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.05rem;
	background: var(--mist);
	border: 2px solid var(--ink);
	border-radius: 9px;
}

.ord-float-chip strong {
	display: block;
	font-family: var(--ord-font-heading);
	font-size: 0.9rem;
	color: var(--ink);
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.ord-float-chip small {
	display: block;
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--muted);
	line-height: 1.1;
}

.ord-float-chip-badge {
	align-self: flex-start;
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--paper);
	background: var(--violet);
	border: 2px solid var(--ink);
	border-radius: var(--ord-pill);
	padding: 2px 7px;
	transform: translateY(-12px);
}

.ord-float-chip-badge--mint { background: var(--mint); color: var(--ink); }
.ord-float-chip-badge--sky { background: var(--sky); color: var(--ink); }

.ord-float-chip--1 { top: -20px; right: -10px; animation-delay: -0.6s; }
.ord-float-chip--2 { bottom: 40px; left: -26px; animation-delay: -1.8s; }
.ord-float-chip--3 { bottom: -22px; right: 26px; animation-delay: -3s; }

@keyframes ord-chip-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* Scroll cue */
.ord-hero-scroll {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(246, 242, 255, 0.6);
	z-index: 2;
}

.ord-hero-scroll span {
	font-size: 0.9rem;
	animation: ord-scroll-cue 1.6s ease-in-out infinite;
}

@keyframes ord-scroll-cue {
	0%, 100% { transform: translateY(0); opacity: 1; }
	50% { transform: translateY(6px); opacity: 0.5; }
}

