/* fahadhasn.com — homepage (GSAP + Three.js experience) */

/* ───────── Base ───────── */
:root {
  --bg: #080604;
  --bg-2: #0e0b07;
  --panel: #141008;
  --gold: #e0a82e;
  --gold-2: #f5d255;
  --gold-3: #fff3c4;
  --gold-deep: #c8901f;
  --ink: #f5f1e8;
  --muted: #9d937f;
  --line: rgba(255, 255, 255, 0.08);
  --gold-line: rgba(224, 168, 46, 0.28);
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-color: rgba(224, 168, 46, 0.4) var(--bg); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(224, 168, 46, 0.35); color: var(--gold-3); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(224, 168, 46, 0.35); border-radius: 99px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; }

main { position: relative; z-index: 1; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 2000;
  background: var(--gold); color: #241a05; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 10px; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ───────── Backdrop layers ───────── */
#dust {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.6s ease;
}
#dust.on { opacity: 0.65; }

.glow {
  position: fixed; pointer-events: none; z-index: 0;
  border-radius: 50%; filter: blur(90px);
}
.glow-hero {
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  top: -25vw; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(224, 168, 46, 0.13), transparent 65%);
}

.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ───────── Preloader ───────── */
#preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px;
}
.js #preloader { display: flex; }
.boot-fallback #preloader { display: none !important; }

.pre-brand {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px);
  font-weight: 500; letter-spacing: -0.02em;
}
.pre-brand span { color: var(--gold); font-weight: 700; }
.pre-bar {
  width: min(260px, 60vw); height: 1px;
  background: var(--line); overflow: hidden; border-radius: 99px;
}
.pre-bar span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transform: scaleX(0); transform-origin: left;
}
.pre-count {
  font-family: var(--font-display); font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums; letter-spacing: 0.1em;
}

/* ───────── Cursor ───────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 1001;
  pointer-events: none; border-radius: 50%;
  opacity: 0;
}
.cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--gold-2);
}
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(224, 168, 46, 0.5);
  transition: transform 0.25s var(--ease-out), border-color 0.25s, background 0.25s;
}
.cursor-ring.is-hover {
  transform: scale(1.7);
  border-color: rgba(245, 210, 85, 0.9);
  background: rgba(224, 168, 46, 0.08);
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ───────── Scroll progress ───────── */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
}
.progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transform: scaleX(0); transform-origin: left;
}

/* ───────── Nav ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8, 6, 4, 0.6);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: transform 0.45s var(--ease-out), border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(8, 6, 4, 0.82); }
.nav.hidden { transform: translateY(-100%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand {
  font-family: var(--font-display); font-weight: 500; font-size: 21px;
  letter-spacing: -0.02em; text-decoration: none;
}
.brand .slash { color: var(--gold); font-weight: 700; padding: 0 1px; transition: color 0.2s; }
.brand:hover .slash { color: var(--gold-2); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  position: relative; color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a[data-nav]::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a[data-nav]:hover::after, .nav-links a.active::after {
  transform: scaleX(1); transform-origin: left;
}
.nav-cta {
  color: var(--gold-2) !important; font-weight: 600 !important;
  border: 1px solid var(--gold-line); border-radius: 99px;
  padding: 8px 18px;
  transition: background 0.25s, color 0.25s !important;
}
.nav-cta:hover { background: rgba(224, 168, 46, 0.12); }

/* Hamburger */
.hamburger {
  display: none; position: relative; z-index: 110;
  width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 0; cursor: pointer;
}
.hamburger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.35s var(--ease-out), background 0.25s;
}
.hamburger span:nth-child(1) { top: 18px; }
.hamburger span:nth-child(2) { top: 26px; }
.hamburger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); background: var(--gold); }
.hamburger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); background: var(--gold); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(8, 6, 4, 0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 40px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.menu.open { opacity: 1; pointer-events: auto; }
.menu-links { display: flex; flex-direction: column; gap: 6px; }
.menu-links a {
  font-family: var(--font-display); font-size: clamp(34px, 9vw, 52px);
  font-weight: 700; letter-spacing: -0.03em; text-decoration: none;
  padding: 8px 0; color: var(--ink);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.25s;
}
.menu.open .menu-links a { opacity: 1; transform: none; }
.menu.open .menu-links a:nth-child(1) { transition-delay: 0.08s; }
.menu.open .menu-links a:nth-child(2) { transition-delay: 0.14s; }
.menu.open .menu-links a:nth-child(3) { transition-delay: 0.2s; }
.menu.open .menu-links a:nth-child(4) { transition-delay: 0.26s; }
.menu.open .menu-links a:nth-child(5) { transition-delay: 0.32s; }
.menu-links a:hover { color: var(--gold-2); }
.menu-foot { position: absolute; bottom: 40px; left: 40px; }
.menu-foot a { color: var(--muted); font-size: 14px; text-decoration: none; }

/* ───────── Hero ───────── */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  position: relative;
  padding: 140px 0 80px;
}
.hero-inner { width: 100%; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 8.2vw, 122px);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.04em;
  margin-bottom: 36px;
}
.ht-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ht-inner { display: inline-block; will-change: transform; }
.ht-inner.accent {
  background: linear-gradient(110deg, var(--gold-2) 15%, var(--gold-3) 35%, var(--gold) 55%, var(--gold-2) 75%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.hero-sub { max-width: 640px; margin-bottom: 44px; }
.hero-sub p { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.hero-sub strong { color: var(--ink); font-weight: 600; }

.rotator {
  display: inline-grid; vertical-align: bottom;
  overflow: hidden; height: 1.7em; line-height: 1.7;
}
.rotator span {
  grid-area: 1 / 1; align-self: center;
  font-weight: 600; white-space: nowrap;
  color: var(--gold-2);
  opacity: 0;
}
.rotator span:first-child { opacity: 1; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 36px; border-radius: 99px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  text-decoration: none; overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
}
.btn span { position: relative; z-index: 1; display: inline-block; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  color: #241a05;
  box-shadow: 0 10px 30px rgba(224, 168, 46, 0.25);
}
.btn-gold:hover { box-shadow: 0 14px 40px rgba(224, 168, 46, 0.4); }
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.55s ease;
}
.btn-gold:hover::after { left: 130%; }
.btn-line {
  border: 1px solid var(--line); color: var(--ink);
  background: rgba(20, 16, 8, 0.4);
}
.btn-line:hover { border-color: var(--gold-line); color: var(--gold-2); }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; text-decoration: none;
}
.scroll-cue-track {
  width: 24px; height: 38px; border: 1px solid var(--line);
  border-radius: 99px; display: flex; justify-content: center; padding-top: 7px;
}
.scroll-cue-dot {
  width: 4px; height: 8px; border-radius: 99px; background: var(--gold);
  animation: cue 2s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ───────── Marquee ───────── */
.marquee-band {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: rgba(14, 11, 7, 0.55);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  overflow: hidden;
}
.marquee { overflow: hidden; }
.marquee-track {
  display: flex; align-items: center; gap: 38px;
  width: max-content; will-change: transform;
}
.marquee-track span {
  font-family: var(--font-display); font-size: 17px; font-weight: 500;
  letter-spacing: 0.05em; white-space: nowrap; color: var(--muted);
}
.marquee-track i { color: var(--gold); font-style: normal; font-size: 12px; }

/* ───────── Numbers ───────── */
.numbers { padding: clamp(90px, 11vw, 150px) 0 clamp(50px, 6vw, 80px); position: relative; z-index: 1; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 72px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--gold-3), var(--gold-2) 40%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label {
  color: var(--muted); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
  padding-top: 10px; border-top: 1px solid var(--line);
}

/* ───────── Sections ───────── */
section { position: relative; z-index: 1; }
.services, .feature, .about, .contact { padding: clamp(90px, 11vw, 150px) 0; }

.sec-head { margin-bottom: clamp(44px, 6vw, 70px); max-width: 760px; }
.sec-label {
  display: inline-block;
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.sec-head h2, .contact-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.04;
  margin-bottom: 20px;
}
.sec-lede { color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); max-width: 600px; }

/* ───────── Services cards ───────── */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, rgba(27, 22, 12, 0.85), rgba(16, 13, 8, 0.85));
  border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(28px, 3.5vw, 44px);
  transform-style: preserve-3d;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%),
              rgba(224, 168, 46, 0.12), transparent 65%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card:hover { border-color: var(--gold-line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.card:hover::before { opacity: 1; }
.card-num {
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  letter-spacing: 0.2em; color: var(--gold);
  display: inline-block; margin-bottom: 50px;
}
.card h3 {
  font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px;
}
.card p { color: var(--muted); font-size: 15px; }

/* ───────── Feature (ChargePK) ───────── */
.feature-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(320px, 1fr) 1.1fr;
  gap: clamp(32px, 4vw, 60px);
  background:
    radial-gradient(900px circle at 90% -10%, rgba(0, 200, 83, 0.10), transparent 55%),
    linear-gradient(150deg, #10160f, #0c0f0a 60%);
  border: 1px solid rgba(0, 200, 83, 0.22);
  border-radius: 32px;
  padding: clamp(32px, 4.5vw, 64px);
}
.feature-icon {
  width: 84px; height: 84px; border-radius: 20px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55), 0 0 50px rgba(0, 200, 83, 0.15);
  margin-bottom: 26px;
}
.feature-info h3 {
  font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px;
}
.feature-info > p { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.feature-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.feature-tags li {
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 99px;
  background: rgba(0, 200, 83, 0.1); color: #5ee6a8;
  border: 1px solid rgba(0, 200, 83, 0.28);
}
.feature-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.feature-cta .btn-gold {
  background: linear-gradient(135deg, #00bcd4, #00c853);
  color: #04130a;
  box-shadow: 0 10px 30px rgba(0, 200, 83, 0.25);
}
.feature-cta .btn-gold:hover { box-shadow: 0 14px 40px rgba(0, 200, 83, 0.4); }
.feature-cta .btn-line:hover { border-color: rgba(0, 200, 83, 0.5); color: #5ee6a8; }

.feature-shots { position: relative; min-height: 460px; }
.shot { position: absolute; margin: 0; will-change: transform; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: 22px;
  border: 1px solid rgba(0, 200, 83, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.shot:nth-child(1) { width: 46%; left: 0; top: 4%; transform: rotate(-5deg); z-index: 2; }
.shot:nth-child(2) { width: 42%; right: 8%; top: 0; transform: rotate(4deg); z-index: 1; }
.shot:nth-child(3) { width: 40%; right: 0; bottom: -4%; transform: rotate(-2deg); z-index: 3; }

/* ───────── About ───────── */
.about-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.about-side .sec-label { position: sticky; top: 110px; }
.about-big {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.25;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.about-big em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.about-cols h4 {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  margin-bottom: 10px; padding-top: 16px; border-top: 1px solid var(--gold-line);
}
.about-cols p { color: var(--muted); font-size: 15px; }

/* ───────── Contact ───────── */
.contact { text-align: left; }
.contact-title { margin-bottom: clamp(28px, 4vw, 48px); }
.contact-mail {
  display: inline-block; position: relative;
  font-family: var(--font-display);
  font-size: clamp(22px, 4.6vw, 64px);
  font-weight: 700; letter-spacing: -0.03em;
  text-decoration: none; color: var(--ink);
  transition: color 0.3s;
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 100%; overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--gold-2); }
.mail-line {
  position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.contact-mail:hover .mail-line { transform: scaleX(1); transform-origin: left; }
.contact-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.contact-meta p { color: var(--muted); font-size: 14px; }

/* ───────── Footer ───────── */
.footer { border-top: 1px solid var(--line); padding: 34px 0; position: relative; z-index: 1; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
.footer p { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a {
  color: var(--muted); font-size: 13px; text-decoration: none;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--gold-2); }

/* ───────── Responsive ───────── */
@media (max-width: 900px) {
  .feature-panel { grid-template-columns: 1fr; }
  .feature-shots {
    position: static; min-height: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  }
  .shot, .shot:nth-child(n) {
    position: static; width: auto; transform: none;
  }
  .about-grid { grid-template-columns: 1fr; gap: 8px; }
  .about-side .sec-label { position: static; }
}

@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero { padding-top: 120px; }
  .hero-title { font-size: clamp(42px, 12vw, 64px); }
  .stats { grid-template-columns: 1fr 1fr; gap: 34px 18px; }
  .cards { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; gap: 26px; }
  .scroll-cue { display: none; }
  .feature-shots { grid-template-columns: repeat(2, 1fr); }
  .feature-shots .shot:nth-child(3) { display: none; }
}

/* ───────── Subpage hero ───────── */
.page-hero {
  position: relative; z-index: 1;
  padding: clamp(150px, 20vh, 210px) 0 clamp(40px, 6vw, 70px);
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 100px);
  font-weight: 700; line-height: 1.03; letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.page-lede { color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); max-width: 640px; }
.page-hero .hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }

.app-icon {
  width: clamp(84px, 9vw, 116px); height: auto; border-radius: 24%;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55), 0 0 60px rgba(0, 200, 83, 0.16);
  margin-bottom: 30px;
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(1.5deg); }
}

/* ───────── Card grid variants ───────── */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card .icon { font-size: 26px; margin-bottom: 40px; display: block; }

/* ───────── Screenshot gallery ───────── */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery figure { margin: 0; }
.gallery img {
  display: block; width: 100%; height: auto;
  border-radius: 22px;
  border: 1px solid var(--gold-line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.gallery figure:hover img {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6);
}
.gallery figcaption {
  text-align: center; font-size: 13px; color: var(--muted);
  margin-top: 14px; font-weight: 500;
}

/* ───────── Legal / article pages ───────── */
.updated-chip {
  display: inline-block; font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.06em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 99px;
  padding: 8px 16px; background: rgba(20, 16, 8, 0.5);
}
.legal-body { max-width: 820px; padding-bottom: clamp(70px, 9vw, 120px); position: relative; z-index: 1; }
.legal-body h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em; margin: 44px 0 14px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.legal-body p, .legal-body li { color: #cfc8b8; font-size: 15.5px; margin-bottom: 14px; }
.legal-body ul { padding-left: 22px; margin-bottom: 14px; }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--gold-2); text-decoration-color: var(--gold-line); text-underline-offset: 3px; }

/* ───────── FAQ ───────── */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.faq .card h3 { font-size: 18px; }
.faq .card p { font-size: 14.5px; }

@media (max-width: 1000px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .faq { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ───────── ChargePK green theme ───────── */
.cpk {
  --gold: #00c853;
  --gold-2: #5ee6a8;
  --gold-3: #aef7d4;
  --gold-deep: #009e60;
  --gold-line: rgba(0, 200, 83, 0.3);
}
.cpk ::selection { background: rgba(0, 200, 83, 0.3); color: #aef7d4; }
.cpk ::-webkit-scrollbar-thumb { background: rgba(0, 200, 83, 0.35); }
.cpk .glow-hero { background: radial-gradient(circle, rgba(0, 200, 83, 0.10), transparent 65%); }
.cpk .progress span,
.cpk .mail-line { background: linear-gradient(90deg, #00bcd4, #00c853); }
.cpk .ht-inner.accent {
  background: linear-gradient(110deg, #5ee6a8 15%, #aef7d4 35%, #00c853 55%, #00bcd4 75%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cpk .btn-gold {
  background: linear-gradient(135deg, #00bcd4, #00c853 60%, #009e60);
  color: #04130a;
  box-shadow: 0 10px 30px rgba(0, 200, 83, 0.25);
}
.cpk .btn-gold:hover { box-shadow: 0 14px 40px rgba(0, 200, 83, 0.4); }
.cpk .card::before {
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%),
              rgba(0, 200, 83, 0.12), transparent 65%);
}
.cpk .stat-num {
  background: linear-gradient(120deg, #aef7d4, #5ee6a8 40%, #00c853);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cpk .cursor-dot { background: #5ee6a8; }
.cpk .cursor-ring { border-color: rgba(0, 200, 83, 0.5); }
.cpk .cursor-ring.is-hover { border-color: rgba(94, 230, 168, 0.9); background: rgba(0, 200, 83, 0.08); }
.cpk .about-big em { background: linear-gradient(120deg, #5ee6a8, #00c853); -webkit-background-clip: text; background-clip: text; }

/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #preloader { display: none !important; }
  #dust { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
  .rotator span { opacity: 0; }
  .rotator span:first-child { opacity: 1; }
}
