/* ============================================
   UPI Forex — Dark Violet Fintech Theme
   ============================================ */

/* ---------- Reset & Base ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --bg:        #0a0712;
  --bg-card:   #140f22;
  --bg-card-h: #1a1330;
  --surface:   #1e1635;
  --violet:    #7c3aed;
  --violet-l:  #a78bfa;
  --violet-d:  #5b21b6;
  --green:     #22c55e;
  --amber:     #f59e0b;
  --text:      #e8e2f4;
  --text-dim:  #9b8fbf;
  --text-muted:#6b5f8a;
  --border:    rgba(124,58,237,.15);
  --glow:      0 0 30px rgba(124,58,237,.12);
  --glow-strong: 0 0 50px rgba(124,58,237,.22);
  --radius:    14px;
  --radius-sm: 8px;
  --max-w:     1180px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Rubik', sans-serif;
}

html{scroll-behavior:smooth;font-size:16px}

body{
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

a{color:var(--violet-l);text-decoration:none;transition:color .2s}
a:hover{color:#c4b5fd}
img{max-width:100%;display:block}

.container{max-width:var(--max-w);margin:0 auto;padding:0 24px}

/* ---------- Typography ---------- */
h1,h2,h3,h4{font-family:var(--font-head);font-weight:700;line-height:1.25;color:#fff}
h1{font-size:clamp(2rem,5vw,3.2rem)}
h2{font-size:clamp(1.5rem,3.5vw,2.2rem)}
h3{font-size:1.25rem}
p{margin-bottom:1rem}

/* ---------- Utility ---------- */
.accent{color:var(--violet-l)}
.badge{
  display:inline-block;
  padding:4px 12px;
  border-radius:100px;
  font-size:.75rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.badge--violet{background:rgba(124,58,237,.18);color:var(--violet-l)}
.badge--green{background:rgba(34,197,94,.15);color:var(--green)}
.badge--amber{background:rgba(245,158,11,.15);color:var(--amber)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 32px;
  border-radius:var(--radius-sm);
  font-family:var(--font-head);
  font-weight:600;
  font-size:.95rem;
  cursor:pointer;
  border:none;
  transition:all .25s;
}
.btn--primary{
  background:linear-gradient(135deg,var(--violet),var(--violet-d));
  color:#fff;
  box-shadow:0 4px 20px rgba(124,58,237,.35);
}
.btn--primary:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 30px rgba(124,58,237,.5);
  color:#fff;
}
.btn--outline{
  background:transparent;
  border:2px solid var(--violet);
  color:var(--violet-l);
}
.btn--outline:hover{
  background:rgba(124,58,237,.1);
  color:#fff;
}
.btn--sm{padding:10px 22px;font-size:.85rem}

/* ---------- Header ---------- */
.header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(10,7,18,.85);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--border);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:68px;
}
.logo{
  font-family:var(--font-head);
  font-size:1.5rem;
  font-weight:800;
  color:#fff;
  letter-spacing:-.5px;
}
.logo span{color:var(--violet-l)}

.nav{display:flex;align-items:center;gap:32px}
.nav a{
  font-size:.9rem;
  font-weight:500;
  color:var(--text-dim);
  position:relative;
}
.nav a::after{
  content:'';
  position:absolute;
  bottom:-4px;left:0;
  width:0;height:2px;
  background:var(--violet);
  border-radius:2px;
  transition:width .25s;
}
.nav a:hover{color:#fff}
.nav a:hover::after{width:100%}

.mobile-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
}
.mobile-toggle span{
  display:block;
  width:24px;
  height:2px;
  background:var(--text);
  margin:5px 0;
  border-radius:2px;
  transition:all .3s;
}

/* ---------- Hero ---------- */
.hero{
  padding:90px 0 80px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:'';
  position:absolute;
  top:-50%;left:50%;
  transform:translateX(-50%);
  width:800px;height:800px;
  background:radial-gradient(circle,rgba(124,58,237,.12) 0%,transparent 70%);
  pointer-events:none;
}
.hero__badge{margin-bottom:20px}
.hero h1{margin-bottom:20px;position:relative}
.hero h1 .highlight{
  background:linear-gradient(135deg,var(--violet-l),#c4b5fd);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.hero__sub{
  font-size:1.15rem;
  color:var(--text-dim);
  max-width:620px;
  margin:0 auto 36px;
}
.hero__actions{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom:48px;
}
.hero__trust{
  display:flex;
  gap:32px;
  justify-content:center;
  flex-wrap:wrap;
  color:var(--text-muted);
  font-size:.85rem;
}
.hero__trust span{display:flex;align-items:center;gap:6px}
.hero__trust svg{width:18px;height:18px;stroke:var(--violet-l)}

/* ---------- UPI Steps ---------- */
.steps{padding:80px 0;position:relative}
.steps::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--violet),transparent);
}
.section-label{
  text-align:center;
  margin-bottom:12px;
}
.section-title{
  text-align:center;
  margin-bottom:56px;
}
.steps__grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
  position:relative;
}
.steps__grid::before{
  content:'';
  position:absolute;
  top:60px;
  left:calc(16.66% + 16px);
  right:calc(16.66% + 16px);
  height:2px;
  background:linear-gradient(90deg,var(--violet),var(--violet-l),var(--violet));
  opacity:.3;
}
.step-card{
  text-align:center;
  padding:40px 28px;
  border-radius:var(--radius);
  background:var(--bg-card);
  border:1px solid var(--border);
  position:relative;
  transition:all .3s;
}
.step-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--glow-strong);
  border-color:rgba(124,58,237,.35);
}
.step-card__icon{
  width:80px;height:80px;
  margin:0 auto 20px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,rgba(124,58,237,.15),rgba(124,58,237,.05));
  border:2px solid rgba(124,58,237,.25);
}
.step-card__icon svg{width:36px;height:36px;stroke:var(--violet-l);fill:none;stroke-width:1.8}
.step-card__num{
  position:absolute;
  top:16px;right:20px;
  font-family:var(--font-head);
  font-size:.75rem;
  font-weight:700;
  color:var(--violet);
  background:rgba(124,58,237,.1);
  width:28px;height:28px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}
.step-card h3{margin-bottom:8px}
.step-card p{color:var(--text-dim);font-size:.9rem;margin-bottom:0}
.step-card__time{
  display:inline-block;
  margin-top:12px;
  font-size:.8rem;
  font-weight:600;
  color:var(--green);
}

/* ---------- Brokers ---------- */
.brokers{padding:80px 0}
.broker-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:28px;
}
.broker-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:36px;
  transition:all .3s;
  position:relative;
  overflow:hidden;
}
.broker-card::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:3px;
  background:linear-gradient(90deg,var(--violet),var(--violet-l));
  opacity:0;
  transition:opacity .3s;
}
.broker-card:hover{
  box-shadow:var(--glow-strong);
  border-color:rgba(124,58,237,.3);
  transform:translateY(-3px);
}
.broker-card:hover::before{opacity:1}

.broker-card__header{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
}
.broker-card__logo{
  width:56px;height:56px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-head);
  font-weight:800;
  font-size:1.1rem;
  color:#fff;
}
.broker-card__logo--xm{background:linear-gradient(135deg,#1a8c39,#13682b)}
.broker-card__logo--exness{background:linear-gradient(135deg,#f5c518,#d4a50a);color:#1a1a1a}

.broker-card__info h3{margin-bottom:4px}
.broker-card__info p{color:var(--text-dim);font-size:.85rem;margin-bottom:0}

.broker-card__features{
  list-style:none;
  margin-bottom:24px;
}
.broker-card__features li{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 0;
  border-bottom:1px solid rgba(124,58,237,.08);
  font-size:.9rem;
  color:var(--text-dim);
}
.broker-card__features li:last-child{border-bottom:none}
.broker-card__features svg{
  width:18px;height:18px;
  stroke:var(--green);
  fill:none;
  flex-shrink:0;
}
.broker-card__cta{display:flex;gap:12px;flex-wrap:wrap}

/* ---------- Articles ---------- */
.articles{padding:80px 0}
.article-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.article-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  transition:all .3s;
}
.article-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--glow);
  border-color:rgba(124,58,237,.3);
}
.article-card__img{
  height:180px;
  background:linear-gradient(135deg,var(--surface),var(--bg-card));
  display:flex;align-items:center;justify-content:center;
  position:relative;
  overflow:hidden;
}
.article-card__img::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(124,58,237,.08),transparent);
}
.article-card__img svg{
  width:48px;height:48px;
  stroke:var(--violet);
  fill:none;
  opacity:.5;
  position:relative;
  z-index:1;
}
.article-card__body{padding:24px}
.article-card__tag{margin-bottom:10px}
.article-card__body h3{
  font-size:1.05rem;
  margin-bottom:8px;
  line-height:1.4;
}
.article-card__body h3 a{color:#fff}
.article-card__body h3 a:hover{color:var(--violet-l)}
.article-card__body p{
  font-size:.88rem;
  color:var(--text-dim);
  margin-bottom:14px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.article-card__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:.8rem;
  color:var(--text-muted);
}
.article-card__read{
  color:var(--violet-l);
  font-weight:600;
  font-size:.82rem;
  display:flex;align-items:center;gap:4px;
}
.article-card__read svg{width:14px;height:14px;stroke:currentColor;fill:none}

/* ---------- CTA Banner ---------- */
.cta-banner{
  padding:80px 0;
}
.cta-banner__inner{
  background:linear-gradient(135deg,rgba(124,58,237,.12),rgba(124,58,237,.04));
  border:1px solid rgba(124,58,237,.2);
  border-radius:20px;
  padding:60px 48px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.cta-banner__inner::before{
  content:'';
  position:absolute;
  top:-100px;right:-100px;
  width:300px;height:300px;
  background:radial-gradient(circle,rgba(124,58,237,.15),transparent 70%);
  pointer-events:none;
}
.cta-banner__inner h2{margin-bottom:16px}
.cta-banner__inner p{
  color:var(--text-dim);
  max-width:540px;
  margin:0 auto 32px;
  font-size:1.05rem;
}

/* ---------- Risk Disclaimer ---------- */
.risk{
  padding:32px 0;
  border-top:1px solid var(--border);
}
.risk__box{
  background:rgba(245,158,11,.06);
  border:1px solid rgba(245,158,11,.2);
  border-radius:var(--radius-sm);
  padding:20px 28px;
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.risk__box svg{
  width:22px;height:22px;
  stroke:var(--amber);
  fill:none;
  flex-shrink:0;
  margin-top:2px;
}
.risk__box p{
  font-size:.82rem;
  color:var(--text-muted);
  margin-bottom:0;
  line-height:1.6;
}

/* ---------- Footer ---------- */
.footer{
  padding:48px 0 32px;
  border-top:1px solid var(--border);
}
.footer__top{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;
  margin-bottom:40px;
}
.footer__brand .logo{margin-bottom:12px;display:inline-block}
.footer__brand p{color:var(--text-muted);font-size:.88rem;max-width:280px}
.footer__col h4{
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--text-muted);
  margin-bottom:16px;
}
.footer__col a{
  display:block;
  color:var(--text-dim);
  font-size:.9rem;
  padding:4px 0;
}
.footer__col a:hover{color:var(--violet-l)}
.footer__bottom{
  padding-top:24px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.82rem;
  color:var(--text-muted);
  flex-wrap:wrap;
  gap:12px;
}
.footer__bottom a{color:var(--text-muted)}
.footer__bottom a:hover{color:var(--violet-l)}

/* ---------- Responsive ---------- */
@media(max-width:1024px){
  .broker-grid{grid-template-columns:1fr}
  .article-grid{grid-template-columns:repeat(2,1fr)}
  .footer__top{grid-template-columns:1fr 1fr}
}

@media(max-width:768px){
  .nav{
    position:fixed;
    top:68px;left:0;right:0;
    background:rgba(10,7,18,.97);
    backdrop-filter:blur(20px);
    flex-direction:column;
    padding:32px 24px;
    gap:24px;
    border-bottom:1px solid var(--border);
    transform:translateY(-120%);
    transition:transform .35s;
    z-index:99;
  }
  .nav.active{transform:translateY(0)}
  .mobile-toggle{display:block}

  .hero{padding:60px 0}
  .steps__grid{grid-template-columns:1fr;max-width:400px;margin:0 auto}
  .steps__grid::before{display:none}
  .article-grid{grid-template-columns:1fr}
  .footer__top{grid-template-columns:1fr}
  .cta-banner__inner{padding:40px 24px}
  .hero__trust{flex-direction:column;align-items:center;gap:12px}
}

@media(max-width:480px){
  .hero__actions{flex-direction:column;align-items:center}
  .btn{width:100%;justify-content:center}
  .broker-card{padding:24px}
  .broker-card__cta{flex-direction:column}
  .broker-card__cta .btn{width:100%;justify-content:center}
}
