/* CryptoTradingScience */
:root {
  --bg-dark: #0a0e17;
  --bg-card: #111827;
  --bg-elevated: #1a2332;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-muted: rgba(16, 185, 129, 0.15);
  --gold: #d4af37;
  --gold-muted: rgba(212, 175, 55, 0.2);
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --border: #374151;
  --font-sans: 'DM Sans', -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden { display: none !important; }

/* ===== POPUP OVERLAY ===== */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.popup-card > p {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.popup-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.popup-close:hover { color: var(--text); }

/* ===== NAV ===== */
.nav-bar {
  background: rgba(10, 14, 23, 0.97);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* ===== HERO ===== */
.hero {
  background: var(--bg-dark);
  padding: 5rem 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.hero-content { max-width: 700px; }

.hero-badge {
  display: inline-block;
  background: var(--gold-muted);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  color: white;
  font-size: 1.1rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
}

.hero-chart {
  max-width: 600px;
  width: 100%;
}

.hero-chart img {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== ABOUT ===== */
.section-about { background: var(--bg-card); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content { text-align: center; }

.about-lead {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-features {
  list-style: none;
  display: inline-block;
  text-align: left;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-icon {
  color: var(--accent);
  font-weight: 700;
}

.about-visual img {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

/* ===== CHARTS ===== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.chart-card {
  background: var(--bg-card);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
}

.chart-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.chart-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.chart-card p {
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== SUCCESS FEE MODEL ===== */
.section-model {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
}

.model-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  background: var(--gold-muted);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 1rem;
}

.model-content { text-align: center; }

.model-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.model-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.model-content p strong { color: var(--text); }

.stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.model-image img {
  width: 100%;
  border-radius: 0.75rem;
}

/* ===== CTA + BOTTOM FORM ===== */
.section-apply { background: var(--bg-card); }

.cta-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.cta-reasons {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}

.cta-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cta-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}

.cta-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.cta-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== FORMS (shared) ===== */
.form-wrapper {
  background: var(--bg-elevated);
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7280;
}

.contact-options {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.radio-label input {
  width: auto;
  accent-color: var(--accent);
}

.radio-label span { color: var(--text); }

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  color: white;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* SUCCESS MESSAGE */
.success-message {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  width: 64px; height: 64px;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.success-message h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.success-message p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-content { text-align: center; }

.footer .logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .model-banner { grid-template-columns: 1fr; }
  .cta-block { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links { gap: 1rem; }
  .stats { flex-direction: column; gap: 1rem; }
  .popup-card { padding: 1.5rem; }
}
