* {
  box-sizing: border-box;
}

:root {
  --bg: #0f0f10;
  --fg: #f2f2f2;
  --muted: #bdbdbd;
  --card: #171718;
  --accent: #229ED9;
  --accent-hover: #1b8ec4;
  --border: #2a2a2b;
  --success: #10b981;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

/* ========== NAVIGATION ========== */

.navbar {
  position: sticky;
  top: 0;
  background: rgba(15, 15, 16, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34, 158, 217, 0.15);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

/* container */
.logo-candle {
  position: relative;
  width: 14px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* wick */
.logo-candle .wick {
  position: absolute;
  width: 2px;
  height: 22px;
  background: #3b82f6;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* candle body */
.logo-candle .body {
  width: 10px;
  height: 12px;
  background: #2563eb;
  border-radius: 3px;
  z-index: 2;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.logo-candle .body {
  animation: logoPulse 2.5s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
  }
  50% {
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.6);
  }
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  transition: color 200ms ease;
}

.nav-link:hover {
  color: var(--accent);
}

.btn-login {
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.btn-login:hover {
  background: var(--accent-hover);
}

/* ========== HERO SECTION ========== */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  background: linear-gradient(135deg, #229ED9, #5dd9c1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  max-width: 500px;
}

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

.btn {
  padding: 12px 32px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 200ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 158, 217, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fvg-chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 220px;
}

.candle {
  width: 28px;
  border-radius: 6px;
  position: relative;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.candle:nth-child(1) {
  animation-delay: 0s;
}

.candle:nth-child(2) {
  animation-delay: 0.2s;
}

.candle:nth-child(3) {
  animation-delay: 0.4s;
}

.candle:nth-child(4) {
  animation-delay: 0.1s;
}

.candle:nth-child(5) {
  animation-delay: 0.3s;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
  }
  50% {
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
  }
}

.candle {
  animation: float 3s ease-in-out infinite, glow 4s ease-in-out infinite;
}

/* TOP WICK */
.candle::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: #cbd5e1;
}

/* BOTTOM WICK */
.candle::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: #cbd5e1;
}

/* Bullish candle */
.bullish {
  height: 90px;
  background: #2563eb;
}

/* top wick */
.bullish::before {
  height: 25px;
  top: -25px;
}

/* bottom wick */
.bullish::after {
  height: 25px;
  bottom: -25px;
}

/* Bearish candle */
.bearish {
  height: 70px;
  background: #64748b;
}

.bearish::before {
  height: 20px;
  top: -20px;
}

.bearish::after {
  height: 20px;
  bottom: -20px;
}

/* Larger candle */
.large {
  height: 140px;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ========== FEATURES SECTION ========== */

.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

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

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 12px;
  font-weight: 700;
}

.section-header p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 200ms ease;
}

.feature-card:hover {
  border-color: rgba(34, 158, 217, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(34, 158, 217, 0.1);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

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

.feature-card p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

/* ========== PRICING SECTION ========== */

.pricing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  position: relative;
  transition: all 200ms ease;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(34, 158, 217, 0.2);
}

.pricing-card:hover {
  border-color: rgba(34, 158, 217, 0.5);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.featured-badge {
  background: linear-gradient(135deg, var(--accent), #5dd9c1);
}

.plan-name {
  font-size: 24px;
  font-weight: 700;
  margin: 16px 0 0;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 24px 0;
}

.currency {
  font-size: 24px;
  color: var(--muted);
}

.amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
}

.period {
  font-size: 14px;
  color: var(--muted);
}

.plan-description {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}

.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--fg);
}

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

.plan-btn {
  width: 100%;
  padding: 12px;
}

/* ========== MODAL ========== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 24px;
  cursor: pointer;
  transition: color 200ms ease;
}

.modal-close:hover {
  color: var(--accent);
}

.modal h2 {
  margin: 0 0 24px;
  font-size: 28px;
}

/* ========== PAYMENT FORM ========== */

.payment-summary {
  background: rgba(34, 158, 217, 0.05);
  border: 1px solid rgba(34, 158, 217, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.summary-item.total {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent);
  font-size: 16px;
}

.payment-form {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  background: #101011;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(34, 158, 217, 0.15);
}

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

.payment-notice {
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid #ffc107;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 24px;
  color: var(--fg);
}

.btn-pay {
  width: 100%;
}

/* ========== LICENSE SUCCESS MODAL ========== */

.license-content {
  text-align: center;
}

.success-icon {
  font-size: 64px;
  margin: 0 0 24px;
  animation: slideIn 400ms ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.license-card {
  background: rgba(34, 158, 217, 0.05);
  border: 1px solid rgba(34, 158, 217, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  text-align: left;
}

.license-header {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 14px;
  text-transform: uppercase;
}

.license-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.license-detail:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--muted);
  font-weight: 500;
}

.detail-value {
  font-family: monospace;
  color: var(--fg);
  font-weight: 600;
}

.detail-value.active {
  color: var(--success);
}

.btn-copy {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  transition: transform 200ms ease;
}

.btn-copy:hover {
  transform: scale(1.2);
}

.next-steps {
  text-align: left;
  margin: 24px 0;
  background: rgba(34, 158, 217, 0.05);
  padding: 16px;
  border-radius: 8px;
}

.next-steps h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.next-steps ol {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
}

.next-steps li {
  margin-bottom: 8px;
}

/* ========== FAQ SECTION ========== */

.faq {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.faq-item h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--accent);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ========== FOOTER ========== */

.footer {
  background: rgba(23, 23, 24, 0.5);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  margin: 0 0 16px;
  font-size: 16px;
}

.footer-section p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 200ms ease;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px;
  }

  .hero-visual {
    display: none;
  }

  .nav-links {
    gap: 16px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .modal-content {
    padding: 24px;
  }

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

  .chart-visual {
    font-size: 100px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .features-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .plan-price {
    font-size: 24px;
  }

  .amount {
    font-size: 36px;
  }
}
