/* ==========================================================================
   66ExCrypto — Project styles
   Custom components, brand backgrounds and CSS-only animations.
   Tailwind (CDN) handles utilities; this file handles what utilities can't.
   ========================================================================== */

:root {
  --primary:   #000914;
  --secondary: #b5cc05;
  --accent:    #ffffff;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--primary);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-head { font-family: 'Montserrat', sans-serif; }

/* Reserve space so smooth-scroll anchors clear the sticky navbar */
section[id], div[id="main"] { scroll-margin-top: 90px; }

/* Accessibility: skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--secondary); color: var(--primary);
  padding: 10px 16px; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   NAVBAR — sticky blur on scroll
   -------------------------------------------------------------------------- */
.navbar-inner {
  background: rgba(0, 9, 20, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#site-header.scrolled .navbar-inner {
  background: rgba(0, 9, 20, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   BRAND BACKGROUNDS — Hero + Final CTA only (subtle mesh gradient)
   -------------------------------------------------------------------------- */
.hero-bg, .cta-banner {
  background-color: var(--primary);
  background-image:
    radial-gradient(48rem 32rem at 12% 8%,  rgba(181, 204, 5, 0.16), transparent 60%),
    radial-gradient(42rem 30rem at 88% 22%, rgba(15, 34, 56, 0.85), transparent 55%),
    radial-gradient(36rem 28rem at 70% 100%, rgba(181, 204, 5, 0.08), transparent 60%);
  background-repeat: no-repeat;
}

/* Subtle grid overlay for the futuristic feel (hero only) */
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* Section shade helpers (variety using primary tints only — no gradients) */
.bg-shade-1 { background-color: #000914; }
.bg-shade-2 { background-color: #04101f; }
.bg-shade-3 { background-color: #0a1a2e; }

/* Cards */
.card {
  background-color: #04101f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(181, 204, 5, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.icon-badge {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(181, 204, 5, 0.12);
  color: var(--secondary); font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn-call, .btn-cta, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; font-weight: 700;
  border-radius: 10px; line-height: 1; white-space: nowrap;
  min-height: 44px; padding: 0.75rem 1.25rem;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
/* Primary CTA — Call */
.btn-call {
  background: transparent; color: var(--accent);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-call:hover { border-color: var(--accent); transform: translateY(-2px); }
/* Secondary CTA — Primary action (brand colour, prominent) */
.btn-cta {
  background: var(--secondary); color: var(--primary);
  box-shadow: 0 6px 18px rgba(181, 204, 5, 0.25);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(181, 204, 5, 0.4); }
/* Outline / ghost */
.btn-outline {
  background: transparent; color: var(--secondary);
  border: 1.5px solid rgba(181, 204, 5, 0.5);
}
.btn-outline:hover { background: var(--secondary); color: var(--primary); }

/* --------------------------------------------------------------------------
   FIXED MOBILE CTA BAR
   -------------------------------------------------------------------------- */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: rgba(0, 9, 20, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-cta-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 8px; font-weight: 700; font-size: 15px; min-height: 56px;
}
.mobile-cta-call { color: var(--accent); }
.mobile-cta-wa   { background: var(--secondary); color: var(--primary); }

/* --------------------------------------------------------------------------
   SCROLL-TRIGGERED FADE-IN (CSS + tiny IntersectionObserver in main.js)
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
.field {
  width: 100%; background: #04101f; color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px;
  padding: 0.85rem 1rem; font-size: 16px; font-family: 'DM Sans', sans-serif;
}
.field:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(181,204,5,0.18); }
.field-error { border-color: #ff5d5d !important; }
.error-msg { color: #ff8a8a; font-size: 0.85rem; margin-top: 4px; display: none; }
.error-msg.show { display: block; }

/* FAQ accordion */
.faq-item { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; background: #04101f; }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center;
         gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 700; color: var(--accent); cursor: pointer; }
.faq-q i { color: var(--secondary); transition: transform .25s ease; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 1.25rem 1.2rem; color: rgba(255,255,255,0.72); }

/* Honeypot — hide from real users, catch bots */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
