/* =========================================
   CASHDASH WEBSITE — PREMIUM CSS
   ========================================= */

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

:root {
  --cyan: #00E5FF;
  --blue: #4AA3FF;
  --purple: #B65CFF;
  --pink: #FF007A;
  --yellow: #FFD600;
  --green: #00E676;
  --bg: #060B18;
  --bg2: #080E1E;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --text: #FFFFFF;
  --text-muted: rgba(255,255,255,0.5);
  --text-faint: rgba(255,255,255,0.25);
  --radius: 20px;
  --radius-sm: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, .nav-logo span, .stat-num, .step-num, .hero-badge {
  font-family: 'Outfit', sans-serif;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =================== NAV =================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 32px;
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}

#navbar.scrolled {
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-ring {
  width: 36px;
  height: 36px;
  animation: spin 8s linear infinite;
}

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

.nav-logo span {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 50px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: var(--glass); }

.nav-cta {
  background: linear-gradient(135deg, #1a2a6c, #2a1a6c) !important;
  border: 1px solid rgba(180,100,255,0.3) !important;
  color: var(--text) !important;
  padding: 8px 20px !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #2a3a8c, #3a2a8c) !important;
  border-color: rgba(180,100,255,0.5) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(8,14,30,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}
.mobile-menu a {
  padding: 14px 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--text); background: var(--glass); }
.mobile-menu.open { display: flex; }

/* =================== HERO =================== */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 140px 80px 80px;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: pulse 8s ease-in-out infinite;
}

.orb-1 {
  width: 600px; height: 600px;
  background: var(--purple);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: var(--cyan);
  top: 40%; right: -150px;
  animation-delay: -3s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: var(--pink);
  bottom: -100px; left: 30%;
  animation-delay: -6s;
}

@keyframes pulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.12; }
  50% { transform: scale(1.15) translate(20px, -20px); opacity: 0.2; }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-content { z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--cyan);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

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

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1a2a6c 0%, #2d1a6c 50%, #6c1a3a 100%);
  border: 1px solid rgba(180, 100, 255, 0.3);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 0 40px rgba(100, 50, 255, 0.2);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 50px rgba(100, 50, 255, 0.35);
  border-color: rgba(180,100,255,0.55);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
  background: var(--glass);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
}

/* Hero Ring */
.hero-ring-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.ring-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,50,255,0.15) 0%, transparent 70%);
  filter: blur(30px);
  animation: ringPulse 4s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-ring { width: 320px; height: 320px; filter: drop-shadow(0 0 20px rgba(0,229,255,0.15)); }

.ring-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ring-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
}

.ring-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =================== SECTION SHARED =================== */
section { padding: 110px 0; }

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-tag {
  display: inline-block;
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.18);
  color: var(--cyan);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* =================== FEATURES =================== */
#features { background: linear-gradient(to bottom, var(--bg), var(--bg2)); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.feature-card.feature-large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto 1fr;
  gap: 8px 24px;
}

.feature-card.feature-large .feature-icon-wrap { grid-column: 1; grid-row: 1; }
.feature-card.feature-large h3 { grid-column: 1; grid-row: 2; }
.feature-card.feature-large p { grid-column: 1; grid-row: 3; }
.feature-card.feature-large .feature-mini-ring { grid-column: 2; grid-row: 1 / 4; align-self: center; }

.feature-card.feature-wide { grid-column: span 2; }

.feature-icon-wrap { margin-bottom: 20px; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon.cyan { background: rgba(0,229,255,0.12); color: var(--cyan); }
.feature-icon.purple { background: rgba(182,92,255,0.12); color: var(--purple); }
.feature-icon.pink { background: rgba(255,0,122,0.12); color: var(--pink); }
.feature-icon.green { background: rgba(0,230,118,0.12); color: var(--green); }
.feature-icon.yellow { background: rgba(255,214,0,0.12); color: var(--yellow); }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-mini-ring {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.feature-mini-ring svg { width: 100%; height: 100%; }

.fmr-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fmr-center span {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =================== HOW IT WORKS =================== */
#how-it-works { background: var(--bg); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.step {
  position: relative;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s;
}

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

.step:not(:last-child) .step-line {
  position: absolute;
  top: 28px;
  right: 0;
  width: 50%;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(0,229,255,0.3));
}

.step:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0;
  width: 50%;
  height: 1px;
  background: linear-gradient(to right, rgba(0,229,255,0.3), rgba(255,255,255,0.1));
}

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  line-height: 1;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =================== THEMES =================== */
#themes { background: var(--bg2); }

.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.theme-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.theme-card:hover, .theme-card.active {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.theme-card.active { border-color: rgba(182,92,255,0.5); }

.theme-preview {
  background: #0D1117;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.theme-preview.blue-bg {
  background: #0C1236; /* Deep navy blue from screenshot */
}

.theme-preview.white-bg {
  background: #F0F4FA; /* Clean frost white background */
}

.tp-bar {
  width: 60%;
  height: 6px;
  border-radius: 3px;
  opacity: 0.5;
}

.tp-ring { width: 80px; height: 80px; }
.tp-ring svg { width: 100%; height: 100%; }

.tp-cards {
  display: flex;
  gap: 8px;
}

.tp-card {
  width: 60px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}

.theme-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--glass);
}

.theme-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.theme-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.theme-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.theme-white .theme-info {
  background: rgba(240,244,250,0.05);
}

/* =================== CTA / DOWNLOAD =================== */
#download { background: var(--bg); }

.cta-card {
  background: linear-gradient(135deg, rgba(26,42,108,0.4), rgba(45,26,108,0.4));
  border: 1px solid rgba(182,92,255,0.2);
  border-radius: 32px;
  padding: 80px 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
}

.cta-orb-1 {
  width: 400px; height: 400px;
  background: var(--purple);
  top: -100px; left: -100px;
}

.cta-orb-2 {
  width: 300px; height: 300px;
  background: var(--cyan);
  bottom: -80px; right: 30%;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 420px;
}

.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-large {
  font-size: 1.05rem !important;
  padding: 16px 32px !important;
}

.cta-note {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  font-size: 0.78rem !important;
  color: var(--text-faint) !important;
}

.cta-ring {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cta-ring svg { width: 100%; height: 100%; }

.cta-ring-arc {
  animation: rotateSpin 12s linear infinite;
  transform-origin: center;
}

/* =================== FOOTER =================== */
#footer {
  background: var(--bg2);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.7;
}

.footer-links-group h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group ul a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links-group ul a:hover { color: var(--text); }

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

.footer-bottom p {
  font-size: 0.83rem;
  color: var(--text-faint);
}

.footer-made {
  font-style: italic;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  #hero { padding: 120px 40px 80px; gap: 40px; }
  .hero-ring { width: 260px; height: 260px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card.feature-large, .feature-card.feature-wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .step:not(:last-child) .step-line, .step:not(:first-child)::before { display: none; }
}

@media (max-width: 768px) {
  #hero { grid-template-columns: 1fr; padding: 110px 24px 60px; text-align: center; }
  .hero-ring-container { order: -1; }
  .hero-subtitle { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.feature-large, .feature-card.feature-wide { grid-column: span 1; }
  .feature-card.feature-large { grid-template-columns: 1fr; }
  .feature-card.feature-large .feature-mini-ring { display: none; }
  .steps { grid-template-columns: 1fr; }
  .themes-grid { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; padding: 48px 32px; gap: 40px; }
  .cta-ring { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* =================== ANIMATIONS =================== */
@keyframes rotateSpin {
  from { stroke-dashoffset: 110; }
  to { stroke-dashoffset: -330; }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
