/* ChatArena website – dark neon style, fonts are hosted here (no Google servers) */
@font-face { font-family: "Kanit"; font-style: italic; font-weight: 900; font-display: swap; src: url("../fonts/kanit-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: "Kanit"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/kanit-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Kanit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/kanit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
	--bg: #0b0916; --bg2: #120d24; --card: rgba(255, 255, 255, .045); --line: rgba(255, 255, 255, .1);
	--text: #f4f1ff; --muted: #a49cc9; --pink: #ff2c74; --violet: #8b3dff; --cyan: #22d3ff;
	--grad: linear-gradient(90deg, #ff2c74, #a14bff);
	--radius: 22px; --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 Inter, "Segoe UI", system-ui, sans-serif; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: Kanit, Inter, sans-serif; font-style: italic; font-weight: 900; line-height: 1.02; margin: 0; letter-spacing: -.5px; }
h3 { font-weight: 800; }
p { margin: 0; }
.small { font-size: 14px; color: var(--muted); }
.eyebrow { font: 600 13px/1 Kanit, sans-serif; letter-spacing: 3.5px; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* soft moving light in the background */
.glow { position: fixed; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(120px); opacity: .28; z-index: -1; pointer-events: none; }
.g1 { background: var(--pink); top: -25vw; left: -20vw; animation: drift 18s ease-in-out infinite alternate; }
.g2 { background: var(--violet); bottom: -30vw; right: -20vw; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(12vw, 8vw) scale(1.15); } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--grad); color: #fff; text-decoration: none; font: 800 17px/1 Kanit, sans-serif; font-style: italic; letter-spacing: .3px;
	box-shadow: 0 10px 34px rgba(255, 44, 116, .35); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(255, 44, 116, .5); }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.btn-small { padding: 11px 20px; font-size: 15px; white-space: nowrap; }
.btn-wide { width: 100%; margin: 22px 0 12px; font-size: 20px; padding: 19px; }

/* navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 16px max(20px, calc((100vw - var(--wrap)) / 2)); transition: background .3s, padding .3s; }
.nav.scrolled { background: rgba(11, 9, 22, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; }
.brand img { height: 38px; width: auto; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.links a:hover { color: #fff; }

main, .footer { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }

/* hero */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; padding: 120px 0 60px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 86px); text-transform: uppercase; }
.hero h1 .hl { white-space: nowrap; } /* "It plays." stays on one line */
.lead { font-size: 19px; color: #d6d0f2; margin: 24px 0 30px; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.stats { list-style: none; display: flex; gap: 34px; padding: 0; margin: 38px 0 0; }
.stats b { display: block; font: 900 44px/1 Kanit, sans-serif; font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: 14px; color: var(--muted); }
.hero-phone { position: relative; justify-self: center; }
.phone { width: min(340px, 78vw); aspect-ratio: 9 / 16; border-radius: 42px; overflow: hidden; border: 6px solid #1b1430; background: #000;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 40px 120px rgba(139, 61, 255, .45), 0 0 80px rgba(255, 44, 116, .35); transform: rotate(3deg); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; padding: 12px 18px; border-radius: 999px; background: rgba(18, 12, 40, .9); border: 1px solid var(--line); backdrop-filter: blur(10px);
	font: 800 15px/1 Kanit, sans-serif; white-space: nowrap; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); animation: bob 5s ease-in-out infinite; }
.f1 { left: -70px; top: 18%; border-color: rgba(255, 44, 116, .6); }
.f2 { right: -60px; top: 48%; border-color: rgba(161, 75, 255, .6); animation-delay: -1.6s; }
.f3 { left: -40px; bottom: 10%; border-color: rgba(34, 211, 255, .6); animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* strip */
.strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--card); font: 600 15px/1.2 Kanit, sans-serif; color: #e6e1ff; text-transform: uppercase; letter-spacing: 1px; }
.strip i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }

/* sections */
.section { padding: 110px 0 20px; }
.head { text-align: center; margin-bottom: 46px; }
.head h2 { font-size: clamp(36px, 4.6vw, 58px); text-transform: uppercase; }
.sub { color: var(--muted); margin-top: 14px; }

/* game cards */
.games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.game { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--bg2); border: 1px solid var(--line);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.game:hover, .game.playing { transform: translateY(-8px) scale(1.02); border-color: var(--c); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 40px color-mix(in srgb, var(--c) 45%, transparent); }
.game .media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.game .media img, .game .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game .media video { opacity: 0; transition: opacity .3s; }
.game.playing .media video { opacity: 1; }
.game .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 72%, var(--bg2)); }
.game .play { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); font: 600 12px/1 Inter, sans-serif; letter-spacing: .5px; }
.game .info { position: relative; z-index: 2; padding: 4px 16px 18px; margin-top: -18px; }
.game h3 { font-size: 24px; text-transform: uppercase; text-shadow: 0 0 22px color-mix(in srgb, var(--c) 70%, transparent); }
.game p { font-size: 13.5px; line-height: 1.45; color: #d6d0f2; margin-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags span { font: 600 11.5px/1 Inter, sans-serif; padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }

/* why */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 44, 116, .5); }
.card .ic { font-size: 34px; margin-bottom: 14px; }
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.honest { text-align: center; color: var(--muted); max-width: 700px; margin: 34px auto 0; font-style: italic; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); font: 900 26px/1 Kanit, sans-serif; font-style: italic; margin-bottom: 16px; box-shadow: 0 8px 26px rgba(255, 44, 116, .4); }
.steps h3 { font-size: 26px; margin-bottom: 10px; }
.steps p { color: var(--muted); }
.needs { margin: 22px auto 0; max-width: 760px; padding: 26px 30px; border-radius: var(--radius); border: 1px dashed rgba(34, 211, 255, .45); background: rgba(34, 211, 255, .05); }
.needs h3 { font-size: 22px; margin-bottom: 10px; }
.needs ul { margin: 0 0 10px; padding-left: 20px; }

/* pricing */
.price { position: relative; max-width: 520px; margin: 0 auto; padding: 44px 40px 34px; border-radius: 30px; text-align: center; background: linear-gradient(160deg, rgba(255, 44, 116, .14), rgba(139, 61, 255, .12) 50%, rgba(255, 255, 255, .03));
	border: 1px solid rgba(255, 44, 116, .45); box-shadow: 0 30px 90px rgba(139, 61, 255, .25); }
.badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); padding: 9px 18px; border-radius: 999px; background: var(--grad); font: 800 13px/1 Kanit, sans-serif; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.price h3 { font-size: 34px; text-transform: uppercase; }
.amount { margin: 10px 0 4px; }
.amount s { font: 600 28px/1 Kanit, sans-serif; color: var(--muted); margin-right: 8px; }
.amount b { font: 900 82px/1 Kanit, sans-serif; font-style: italic; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; text-align: left; }
.checks li { position: relative; padding: 9px 0 9px 34px; border-bottom: 1px solid var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 4px; top: 8px; color: var(--pink); font-weight: 700; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; position: relative; font-weight: 600; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 24px; color: var(--pink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 20px; }

/* final + footer */
.final { text-align: center; padding: 110px 0 90px; }
.final-logo { width: 220px; margin: 0 auto 18px; }
.final h2 { font-size: clamp(34px, 4.4vw, 54px); text-transform: uppercase; margin-bottom: 26px; }
.footer { text-align: center; padding: 40px 0 50px; border-top: 1px solid var(--line); }
.foot-logo { height: 32px; width: auto; margin: 0 auto 16px; }
.footer .small { max-width: 700px; margin: 0 auto; }
.foot-links { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* video modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(5, 4, 12, .86); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { position: relative; height: min(88vh, 900px); aspect-ratio: 9 / 16; max-width: 94vw; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 120px rgba(139, 61, 255, .5); transform: scale(.94); transition: transform .25s; }
.modal.open .modal-box { transform: scale(1); }
.modal video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 18px; cursor: pointer; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .glow, .float { animation: none; } }

/* tablet */
@media (max-width: 1020px) {
	.hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; }
	.lead { margin-left: auto; margin-right: auto; }
	.cta-row, .stats { justify-content: center; }
	.games { grid-template-columns: repeat(3, 1fr); }
	.cards4 { grid-template-columns: repeat(2, 1fr); }
	.links { display: none; }
	.nav .btn-small { margin-left: auto; }
}
/* phone: games become a swipe row */
@media (max-width: 680px) {
	body { font-size: 16px; }
	.games { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 6px 20px 20px; scrollbar-width: none; }
	.games::-webkit-scrollbar { display: none; }
	.game { flex: 0 0 72%; scroll-snap-align: center; }
	.cards4, .steps { grid-template-columns: 1fr; }
	.f1 { left: -10px; } .f2 { right: -10px; } .f3 { left: 0; }
	.strip { gap: 10px; padding: 16px; font-size: 13px; }
	.strip i { display: none; }
	.strip span { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
	.brand img { height: 32px; }
	.stats { gap: 22px; }
	.price { padding: 40px 22px 28px; }
	.section { padding-top: 80px; }
}
