/* Agentyllo — agentyllo.com. Elegant light design: indigo #4F46E5 · ink #0F172A. */

@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('../fonts/Poppins-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('../fonts/Poppins-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('../fonts/Poppins-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-display: swap; src: url('../fonts/Poppins-ExtraBold.ttf') format('truetype'); }

:root {
	--primary: #4f46e5;
	--primary-deep: #3730a3;
	--primary-soft: #eef2ff;
	--primary-200: #a5b4fc;
	--primary-300: #818cf8;
	--ink: #0f172a;
	--ink-2: #1e293b;
	--body: #475467;
	--muted: #94a3b8;
	--bg: #ffffff;
	--surface: #f8fafc;
	--border: #e2e8f0;
	--radius: 16px;
	--shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
	--shadow: 0 14px 40px rgba(15, 23, 42, .10);
	--shadow-primary: 0 10px 30px rgba(79, 70, 229, .18);
	--maxw: 1180px;
	--font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--font);
	color: var(--body);
	background: var(--bg);
	line-height: 1.65;
	overflow-x: hidden;
}
img, svg, model-viewer, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-deep); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-weight: 800; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }
.eyebrow { color: var(--primary); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { font-size: 17px; margin-top: 16px; color: var(--body); }

/* ---- wordmark ---- */
.wm { font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.wm .t { color: var(--ink); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-deep); color: #fff; transform: translateY(-1px); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { border-color: var(--primary-300); color: var(--primary-deep); }

/* ---- nav ---- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(255, 255, 255, .85); backdrop-filter: saturate(150%) blur(12px); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.nav-logo svg { height: 30px; width: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--primary); z-index: 101; transition: width .1s linear; }

/* ---- hero ---- */
.hero { padding: 150px 0 80px; background: radial-gradient(1100px 560px at 82% -8%, rgba(79,70,229,.07), transparent 60%), radial-gradient(800px 420px at 8% 12%, rgba(15,23,42,.03), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); }
.hero h1 .t { color: var(--primary); }
.hero p.lead { font-size: 19px; color: var(--body); margin: 22px 0 32px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-visual svg { width: 100%; height: auto; }

/* ---- neural hub animation ---- */
.hub .flow { stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
.hub .flow.slow { animation-duration: 2.2s; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.hub .core-ring { transform-origin: 460px 260px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hub .core-pulse { transform-origin: 460px 260px; animation: corePulse 4s ease-in-out infinite; }
@keyframes corePulse { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: .7; transform: scale(1.08); } }
.hub .reply { opacity: 0; animation: reply 9s ease-in-out infinite; }
.hub .reply.r2 { animation-delay: 1.1s; }
.hub .reply.r3 { animation-delay: 2.2s; }
@keyframes reply { 0%, 8% { opacity: 0; transform: translateY(6px); } 16%, 78% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; } }
.hub .tile { animation: tileGlow 9s ease-in-out infinite; }
.hub .tile.t2 { animation-delay: 3s; }
.hub .tile.t3 { animation-delay: 6s; }
@keyframes tileGlow { 0%, 100% { opacity: .8; } 10% { opacity: 1; } 25% { opacity: .8; } }

/* ---- concierge ---- */
.concierge { padding: 24px 0 96px; }
.concierge-stage { position: relative; background: linear-gradient(180deg, var(--ink), var(--ink-2)); border-radius: 24px; padding: 30px 48px 0; display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: end; overflow: hidden; }
.concierge-stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 72% 80%, rgba(79,70,229,.28), transparent 65%); pointer-events: none; }
.concierge-copy { position: relative; padding: 34px 0 56px; }
.concierge-copy .eyebrow { color: var(--primary-200); }
.concierge-copy h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); }
.concierge-copy p { color: #cbd5e1; margin-top: 14px; font-size: 16px; max-width: 480px; }
.concierge-stage { overflow: visible; }
.concierge-model { position: relative; height: 500px; display: flex; align-items: stretch; justify-content: center; z-index: 3; }
.concierge-model .c3d { width: 100%; height: 100%; }
.c3d { position: relative; z-index: 3; }
.c3d canvas { width: 100% !important; height: 100% !important; display: block; }
.concierge-model img.fallback { max-height: 100%; animation: hover-bob 6s ease-in-out infinite; }
@keyframes hover-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* extra concierge cameos — sit above neighbouring sections, never clipped */
.peek-bot { position: absolute; left: 50%; bottom: calc(100% - 40px); transform: translateX(-50%); width: 320px; height: 200px; pointer-events: none; overflow: hidden; z-index: 6; }
.peek-bot .c3d { width: 100%; height: 100%; }
.point-bot { position: absolute; right: max(8px, calc(50% - 720px)); top: 30px; width: 250px; height: 340px; pointer-events: none; z-index: 6; }
.point-bot .c3d { width: 100%; height: 100%; }
#tiers, #addons { overflow: visible; }
@media (max-width: 1250px) { .point-bot { display: none; } }
@media (max-width: 700px) { .peek-bot { width: 230px; height: 140px; bottom: calc(100% - 24px); } }
.concierge-shadow { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); width: 55%; height: 16px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.5), transparent 70%); animation: shadow-bob 6s ease-in-out infinite; }
@keyframes shadow-bob { 0%,100% { transform: translateX(-50%) scale(1); opacity: .8; } 50% { transform: translateX(-50%) scale(.86); opacity: .5; } }

/* ---- trust strip ---- */
.trust { padding: 44px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust .num { font-size: 38px; font-weight: 800; color: var(--ink); line-height: 1; }
.trust .num .t { color: var(--primary); }
.trust .lbl { font-size: 14px; color: var(--body); margin-top: 8px; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; position: relative; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 19px; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--body); }

/* ---- modes ---- */
.modes-toggle { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.mode-btn { border: 1px solid var(--border); background: var(--bg); color: var(--ink); font-weight: 500; font-size: 15px; padding: 10px 18px; border-radius: 10px; cursor: pointer; transition: .18s; }
.mode-btn[aria-selected="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.mode-btn:hover:not([aria-selected="true"]) { border-color: var(--primary-300); }
.mode-panel { max-width: 820px; margin: 0 auto; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.mode-panel .engines { display: flex; flex-direction: column; gap: 12px; }
.engine { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; color: var(--muted); transition: .22s; }
.engine.on { background: var(--primary-soft); border-color: var(--primary-300); color: var(--ink); }
.engine .dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.engine.on .dot { background: var(--primary); box-shadow: 0 0 0 4px rgba(79,70,229,.14); }
.mode-panel h3 { font-size: 21px; margin-bottom: 8px; }
.mode-panel p { color: var(--body); }

/* ---- features ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-300); }
.feature .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 18px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--body); }

/* ---- chat demo ---- */
.demo { background: var(--ink); color: #cbd5e1; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.demo h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); }
.demo p { color: #94a3b8; margin-top: 16px; font-size: 16px; }
.demo .chat { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 22px; min-height: 320px; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 14px; margin-bottom: 12px; font-size: 15px; line-height: 1.5; }
.bubble.bot { background: #1e293b; color: #e2e8f0; border-bottom-left-radius: 4px; }
.bubble.user { background: var(--primary); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; font-weight: 500; }
.bubble .cite { display: inline-block; margin-top: 8px; font-size: 12px; background: rgba(129,140,248,.16); color: var(--primary-200); padding: 3px 10px; border-radius: 999px; }
.cursor::after { content: '▋'; color: var(--primary-300); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- use cases ---- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case { display: flex; gap: 18px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.case .ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.case h3 { font-size: 17px; margin-bottom: 6px; }
.case p { font-size: 15px; color: var(--body); }

/* ---- tiers ---- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tier .tag { align-self: flex-start; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.tier h3 { font-size: 21px; margin-bottom: 8px; }
.tier .price { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tier li { font-size: 15px; color: var(--body); padding-left: 26px; position: relative; }
.tier li::before { content: '✓'; position: absolute; left: 0; color: var(--muted); font-weight: 600; }
.tier.featured { border: 2px solid var(--primary); background: linear-gradient(180deg, var(--primary-soft), var(--bg) 55%); box-shadow: var(--shadow-primary); }
.tier.featured .tag { background: var(--primary); color: #fff; border-color: var(--primary); }
.tier.featured li::before { color: var(--primary); }

/* ---- addons ---- */
.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.addon { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px; position: relative; box-shadow: var(--shadow-sm); }
.addon h3 { font-size: 16px; margin-bottom: 6px; }
.addon p { font-size: 14px; color: var(--body); }
.addon .badge { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; }
.addon .badge.soon { background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.addon .badge.avail { background: var(--primary-soft); color: var(--primary); }

/* ---- final cta ---- */
.final { text-align: center; background: radial-gradient(800px 380px at 50% 0%, rgba(79,70,229,.06), transparent 60%); }
.final h2 { font-size: clamp(30px, 4.5vw, 48px); }
.final p { font-size: 18px; color: var(--body); margin: 18px auto 32px; max-width: 560px; }
.final .hero-cta { justify-content: center; }
.final .mark-mini { width: 72px; margin: 0 auto 28px; }

/* ---- footer ---- */
.footer { background: var(--ink); color: #94a3b8; padding: 64px 0 40px; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: var(--primary-200); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.footer .wm { color: #fff; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.footer .wm svg { width: 28px; height: 28px; }
.footer-tag { margin-top: 10px; max-width: 280px; font-size: 14px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }

/* ---- responsive ---- */
@media (max-width: 900px) {
	.hero-grid, .demo, .mode-panel, .concierge-stage { grid-template-columns: 1fr; }
	.hero-visual { order: -1; min-height: 260px; }
	.concierge-stage { padding: 26px 26px 0; }
	.concierge-model { height: 320px; }
	.trust-grid, .steps, .features, .cases, .tiers, .addons { grid-template-columns: 1fr 1fr; }
	.nav-links { display: none; }
	.nav-burger { display: block; }
	.nav.open .nav-links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 20px 24px; box-shadow: var(--shadow); gap: 16px; }
	.demo { padding: 36px 24px; }
}
@media (max-width: 560px) {
	section { padding: 64px 0; }
	.trust-grid, .steps, .features, .cases, .tiers, .addons { grid-template-columns: 1fr; }
	.nav-cta .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
}
