/* ==========================================================================
   Trader In Public — Design System
   ========================================================================== */

:root{
  --bg: #05070a;
  --bg-soft: #0a0e14;
  --surface: #101722;
  --surface-2: #141d2b;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);

  --text: #eef2f7;
  --text-muted: #9aa7b8;
  --text-faint: #667180;

  --accent: #71AEFF;
  --accent-strong: #4C90E8;
  --accent-dim: #2C5F9E;
  --accent-glow: rgba(113,174,255,.35);

  --on-accent: #06101f;
  --red: #ff5c5c;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;

  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.6);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,.14), 0 20px 60px -15px rgba(113,174,255,.45);

  --maxw: 1140px;

  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(113,174,255,.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(113,174,255,.08), transparent 55%),
    var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:var(--font-display);
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:-.01em;
}
p{ margin:0 0 1em; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
.container{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
}
.section{ padding:88px 0; position:relative; }
.section--tight{ padding:56px 0; }
@media (max-width:720px){
  .section{ padding:56px 0; }
}

/* ---------- Eyebrow / badges ---------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-display);
  font-weight:800;
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent);
  background:rgba(113,174,255,.10);
  border:1px solid rgba(113,174,255,.28);
  padding:8px 16px;
  border-radius:999px;
}
.eyebrow .dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 3px rgba(113,174,255,.25);
  animation:pulse 1.6s infinite;
}
@keyframes pulse{
  0%,100%{ opacity:1; }
  50%{ opacity:.35; }
}
.pill{
  display:inline-block;
  font-size:13px;
  font-weight:700;
  padding:6px 14px;
  border-radius:999px;
  background:var(--surface-2);
  border:1px solid var(--border-strong);
  color:var(--text-muted);
}
.kicker{
  display:block;
  font-family:var(--font-display);
  font-weight:800;
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent);
}

/* ---------- Buttons ---------- */
.btn{
  --btn-pad-y: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-family:var(--font-display);
  font-weight:800;
  font-size:16px;
  letter-spacing:.01em;
  text-decoration:none;
  cursor:pointer;
  border:none;
  border-radius:999px;
  padding:var(--btn-pad-y) 34px;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space:normal;
  text-align:center;
  text-wrap:balance;
}
.btn-primary{
  background:linear-gradient(135deg,var(--accent),var(--accent-strong));
  color:#fff;
  box-shadow:var(--shadow-glow);
}
.btn-primary:hover{ transform:translateY(-2px); filter:brightness(1.04); }
.btn-primary:active{ transform:translateY(0); }
.btn-block{ width:100%; }
.btn-whatsapp{
  background:#25D366;
  color:#06210f;
  box-shadow:0 20px 50px -15px rgba(37,211,102,.55);
}
.btn-whatsapp:hover{ transform:translateY(-2px); filter:brightness(1.05); }
.btn-sub{
  display:block;
  margin-top:12px;
  font-size:13px;
  color:var(--text-faint);
  text-align:center;
}

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(14px);
  background:rgba(5,7,10,.72);
  border-bottom:1px solid var(--border);
}
.site-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px 16px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
  margin-left:14px;
  font-family:var(--font-display);
  font-weight:800;
  font-size:16px;
  letter-spacing:.02em;
}
.brand__mark{
  width:34px;height:34px;
  border-radius:9px;
  background:linear-gradient(135deg,var(--accent),var(--accent-dim));
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px -6px var(--accent-glow);
}
.brand__mark svg{ width:18px;height:18px; }
.brand__logo{ height:40px; width:auto; display:block; }
.footer__logo{ height:32px; width:auto; display:block; }
.header-eyebrow{
  font-size:13px;
  padding:4px 6px;
  border:none;
  background:none;
  text-align:center;
}
@media (min-width:721px){
  .site-header__inner{ position:relative; }
  .header-eyebrow{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
  }
}
.header-eyebrow__break{ display:none; }
@media (max-width:720px){
  .header-eyebrow{
    display:inline-block;
    font-size:11px;
  }
  .header-eyebrow .dot{
    display:inline-block;
    vertical-align:middle;
    margin-right:6px;
  }
  .header-eyebrow__sep{ display:none; }
  .header-eyebrow__break{ display:inline; }
}
.header-cta{
  font-size:14px;
  padding:12px 22px;
}
@media (max-width:560px){
  .header-cta{ display:none; }
  .brand__logo{ height:32px; }
}
@media (max-width:720px){
  .site-header__inner{ justify-content:center; }
  .brand{ width:100%; justify-content:center; margin-left:0; }
  .brand__logo{ display:none; }
}
.hero__mobile-logo{ display:none; }
@media (max-width:720px){
  .hero__mobile-logo{
    display:block;
    height:44px;
    width:auto;
    margin:0 auto 14px;
  }
}

/* ---------- Alert banner (invito page) ---------- */
.alert-banner{
  background:linear-gradient(90deg, rgba(255,92,92,.16), rgba(255,92,92,.05));
  border-bottom:1px solid rgba(255,92,92,.35);
  color:#ffd7d7;
  padding:12px 0;
}
.alert-banner__inner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px 14px;
  text-align:center;
  font-size:14px;
}
.alert-banner strong{ color:#fff; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding:64px 0 60px;
  overflow:hidden;
}
@media (max-width:720px){
  .hero{ padding-top:6px; }
}
.hero::before{
  content:"";
  position:absolute;
  inset:-20% -10% auto -10%;
  height:520px;
  background:
    linear-gradient(180deg, rgba(113,174,255,.14), transparent 70%);
  filter:blur(10px);
  pointer-events:none;
}
.hero-chart-decor{
  position:absolute;
  left:-6%;
  right:-6%;
  bottom:-6%;
  height:46%;
  opacity:.35;
  pointer-events:none;
}
.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:56px;
  align-items:start;
}
@media (max-width:960px){
  .hero-grid{ grid-template-columns:1fr; gap:40px; }
}
@media (max-width:720px){
  .hero-grid > div:first-child{ text-align:center; }
  .hero__author{ justify-content:center; }
  .eyebrow{ margin-left:auto; margin-right:auto; }
  .ps-box{ margin-left:auto; margin-right:auto; text-align:left; max-width:420px; }
  .lead-card__top{ justify-content:center; }
}
.hero__author{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:6px;
  font-size:15px;
  color:var(--text-muted);
  margin:18px 0 10px;
}
.hero__author strong{
  font-family:var(--font-display);
  font-weight:800;
  color:#fff;
  font-size:16px;
}
.hero__hook{
  font-family:var(--font-body);
  font-weight:400;
  font-size:15.5px;
  color:var(--text-muted);
  margin:0 0 6px;
  text-wrap:balance;
}
.hero__hook b{
  color:var(--accent);
  font-weight:800;
  white-space:nowrap;
}
.hero h1{
  font-size:clamp(22px, 3.1vw, 32px);
  line-height:1.28;
  color:#fff;
  margin-bottom:16px;
}
.hero h1 b{ color:var(--accent); }
.hero h1:last-of-type{ text-wrap:balance; }
@media (max-width:520px){
  .hero h1{ font-size:21px; line-height:1.35; }
  .hero__hook{ font-size:14.5px; }
  .hero .lede{ font-size:14.5px; }
}
.hero .lede{
  font-size:15.5px;
  color:#c7d0db;
}
.hero .lede b{ color:#fff; }
.hero .lede2{
  font-size:17px;
  color:var(--text-muted);
}
.ps-box{
  margin-top:20px;
  padding:2px 0 2px 16px;
  border-left:2px solid var(--accent);
  font-size:14px;
  color:var(--text-muted);
}
.ps-box b{ color:var(--accent); }

/* ---------- Lead form card ---------- */
.lead-card{
  position:relative;
  background:linear-gradient(180deg, var(--surface), var(--surface-2));
  border:1px solid var(--border-strong);
  border-radius:var(--radius-lg);
  padding:30px;
  box-shadow:var(--shadow-lg);
}
.lead-card__top{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
}
.lead-card__top .live-dot{
  width:9px;height:9px;border-radius:50%;
  background:var(--red);
  box-shadow:0 0 0 4px rgba(255,92,92,.22);
  animation:pulse 1.4s infinite;
}
.lead-card__top span{
  font-family:var(--font-display);
  font-weight:800;
  font-size:12.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--red);
}
.lead-card h3{
  font-size:21px;
  color:#fff;
  margin-bottom:4px;
}
.lead-card p.hint{
  color:var(--text-muted);
  font-size:14px;
  margin-bottom:22px;
}
.field{
  margin-bottom:14px;
}
/* Honeypot anti-spam: invisibile e non raggiungibile da tastiera per una
   persona reale, ma presente nel DOM dove i bot che compilano tutti i
   campi di un form lo trovano e lo riempiono, tradendosi. */
.hp-field{
  position:absolute;
  left:-9999px;
  top:-9999px;
  height:0;
  width:0;
  overflow:hidden;
}
.field label{
  display:block;
  font-size:12.5px;
  font-weight:700;
  color:var(--text-muted);
  margin-bottom:6px;
  letter-spacing:.02em;
}
.field input{
  width:100%;
  background:var(--bg-soft);
  border:1px solid var(--border-strong);
  color:var(--text);
  font-family:var(--font-body);
  font-size:15px;
  padding:14px 16px;
  border-radius:11px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder{ color:var(--text-faint); }
.field input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(113,174,255,.15);
}
.field.has-error input{ border-color:var(--red); }
.field .err{
  display:none;
  color:var(--red);
  font-size:12.5px;
  margin-top:6px;
}
.field.has-error .err{ display:block; }
.form-note{
  margin-top:14px;
  font-size:12px;
  color:var(--text-faint);
  text-align:center;
  line-height:1.5;
}

/* ---------- Countdown ---------- */
.countdown-bar{
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background:var(--bg-soft);
}
.countdown-bar__inner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:26px;
  padding:22px 0;
}
.countdown-bar__label{
  font-family:var(--font-display);
  font-weight:800;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-muted);
}
.countdown{
  display:flex;
  gap:10px;
}
.countdown .unit{
  text-align:center;
  min-width:64px;
  background:var(--surface-2);
  border:1px solid var(--border-strong);
  border-radius:12px;
  padding:10px 8px;
}
.countdown .unit strong{
  display:block;
  font-family:var(--font-display);
  font-size:24px;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
}
.countdown .unit span{
  display:block;
  font-size:10.5px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-faint);
  margin-top:2px;
}

/* ---------- Section headers ---------- */
.section-head{
  max-width:760px;
  margin:0 0 40px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{
  font-size:clamp(24px,3.4vw,34px);
  color:#fff;
  text-wrap:balance;
}
.section-head p{
  color:var(--text-muted);
  font-size:17px;
}

/* ---------- Reasons / bullets ---------- */
.reason-list{
  border-top:1px solid var(--border);
}
.reason-item{
  display:grid;
  grid-template-columns:26px 1fr;
  gap:18px;
  align-items:flex-start;
  padding:28px 0;
  border-bottom:1px solid var(--border);
}
.reason-item__icon{
  width:22px;height:22px;
  margin-top:2px;
  color:var(--accent);
  flex-shrink:0;
}
.reason-item__icon svg{ width:100%; height:100%; }
.reason-item p{
  margin:0;
  color:#dbe2ea;
  font-size:15.5px;
}
.reason-item p + p{ margin-top:10px; }
.reason-item b{ color:#fff; }

.cta-center{
  text-align:center;
  margin-top:44px;
}

/* ---------- Results section ---------- */
.results-media{
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
  align-items:start;
}
@media (min-width:901px){
  .results-media{ grid-template-columns:1fr 1fr; gap:40px; }
}
.stat-badge{
  display:inline-flex;
  flex-direction:column;
  gap:2px;
  background:rgba(113,174,255,.1);
  border:1px solid rgba(113,174,255,.35);
  border-radius:var(--radius-sm);
  padding:14px 20px;
  margin:18px 0 24px;
}
.stat-badge strong{
  font-family:var(--font-display);
  font-size:30px;
  color:var(--accent);
}
.stat-badge span{
  font-size:12.5px;
  color:var(--text-muted);
  text-transform:uppercase;
  letter-spacing:.06em;
}
.media-card{
  position:relative;
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--border-strong);
  box-shadow:var(--shadow-lg);
  background:var(--surface);
}
.media-card img{ width:100%; }
.media-card figcaption{
  padding:14px 18px;
  font-size:13px;
  color:var(--text-muted);
  border-top:1px solid var(--border);
}
.video-frame{
  position:relative;
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--border-strong);
  box-shadow:var(--shadow-lg);
  background:#000;
  aspect-ratio:16/9;
}
.video-frame iframe,
.video-frame video{
  width:100%;height:100%;border:0;display:block;
}
.video-placeholder{
  position:absolute; inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  background:
    radial-gradient(circle at 50% 40%, rgba(113,174,255,.16), transparent 60%),
    linear-gradient(160deg, #0d1420, #060a10);
  color:var(--text-muted);
  text-align:center;
  padding:16px;
}
.play-btn{
  width:60px;height:60px;
  border-radius:50%;
  background:linear-gradient(135deg,#ffffff,#e7eef7);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 9px rgba(113,174,255,.08), var(--shadow-glow);
}
.play-btn svg{ width:20px;height:20px; margin-left:2px; fill:var(--on-accent); }
.video-placeholder small{
  font-size:11.5px;
  color:var(--text-faint);
  max-width:280px;
}

/* ---------- Bio ---------- */
.carousel{
  position:relative;
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--border-strong);
  box-shadow:var(--shadow-lg);
  background:var(--surface);
  aspect-ratio:4/5;
}
.carousel__track{
  position:relative;
  width:100%;height:100%;
}
.carousel__slide{
  position:absolute;
  inset:0;
  opacity:0;
  transform:translateX(6%);
  transition:opacity .7s ease, transform .7s ease;
}
.carousel__slide.is-active{
  opacity:1;
  transform:translateX(0);
}
.carousel__slide img{
  width:100%;height:100%;object-fit:cover;
}
.carousel__slide .ph-fallback{
  width:100%;height:100%;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  justify-content:center;
  background:linear-gradient(150deg,#131b28,#0a0e14);
  color:var(--text-faint);
  text-align:center;
  padding:24px;
}
.carousel__slide .ph-fallback strong{
  font-family:var(--font-display);
  color:var(--text-muted);
  font-size:14px;
}
.carousel__dots{
  position:absolute;
  bottom:16px; left:0; right:0;
  display:flex;
  justify-content:center;
  gap:8px;
  z-index:2;
}
.carousel__dots button{
  width:8px;height:8px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,.3);
  cursor:pointer;
  padding:0;
  transition:background .2s ease, width .2s ease;
}
.carousel__dots button.is-active{
  background:var(--accent);
  width:22px;
  border-radius:5px;
}
.bio-copy h2{
  font-size:clamp(22px,3vw,30px);
  color:#fff;
}
.bio-copy p{
  color:#d6dde5;
  font-size:15.5px;
  line-height:1.75;
  margin-bottom:16px;
}
.bio-copy p b{ color:#fff; }
.bio-copy .signoff{
  font-family:var(--font-display);
  font-weight:800;
  color:#fff;
  margin-top:20px;
}
.credential-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 22px;
}

/* ---------- Final CTA band ---------- */
.final-cta{
  position:relative;
  border-radius:var(--radius-lg);
  padding:56px 40px;
  text-align:center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(113,174,255,.18), transparent 65%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border:1px solid var(--border-strong);
  overflow:hidden;
}
.final-cta h2{
  font-size:clamp(24px,3.6vw,34px);
  color:#fff;
  max-width:640px;
  margin-left:auto;margin-right:auto;
  text-wrap:balance;
}
.final-cta p{
  color:var(--text-muted);
  max-width:520px;
  margin:0 auto 28px;
  text-wrap:balance;
  font-size:16px;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:rgba(5,7,10,.9);
  backdrop-filter:blur(10px);
  border-top:1px solid var(--border-strong);
  display:none;
}
@media (max-width:720px){
  .sticky-cta{ display:block; }
  body:has(.sticky-cta){ padding-bottom:78px; }
}

/* ---------- Footer ---------- */
.site-footer{
  border-top:1px solid var(--border);
  padding:40px 0;
  background:var(--bg-soft);
}
@media (max-width:720px){
  body:has(.sticky-cta) .site-footer{ padding-bottom:90px; }
}
.site-footer__inner{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  margin-bottom:24px;
}
.disclaimer{
  font-size:12px;
  color:var(--text-faint);
  line-height:1.7;
  border-top:1px solid var(--border);
  padding-top:20px;
}

/* ---------- Thank you page ---------- */
.ty-hero{
  padding:28px 0;
}
.ty-card{
  max-width:560px;
  margin:0 auto;
  text-align:center;
}
.ty-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,92,92,.12);
  border:1px solid rgba(255,92,92,.35);
  color:#ffb4b4;
  font-family:var(--font-display);
  font-weight:800;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:20px;
}
.ty-card h1{
  font-size:clamp(22px,3.6vw,30px);
  color:#fff;
  margin-bottom:12px;
  text-wrap:balance;
}
.ty-card .lede{
  font-size:16px;
  color:var(--text-muted);
  margin-bottom:6px;
}
.ty-card .hook{
  font-size:14.5px;
  font-weight:700;
  color:var(--accent);
  margin-bottom:18px;
}
.ty-video{
  margin:0 auto 18px;
  max-width:360px;
}
.ty-note{
  font-size:12.5px;
  color:var(--text-muted);
  max-width:440px;
  margin:0 auto 14px;
  line-height:1.45;
}
.ty-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

/* ---------- Utility ---------- */
.visually-hidden{
  position:absolute!important;
  width:1px;height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
}
.toast{
  position:fixed;
  bottom:24px; left:50%;
  transform:translateX(-50%) translateY(12px);
  background:var(--surface-2);
  border:1px solid var(--border-strong);
  color:var(--text);
  padding:14px 20px;
  border-radius:12px;
  font-size:14px;
  box-shadow:var(--shadow-lg);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease, transform .25s ease;
  z-index:80;
}
.toast.is-visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
