/* marenyst-home.css — Dark Vercel/Linear-style landing page */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	--bg:           #0a0a0a;
	--surface:      #111111;
	--surface2:     #161616;
	--border:       #27272a;
	--border-light: #3f3f46;
	--text:         #fafafa;
	--text-muted:   #a1a1aa;
	--text-dim:     #71717a;
	--accent:       #6366f1;
	--accent-glow:  rgba(99,102,241,0.25);
	--accent-light: #818cf8;
	--green:        #4ade80;
	--radius:       12px;
	--radius-sm:    8px;
	--font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-mono:    'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
}

html  { scroll-behavior: smooth; }
body  { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
img   { display: block; max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 11px 22px; border-radius: var(--radius-sm); font-size: 15px;
	font-weight: 500; font-family: var(--font); border: none; cursor: pointer;
	transition: all 0.2s ease; white-space: nowrap; line-height: 1;
}
.btn-primary              { background: var(--accent); color: #fff; }
.btn-primary:hover        { background: var(--accent-light); box-shadow: 0 0 28px var(--accent-glow); transform: translateY(-1px); }
.btn-ghost                { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover          { border-color: var(--border-light); background: var(--surface); }
.btn-sm                   { padding: 7px 15px; font-size: 13px; }
.btn-lg                   { padding: 14px 28px; font-size: 16px; }

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
	position: fixed; top: 0; left: 0; right: 0; z-index: 200;
	background: rgba(10,10,10,0.75); backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-bottom: 1px solid var(--border);
	transition: background 0.3s;
}
.nav-inner {
	max-width: 1200px; margin: 0 auto; padding: 0 24px;
	height: 64px; display: flex; align-items: center; gap: 24px;
}
.nav-logo { font-size: 19px; font-weight: 800; letter-spacing: -0.5px; flex-shrink: 0; color: var(--text); }
.nav-links { display: flex; gap: 2px; margin-right: auto; }
.nav-links a {
	padding: 6px 12px; border-radius: 6px; font-size: 14px;
	color: var(--text-muted); transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang-toggle {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 13px;
	font-weight: 600; color: var(--text-muted); display: flex; align-items: center;
	gap: 3px; transition: border-color 0.2s; font-family: var(--font);
}
.lang-toggle:hover    { border-color: var(--accent); }
.lang-sep             { color: var(--border-light); }
.lang-en.active,
.lang-es.active       { color: var(--text); }

.nav-burger {
	display: none; flex-direction: column; gap: 5px;
	background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown */
.nav-mobile-menu {
	display: none; flex-direction: column;
	background: rgba(10,10,10,0.96); backdrop-filter: blur(20px);
	border-top: 1px solid var(--border);
	padding: 12px 24px 20px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a { padding: 11px 0; font-size: 16px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--text); }
.nav-mobile-cta { margin-top: 16px; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
	min-height: 100vh; display: flex; align-items: center;
	padding: 128px 0 96px; position: relative; overflow: hidden;
}
.hero-grid-bg {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
	-webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
}
.hero-glow {
	position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
	width: 600px; height: 400px; border-radius: 50%;
	background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
	filter: blur(60px); pointer-events: none;
}
.hero .container { position: relative; z-index: 1; text-align: center; }

.hero-badge {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.25);
	border-radius: 99px; padding: 6px 16px; font-size: 13px;
	color: var(--accent-light); margin-bottom: 36px;
}
.badge-dot {
	width: 7px; height: 7px; background: var(--green); border-radius: 50%;
	animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
	50%       { opacity: 0.8; box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

.hero-title {
	font-size: clamp(48px, 7vw, 92px); font-weight: 800;
	letter-spacing: -3.5px; line-height: 1.0; margin-bottom: 28px;
	background: linear-gradient(160deg, #ffffff 0%, #a1a1aa 100%);
	-webkit-background-clip: text; -webkit-text-fill-color: transparent;
	background-clip: text;
}
.hero-sub {
	font-size: clamp(16px, 2.2vw, 20px); color: var(--text-muted);
	max-width: 580px; margin: 0 auto 44px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 80px; }

.hero-stats { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat            { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.stat-number     { font-size: 30px; font-weight: 700; letter-spacing: -1px; }
.stat-label      { font-size: 13px; color: var(--text-muted); }
.stat-divider    { width: 1px; height: 44px; background: var(--border); }

/* ── SECTION COMMONS ──────────────────────────────────────── */
section { padding: 104px 0; }
.section-header  { text-align: center; margin-bottom: 64px; }
.section-label   { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-title   { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 16px; }
.section-sub     { font-size: 17px; color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ── SERVICES ─────────────────────────────────────────────── */
.services { background: var(--surface); }

.services-grid {
	display: grid; grid-template-columns: repeat(2, 1fr);
	gap: 1px; background: var(--border);
	border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.service-card { background: var(--surface); padding: 40px 36px; position: relative; transition: background 0.2s; }
.service-card:hover { background: var(--surface2); }
.service-card.featured { background: var(--surface2); }
.service-card.featured::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
	background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.service-icon { color: var(--accent); margin-bottom: 20px; }
.service-card h3  { font-size: 20px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.3px; }
.service-card p   { font-size: 15px; color: var(--text-muted); line-height: 1.75; }
.service-tag {
	display: inline-block; margin-top: 18px; font-size: 10px; font-weight: 700;
	letter-spacing: 1.5px; text-transform: uppercase;
	background: rgba(99,102,241,0.15); color: var(--accent-light);
	border-radius: 4px; padding: 3px 8px; border: 1px solid rgba(99,102,241,0.25);
}

/* ── PRODUCTS ─────────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.product-card {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); overflow: hidden;
	transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
	border-color: var(--accent); transform: translateY(-5px);
	box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(99,102,241,0.1);
}
.product-card--coming         { opacity: 0.45; }
.product-card--coming:hover   { opacity: 0.65; transform: translateY(-3px); }

.product-img-wrap { aspect-ratio: 16/9; overflow: hidden; background: var(--surface2); position: relative; }

.product-img-placeholder {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #111 0%, #1c1c2e 100%);
	color: var(--text-dim); font-size: 14px; font-weight: 500; letter-spacing: -0.2px;
	position: relative;
}
.product-img-placeholder::after {
	content: attr(data-label);
}
.product-img-placeholder.coming {
	background: repeating-linear-gradient(
		-45deg, var(--surface2), var(--surface2) 8px, var(--bg) 8px, var(--bg) 16px
	);
	color: var(--text-dim);
}

.product-info          { padding: 20px 22px; }
.product-info h3       { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.2px; }
.product-info p        { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.65; }

.product-tag {
	font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
	background: var(--surface2); color: var(--text-dim);
	border-radius: 4px; padding: 3px 8px; border: 1px solid var(--border);
}
.tag-coming {
	background: rgba(99,102,241,0.08); color: var(--accent-light);
	border-color: rgba(99,102,241,0.2);
}

/* ── AI SECTION ───────────────────────────────────────────── */
.ai-section { background: var(--surface); overflow: hidden; position: relative; }
.ai-section::before {
	content: ''; position: absolute; top: -100px; right: -100px;
	width: 500px; height: 500px; border-radius: 50%;
	background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
	pointer-events: none;
}

.ai-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; position: relative; z-index: 1; }
.ai-content { display: flex; flex-direction: column; gap: 20px; }
.ai-content .section-label,
.ai-content .section-title { text-align: left; }
.ai-content p { font-size: 15px; color: var(--text-muted); line-height: 1.8; }

.ai-list { display: flex; flex-direction: column; gap: 13px; margin: 4px 0; }
.ai-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text-muted); }
.check { color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.ai-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.ai-orb {
	position: absolute; width: 320px; height: 320px; border-radius: 50%;
	background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
	filter: blur(48px); pointer-events: none; animation: orb-float 6s ease-in-out infinite;
}
@keyframes orb-float {
	0%, 100% { transform: translateY(0); }
	50%       { transform: translateY(-12px); }
}

.ai-code-card {
	position: relative; background: #0d0d0d; border: 1px solid var(--border);
	border-radius: var(--radius); padding: 18px 20px; width: 100%;
	box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.code-dots    { display: flex; gap: 6px; margin-bottom: 14px; }
.code-dot     { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.code-dot.red    { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green  { background: #27c93f; }

.code-content {
	font-family: var(--font-mono); font-size: 13px; line-height: 1.85;
	color: #abb2bf; white-space: pre; overflow-x: auto;
}
.c-purple { color: #c678dd; }
.c-blue   { color: #61afef; }
.c-green  { color: #98c379; }
.c-yellow { color: #e5c07b; }
.c-accent { color: var(--accent-light); }
.c-muted  { color: #5c6370; }

/* ── CONTACT CTA ──────────────────────────────────────────── */
.contact-cta {
	background: var(--bg);
	border-top: 1px solid var(--border);
	position: relative; overflow: hidden;
}
.contact-cta::before {
	content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
	width: 700px; height: 400px; border-radius: 50%;
	background: radial-gradient(ellipse, rgba(99,102,241,0.07) 0%, transparent 70%);
	pointer-events: none;
}
.cta-inner {
	text-align: center; max-width: 640px; margin: 0 auto; position: relative; z-index: 1;
}
.cta-inner h2  { font-size: clamp(30px, 4vw, 48px); font-weight: 700; letter-spacing: -1.5px; margin-bottom: 18px; line-height: 1.1; }
.cta-inner > p { font-size: 18px; color: var(--text-muted); margin-bottom: 36px; line-height: 1.7; }
.cta-note      { margin-top: 18px; font-size: 13px; color: var(--text-dim); }

.tally-wrap {
	width: 100%; max-width: 600px; margin: 0 auto 4px;
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 8px 16px; overflow: hidden;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { padding: 28px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy  { font-size: 13px; color: var(--text-dim); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
	.products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.nav-links,
	.nav-right .btn  { display: none; }
	.nav-burger      { display: flex; }
	.nav-right       { gap: 8px; }

	.hero-stats      { gap: 24px; }
	.stat-divider    { height: 32px; }

	.services-grid   { grid-template-columns: 1fr; }
	.products-grid   { grid-template-columns: 1fr; }

	.ai-inner        { grid-template-columns: 1fr; gap: 48px; }
	.ai-visual       { display: none; }

	.section-title   { letter-spacing: -1px; }
	.hero-title      { letter-spacing: -2px; }

	.footer-inner    { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
	.hero-ctas       { flex-direction: column; align-items: center; }
	.hero-ctas .btn  { width: 100%; max-width: 320px; }
	.services-grid   { gap: 0; }
	.service-card    { border-bottom: 1px solid var(--border); }
}
