/* ===========================================================
   CashBack — Creative Agency  ·  Luxury black + gold system
   =========================================================== */

:root {
  /* Palette */
  --black:        #050505;
  --black-2:      #0a0a0b;
  --ink:          #eef0f2;
  --muted:        #9a978d;
  --muted-2:      #6f6c63;

  --gold:         #d4af37;
  --gold-soft:    #c9a227;
  --gold-deep:    #b8860b;
  --gold-hi:      #f0dd9a;

  /* Gold as rgb for alpha mixing */
  --gold-rgb:     212, 175, 55;

  /* Metallic gradient used on titles / accents */
  --grad-gold: linear-gradient(135deg, #f4e6ad 0%, #d4af37 38%, #b8860b 66%, #e9cf7d 100%);

  /* Layout */
  --maxw:         480px;
  --radius:       16px;
  --radius-lg:    20px;

  /* Motion */
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--black);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* ============================ Background ============================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  animation: bgIn 1.2s var(--ease) forwards;
}
@keyframes bgIn { to { opacity: 1; } }

.bg-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(var(--gold-rgb), 0.10), transparent 55%),
    radial-gradient(90% 60% at 50% 108%, rgba(184, 134, 11, 0.08), transparent 60%),
    var(--black);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
}
.bg-glow--top {
  top: -18vh;
  left: 50%;
  width: min(760px, 120vw);
  height: min(760px, 120vw);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.16), transparent 62%);
  animation: floatGlow 14s ease-in-out infinite;
}
.bg-glow--bottom {
  bottom: -24vh;
  left: 42%;
  width: min(620px, 100vw);
  height: min(620px, 100vw);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(184, 134, 11, 0.12), transparent 60%);
  animation: floatGlow 18s ease-in-out infinite reverse;
}
@keyframes floatGlow {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.9; }
  50%      { transform: translateX(-50%) translateY(26px) scale(1.06); opacity: 1; }
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.bg-video.is-ready { opacity: 0.5; }

/* Legibility + brand wash over the video */
.bg-video-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(var(--gold-rgb), 0.10), transparent 55%),
    linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.68) 42%, rgba(5,5,5,0.9) 100%);
}

.bg-particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,0.7) 100%);
}

/* Subtle film grain (inline SVG noise, no network request) */
.bg-grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
  mix-blend-mode: overlay;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(4%, 2%); }
}

/* ============================ Shell ============================ */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 9vh, 88px) 22px clamp(40px, 7vh, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================ Hero ============================ */
.hero { text-align: center; }

.hero-logo {
  position: relative;
  width: min(300px, 66vw);
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
}
.hero-logo__halo {
  position: absolute;
  inset: -70% -18%;
  border-radius: 50%;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(var(--gold-rgb), 0.30), transparent 68%);
  filter: blur(22px);
  animation: haloPulse 4.6s ease-in-out infinite;
  z-index: 0;
}
@keyframes haloPulse {
  0%, 100% { opacity: 0.5;  transform: scale(0.96); }
  50%      { opacity: 0.95; transform: scale(1.06); }
}
.hero-logo__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 26px rgba(var(--gold-rgb), 0.22));
}
.hero-logo__fallback {
  display: none;
  position: relative;
  z-index: 1;
  width: 106px;
  height: 106px;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: 0.03em;
  color: var(--gold-hi);
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  background:
    radial-gradient(circle at 50% 32%, rgba(var(--gold-rgb), 0.16), transparent 70%),
    rgba(10, 9, 7, 0.6);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 24px rgba(var(--gold-rgb), 0.14) inset;
  text-shadow: 0 2px 14px rgba(var(--gold-rgb), 0.4);
}
/* inline onerror sets display:block → switch to grid for centering */
.hero-logo__fallback[style*="block"] { display: grid !important; }

.hero-name {
  margin: 0;
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  margin: 12px auto 0;
  max-width: 22ch;
  font-size: clamp(15px, 4.3vw, 18px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-kicker {
  margin: 14px auto 0;
  max-width: 30ch;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================ Socials ============================ */
.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 26px 0 34px;
}
.social {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--gold-hi);
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease-out),
              border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease),
              color 0.35s var(--ease),
              background 0.35s var(--ease);
}
.social:hover,
.social:focus-visible {
  transform: translateY(-4px);
  color: #fff;
  border-color: rgba(var(--gold-rgb), 0.7);
  background: rgba(var(--gold-rgb), 0.08);
  box-shadow: 0 8px 26px rgba(var(--gold-rgb), 0.28),
              0 0 0 1px rgba(var(--gold-rgb), 0.25) inset;
  outline: none;
}
.social:active { transform: translateY(-1px); }

/* ============================ Link cards ============================ */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--gold-rgb), 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
    rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset,
              0 10px 30px rgba(0,0,0,0.45);
  transition: transform 0.4s var(--ease-out),
              border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease),
              background 0.4s var(--ease);
  overflow: hidden;
}
/* gold sheen line at top edge */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.5), transparent);
  opacity: 0.5;
  transition: opacity 0.4s var(--ease);
}
.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(var(--gold-rgb), 0.62);
  background:
    linear-gradient(180deg, rgba(var(--gold-rgb),0.10), rgba(255,255,255,0.02)),
    rgba(16, 15, 12, 0.6);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset,
              0 14px 40px rgba(0,0,0,0.55),
              0 0 30px rgba(var(--gold-rgb), 0.18);
  outline: none;
}
.card:hover::before,
.card:focus-visible::before { opacity: 1; }
.card:active { transform: translateY(-1px); }

.card__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--gold-hi);
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  background: rgba(var(--gold-rgb), 0.06);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.card:hover .card__icon { color: #fff; border-color: rgba(var(--gold-rgb), 0.5); background: rgba(var(--gold-rgb), 0.12); }

.card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.card__sub {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__arrow {
  flex: 0 0 auto;
  color: var(--gold);
  display: grid;
  place-items: center;
  opacity: 0.7;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease), color 0.4s var(--ease);
}
.card:hover .card__arrow { transform: translateX(5px); opacity: 1; color: var(--gold-hi); }

/* Primary CTA — portfolio */
.card--primary {
  border-color: rgba(var(--gold-rgb), 0.4);
  background:
    linear-gradient(180deg, rgba(var(--gold-rgb),0.14), rgba(var(--gold-rgb),0.03)),
    rgba(14, 12, 8, 0.6);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07) inset,
              0 14px 38px rgba(0,0,0,0.5),
              0 0 26px rgba(var(--gold-rgb), 0.12);
}
.card--primary .card__title { font-size: 17px; }
.card--primary .card__icon { color: #fff; border-color: rgba(var(--gold-rgb), 0.45); background: rgba(var(--gold-rgb), 0.14); }

/* Accent CTA — whatsapp / conversion */
.card--accent {
  border-color: rgba(var(--gold-rgb), 0.34);
  background:
    linear-gradient(180deg, rgba(var(--gold-rgb),0.11), rgba(255,255,255,0.015)),
    rgba(13, 12, 9, 0.6);
}
.card--accent .card__arrow { opacity: 0.95; }

/* ============================ Services ============================ */
.services {
  width: 100%;
  margin-top: 40px;
  text-align: center;
}
.services__heading {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.services__heading::before,
.services__heading::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  vertical-align: middle;
  margin: 0 12px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.5), transparent);
}
.services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
}
.services__list li {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid rgba(var(--gold-rgb), 0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.015);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.services__list li:hover {
  color: var(--gold-hi);
  border-color: rgba(var(--gold-rgb), 0.4);
}

/* ============================ Footer ============================ */
.footer {
  margin-top: 44px;
  text-align: center;
}
.footer__copy {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer__tag {
  margin: 4px 0 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ============================ Reveal animation ============================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .bg, .reveal, .bg-glow, .bg-grain, .hero-logo__halo { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .social, .card__arrow { transition: none; }
  .bg-video { display: none; }
}

/* ============================ Responsive ============================ */
@media (min-width: 560px) {
  :root { --maxw: 500px; }
  .card { padding: 18px 20px; }
  .card__title { font-size: 16.5px; }
}

@media (max-width: 360px) {
  .hero-kicker { letter-spacing: 0.12em; }
  .card { gap: 12px; padding: 15px 15px; }
  .card__sub { font-size: 12px; }
}
