@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── Design System & CSS Variables ───────────────────────────────────────── */
:root {
  --bg-color: #07080C;
  --card-bg: #12131C;
  --card-border: #1F2130;
  
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --secondary: #06B6D4;
  --accent: #EC4899;
  
  --success: #10B981;
  --gold: #FBBF24;
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #8F9CAE;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --purple-glow: 0 0 30px rgba(124, 58, 237, 0.3);
  --cyan-glow: 0 0 30px rgba(6, 182, 212, 0.3);
}

/* ── Reset & Base Styles ─────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ── Layout & Typography ────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

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

/* ── Header & Navigation ─────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(7, 8, 12, 0.8);
  border-bottom: 1px solid var(--card-border);
  padding: 16px 0;
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.logo i {
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

nav ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

nav ul a:hover {
  color: var(--primary);
}

/* Mobile Menu Toggle button */
.menu-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: var(--purple-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--card-border);
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--secondary);
  background: rgba(6, 182, 212, 0.05);
}

/* ── Hero Section ────────────────────────────────────────────────────────── */
.hero {
  padding: 160px 0 100px 0;
  position: relative;
  overflow: hidden;
}

/* Glow Background Orbs */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.stat-item h3 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 800;
}

.stat-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Phone Mockup Styling */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame {
  width: 290px;
  height: 580px;
  background: #0f1016;
  border: 12px solid #2e3047;
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), var(--purple-glow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.device-notch {
  width: 140px;
  height: 25px;
  background: #2e3047;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

/* App Interface UI Mockup */
.app-screen {
  flex: 1;
  background: var(--bg-color);
  padding: 30px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.app-header span {
  font-weight: 700;
  font-size: 16px;
}

.app-header i {
  color: var(--gold);
}

.app-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  position: relative;
}

.app-card-title {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.app-card-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.app-mining-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  cursor: pointer;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.mockup-glow {
  position: absolute;
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ── Features Section ────────────────────────────────────────────────────── */
.features {
  padding: 100px 0;
  background: relative;
}

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

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--text-primary);
  box-shadow: var(--purple-glow);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── Interactive Calculator ────────────────────────────────────────────── */
.calculator-section {
  padding: 100px 0;
  background: rgba(18, 19, 28, 0.4);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.calc-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.calc-left h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.calc-left p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

.slider-header span:last-child {
  color: var(--secondary);
  font-weight: 700;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--card-border);
  border-radius: 5px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  box-shadow: var(--cyan-glow);
  transition: var(--transition);
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-right {
  background: rgba(7, 8, 12, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.calc-right::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
}

.calc-output-title {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.calc-output-val {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.calc-output-val span {
  font-size: 20px;
  font-weight: 500;
  color: var(--secondary);
}

.calc-usd-val {
  font-size: 18px;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 24px;
}

/* ── How it Works Section ────────────────────────────────────────────────── */
.how-it-works {
  padding: 100px 0;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-num {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  font-size: 28px;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px auto;
  box-shadow: var(--purple-glow);
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 280px;
  margin: 0 auto;
}

/* Step connector lines */
.steps-container::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0.15;
  z-index: -1;
}

/* ── FAQ Section ────────────────────────────────────────────────────────── */
.faq {
  padding: 100px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.faq-icon {
  font-size: 18px;
  transition: var(--transition);
  color: var(--primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
}

.faq-content p {
  padding-bottom: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: #040508;
  border-top: 1px solid var(--card-border);
  padding: 80px 0 40px 0;
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 20px;
}

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

.footer-links ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

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

.footer-disclaimer {
  grid-column: 1 / -1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
}

.footer-disclaimer p {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

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

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 18px;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary);
}

/* ── Responsive Styling ──────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content p {
    margin: 0 auto 40px auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .calc-box {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px;
  }
  .steps-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .steps-container::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 40px;
  }
  .menu-toggle {
    display: block;
  }
  nav {
    position: relative;
  }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    gap: 20px;
    width: 240px;
    box-shadow: var(--purple-glow);
    z-index: 100;
    align-items: stretch;
  }
  nav ul.active {
    display: flex;
  }
  nav ul li {
    text-align: center;
  }
  nav ul li a.btn-primary {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
