/* =========================================================
   Apexpointers Services (OPC) Pvt Ltd
   Gaming & entertainment utility — crafted in India.
   ========================================================= */

:root {
  --bg: #0b0709;
  --bg-2: #160c0e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #f3eef0;
  --muted: #ab9ea4;
  --faint: #7a6e73;

  --violet: #ff5a4d;
  --indigo: #d4202a;
  --cyan: #ff6b6b;
  --pink: #a01017;

  --grad: linear-gradient(100deg, #ff5a4d 0%, #e01e2a 45%, #b3121b 100%);
  --grad-warm: linear-gradient(100deg, #ff4d4d, #b3121b);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1140px;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px var(--border), 0 18px 50px -18px rgba(212, 32, 42, 0.5);

  --font-display: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
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;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--indigo); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.7rem; --pad-x: 1.25rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 100px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { --pad-y: 0.95rem; --pad-x: 1.7rem; font-size: 1.02rem; }
.btn-sm { --pad-y: 0.5rem; --pad-x: 1rem; font-size: 0.88rem; }

.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(212, 32, 42, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(255, 75, 75, 0.55); }

.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--cyan); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(6, 6, 15, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(6, 6, 15, 0.85); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand-mark { filter: drop-shadow(0 4px 12px rgba(212, 32, 42, 0.5)); }
.brand-name { letter-spacing: -0.02em; }

.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links > a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 0.95rem; position: relative; transition: color 0.2s ease; }
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad); transition: width 0.25s ease;
}
.nav-links > a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; padding: 0.5rem 1.25rem 1.25rem;
  background: rgba(6, 6, 15, 0.95); border-bottom: 1px solid var(--border);
}
.mobile-nav a { padding: 0.85rem 0; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; overflow: hidden; padding: 6.5rem 0 6rem; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.7; }
.hero-glow {
  position: absolute; z-index: 0; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; max-width: 130vw; pointer-events: none;
  background: radial-gradient(circle at center, rgba(214, 32, 42, 0.32), rgba(255, 107, 107, 0.14) 40%, transparent 65%);
  filter: blur(20px);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 880px; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); padding: 0.45rem 1rem; border-radius: 100px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }

.hero-title { font-size: clamp(2.2rem, 6.5vw, 4.2rem); margin: 1.6rem 0 1.2rem; }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 680px; margin-inline: auto; }
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }

/* ---------- Banner band ---------- */
.band { position: relative; padding: 5.5rem 0; background: linear-gradient(180deg, var(--bg), var(--bg-2)); border-block: 1px solid var(--border); }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(214, 32, 42, 0.16), transparent 40%), radial-gradient(circle at 85% 80%, rgba(255, 90, 77, 0.10), transparent 40%); pointer-events: none; }
.band-inner { position: relative; max-width: 880px; }
.band-kicker, .kicker { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 600; color: var(--cyan); margin-bottom: 1rem; }
.band-title { font-size: clamp(1.8rem, 4.5vw, 3rem); margin-bottom: 1.3rem; }
.band-text { color: var(--muted); font-size: 1.1rem; max-width: 620px; }
.band-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.chip { background: var(--surface); border: 1px solid var(--border); padding: 0.5rem 1rem; border-radius: 100px; font-size: 0.9rem; font-weight: 500; }

/* ---------- Generic section ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 3.5rem; text-align: center; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--grad-warm); padding: 0.3rem 0.7rem; border-radius: 100px; }

/* ---------- "What we build" cards ---------- */
.wb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; max-width: 940px; margin-inline: auto; }
.wb-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.wb-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.wb-icon { font-size: 2.2rem; line-height: 1; }
.wb-card h3 { font-size: 1.35rem; }
.wb-card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.wb-link { color: var(--cyan); font-weight: 600; font-size: 0.95rem; }
.wb-link:hover { text-decoration: underline; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.blog-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.blog-thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 2.6rem; }
.blog-thumb.t1 { background: linear-gradient(135deg, #7d0f15, #b3121b); }
.blog-thumb.t2 { background: linear-gradient(135deg, #9e1b1b, #d4202a); }
.blog-thumb.t3 { background: linear-gradient(135deg, #b3121b, #5e0a0e); }
.blog-thumb.t4 { background: linear-gradient(135deg, #5e0a0e, #d4202a); }
.blog-card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.blog-tag { align-self: flex-start; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--border); padding: 0.25rem 0.65rem; border-radius: 100px; }
.blog-card-body h3 { font-size: 1.18rem; line-height: 1.25; }
.blog-card-body h2 { font-size: 1.18rem; line-height: 1.25; font-weight: 700; }
.blog-card-body p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.blog-more { color: var(--text); font-weight: 600; font-size: 0.92rem; }
.blog-card:hover .blog-more { color: var(--cyan); }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { max-width: 620px; margin-inline: auto; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.8rem;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text); border-bottom: 2px solid var(--indigo); padding-bottom: 0.2rem;
}
.contact-mail:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-tag { color: var(--muted); margin-top: 1rem; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-cols h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 1rem; }
.footer-cols a { display: block; color: var(--muted); padding: 0.35rem 0; font-size: 0.95rem; transition: color 0.2s ease; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.9rem; }
.made-in { display: inline-flex; align-items: center; gap: 0.4rem; }
.heart { color: #f43f5e; }
.tri { display: inline-block; width: 22px; height: 15px; border-radius: 2px; background: linear-gradient(#ff9933 33%, #ffffff 33% 66%, #138808 66%); position: relative; }
.tri::after { content: ""; position: absolute; inset: 0; margin: auto; width: 5px; height: 5px; border-radius: 50%; border: 1px solid #000080; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Article (blog + products pages) ---------- */
.article-wrap { padding: 4rem 0 5rem; }
.article { max-width: 720px; margin-inline: auto; }
.article .back { color: var(--muted); font-size: 0.9rem; display: inline-block; margin-bottom: 1.5rem; }
.article .back:hover { color: var(--cyan); }
.article-tag { color: var(--cyan); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0.8rem 0 1rem; }
.article-meta { color: var(--faint); font-size: 0.9rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.article-hero { aspect-ratio: 21 / 9; border-radius: var(--radius); display: grid; place-items: center; font-size: 4rem; margin-bottom: 2.5rem; }
.article p { color: #d9ccd0; margin-bottom: 1.4rem; font-size: 1.08rem; }
.article h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.article ul { color: #d9ccd0; margin: 0 0 1.4rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.article strong { color: var(--text); }
.article p a, .article ul a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.article p a:hover, .article ul a:hover { color: var(--violet); }
.article-cta { margin-top: 3rem; padding: 2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; }

/* Breadcrumbs */
.crumbs { color: var(--faint); font-size: 0.88rem; margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cyan); }
.crumbs span[aria-hidden] { margin-inline: 0.4rem; }

/* 404 */
.nf { min-height: 70svh; display: grid; place-items: center; text-align: center; padding: 4rem 2rem; }
.nf h1 { font-size: clamp(4rem, 18vw, 9rem); line-height: 1; }
.nf p { color: var(--muted); margin: 1rem 0 2rem; font-size: 1.1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .wb-grid { grid-template-columns: 1fr; max-width: 520px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 620px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
