/* Runpoint home (index.html) — standalone, no bootstrap dependency */

:root {
	--bg: #07090d;
	--bg-2: #0c1017;
	--surface: rgba(255, 255, 255, 0.04);
	--surface-hover: rgba(255, 255, 255, 0.07);
	--line: rgba(255, 255, 255, 0.09);
	--line-strong: rgba(255, 255, 255, 0.18);
	--ink: #f4f6fa;
	--ink-2: #aab3c2;
	--ink-3: #6f7a8c;
	--brand: #3d8bff;
	--brand-2: #215a97;
	--radius: 24px;
	--max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	backdrop-filter: saturate(160%) blur(16px);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	background: rgba(7, 9, 13, 0.62);
	border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.01em; font-size: 1.15rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
	padding: 8px 14px; border-radius: 999px; color: var(--ink-2);
	font-size: 0.93rem; font-weight: 500; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-hover); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 40px; isolation: isolate; overflow: hidden; }
.hero::before, .hero::after {
	content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(110px); opacity: 0.55;
	animation: drift 18s ease-in-out infinite alternate;
}
.hero::before { width: 560px; height: 560px; left: -140px; top: -120px; background: radial-gradient(circle, #215a97, transparent 70%); }
.hero::after { width: 520px; height: 520px; right: -120px; top: 60px; background: radial-gradient(circle, #da2e9f 0%, #8b4de8 45%, transparent 72%); opacity: 0.38; animation-delay: -6s; }
.hero-grid-bg {
	position: absolute; inset: 0; z-index: -1;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
	opacity: 0.5;
}
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }

.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
	background: var(--surface); color: var(--ink-2); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #2fc21b; box-shadow: 0 0 10px #2fc21b; }
h1.hero-title {
	margin: 22px 0 20px; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04;
	font-weight: 800; letter-spacing: -0.035em;
}
.grad {
	background: linear-gradient(100deg, #5fb0ff 0%, #b08cff 45%, #ff6bc6 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 540px; margin: 0 0 34px; font-size: 1.14rem; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
	border: 1px solid transparent; cursor: pointer;
	transition: transform .2s, background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--ink); color: #0a0d12; }
.btn-light:hover { box-shadow: 0 8px 28px rgba(255, 255, 255, 0.18); }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-line:hover { background: var(--surface-hover); border-color: rgba(255, 255, 255, 0.32); }

/* Hero icon cloud */
.cloud { position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; margin: 0 auto; }
.cloud a {
	position: absolute; width: var(--s, 22%); aspect-ratio: 1 / 1; left: var(--x); top: var(--y);
	border-radius: 22.37%; overflow: hidden;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
	animation: float 7s ease-in-out infinite; animation-delay: var(--d, 0s);
	transition: transform .3s, box-shadow .3s;
}
.cloud a:hover { transform: scale(1.1) rotate(-3deg); animation-play-state: paused; z-index: 3; }
.cloud img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.stat span { color: var(--ink-3); font-size: 0.88rem; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }

/* ---------- Featured cards ---------- */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feature { grid-column: span 2; }
.feature.wide { grid-column: span 3; }

.card {
	--a: #3d8bff; --a2: #215a97;
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	padding: 30px; border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
	border: 1px solid var(--line);
	transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s;
}
.card::before { /* brand glow in the corner */
	content: ''; position: absolute; width: 360px; height: 360px; right: -140px; top: -170px; z-index: 0;
	background: radial-gradient(circle, var(--a) 0%, transparent 65%); opacity: 0.28; transition: opacity .4s, transform .6s;
}
.card::after { /* cursor spotlight */
	content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.09), transparent 45%);
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--a) 55%, transparent); box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--a) 45%, transparent); }
.card:hover::before { opacity: 0.5; transform: scale(1.15); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.app-icon {
	width: 76px; height: 76px; border-radius: 22.37%;
	box-shadow: 0 10px 28px -6px color-mix(in srgb, var(--a) 60%, #000), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.tag {
	padding: 5px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
	color: var(--a); background: color-mix(in srgb, var(--a) 14%, transparent);
	border: 1px solid color-mix(in srgb, var(--a) 32%, transparent);
}
.card h3 { margin: 0 0 6px; font-size: 1.6rem; letter-spacing: -0.025em; font-weight: 800; }
.card .tagline { margin: 0 0 12px; color: var(--ink); font-weight: 600; font-size: 1rem; }
.card .desc { margin: 0 0 26px; color: var(--ink-2); font-size: 0.96rem; flex: 1; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.card .btn { padding: 10px 18px; font-size: 0.88rem; }
.btn-brand { background: var(--a); color: #fff; }
.btn-brand.dark-text { color: #07090d; }
.btn-brand:hover { box-shadow: 0 8px 24px -4px color-mix(in srgb, var(--a) 70%, transparent); }
.btn-brand .arrow { transition: transform .2s; }
.btn-brand:hover .arrow { transform: translate(2px, -2px); }

/* ---------- More apps ---------- */
.more { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.mini { grid-column: span 2; }
.mini:nth-child(n+4) { grid-column: span 3; }
.mini { flex-direction: row; align-items: center; gap: 18px; padding: 22px; border-radius: 20px; }
.mini::before { width: 220px; height: 220px; right: -110px; top: -110px; opacity: 0.18; }
.mini .app-icon { width: 64px; height: 64px; flex: none; }
.mini .body { min-width: 0; flex: 1; }
.mini h3 { margin: 0 0 3px; font-size: 1.08rem; letter-spacing: -0.015em; }
.mini p { margin: 0; color: var(--ink-2); font-size: 0.88rem; line-height: 1.45; }
.mini .go {
	flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 1rem;
	transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.mini:hover .go { background: var(--a); border-color: var(--a); color: #fff; transform: rotate(-45deg); }
.mini .stretch { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.mini .meta { display: block; margin-top: 8px; font-size: 0.74rem; font-weight: 600; color: var(--a); letter-spacing: 0.03em; }
.note { margin-top: 28px; color: var(--ink-3); font-size: 0.9rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--ink-2); font-size: 1.05rem; margin: 0 0 18px; }
.pillars { display: grid; gap: 14px; }
.pillar {
	padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
}
.pillar strong { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.pillar span { color: var(--ink-2); font-size: 0.93rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--ink-3); font-size: 0.9rem; }
.foot { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot .brand { color: var(--ink); margin-bottom: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot-links a { color: var(--ink-2); transition: color .2s; }
.foot-links a:hover { color: var(--ink); }
.copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in { transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s, opacity .7s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.hero { padding-top: 132px; }
	.hero-inner { grid-template-columns: 1fr; }
	.cloud { max-width: 340px; order: -1; }
	.feature, .feature.wide { grid-column: span 3; }
	.feature:last-child { grid-column: span 6; }
	.grid { grid-template-columns: repeat(2, 1fr); }
	.mini, .mini:nth-child(n+4) { grid-column: span 1; }
	.mini:last-child { grid-column: span 2; }
	.about-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
	.wrap { padding: 0 18px; }
	.nav-links a { padding: 8px 10px; }
	.features { grid-template-columns: 1fr; }
	.feature, .feature.wide, .feature:last-child { grid-column: auto; }
	.grid { grid-template-columns: 1fr; }
	.mini, .mini:nth-child(n+4), .mini:last-child { grid-column: auto; }
	.card { padding: 24px; }
	.section { padding: 64px 0; }
	.stats { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero::before, .hero::after, .cloud a { animation: none; }
	.reveal { opacity: 1; transform: none; transition: none; }
}
