/* ============================================================
   HOME PAGE — matches Flutter source exactly
   Fix #2: hero background fills full viewport
   Fix #4: CTA is a rounded card on white wrapper
   Fix #10/#11: fits every screen size with no extra gaps
   ============================================================ */

/* ── Hero ── */
.hero{
  position:relative;
  /* Fix #2: pure dark background, no white showing */
  background:#0D0618;
  min-height:94vh;
  display:flex;align-items:center;overflow:hidden;
  padding:80px clamp(20px,6.5vw,80px) 60px;
}
/* Fix #11: canvas must fill entire hero — no gaps at sides */
#meshCanvas{
  position:absolute;top:0;left:0;
  width:100%;height:100%;
  pointer-events:none;display:block;
}
.hero-inner{
  position:relative;z-index:1;
  max-width:1200px;margin:0 auto;width:100%;
  display:flex;align-items:center;gap:40px;
}
.hero-left{flex:5;min-width:0}
.hero-right{flex:4;display:flex;justify-content:center;align-items:center}
.hero-mobile-only{display:none}

.hero-status-pill{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(91,44,154,0.25);border:1px solid rgba(123,77,191,0.4);
  border-radius:20px;padding:7px 14px;font-size:12px;font-weight:500;
  color:rgba(255,255,255,0.7);margin-bottom:28px;
}
.green-dot{width:7px;height:7px;background:#00C896;border-radius:50%;flex-shrink:0;box-shadow:0 0 6px #00C896}
.hero-name{font-size:clamp(40px,5.5vw,72px);font-weight:800;color:#fff;letter-spacing:-2px;line-height:1.0;margin-bottom:16px}
.hero-typewriter{font-size:clamp(15px,1.8vw,20px);font-weight:400;color:rgba(255,255,255,0.8);min-height:30px;margin-bottom:8px;line-height:1.5}
.tw-cursor{animation:blink .7s step-end infinite;font-weight:300}
@keyframes blink{50%{opacity:0}}
.hero-sub{font-size:14px;color:rgba(255,255,255,0.54);line-height:1.7;max-width:480px;margin-bottom:36px;min-height:42px}
.hero-btns{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:40px}

.btn-phone-call{
  display:inline-flex;align-items:center;gap:8px;
  padding:14px 28px;border-radius:14px;border:none;cursor:pointer;
  background:var(--primary);color:#fff;font-size:14px;font-weight:600;
  box-shadow:0 4px 14px rgba(91,44,154,0.30);
  transition:box-shadow .2s,transform .15s;text-decoration:none;
}
.btn-phone-call:hover{box-shadow:0 8px 24px rgba(91,44,154,0.45);transform:translateY(-1px);color:#fff}
.shake-phone{display:inline-flex;align-items:center;animation:phoneShake 4s ease-in-out infinite}
.shake-phone svg{stroke:currentColor}
@keyframes phoneShake{
  0%,88%,100%{transform:rotate(0)}
  90%{transform:rotate(-15deg)}92%{transform:rotate(15deg)}
  94%{transform:rotate(-10deg)}96%{transform:rotate(10deg)}98%{transform:rotate(-5deg)}
}
.btn-outline-white{
  display:inline-flex;align-items:center;gap:8px;
  padding:14px 28px;border-radius:14px;cursor:pointer;
  background:transparent;color:rgba(255,255,255,0.85);
  border:2px solid rgba(255,255,255,0.4);font-size:14px;font-weight:600;
  transition:border-color .2s,background .2s;text-decoration:none;
}
.btn-outline-white:hover{border-color:rgba(255,255,255,0.7);background:rgba(255,255,255,0.07);color:#fff}
.hero-stats{display:flex;align-items:center;flex-wrap:wrap}
.stat-col{display:flex;flex-direction:column}
.stat-val{font-size:18px;font-weight:800;color:#fff}
.stat-lbl{font-size:10px;font-weight:500;color:rgba(255,255,255,0.54)}
.stat-divider{width:1px;height:32px;background:rgba(255,255,255,0.15);margin:0 16px}
.trader-illustration{background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);border-radius:20px;padding:20px}
.scroll-indicator{position:absolute;bottom:28px;left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:6px;z-index:1}
.scroll-label{font-size:10px;font-weight:500;color:rgba(255,255,255,0.38)}
.scroll-bounce{font-size:24px;color:rgba(255,255,255,0.38);animation:sbounce .9s ease-in-out infinite alternate}
@keyframes sbounce{from{transform:translateY(0)}to{transform:translateY(8px)}}

/* ── Marquee ── */
.marquee-strip{background:var(--primary-dark);padding:14px 0;overflow:hidden;white-space:nowrap}
.marquee-track{display:inline-flex;will-change:transform}
.marquee-track span{font-size:13px;font-weight:600;color:rgba(255,255,255,0.85);padding:0 20px}
.marquee-track .mdot{color:var(--primary-glow);padding:0 4px}

/* ── Section backgrounds — Flutter exact alternation ── */
.home-about   {background:#fff}
.home-services{background:var(--surface)}
.home-video   {background:var(--surface)}
.home-tools   {background:#fff}
.home-testi   {background:var(--surface)}

/* ── Inner layout containers ── */
/* Fix #11: padding uses clamp so it always fits — no overflow, no extra gaps */
.section-inner{
  max-width:1200px;margin:0 auto;
  padding:clamp(48px,7vw,80px) clamp(20px,6.5vw,80px);
  display:flex;align-items:center;gap:60px;
}
.section-inner-col{
  max-width:1200px;margin:0 auto;
  padding:clamp(48px,7vw,80px) clamp(20px,6.5vw,80px);
}

/* ── About section ── */
.home-about .about-text{flex:1;min-width:0}
.home-about .about-img-wrap{flex:1;min-width:0;display:flex;justify-content:center}
.about-portrait{max-width:360px;width:100%;border-radius:24px;object-fit:contain}

/* ── Services ── */
/* Fix #10: grid adapts to all screen sizes */
.services-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.svc-card-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}
.svc-badge{display:inline-block;padding:4px 10px;background:var(--primary);border-radius:8px;font-size:12px;font-weight:700;color:#fff;letter-spacing:0.5px}
.svc-badge-live{background:var(--success-light)!important;color:var(--success)!important}
.svc-card:hover .svc-badge-live{background:rgba(255,255,255,0.2)!important;color:#fff!important}
.svc-title{font-size:18px;font-weight:600;color:var(--text);margin-bottom:4px}
.svc-sub{font-size:12px;color:var(--text-sec);margin-bottom:8px}
.svc-desc{font-size:12px;color:var(--text-sec);line-height:1.6;margin-bottom:14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.svc-price-row{display:flex;align-items:baseline;gap:8px}
.svc-arrow{margin-left:auto;font-size:16px;color:var(--text-hint)}

/* ── Video ── */
.home-video .section-inner-col{padding-top:clamp(32px,5vw,60px);padding-bottom:clamp(32px,5vw,60px)}
.yt-wrapper{max-width:820px;width:100%;margin:0 auto;border-radius:28px;overflow:hidden;aspect-ratio:16/9;box-shadow:0 8px 50px rgba(13,6,24,0.45);background:#000}
.yt-thumb{position:relative;width:100%;height:100%;cursor:pointer}
.yt-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.yt-play-btn{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.25)}
.yt-play-circle{width:72px;height:72px;background:rgba(255,255,255,0.95);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:28px;padding-left:5px;box-shadow:0 4px 20px rgba(0,0,0,0.3);transition:transform .2s,background .2s}
.yt-thumb:hover .yt-play-circle{transform:scale(1.1);background:#fff}

/* ── Tools ── */
.tools-row{display:flex;gap:20px}
.tool-card{flex:1;display:flex;flex-direction:column;gap:10px}
.tool-title{font-size:16px;font-weight:600;color:var(--text)}
.tool-desc{font-size:12px;color:var(--text-sec);line-height:1.6;flex:1}
.tool-open-row{display:flex;align-items:center;gap:4px}
.tool-open-lbl{font-size:12px;font-weight:600;color:var(--primary)}
.tool-arrow{font-size:12px;color:var(--primary);transition:transform .2s}
.tool-card:hover .tool-arrow{transform:translateX(4px)}

/* ── Testimonials ── */
.home-testi{padding:clamp(48px,7vw,80px) 0}
.home-testi .section-inner-col{padding-top:0;padding-bottom:0}
.testi-outer{position:relative;overflow:hidden}
.testi-track{display:flex;gap:20px;will-change:transform;padding:4px clamp(20px,6.5vw,80px) 8px}
.testi-card{background:#fff;border-radius:18px;border:1px solid var(--border);box-shadow:0 5px 20px rgba(91,44,154,0.07);min-width:320px;max-width:320px;padding:20px;display:flex;flex-direction:column}
.testi-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.stars5{color:#FFB020;font-size:14px;letter-spacing:1px}
.testi-text{font-size:12px;color:var(--text-sec);line-height:1.6;flex:1;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:12px}
.testi-author{display:flex;align-items:center;gap:8px;margin-top:auto}
.testi-avatar{width:32px;height:32px;border-radius:50%;flex-shrink:0;background:linear-gradient(135deg,#5B2C9A,#7B4DBF,#9B59B6);display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:700}
.testi-name{font-size:12px;font-weight:600;color:var(--text)}
.testi-loc{font-size:10px;color:var(--text-hint)}
.testi-fade-left,.testi-fade-right{position:absolute;top:0;bottom:0;width:60px;pointer-events:none;z-index:1}
.testi-fade-left{left:0;background:linear-gradient(90deg,var(--surface),transparent)}
.testi-fade-right{right:0;background:linear-gradient(270deg,var(--surface),transparent)}

/* ── Fix #4: CTA — white wrapper, dark rounded card inside (not full-width strip) ── */
.home-cta-wrapper{
  background:#fff;
  padding:clamp(32px,5vw,60px) clamp(20px,6.5vw,80px);
}
.home-cta-section{
  border-radius:32px;overflow:hidden;position:relative;
  background:#0D0618;
  border:1px solid rgba(123,77,191,0.25);
  box-shadow:0 20px 80px rgba(91,44,154,0.45);
  /* The wrapper padding creates the side gap — no margin needed */
}
#ctaMeshCanvas{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}
.home-cta-content{
  position:relative;z-index:1;
  padding:clamp(36px,5vw,56px) clamp(24px,5vw,60px);
  display:flex;flex-direction:column;align-items:center;text-align:center;
}
.home-cta-title{font-size:clamp(22px,3.5vw,36px);font-weight:700;color:#fff;line-height:1.2;margin-bottom:16px}
.home-cta-sub{font-size:16px;color:rgba(255,255,255,0.7)}

/* ══ RESPONSIVE ══ */

/* Tablet ≤1100px */
@media(max-width:1100px){
  .hero{padding:80px 40px 60px}
  .hero-right{flex:0 0 260px}
  .section-inner,.section-inner-col{padding:60px 40px}
  .home-video .section-inner-col{padding:40px 40px}
  .home-testi .section-inner-col{padding:0 40px}
  .testi-track{padding:4px 40px 8px}
  .testi-fade-left{background:linear-gradient(90deg,var(--surface),transparent)}
  .testi-fade-right{background:linear-gradient(270deg,var(--surface),transparent)}
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .home-cta-wrapper{padding:48px 40px}
}

/* Mobile ≤768px */
@media(max-width:768px){
  /* Hero: mobile layout, dark background fills all */
  .hero{padding:0;min-height:90vh;display:block;position:relative;background:#0D0618}
  #meshCanvas{position:absolute;width:100%;height:100%}
  .hero-inner{display:none}
  .hero-mobile-only{
    display:flex;flex-direction:column;align-items:center;
    position:relative;z-index:1;
    padding:88px 24px 60px;text-align:center;
  }
  .hero-mobile-only .hero-status-pill{margin-bottom:16px}
  .trader-illustration-mobile{margin:16px 0}
  .hero-name-mobile{font-size:42px;font-weight:800;color:#fff;letter-spacing:-1px;line-height:1.1;margin-bottom:16px}
  .hero-typewriter-center{text-align:center;font-size:16px;min-height:26px}
  .hero-btns-center{justify-content:center}
  .scroll-indicator{position:relative;bottom:auto;margin-top:16px}
  /* Sections */
  .section-inner{padding:48px 20px;flex-direction:column;gap:36px}
  .section-inner-col{padding:48px 20px}
  /* About: image below text on mobile */
  .home-about .about-img-wrap{order:2;width:100%}
  .home-about .about-text{order:1}
  .about-portrait{max-width:100%}
  /* Services: 1 column */
  .services-grid{grid-template-columns:1fr}
  /* Video */
  .home-video .section-inner-col{padding:32px 16px}
  .yt-wrapper{border-radius:6px}
  /* Tools */
  .tools-row{flex-direction:column}
  /* Testi */
  .home-testi{padding:48px 0}
  .home-testi .section-inner-col{padding:0 20px}
  .testi-track{padding:4px 20px 8px}
  .testi-fade-left{background:linear-gradient(90deg,var(--surface),transparent)}
  .testi-fade-right{background:linear-gradient(270deg,var(--surface),transparent)}
  /* CTA */
  .home-cta-wrapper{padding:28px 20px}
  .home-cta-section{border-radius:20px}
  .home-cta-title{font-size:26px}
}

/* Small mobile ≤480px */
@media(max-width:480px){
  .services-grid{grid-template-columns:1fr}
  .testi-card{min-width:280px;max-width:280px}
}
