/* Home page (/) — loaded only on the home page, on top of style.css */

.home { display: block; overflow-x: clip; }
.home [id] { scroll-margin-top: 88px; } /* keep anchored sections clear of the sticky header */
.container--narrow { max-width: 820px; }

/* Motion language: ease-out when things arrive, ease-in when they leave,
   a soft spring for anything the visitor touches. Transform/opacity only. */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --spring: var(--ease-out);
  --dur-fast: 200ms;
  --dur-base: 320ms;
  --dur-slow: 480ms;
  --dur-exit: 200ms;
}
@supports (transition-timing-function: linear(0, 1)) {
  /* ~stiffness 300 / damping 30: small overshoot, then settles */
  :root { --spring: linear(0, 0.06 2%, 0.23 5%, 0.5 9%, 0.78 14%, 0.95 19%, 1.03 25%, 1.05 30%, 1.04 37%, 1.01 48%, 0.995 62%, 1); }
}

.gradient-text {
  background: linear-gradient(90deg, #ffd84d 0%, #f5c518 40%, #ff9f1c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section:not(.section--dark) .gradient-text { background-image: linear-gradient(90deg, var(--accent) 0%, #7c3aed 100%); }
.underline-gold { background: linear-gradient(transparent 62%, rgba(245, 197, 24, 0.55) 62%); padding: 0 2px; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 22px; border: 2px solid transparent; border-radius: 10px;
  font: 600 1rem/1.2 var(--font-heading); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform 420ms var(--spring), box-shadow var(--dur-base);
}
.btn:hover { transform: scale(1.04); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur-fast); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: scale(0.96); transition-duration: 120ms; }
.btn--gold { background: var(--gold); color: #111827; }
.btn--gold:hover { background: var(--gold-dark); }
.btn--glow { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.55); animation: glow 2.6s ease-out infinite; }
@keyframes glow { 70% { box-shadow: 0 0 0 14px rgba(245, 197, 24, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0); } }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--outline { color: var(--accent); border-color: var(--accent); background: transparent; }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--block { width: 100%; }

/* Notice after a no-JS form post */
.notice-bar { padding: 12px 0; font-weight: 600; }
.notice-bar--sent { background: #dcfce7; color: #14532d; }
.notice-bar--error { background: #fee2e2; color: #7f1d1d; }

/* Section scaffolding */
.section { padding: 96px 0; }
.section--tint { background: var(--bg-soft); }
.section--dark { background: #070d1f; color: #c9d3ea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.18; text-wrap: balance; }
.section__head p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); font-size: 1.06rem; }
.section--dark .section__head p:not(.eyebrow) { color: #aab6d3; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; text-align: left; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; background: #e8efff; color: var(--accent); font: 600 0.76rem/1.4 var(--font-heading); letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow--light { background: rgba(245, 197, 24, 0.14); color: var(--gold); }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 88px 0 120px; background: #070d1f; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: drift 16s ease-in-out infinite alternate; }
.hero__blob--1 { width: 520px; height: 520px; right: -120px; top: -160px; background: #1d4ed8; }
.hero__blob--2 { width: 420px; height: 420px; left: -140px; bottom: -200px; background: #7c3aed; opacity: 0.35; animation-duration: 20s; }
@keyframes drift { to { transform: translate3d(-60px, 50px, 0) scale(1.08); } }
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(255, 255, 255, 0.06);
  font-size: 0.88rem; color: #dbe3f4;
}
.hero__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25); }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.hero__rotator { margin: 0 0 14px; font: 600 clamp(1.1rem, 2vw, 1.35rem)/1.4 var(--font-heading); color: #fff; }
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; color: var(--gold); }
.rotator__word { display: inline-block; white-space: nowrap; }
.rotator__word.is-out { animation: word-out 260ms var(--ease-out) forwards; }
.rotator__word.is-in { animation: word-in 420ms var(--ease-out); }
@keyframes word-out { to { transform: translateY(-100%); opacity: 0; } }
@keyframes word-in { from { transform: translateY(100%); opacity: 0; } }
/* Headline words (split by home.js) slide up with a 70ms stagger */
.hero h1 .word { display: inline-block; opacity: 0; transform: translateY(0.45em); animation: word-rise 520ms var(--ease-out) forwards; animation-delay: calc(120ms + var(--i) * 70ms); }
@keyframes word-rise { to { opacity: 1; transform: none; } }
.hero__lead { margin: 0 0 32px; max-width: 560px; color: #b9c5e0; font-size: 1.08rem; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero visual: framed Maxway artwork + floating tiles */
.hero__visual { position: relative; min-height: 420px; display: grid; place-items: center; transform: translate3d(0, var(--parallax, 0px), 0); will-change: transform; }
.hero__art {
  position: relative; margin: 0; width: 100%; max-width: 560px; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.04);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); transition: transform 600ms var(--ease-out);
}
.hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 35%); pointer-events: none; }
.hero__art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__visual:hover .hero__art { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }

.float-tile {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out infinite;
}
.float-tile strong { display: block; color: #fff; font: 600 0.9rem/1.2 var(--font-heading); }
.float-tile small { color: #b9c5e0; font-size: 0.75rem; }
.float-tile__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--gold); color: #111827; }
.float-tile__icon .icon { width: 18px; height: 18px; }
.float-tile--1 { top: 2%; left: -4%; }
.float-tile--2 { top: 14%; right: -4%; animation-delay: -1.5s; }
.float-tile--3 { bottom: 6%; left: -6%; animation-delay: -3s; }
.float-tile--4 { bottom: 2%; right: 2%; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Ticker ---------- */
.ticker { position: relative; display: flex; align-items: center; overflow: hidden; background: var(--gold); color: #111827; }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker__list li { display: flex; align-items: center; gap: 28px; padding: 14px 0 14px 28px; font: 700 1rem/1 var(--font-heading); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.ticker__list li::after { content: "✦"; font-size: 0.8rem; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker__toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: #111827; color: var(--gold); cursor: pointer;
}
.ticker__toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ticker__toggle .i-play { display: none; fill: currentColor; }
.ticker.is-paused .i-play { display: block; }
.ticker.is-paused .i-pause { display: none; }

/* ---------- Stats ---------- */
.stats { padding: 56px 0 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; text-align: center;
  border-radius: 18px; background: linear-gradient(180deg, #fff, #f5f8ff); border: 1px solid var(--border);
}
.stat strong { font: 700 clamp(2rem, 3.4vw, 2.8rem)/1 var(--font-heading); font-variant-numeric: tabular-nums; background: linear-gradient(90deg, var(--accent), #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.why__intro h2 { margin: 0 0 16px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.18; }
.why__intro p:not(.eyebrow) { margin: 0 0 28px; color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.why__photo { margin: 36px 0 0; width: min(340px, 100%); aspect-ratio: 1; border-radius: 50%; padding: 6px; background: conic-gradient(from 200deg, var(--gold), #3b82f6, #7c3aed, var(--gold)); box-shadow: 0 24px 60px rgba(29, 78, 216, 0.35); }
.why__photo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #070d1f; }
.why__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why__cards .card:nth-child(even) { transform: translateY(28px); }

/* Cards */
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--border);
  border-radius: 18px; background: #fff; color: var(--text); text-decoration: none;
  transition: border-color var(--dur-base), box-shadow var(--dur-base), transform 480ms var(--spring);
}
.card--link:active { transform: translateY(-1px) scale(0.99); transition-duration: 120ms; }
.card h3 { margin: 6px 0 0; font-size: 1.12rem; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); line-height: 1.65; }
.card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, #e8efff, #dbe6ff); color: var(--accent); }
.card__icon .icon { width: 26px; height: 26px; }
.card__icon--gold { background: linear-gradient(135deg, #fff6d6, #ffe9a3); color: #7a5900; }
.card--link { cursor: pointer; }
.card--glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; opacity: 0;
  background: linear-gradient(135deg, var(--accent), #7c3aed, var(--gold));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity var(--dur-base);
}
.card--link:hover { box-shadow: 0 18px 40px rgba(29, 78, 216, 0.14); transform: translateY(-4px); }
.card--glow:hover::before { opacity: 1; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; color: var(--accent); font: 600 0.92rem/1.2 var(--font-heading); }
.card__more .icon { width: 16px; height: 16px; transition: transform var(--dur-fast); }
.card--link:hover .card__more .icon { transform: translateX(4px); }

/* ---------- Games bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bento__item {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 26px; overflow: hidden;
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04);
  color: #c9d3ea; text-decoration: none; cursor: pointer;
  transition: transform 480ms var(--spring), border-color var(--dur-base), background-color var(--dur-base);
}
.bento__item:active { transform: scale(0.99); transition-duration: 120ms; }
.bento__bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.45;
  transition: transform 700ms var(--ease-out), opacity 320ms;
}
.bento__item { isolation: isolate; }
.bento__item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 13, 31, 0.55) 0%, rgba(7, 13, 31, 0.92) 70%); }
.bento__item:hover .bento__bg { transform: scale(1.06); opacity: 0.6; }
.bento__item::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -80px; bottom: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.28), transparent 70%); opacity: 0; transition: opacity var(--dur-base);
}
.bento__item:hover { transform: translateY(-4px); border-color: rgba(245, 197, 24, 0.5); background-color: rgba(255, 255, 255, 0.07); }
.bento__item:hover::after { opacity: 1; }
.bento__item h3 { margin: 4px 0 0; font-size: 1.12rem; line-height: 1.3; }
.bento__item p { margin: 0; line-height: 1.6; }
.bento__item--featured { grid-column: span 2; grid-row: span 2; justify-content: flex-end; border-color: rgba(245, 197, 24, 0.35); }
.bento__item--featured .bento__bg { opacity: 0.7; }
.bento__item--featured::before { background: linear-gradient(180deg, rgba(7, 13, 31, 0.1) 0%, rgba(7, 13, 31, 0.6) 45%, rgba(7, 13, 31, 0.96) 85%); }
.bento__item--featured h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.bento__item--featured p { color: #dbe3f4; font-size: 1.05rem; max-width: 420px; }
.bento__item--featured .bento__icon { width: 64px; height: 64px; margin-bottom: auto; } /* icon top, text bottom */
.bento__item--featured .bento__more { margin-top: 8px; }
.bento__item--featured .bento__icon .icon { width: 32px; height: 32px; }
/* Full-width banner card under the grid */
.bento__item--wide { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 20px; }
.bento__item--wide h3 { margin: 0; }
.bento__item--wide p { grid-column: 2; }
.bento__item--wide .bento__icon { grid-row: span 2; }
.bento__item--wide .bento__more { grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: 0; }
.bento__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--gold); color: #111827; }
.bento__icon .icon { width: 24px; height: 24px; }
.bento__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.bento__tags li { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 0.82rem; }
.bento__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--gold); font: 600 0.92rem/1.2 var(--font-heading); }
.bento__more .icon { width: 16px; height: 16px; transition: transform var(--dur-fast); }
.bento__item:hover .bento__more .icon { transform: translateX(4px); }

/* ---------- Technologies ---------- */
.tech { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.tech__group { padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.tech__group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1rem; }
.tech__group h3 .icon { color: var(--accent); width: 18px; height: 18px; }
.tech__group ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tech__group li { padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 0.88rem; transition: transform 420ms var(--spring), background-color var(--dur-fast), border-color var(--dur-fast); }
.tech__group li:hover { transform: translateY(-2px) scale(1.06); background: #e8efff; border-color: #c7d2fe; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 32px; left: 12%; right: 12%; border-top: 2px dashed #c7d2fe; }
.timeline__step { position: relative; text-align: center; padding: 0 12px; }
.timeline__num {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed); color: #fff; font: 700 1.2rem/1 var(--font-heading);
  box-shadow: 0 0 0 8px #fff, 0 12px 28px rgba(29, 78, 216, 0.3);
}
.timeline__step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.timeline__step p { margin: 0; color: var(--muted); line-height: 1.65; }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 28px; border-radius: 18px; background: #fff; border: 1px solid var(--border); }
.quote__stars { display: flex; gap: 3px; }
.quote__stars svg { width: 18px; height: 18px; fill: var(--gold); }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.7; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; color: var(--navy); font: 600 0.98rem/1.3 var(--font-heading); }
.quote__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #7c3aed); color: #fff; font-size: 0.9rem; }

/* ---------- Latest posts ---------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #fff; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1); }
.post-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.post-card__image { position: relative; }
.post-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.js-motion .post-card__image img:not(.is-loaded) { opacity: 0; }
.js-motion .post-card__image:has(img:not(.is-loaded))::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, #eef2f9 30%, #f8faff 50%, #eef2f9 70%) 0 0 / 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.post-card:hover .post-card__image img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.post-card time { color: var(--muted); font-size: 0.88rem; }
.post-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.4; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: #fff; transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.faq details[open] { border-color: #c7d2fe; box-shadow: 0 10px 24px rgba(29, 78, 216, 0.08); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px;
  padding: 16px 22px; cursor: pointer; list-style: none; font: 600 1.02rem/1.4 var(--font-heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #e8efff; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform var(--dur-base); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); line-height: 1.7; }

/* ---------- Scroll reveal (only when JS runs and motion is allowed) ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
.js-reveal .why__cards .card:nth-child(even)[data-reveal].is-visible { transform: translateY(28px); }



/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid, .why { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { min-height: 400px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--featured { grid-row: auto; min-height: 280px; }
  .tech { grid-template-columns: repeat(3, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .hero__visual { min-height: 340px; }
  .float-tile--1, .float-tile--3 { left: 0; }
  .float-tile--2, .float-tile--4 { right: 0; }
  .hero__art { transform: none; }
  .grid--3, .why__cards, .timeline { grid-template-columns: 1fr; }
  .why__cards .card:nth-child(even), .js-reveal .why__cards .card:nth-child(even)[data-reveal].is-visible { transform: none; }
  .timeline { gap: 36px; }
  .timeline::before { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--featured { grid-column: auto; }
  .bento__item--wide { display: flex; }
  .tech { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .float-tile { display: none; }
  .tech { grid-template-columns: 1fr; }
  .phone-group { grid-template-columns: 104px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .hero h1 .word { opacity: 1; transform: none; }
  .hero__visual { transform: none; }
  .btn, .card, .bento__item, .post-card, .post-card__image img { transition: none; }
  .btn:hover, .card--link:hover, .bento__item:hover, .post-card:hover { transform: none; }
  .ticker__track { flex-wrap: wrap; width: auto; }
  .ticker__list + .ticker__list, .ticker__toggle { display: none; }
}

/* =====================================================================
   Dark brand theme for the home page (less white).
   Re-maps the shared colour tokens inside .home, then swaps the white
   surfaces for navy. Forms (popup, lead card) stay white for readability.
   ===================================================================== */
.home {
  --text: #e8edf8;
  --muted: #a8b4cf;
  --border: rgba(255, 255, 255, 0.1);
  --bg-soft: rgba(255, 255, 255, 0.05);
  --surface: #0f1a36;
  --link: #93b4ff; /* readable blue on navy (4.5:1+) */
  background: #070d1f;
  color: var(--text);
}
.home .section { background: #070d1f; }
.home .section--tint { background: #0b1530; }
.home .section--dark { background: #050a18; }
.home .section + .section { border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* Accent text on navy */
.home .eyebrow { background: rgba(59, 130, 246, 0.16); color: var(--link); }
.home .eyebrow--light { background: rgba(245, 197, 24, 0.14); color: var(--gold); }
.home .section:not(.section--dark) .gradient-text { background-image: linear-gradient(90deg, #ffd84d, #ff9f1c); }
.home .card__more, .home .timeline__step h3 { color: var(--link); }
.home .timeline__step h3 { color: #fff; }
.home .btn--outline { color: var(--link); border-color: var(--link); }
.home .btn--outline:hover { background: #3b82f6; border-color: #3b82f6; color: #fff; }

/* Numbers */
.home .stat { background: linear-gradient(180deg, #111d3d 0%, #0c1631 100%); border-color: rgba(255, 255, 255, 0.08); }
.home .stat strong { background-image: linear-gradient(90deg, #ffd84d, #ff9f1c); }

/* Cards */
.home .card, .home .tech__group, .home .quote, .home .post-card, .home .faq details { background: var(--surface); border-color: rgba(255, 255, 255, 0.08); }
.home .card__icon { background: rgba(59, 130, 246, 0.16); color: var(--link); }
.home .card__icon--gold { background: rgba(245, 197, 24, 0.14); color: var(--gold); }
.home .card--link:hover { border-color: rgba(147, 180, 255, 0.45); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.home .tech__group h3 .icon { color: var(--gold); }
.home .tech__group li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.home .tech__group li:hover { background: rgba(59, 130, 246, 0.22); border-color: rgba(147, 180, 255, 0.5); }


/* Process timeline */
.home .timeline::before { border-top-color: rgba(147, 180, 255, 0.3); }
.home .timeline__num { box-shadow: 0 0 0 8px #070d1f, 0 12px 28px rgba(29, 78, 216, 0.45); }

/* Testimonials */
.home .quote figcaption { color: #fff; }

/* Latest posts */
.home .post-card h3 a { color: var(--text); }
.home .post-card h3 a:hover { color: var(--gold); }
.home .post-card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.home .js-motion .post-card__image:has(img:not(.is-loaded))::before,
.js-motion .home .post-card__image:has(img:not(.is-loaded))::before { background-image: linear-gradient(100deg, #0f1a36 30%, #1a2750 50%, #0f1a36 70%); }

/* FAQ */
.home .faq details[open] { border-color: rgba(147, 180, 255, 0.35); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.home .faq summary { color: #fff; }
.home .faq summary::after { background: rgba(59, 130, 246, 0.18); color: var(--link); }

/* Long-form "game development company in India" section */
.seo-copy { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 56px; align-items: start; }
.seo-copy__text h2 { margin: 0 0 18px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; text-wrap: balance; }
.seo-copy__text h3 { margin: 28px 0 10px; font-size: 1.2rem; color: #fff; }
.seo-copy__text p:not(.eyebrow) { margin: 0 0 14px; color: var(--muted); font-size: 1.04rem; line-height: 1.85; }
.seo-copy__text a { color: var(--link); text-underline-offset: 3px; }
.seo-copy__text a:hover { color: var(--gold); }
.seo-copy__links { position: sticky; top: 110px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.08); }
.seo-copy__links-title { margin: 0 0 14px; color: #fff; font: 700 1.05rem/1.2 var(--font-heading); }
.seo-copy__links ul { display: grid; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.seo-copy__links li a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #e8edf8; font: 600 0.92rem/1.3 var(--font-heading); text-decoration: none; transition: background 160ms; }
.seo-copy__links li a:hover { background: rgba(255, 255, 255, 0.06); color: var(--gold); }
.seo-copy__links li a > .icon:last-child { width: 16px; height: 16px; color: var(--muted); }
.seo-copy__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(245, 197, 24, 0.14); color: var(--gold); }
.seo-copy__icon .icon { width: 18px; height: 18px; }
.seo-copy__cta { width: 100%; justify-content: center; }
@media (max-width: 900px) {
  .seo-copy { grid-template-columns: 1fr; gap: 32px; }
  .seo-copy__links { position: static; }
}

/* Home hero with the lead form: copy | form; the artwork becomes a faded backdrop behind them */
.hero--form { padding: 64px 0 80px; }
.hero--form .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 48px; }
.hero--form .hero__copy { position: relative; z-index: 2; }
.hero--form .hero__visual { position: absolute; inset: 0 0 0 40%; z-index: 0; display: block; min-height: 0; transform: none; pointer-events: none; }
.hero--form .hero__art { width: 100%; height: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none; transform: none; opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 75%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 75%, transparent 100%); }
.hero--form .hero__art::after { display: none; }
.hero--form .hero__art img { height: 100%; aspect-ratio: auto; }
.hero--form .hero__visual:hover .hero__art { transform: none; }
.hero--form .float-tile { display: none; }
@media (max-width: 1024px) {
  .hero--form .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero--form .hero__visual { inset: 0 0 auto 0; height: 560px; }
  .hero--form .hero__art { opacity: 0.25; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
}
