/* ============================================
   Cash Instinct — cash-instinct.com
   Dark premium design (ExpressVPN/NordVPN style)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0a0f1c;
  --bg-section: #0f1629;
  --bg-card: #161d33;
  --bg-card-hover: #1c2541;
  --accent: #00d26a;
  --accent-hover: #00e676;
  --accent-dim: rgba(0, 210, 106, 0.12);
  --text-primary: #f0f2f5;
  --text-secondary: #8b95a8;
  --text-muted: #5a6478;
  --border: rgba(255, 255, 255, 0.06);
  --nav-height: 72px;
  --max-width: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Navigation --- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.25rem; font-weight: 700; color: var(--text-primary);
}

.nav-logo img { width: 38px; height: 38px; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: var(--accent); color: #0a0f1c !important;
  padding: 10px 22px; border-radius: 50px; font-weight: 600;
  font-size: 0.88rem; transition: all 0.25s;
}
.nav-cta:hover {
  background: var(--accent-hover); transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 210, 106, 0.3);
}

.nav-mobile { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile svg { width: 24px; height: 24px; stroke: var(--text-primary); }

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #0a0f1c, #0d1a2d, #0a1628, #0c1825);
  background-size: 300% 300%;
  animation: hero-gradient 12s ease infinite;
}

.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 106, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 130, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); border: 1px solid rgba(0, 210, 106, 0.2);
  padding: 8px 18px; border-radius: 50px; font-size: 0.82rem;
  color: var(--accent); font-weight: 500; margin-bottom: 32px;
}

.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}

/* --- Animated gradient background --- */
@keyframes hero-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Floating particles --- */
.particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}

.particle {
  position: absolute; border-radius: 50%;
  background: rgba(0, 210, 106, 0.15);
  animation: float-particle linear infinite;
}

.particle:nth-child(1) { width: 4px; height: 4px; left: 10%; animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; left: 25%; animation-duration: 22s; animation-delay: -3s; }
.particle:nth-child(3) { width: 3px; height: 3px; left: 40%; animation-duration: 16s; animation-delay: -7s; background: rgba(0, 130, 255, 0.12); }
.particle:nth-child(4) { width: 5px; height: 5px; left: 55%; animation-duration: 20s; animation-delay: -2s; }
.particle:nth-child(5) { width: 4px; height: 4px; left: 70%; animation-duration: 24s; animation-delay: -5s; background: rgba(0, 130, 255, 0.1); }
.particle:nth-child(6) { width: 3px; height: 3px; left: 85%; animation-duration: 19s; animation-delay: -9s; }
.particle:nth-child(7) { width: 5px; height: 5px; left: 15%; animation-duration: 21s; animation-delay: -4s; background: rgba(0, 210, 106, 0.1); }
.particle:nth-child(8) { width: 4px; height: 4px; left: 60%; animation-duration: 17s; animation-delay: -6s; }

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* --- Hero SVG illustration --- */
.hero-visual {
  margin-top: 64px; position: relative;
  max-width: 600px; margin-left: auto; margin-right: auto;
}

.hero-chart svg {
  width: 100%; height: auto;
  filter: drop-shadow(0 0 40px rgba(0, 210, 106, 0.15));
}

.chart-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw-line 2.5s ease-out 0.5s forwards;
}

.chart-area {
  opacity: 0;
  animation: fade-area 1.5s ease-out 1.5s forwards;
}

.chart-dot {
  opacity: 0; transform-origin: center;
  animation: pop-dot 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.chart-dot:nth-child(1) { animation-delay: 1.8s; }
.chart-dot:nth-child(2) { animation-delay: 2.0s; }
.chart-dot:nth-child(3) { animation-delay: 2.2s; }
.chart-dot:nth-child(4) { animation-delay: 2.4s; }
.chart-dot:nth-child(5) { animation-delay: 2.6s; }

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-area {
  to { opacity: 0.15; }
}

@keyframes pop-dot {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}

/* --- Dollar signs floating --- */
.hero-dollars {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}

.dollar {
  position: absolute; font-size: 1.4rem; opacity: 0;
  color: var(--accent); font-weight: 700;
  animation: float-dollar 6s ease-in-out infinite;
}

.dollar:nth-child(1) { left: 5%; top: 30%; animation-delay: 0s; }
.dollar:nth-child(2) { right: 8%; top: 20%; animation-delay: 1.5s; font-size: 1rem; }
.dollar:nth-child(3) { left: 12%; bottom: 20%; animation-delay: 3s; font-size: 1.8rem; }
.dollar:nth-child(4) { right: 15%; bottom: 30%; animation-delay: 4.5s; font-size: 1.1rem; }

@keyframes float-dollar {
  0% { opacity: 0; transform: translateY(20px) rotate(0deg); }
  20% { opacity: 0.25; }
  50% { opacity: 0.15; transform: translateY(-30px) rotate(15deg); }
  80% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-60px) rotate(-10deg); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #00e676, #00bcd4);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 40px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 600;
  font-size: 0.95rem; transition: all 0.25s; border: none; cursor: pointer;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent); color: #0a0f1c;
  box-shadow: 0 4px 24px rgba(0, 210, 106, 0.25);
}
.btn-primary:hover {
  background: var(--accent-hover); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 210, 106, 0.35);
  color: #0a0f1c;
}

.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.btn svg { width: 18px; height: 18px; }

/* --- Sections common --- */
section { padding: 100px 0; }
section:nth-child(even) { background: var(--bg-section); }

.section-label {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary); font-size: 1.05rem;
  max-width: 600px; line-height: 1.7;
}

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* --- Videos --- */
.videos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: all 0.3s;
}

.video-card:hover {
  border-color: rgba(0, 210, 106, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.video-card .thumb {
  position: relative; aspect-ratio: 16/9; background: #111827; overflow: hidden;
}

.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.video-card .thumb .play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.25s;
}

.video-card:hover .play-overlay { opacity: 1; }

.play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95); display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.play-btn svg { width: 22px; height: 22px; fill: #0a0f1c; margin-left: 3px; }

.video-card .info { padding: 20px; }
.video-card .info h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4;
}
.video-card .info p {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
}

.video-card .info .meta {
  display: flex; gap: 12px; margin-top: 12px;
  font-size: 0.78rem; color: var(--text-muted);
}

/* --- Resources / Tools --- */
.resources-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.resource-category { margin-bottom: 48px; }
.resource-category:last-child { margin-bottom: 0; }

.resource-category h3 {
  font-size: 1.1rem; font-weight: 600; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}

.resource-category h3 .icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.resource-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: all 0.25s;
}

.resource-card:hover {
  border-color: rgba(0, 210, 106, 0.15);
  background: var(--bg-card-hover);
}

.resource-card .rc-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-dim), rgba(0, 130, 255, 0.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.resource-card .rc-content { flex: 1; }
.resource-card .rc-content h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.resource-card .rc-content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

.resource-card .rc-arrow {
  flex-shrink: 0; color: var(--text-muted); transition: all 0.25s;
  align-self: center;
}
.resource-card:hover .rc-arrow { color: var(--accent); transform: translateX(3px); }

/* --- About --- */
.about-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}

.about-text p {
  color: var(--text-secondary); font-size: 1rem; line-height: 1.8; margin-bottom: 16px;
}

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

.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; text-align: center;
}

.stat-card .number {
  font-size: 2rem; font-weight: 800; color: var(--accent);
  letter-spacing: -0.02em; margin-bottom: 4px;
}

.stat-card .label {
  font-size: 0.82rem; color: var(--text-secondary); font-weight: 500;
}

/* --- Newsletter --- */
.newsletter {
  background: linear-gradient(135deg, #0d1a2d, #0f1629);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 64px; text-align: center; margin: 0 24px;
  max-width: var(--max-width);
}

.newsletter-form {
  display: flex; gap: 12px; max-width: 460px; margin: 32px auto 0;
}

.newsletter-form input {
  flex: 1; padding: 14px 20px; border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05); color: var(--text-primary);
  font-family: var(--font); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}

.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: rgba(0, 210, 106, 0.4); }

/* --- Footer --- */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; margin-bottom: 32px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; max-width: 320px; line-height: 1.6; }

.footer-links { display: flex; gap: 48px; }
.footer-links h4 { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; color: var(--text-secondary); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}

.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom .socials { display: flex; gap: 16px; }
.footer-bottom .socials a { color: var(--text-muted); transition: color 0.2s; }
.footer-bottom .socials a:hover { color: var(--accent); }
.footer-bottom .socials svg { width: 20px; height: 20px; }

.affiliate-disclosure {
  font-size: 0.75rem; color: var(--text-muted); max-width: 800px;
  line-height: 1.6; margin-top: 16px;
}

/* --- Scroll reveal animations --- */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1; transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* --- Enhanced card glow on hover --- */
.video-card {
  position: relative;
}

.video-card::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: var(--radius); opacity: 0;
  background: linear-gradient(135deg, rgba(0, 210, 106, 0.2), rgba(0, 130, 255, 0.1));
  transition: opacity 0.4s; z-index: -1;
  filter: blur(12px);
}

.video-card:hover::before { opacity: 1; }

.resource-card {
  position: relative; overflow: hidden;
}

.resource-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 210, 106, 0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}

.resource-card:hover::after { opacity: 1; }

/* --- Stat counter animation --- */
.stat-card {
  position: relative; overflow: hidden;
}

.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transition: transform 0.6s ease;
}

.stat-card:hover::before { transform: scaleX(1); }

/* --- Newsletter glow border --- */
.newsletter {
  position: relative; overflow: hidden;
}

.newsletter::before {
  content: ''; position: absolute; inset: -2px;
  background: conic-gradient(from 0deg, transparent, var(--accent), transparent, transparent);
  border-radius: 18px; z-index: -1;
  animation: rotate-border 8s linear infinite;
  opacity: 0.3;
}

@keyframes rotate-border {
  to { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile { display: block; }

  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--bg-primary); border-bottom: 1px solid var(--border);
    padding: 24px; gap: 20px;
  }

  .hero { padding: 130px 0 80px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { order: -1; }

  .newsletter { padding: 40px 24px; margin: 0 16px; }
  .newsletter-form { flex-direction: column; }

  .footer-content { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .videos-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}
