/* =========================================================
   ZenvX AI Studio — style.css
   Core styles: dark theme, glassmorphism, neon accents,
   navbar, footer, buttons, cards, layout primitives.
   ========================================================= */

:root {
	--bg: #05060a;
	--bg-2: #080a12;
	--surface: rgba(255, 255, 255, 0.04);
	--surface-strong: rgba(255, 255, 255, 0.07);
	--border: rgba(255, 255, 255, 0.10);
	--border-strong: rgba(255, 255, 255, 0.18);
	--text: #eef2ff;
	--text-dim: #9aa3c0;
	--text-faint: #6b7393;
	--cyan: #00f5ff;
	--purple: #7b2fff;
	--neon-grad: linear-gradient(120deg, #00f5ff 0%, #7b2fff 100%);
	--neon-grad-soft: linear-gradient(120deg, rgba(0,245,255,0.15), rgba(123,47,255,0.15));
	--glow-cyan: 0 0 24px rgba(0, 245, 255, 0.45);
	--glow-purple: 0 0 24px rgba(123, 47, 255, 0.45);
	--radius: 18px;
	--radius-sm: 12px;
	--maxw: 1200px;
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-head: 'Space Grotesk', 'Inter', sans-serif;
	--nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	font-family: var(--font-body);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
	position: relative;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

/* Animated global background gradient blobs */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(60vw 60vw at 12% 8%, rgba(123, 47, 255, 0.18), transparent 60%),
		radial-gradient(55vw 55vw at 90% 18%, rgba(0, 245, 255, 0.14), transparent 60%),
		radial-gradient(50vw 50vw at 50% 100%, rgba(123, 47, 255, 0.12), transparent 60%);
	background-color: var(--bg);
	animation: bgFloat 18s ease-in-out infinite alternate;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
	pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
section { position: relative; }
.section { padding: 110px 0; }
.section-tight { padding: 70px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
	display: inline-block;
	font-family: var(--font-head);
	font-size: 0.78rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--cyan);
	padding: 6px 14px;
	border: 1px solid var(--border-strong);
	border-radius: 100px;
	background: var(--surface);
	margin-bottom: 18px;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; margin-top: 16px; }

.gradient-text {
	background: var(--neon-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.98rem;
	padding: 14px 28px;
	border-radius: 100px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .25s ease, box-shadow .3s ease, background .3s ease;
	will-change: transform;
}
.btn-primary {
	background: var(--neon-grad);
	color: #04060d;
	box-shadow: 0 8px 30px rgba(0, 245, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(123, 47, 255, 0.45); }
.btn-ghost {
	background: var(--surface-strong);
	color: var(--text);
	border: 1px solid var(--border-strong);
	backdrop-filter: blur(12px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }

/* ---------- Glass card ---------- */
.glass {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

/* ---------- Navbar ---------- */
.navbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	height: var(--nav-h);
	display: flex;
	align-items: center;
	background: rgba(8, 10, 18, 0.55);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-bottom: 1px solid var(--border);
	transition: background .3s ease, border-color .3s ease;
}
.navbar.scrolled { background: rgba(6, 7, 12, 0.85); border-bottom-color: var(--border-strong); }
.nav-inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; display: flex; align-items: center; justify-content: space-between; }

.logo {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.4rem;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	gap: 2px;
}
.logo .z { color: var(--cyan); text-shadow: var(--glow-cyan); }
.logo .x {
	background: var(--neon-grad);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: hueShift 6s linear infinite;
}

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
	font-size: 0.95rem;
	color: var(--text-dim);
	position: relative;
	transition: color .25s ease;
	font-weight: 500;
}
.nav-links a::after {
	content: "";
	position: absolute;
	left: 0; bottom: -6px;
	width: 0; height: 2px;
	background: var(--neon-grad);
	transition: width .3s ease;
	border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}
.hamburger span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	padding-top: var(--nav-h);
}
#particles, .neural-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}
.neural-svg { opacity: 0.5; }
.hero-content { position: relative; z-index: 3; max-width: 900px; padding: 0 24px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.5rem); margin-bottom: 22px; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.35rem); color: var(--text-dim); margin-bottom: 38px; font-family: var(--font-head); letter-spacing: 0.04em; }
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* Floating glass cards behind hero */
.float-cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float-card {
	position: absolute;
	border-radius: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	backdrop-filter: blur(10px);
	box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.float-card.fc1 { width: 180px; height: 120px; top: 18%; left: 8%; }
.float-card.fc2 { width: 140px; height: 100px; top: 60%; left: 14%; }
.float-card.fc3 { width: 160px; height: 110px; top: 22%; right: 9%; }
.float-card.fc4 { width: 130px; height: 90px; bottom: 16%; right: 14%; }

.scroll-cue {
	position: absolute;
	bottom: 28px; left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	width: 26px; height: 42px;
	border: 2px solid var(--border-strong);
	border-radius: 100px;
	display: flex; justify-content: center;
}
.scroll-cue span { width: 4px; height: 8px; background: var(--cyan); border-radius: 4px; margin-top: 8px; animation: scrollDot 1.8s ease infinite; }

/* ---------- Page hero banner (inner pages) ---------- */
.page-hero {
	position: relative;
	padding: calc(var(--nav-h) + 90px) 0 70px;
	text-align: center;
	overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 16px; }
.page-hero .underline {
	display: block;
	width: 120px; height: 4px;
	margin: 18px auto 0;
	background: var(--neon-grad);
	border-radius: 4px;
	transform-origin: center;
}
.page-hero p { color: var(--text-dim); max-width: 640px; margin: 14px auto 0; font-size: 1.05rem; }

/* ---------- Stat / feature cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card { padding: 30px 26px; text-align: center; }
.stat-icon { font-size: 2rem; margin-bottom: 12px; }
.stat-value { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; }
.stat-card h3 { font-size: 1.05rem; margin-top: 6px; }
.stat-card p { color: var(--text-faint); font-size: 0.9rem; margin-top: 6px; }

/* ---------- Generic card grid ---------- */
.card-grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }

.feature-card { padding: 30px 26px; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; position: relative; overflow: hidden; }
.feature-card .ico { font-size: 1.9rem; margin-bottom: 14px; display: inline-block; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; }
.feature-card:hover { transform: translateY(-8px); border-color: rgba(0,245,255,0.5); box-shadow: 0 18px 50px rgba(0,0,0,0.45), var(--glow-cyan); }

/* ---------- Neon-border product card ---------- */
.neon-card {
	position: relative;
	padding: 40px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	overflow: hidden;
	transition: transform .35s ease;
}
.neon-card::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 1px;
	background: var(--neon-grad);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity .4s ease;
}
.neon-card:hover { transform: translateY(-6px); }
.neon-card:hover::before { opacity: 1; }
.neon-card:hover { box-shadow: 0 20px 60px rgba(123,47,255,0.35); }

.product-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 100px;
	background: rgba(0, 245, 159, 0.12);
	color: #00f5a0;
	border: 1px solid rgba(0, 245, 159, 0.35);
}
.product-badge.soon { background: rgba(0,245,255,0.10); color: var(--cyan); border-color: rgba(0,245,255,0.3); }

.mockup {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-sm);
	background: var(--neon-grad-soft);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-head);
	color: var(--text-dim);
	position: relative;
	overflow: hidden;
}
.mockup::after {
	content: "";
	position: absolute; inset: 0;
	background: radial-gradient(circle at 30% 30%, rgba(0,245,255,0.2), transparent 50%), radial-gradient(circle at 70% 70%, rgba(123,47,255,0.25), transparent 50%);
}
.mockup span { position: relative; z-index: 2; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; }

/* ---------- Timeline (vertical) ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 8px; }
.timeline::before {
	content: "";
	position: absolute;
	left: 13px; top: 6px; bottom: 6px;
	width: 2px;
	background: linear-gradient(var(--cyan), var(--purple));
	opacity: 0.5;
}
.tl-item { position: relative; padding: 0 0 40px 52px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
	position: absolute; left: 4px; top: 2px;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: var(--bg-2);
	border: 2px solid var(--cyan);
	box-shadow: var(--glow-cyan);
}
.tl-item h3 { font-size: 1.1rem; }
.tl-item p { color: var(--text-dim); font-size: 0.92rem; margin-top: 4px; }
.tl-phase { font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--cyan); text-transform: uppercase; }

/* ---------- Horizontal timeline (home upcoming) ---------- */
.h-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; margin-top: 30px; }
.h-timeline::before {
	content: ""; position: absolute; top: 36px; left: 6%; right: 6%; height: 2px;
	background: linear-gradient(90deg, var(--cyan), var(--purple)); opacity: .4;
}
.ht-item { text-align: center; }
.ht-node {
	width: 16px; height: 16px; border-radius: 50%; margin: 28px auto 18px;
	background: var(--bg-2); border: 2px solid var(--purple); box-shadow: var(--glow-purple); position: relative; z-index: 2;
}

/* ---------- About preview / split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.split p { color: var(--text-dim); margin-bottom: 16px; }

/* ---------- Founder / contact cards ---------- */
.founder-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.founder-card { padding: 34px; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.founder-avatar {
	width: 72px; height: 72px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-head); font-weight: 700; font-size: 1.6rem;
	background: var(--neon-grad); color: #04060d; margin-bottom: 18px;
}
.founder-card h3 { font-size: 1.3rem; }
.founder-role { color: var(--cyan); font-size: 0.9rem; font-family: var(--font-head); letter-spacing: 0.08em; margin-bottom: 18px; }
.contact-line { display: flex; align-items: center; gap: 10px; color: var(--text-dim); margin-top: 10px; font-size: 0.95rem; transition: color .25s ease; }
.contact-line:hover { color: var(--cyan); }
.contact-line .ci { width: 20px; text-align: center; }
.founder-card:hover { transform: translateY(-8px); border-color: rgba(123,47,255,0.5); box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--glow-purple); }

/* ---------- Mission ---------- */
.mission { text-align: center; max-width: 880px; margin: 0 auto; }
.mission h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.25; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.form-card { padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; font-family: var(--font-head); letter-spacing: 0.04em; }
.form-control {
	width: 100%;
	padding: 13px 16px;
	background: rgba(255,255,255,0.03);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 0.95rem;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.form-control:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,245,255,0.15); }
.form-control::placeholder { color: var(--text-faint); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { appearance: none; cursor: pointer; }
.field-error { color: #ff5d73; font-size: 0.8rem; margin-top: 6px; min-height: 1em; display: block; }
.honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.submit-btn { width: 100%; justify-content: center; position: relative; }
.submit-btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.spinner {
	width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid rgba(4,6,13,0.35); border-top-color: #04060d;
	animation: spin .7s linear infinite; display: none;
}
.submit-btn.loading .spinner { display: inline-block; }
.submit-btn.loading .btn-text { opacity: 0.7; }

.form-status { margin-top: 18px; text-align: center; min-height: 24px; }
.form-status.success { color: #00f5a0; }
.form-status.error { color: #ff5d73; }
.check-anim {
	width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
	display: none; align-items: center; justify-content: center;
	background: rgba(0,245,160,0.12); border: 2px solid #00f5a0; color: #00f5a0; font-size: 1.6rem;
	animation: pop .4s ease;
}
.form-status.success .check-anim { display: flex; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 60px 0 36px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer::before {
	content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
	background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
	background-size: 200% 100%;
	animation: gradSlide 6s linear infinite;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-faint); margin-top: 12px; font-size: 0.92rem; max-width: 320px; }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-links a { display: block; color: var(--text-faint); margin-bottom: 10px; font-size: 0.92rem; transition: color .25s ease; }
.footer-links a:hover { color: var(--cyan); }
.socials { display: flex; gap: 14px; }
.socials a {
	width: 40px; height: 40px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
	transition: transform .25s ease, color .25s ease, border-color .25s ease;
}
.socials a:hover { transform: translateY(-4px); color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.footer-bottom { text-align: center; color: var(--text-faint); font-size: 0.85rem; padding-top: 28px; border-top: 1px solid var(--border); }

/* ---------- Page transition overlay ---------- */
.page-fade {
	position: fixed; inset: 0; z-index: 9999;
	background: var(--bg);
	pointer-events: none;
	opacity: 0;
	transition: opacity .45s ease;
}
.page-fade.active { opacity: 1; pointer-events: all; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
