/* ==========================================================
   ChainForge Labs — Investment Platform
   Design: Dark premium, gold accents, HYIP-style
   ========================================================== */

:root {
  --bg-deep: #0a0e17;
  --bg-card: #111827;
  --bg-card-alt: #161c2a;
  --bg-surface: #1a2030;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --border-light: #2a3444;
  --green: #10b981;
  --red: #ef4444;
  --blue-accent: #3b82f6;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-gold: 0 0 40px rgba(245, 158, 11, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 30% 10%, rgba(245, 158, 11, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 90%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
  color: var(--text-primary);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand img {
  width: 180px;
  max-height: 50px;
  object-fit: contain;
}

.nav {
  justify-self: center;
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav a {
  color: var(--text-secondary);
  padding-block: 25px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.85rem;
}

.language-toggle button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 700;
  padding: 0;
  transition: color 0.2s;
}

.language-toggle button.active {
  color: var(--gold);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-card);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 99px;
  transition: all 0.3s;
}

/* ========== BUTTONS ========== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 0.9rem;
}

.button-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #0a0e17;
  border: none;
  box-shadow: 0 4px 20px var(--gold-glow);
  font-weight: 800;
}

.button-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

.button-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-primary);
}

.button-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.button-lg {
  padding: 15px 28px;
  font-size: 1rem;
  border-radius: 12px;
}

.button-small {
  padding: 10px 16px;
  font-size: 0.82rem;
}

.full-button {
  width: 100%;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

.particles-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(59, 130, 246, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

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

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 20px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.gold-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  max-width: 580px;
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 28px;
}

.stat-item {
  display: grid;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  min-height: 420px;
}

.trading-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.main-card {
  width: 340px;
  top: 20px;
  left: 5%;
  z-index: 3;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.card-dot.green {
  background: var(--green);
}

.mini-chart {
  width: 100%;
  height: 110px;
  margin-bottom: 10px;
}

.chart-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.green-line {
  stroke: var(--green);
}

.chart-fill {
  opacity: 0.6;
}

.card-prices {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-up {
  color: var(--green);
  font-weight: 800;
  font-size: 1.1rem;
}

.float-card-1 {
  width: 200px;
  top: 0;
  right: 0;
  z-index: 2;
}

.float-card-2 {
  width: 180px;
  bottom: 40px;
  right: 30px;
  z-index: 1;
  display: grid;
  gap: 6px;
}

/* ========== SECTIONS ========== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 99px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
}

.section-header p:not(.eyebrow) {
  color: var(--text-secondary);
  max-width: 560px;
  margin-inline: auto;
}

h3, h4, p {
  margin-top: 0;
}

/* ========== HOW IT WORKS ========== */
.how-section {
  padding: 60px 0;
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.3);
}

.step-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
}

.step-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* ========== INVESTMENT PLANS ========== */
.plans-section {
  padding: 40px 0 60px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-gold);
}

.plan-featured {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06), var(--bg-card) 30%);
}

.plan-dark {
  background: linear-gradient(180deg, #1a1040, var(--bg-card));
  border-color: rgba(139, 92, 246, 0.3);
}

.plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-accent);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.plan-badge.gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  border-color: rgba(245, 158, 11, 0.3);
}

.plan-badge.diamond {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}

.plan-header {
  padding: 24px 20px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.plan-header h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
}

.plan-roi {
  display: grid;
}

.roi-number {
  font-size: 3rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.roi-unit {
  font-size: 1.2rem;
}

.roi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-body {
  padding: 16px 20px;
  flex: 1;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.plan-features li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  position: relative;
  padding-left: 20px;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li strong {
  color: var(--text-primary);
}

.plan-footer {
  padding: 12px 20px 20px;
}

/* ========== MODULE 2: SOFTWARE ========== */
.services-section {
  padding: 40px 0 60px;
}

.services-grid-alt {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card-alt {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.25s, border-color 0.25s;
}

.service-card-alt:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
}

.service-icon-alt {
  font-size: 2rem;
  margin-bottom: 12px;
}

.service-card-alt h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-card-alt p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0;
}

/* ========== TRUST ========== */
.trust-section {
  padding: 20px 0 50px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.trust-item h4 {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.trust-item p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin: 0;
}

/* ========== FAQ ========== */
.faq-section {
  padding: 40px 0 60px;
}

.faq-grid {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 10px;
}

details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  cursor: pointer;
  transition: border-color 0.2s;
}

details:hover {
  border-color: var(--border-light);
}

summary {
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.2s;
}

details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

details p {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========== CONTACT ========== */
.contact-section {
  padding: 40px 0 60px;
}

.contact-form {
  max-width: 600px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

textarea {
  resize: vertical;
}

.privacy-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ========== DISCLAIMER ========== */
.disclaimer-section {
  padding: 0 0 40px;
}

.disclaimer-box {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
  align-items: flex-start;
}

.disclaimer-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.disclaimer-box strong {
  color: var(--red);
}

.disclaimer-box p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand img {
  width: 140px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: min(500px, calc(100% - 32px));
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-content h3 {
  margin-bottom: 4px;
  font-family: 'Space Grotesk', sans-serif;
}

.modal-plan-name {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}

.plan-details-inline {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.input-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-summary {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 8px;
  margin: 4px 0 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.modal-payment-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.modal-payment-icons span {
  padding: 4px 10px;
  background: var(--bg-card);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.modal-secure {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 14px 0 0;
}

/* ========== LOADING ========== */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-light);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-overlay p {
  color: var(--text-secondary);
  margin: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1040px) {
  .header-inner {
    grid-template-columns: 180px auto auto;
  }

  .nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-card);
    z-index: 99;
  }

  .nav.open {
    display: grid;
  }

  .nav a {
    padding: 10px;
    border-bottom: 0;
  }

  .mobile-menu-btn {
    display: flex;
    justify-self: end;
  }

  .header-actions .button {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid-alt,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .header-inner {
    min-height: 68px;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .brand img {
    width: 140px;
  }

  .hero {
    padding: 50px 0 30px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 18px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }

  .services-grid-alt,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}