/* =============================================
   IB OPC Landing Page — Style
   ============================================= */

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

body{
  font-family:'Inter',system-ui,sans-serif;
  background:#060B14;
  color:#e2e8f0;
  line-height:1.6;
  overflow-x:hidden;
}

.container{max-width:1200px;margin:0 auto;padding:0 1.5rem}

/* Glass */
.glass{
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:16px;
}

/* ── HEADER ── */
.main-header{
  position:sticky;top:0;z-index:1000;
  background:rgba(6,11,20,0.95);
  backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(255,255,255,0.08);
  padding:1rem 0;
}
.header-container{display:flex;align-items:center;justify-content:space-between}

.logo{display:flex;align-items:center;gap:.5rem;text-decoration:none;font-weight:700;font-size:1.25rem;color:#fff}
.logo-icon{color:#1f7cec;font-size:1.4rem}
.logo-highlight{color:#1f7cec}

.nav-menu{display:flex;align-items:center;gap:1.5rem;list-style:none}
.nav-link{color:#94a3b8;text-decoration:none;font-size:.9rem;transition:color .2s}
.nav-link:hover,.nav-link.active{color:#fff}

.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.6rem 1.25rem;border-radius:8px;
  font-weight:600;font-size:.9rem;
  text-decoration:none;cursor:pointer;border:none;
  transition:all .2s;font-family:inherit;
}
.btn-primary{background:linear-gradient(135deg,#1f7cec,#7c3aed);color:#fff}
.btn-primary:hover{opacity:.9;transform:translateY(-1px);box-shadow:0 8px 20px rgba(31,124,236,.35)}
.btn-secondary{background:rgba(255,255,255,.08);color:#e2e8f0;border:1px solid rgba(255,255,255,.15)}
.btn-secondary:hover{background:rgba(255,255,255,.13)}
.btn-nav{padding:.5rem 1rem;font-size:.85rem;background:linear-gradient(135deg,#1f7cec,#7c3aed);color:#fff}
.btn-large{padding:.875rem 2rem;font-size:1rem}
.btn-block{width:100%;justify-content:center}

.mobile-nav-toggle{display:none;background:none;border:none;color:#e2e8f0;font-size:1.25rem;cursor:pointer;padding:.25rem}

/* ── HERO ── */
.hero-section{padding:5rem 0 4rem}
.hero-container{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}

.badge-new{
  display:inline-flex;align-items:center;gap:.5rem;
  background:rgba(31,124,236,.15);border:1px solid rgba(31,124,236,.3);
  border-radius:999px;padding:.35rem .875rem;font-size:.8rem;color:#60a5fa;margin-bottom:1.25rem;
}
.badge-icon{color:#f59e0b}

.hero-title{font-size:clamp(1.85rem,3.5vw,2.9rem);font-weight:800;line-height:1.2;margin-bottom:1.25rem;color:#f8fafc}
.text-gradient{background:linear-gradient(135deg,#1f7cec,#a855f7);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-description{color:#94a3b8;font-size:1rem;margin-bottom:2rem;line-height:1.75}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:2.5rem}
.icon-right{margin-left:.25rem}

.hero-stats{display:flex;gap:2.5rem}
.hero-stat-item{text-align:center}
.stat-number{display:block;font-size:1.75rem;font-weight:800;color:#1f7cec}
.stat-label{font-size:.8rem;color:#64748b}

.hero-visual{position:relative}
.visual-card{padding:1.5rem}
.card-header{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid rgba(255,255,255,.08)}
.card-dot{width:12px;height:12px;border-radius:50%}
.card-dot.red{background:#ef4444}.card-dot.yellow{background:#f59e0b}.card-dot.green{background:#22c55e}
.card-title{font-size:.78rem;color:#64748b;margin-left:auto}

.state-logs{display:flex;flex-direction:column;gap:.5rem}
.log-line{font-family:'Courier New',monospace;font-size:.76rem;padding:.4rem .6rem;border-radius:4px}
.log-time{color:#64748b;margin-right:.5rem}
.log-line.success{background:rgba(34,197,94,.1);color:#86efac}
.log-line.info{background:rgba(31,124,236,.1);color:#93c5fd}
.log-line.warning{background:rgba(245,158,11,.1);color:#fcd34d}
.log-line.danger{background:rgba(239,68,68,.1);color:#fca5a5}

/* ── SECTIONS BASE ── */
section{padding:5rem 0}
.section-header{margin-bottom:3rem}
.section-title{font-size:clamp(1.4rem,2.5vw,2.1rem);font-weight:700;color:#f8fafc;margin-bottom:.75rem}
.section-subtitle{color:#94a3b8;font-size:1rem;max-width:600px}
.text-center{text-align:center}
.text-center .section-subtitle{margin:0 auto}

/* ── VIDEOS ── */
.videos-section{background:rgba(255,255,255,.02)}
.video-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.video-card{overflow:hidden;cursor:pointer;transition:transform .2s,box-shadow .2s}
.video-card:hover{transform:translateY(-4px);box-shadow:0 20px 40px rgba(0,0,0,.35)}
.video-thumbnail{position:relative;aspect-ratio:16/9;overflow:hidden}
.video-thumbnail img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.video-card:hover .video-thumbnail img{transform:scale(1.05)}
.play-overlay{position:absolute;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s}
.video-card:hover .play-overlay{opacity:1}
.play-btn-circle{width:52px;height:52px;border-radius:50%;background:rgba(31,124,236,.92);display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.2rem}
.video-info{padding:1.25rem}
.video-tag{background:rgba(31,124,236,.2);color:#60a5fa;font-size:.75rem;font-weight:700;padding:.25rem .6rem;border-radius:4px;letter-spacing:.05em}
.video-card-title{font-size:.95rem;font-weight:600;color:#f1f5f9;margin:.6rem 0 .4rem;line-height:1.4}
.video-card-desc{font-size:.82rem;color:#64748b;line-height:1.5}

/* ── CALCULATOR ── */
.calculator-container{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}
.calculator-features{margin-top:1.5rem}
.calc-feature-item{display:flex;gap:1rem;align-items:flex-start;margin-bottom:1.5rem}
.feature-icon{width:40px;height:40px;border-radius:10px;background:rgba(31,124,236,.15);display:flex;align-items:center;justify-content:center;color:#1f7cec;flex-shrink:0;font-size:1.1rem}
.feature-text h4{font-size:.95rem;font-weight:600;color:#f1f5f9;margin-bottom:.25rem}
.feature-text p{font-size:.85rem;color:#64748b}
.calculator-card{padding:2rem}
.card-inner-title{font-size:1.1rem;font-weight:700;color:#f1f5f9;margin-bottom:1.5rem}
.input-group{margin-bottom:1.5rem}
.slider-label{display:flex;justify-content:space-between;font-size:.85rem;color:#94a3b8;margin-bottom:.75rem}
.slider-value{color:#1f7cec;font-weight:700}
.custom-slider{width:100%;-webkit-appearance:none;appearance:none;height:6px;border-radius:3px;background:rgba(255,255,255,.1);outline:none;cursor:pointer}
.custom-slider::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:linear-gradient(135deg,#1f7cec,#7c3aed);cursor:pointer;box-shadow:0 2px 8px rgba(31,124,236,.4)}
.custom-slider::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:linear-gradient(135deg,#1f7cec,#7c3aed);cursor:pointer;border:none}
.calculator-results{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.result-box{padding:1rem;background:rgba(255,255,255,.04);border-radius:10px;border:1px solid rgba(255,255,255,.08)}
.result-box.highlighted{background:rgba(31,124,236,.1);border-color:rgba(31,124,236,.3)}
.result-label{display:block;font-size:.75rem;color:#64748b;margin-bottom:.35rem}
.result-amount{display:block;font-size:1.35rem;font-weight:800;color:#f1f5f9}
.result-box.highlighted .result-amount{color:#60a5fa}
.calc-note{font-size:.75rem;color:#64748b;margin-top:1rem;font-style:italic}

/* ── CREDIBILITY ── */
.credibility-section{background:rgba(255,255,255,.02)}
.myfxbook-mockup{padding:2rem;max-width:820px;margin:0 auto}
.mockup-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid rgba(255,255,255,.08);flex-wrap:wrap;gap:.75rem}
.mockup-logo{font-size:1.1rem;font-weight:800;color:#34d399}
.mockup-meta{display:flex;gap:.75rem;flex-wrap:wrap}
.meta-badge{font-size:.75rem;padding:.3rem .6rem;border-radius:6px;background:rgba(34,197,94,.1);color:#86efac;border:1px solid rgba(34,197,94,.2);display:flex;align-items:center;gap:.35rem}
.mockup-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1.5rem}
.mockup-stat-card{background:rgba(255,255,255,.04);border-radius:10px;padding:1rem;text-align:center}
.stat-title{display:block;font-size:.73rem;color:#64748b;margin-bottom:.4rem}
.stat-value{font-size:1.3rem;font-weight:800;color:#f1f5f9}
.stat-value.text-green{color:#34d399}
.stat-value.text-red{color:#f87171}
.mockup-chart-placeholder{background:rgba(255,255,255,.02);border-radius:10px;padding:1.25rem;display:flex;gap:1rem;height:140px;border:1px solid rgba(255,255,255,.06);margin-bottom:1rem;overflow:hidden}
.chart-y-axis{display:flex;flex-direction:column;justify-content:space-between;font-size:.7rem;color:#475569;flex-shrink:0}
.chart-bars{position:relative;flex:1}
.chart-line-visual{position:absolute;inset:0;background:linear-gradient(to top right,rgba(31,124,236,.08),rgba(124,58,237,.08));border-radius:6px}
.chart-point{position:absolute;width:10px;height:10px;border-radius:50%;background:#1f7cec;transform:translate(-50%,50%);box-shadow:0 0 8px rgba(31,124,236,.7)}
.mockup-footer{display:flex;gap:2rem;font-size:.8rem;color:#64748b;flex-wrap:wrap}

/* ── REGISTER ── */
.register-container{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:start}
.benefit-list{list-style:none;margin-top:1.5rem;display:flex;flex-direction:column;gap:.75rem}
.benefit-list li{display:flex;align-items:flex-start;gap:.75rem;font-size:.95rem;color:#94a3b8}
.list-icon{color:#34d399;margin-top:.1rem;flex-shrink:0}
.register-form-card{padding:2rem}
.form-group{margin-bottom:1.25rem}
.form-group label{display:block;font-size:.85rem;font-weight:600;color:#94a3b8;margin-bottom:.5rem}
.required{color:#f87171}
.form-input{
  width:100%;padding:.75rem 1rem;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;color:#f1f5f9;
  font-size:.9rem;outline:none;
  transition:border-color .2s;font-family:inherit;
}
.form-input:focus{border-color:#1f7cec;background:rgba(31,124,236,.06)}
.form-input::placeholder{color:#475569}
.error-msg{display:none;font-size:.78rem;color:#f87171;margin-top:.35rem}
.form-input.error{border-color:#f87171}
.form-input.error ~ .error-msg{display:block}
.success-message{display:none;text-align:center;padding:1.5rem}
.success-message.show{display:block}
.success-icon{font-size:2.5rem;color:#34d399;margin-bottom:.75rem}
.success-message h4{color:#f1f5f9;font-size:1.1rem;margin-bottom:.5rem}
.success-message p{color:#64748b;font-size:.9rem}

/* ── FAQ ── */
.faq-section{background:rgba(255,255,255,.02)}
.faq-accordion{max-width:800px;margin:0 auto;display:flex;flex-direction:column;gap:1rem}
.faq-item{overflow:hidden}
.faq-question{
  width:100%;display:flex;justify-content:space-between;align-items:center;gap:1rem;
  padding:1.25rem 1.5rem;background:none;border:none;
  color:#f1f5f9;font-size:.95rem;font-weight:600;text-align:left;cursor:pointer;font-family:inherit;
}
.faq-question:hover{color:#60a5fa}
.faq-icon{color:#64748b;transition:transform .3s;flex-shrink:0}
.faq-item.open .faq-icon{transform:rotate(180deg);color:#1f7cec}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .35s ease}
.faq-answer p{padding:0 1.5rem 1.25rem;color:#94a3b8;font-size:.9rem;line-height:1.75}

/* ── FOOTER ── */
.main-footer{background:rgba(0,0,0,.3);border-top:1px solid rgba(255,255,255,.06);padding:2.5rem 0}
.footer-copyright{font-size:.9rem;color:#64748b;margin-bottom:1rem}
.footer-social{display:flex;justify-content:center;gap:1rem;margin-bottom:1.25rem}
.footer-social-link{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);
  color:#94a3b8;font-size:1.05rem;text-decoration:none;
  transition:all .2s;
}
.footer-social-link:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.3)}
.footer-social-link.fb:hover{background:rgba(24,119,242,.2);color:#60a5fa;border-color:rgba(24,119,242,.4)}
.footer-social-link.yt:hover{background:rgba(255,0,0,.15);color:#f87171;border-color:rgba(255,0,0,.35)}
.footer-disclaimer{max-width:700px;margin:0 auto}
.footer-disclaimer p{font-size:.78rem;color:#475569;line-height:1.6}
.footer-disclaimer strong{color:#94a3b8}

/* ── VIDEO MODAL ── */
.video-modal{display:none;position:fixed;inset:0;z-index:9999;align-items:center;justify-content:center}
.video-modal.open{display:flex}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.85)}
.modal-content{position:relative;z-index:1;width:90%;max-width:900px;background:#0d1117;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.1)}
.modal-close{position:absolute;top:.75rem;right:.75rem;z-index:2;background:rgba(0,0,0,.6);border:none;color:#fff;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1rem;font-family:inherit}
.video-responsive-container{position:relative;padding-bottom:56.25%}
.video-responsive-container iframe{position:absolute;inset:0;width:100%;height:100%}

/* ── RESPONSIVE ── */
@media(max-width:900px){
  .hero-container,.calculator-container,.register-container{grid-template-columns:1fr;gap:2.5rem}
  .video-grid{grid-template-columns:repeat(2,1fr)}
  .mockup-grid{grid-template-columns:repeat(2,1fr)}
  .hero-visual{order:-1}
}
@media(max-width:640px){
  .nav-menu{
    display:none;flex-direction:column;align-items:flex-start;
    position:absolute;top:100%;left:0;right:0;
    background:#060B14;padding:1.5rem;
    border-bottom:1px solid rgba(255,255,255,.08);gap:1rem;
  }
  .nav-menu.open{display:flex}
  .mobile-nav-toggle{display:block}
  .hero-stats{gap:1.5rem}
  .hero-stat-item .stat-number{font-size:1.5rem}
  .video-grid{grid-template-columns:1fr}
  .mockup-grid{grid-template-columns:repeat(2,1fr)}
  .calculator-results{grid-template-columns:1fr}
  .btn-large{padding:.75rem 1.5rem;font-size:.95rem}
}
