/* ══════════════════ FOOTER — BASE (Large Desktop / Default) ══════════════════ */
footer{
  background:#0F172A;
  color:#fff;
  position:relative;
  overflow:hidden;
  padding:5rem 0 0;
  width:100%;
}

footer::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:radial-gradient(rgba(167,139,250,0.14) 1px, transparent 1px);
  background-size:26px 26px;
  mask-image:radial-gradient(ellipse 900px 500px at 15% 0%, #000 0%, transparent 70%);
  -webkit-mask-image:radial-gradient(ellipse 900px 500px at 15% 0%, #000 0%, transparent 70%);
  pointer-events:none;
}

footer::after{
  content:'';
  position:absolute;
  top:-180px;
  left:-120px;
  width:520px;
  height:520px;
  background:radial-gradient(circle, rgba(124,58,237,0.35) 0%, transparent 70%);
  filter:blur(10px);
  pointer-events:none;
}

.footer-inner{
  max-width:1280px;
  margin:0 auto;
  padding:0 2.5rem;
  position:relative;
  z-index:1;
}

.footer-top-line{
  height:1px;
  background:linear-gradient(90deg,transparent, rgba(167,139,250,0.5), transparent);
  margin-bottom:4rem;
}

/* Main grid: ONLY 2 tracks -> brand column + links-group */
.footer-grid{
  display:grid;
  grid-template-columns:1.6fr 2.4fr;
  gap:3rem;
  padding-bottom:3rem;
  align-items:start;
}

/* Link columns form their OWN symmetric 3-column grid inside the 2nd track */
.footer-links-group{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:2rem;
}

/* ── Brand column ── */
.footer-brand{
  display:inline-flex;
  justify-content:flex-start;
  align-items:flex-start;
  margin-bottom:22px;
  width:fit-content;
}

.footer-brand img{
  height:44px;
  width:auto;
  display:block;
  transition:filter 0.2s ease, transform 0.2s ease;
}

.footer-brand:hover img{
  filter:drop-shadow(0 0 10px rgba(124,58,237,0.5));
  transform:scale(1.10);
}

.footer-desc{
  max-width:340px;
  color:rgba(255,255,255,0.45);
  line-height:1.8;
  font-size:13.5px;
  margin-bottom:24px;
}

.footer-nl-label{
  font-size:11px;
  color:rgba(255,255,255,0.4);
  margin-bottom:10px;
  font-weight:700;
  letter-spacing:0.09em;
  text-transform:uppercase;
}

.footer-newsletter{
  display:flex;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:10px;
  padding:4px;
  max-width:340px;
  transition:border-color 0.25s ease;
}
.footer-newsletter:focus-within{
  border-color:var(--p400, #a78bfa);
}
.footer-newsletter input{
  background:transparent;
  border:none;
  outline:none;
  color:#fff;
  font-size:13px;
  padding:9px 12px;
  flex:1;
  min-width:0;
}
.footer-newsletter input::placeholder{color:rgba(255,255,255,0.32)}
.footer-newsletter button{
  background:linear-gradient(135deg,var(--p500, #7c3aed),var(--p600, #6d28d9));
  color:#fff;
  border:none;
  border-radius:7px;
  padding:9px 18px;
  font-size:12.5px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  transition:filter 0.2s ease, transform 0.2s ease;
}
.footer-newsletter button:hover{
  filter:brightness(1.12);
  transform:translateY(-1px);
}

/* ── Link columns ── */
.footer-col h5{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11.5px;
  font-weight:700;
  color:rgba(255,255,255,0.9);
  letter-spacing:0.07em;
  text-transform:uppercase;
  margin-bottom:20px;
}
.footer-col h5 .dot{
  width:6px;height:6px;
  border-radius:50%;
  background:var(--p400, #a78bfa);
  box-shadow:0 0 8px rgba(167,139,250,0.8);
  flex-shrink:0;
}
.footer-chevron{display:none}

.footer-col ul{list-style:none;padding:0;margin:0}
.footer-col ul li{margin-bottom:12px}
.footer-col ul li a{
  font-size:13.5px;
  color:rgba(255,255,255,0.5);
  text-decoration:none;
  font-weight:500;
  position:relative;
  transition:color 0.2s ease, padding-left 0.2s ease;
  display:inline-block;
}
.footer-col ul li a:hover{
  color:#fff;
  padding-left:6px;
}
.footer-col ul li a::before{
  content:'';
  position:absolute;
  left:-14px;
  top:50%;
  transform:translateY(-50%);
  width:0;
  height:1px;
  background:var(--p400, #a78bfa);
  transition:width 0.2s ease;
}
.footer-col ul li a:hover::before{
  width:8px;
}

/* ── Bottom bar ── */
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.08);
  margin-top:2.5rem;
  padding:1.5rem 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
}

.footer-copy{
  font-size:13px;
  color:rgba(255,255,255,0.4);
  font-weight:400;
}

.footer-tagline{
  font-size:13px;
  font-weight:700;
  color:var(--p400, #a78bfa);
  display:flex;
  align-items:center;
  gap:8px;
  letter-spacing:0.01em;
  white-space:nowrap;
}
.footer-tagline::before{
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--p400, #a78bfa);
  box-shadow:0 0 8px var(--p400, #a78bfa);
  flex-shrink:0;
}


/* ══════════════════ RESPONSIVE BREAKPOINTS ══════════════════ */

/* ── Large Desktop (1440px+) ── */
@media (min-width:1440px){
  .footer-inner{max-width:1360px}
  .footer-grid{gap:3.5rem}
}

/* ── Laptop / Small Desktop (1025px – 1279px) ── */
@media (max-width:1279px){
  .footer-inner{max-width:1080px}
  .footer-grid{gap:2.25rem}
}

/* ── Tablet Landscape (769px – 1024px) ── */
@media (max-width:1024px){
  footer{padding:4rem 0 0}
  .footer-grid{
    grid-template-columns:1fr 1.4fr;
    gap:2rem;
  }
  .footer-links-group{
    grid-template-columns:repeat(3, 1fr);
    gap:1.25rem;
  }
  .footer-desc{max-width:100%}
  .footer-newsletter{max-width:100%}
}

/* ── Tablet Portrait (601px – 768px) ── */
@media (max-width:768px){
  footer{padding:3.5rem 0 0}
  .footer-inner{padding:0 1.75rem}
  .footer-top-line{margin-bottom:2.75rem}
  .footer-grid{
    grid-template-columns:1fr 1.3fr;
    gap:1.5rem;
    padding-bottom:2.25rem;
  }
  .footer-links-group{
    grid-template-columns:repeat(3, 1fr);
    gap:1rem;
  }
  .footer-desc{max-width:100%}
  .footer-newsletter{max-width:100%}
  .footer-brand img{height:40px}
}

/* ── Mobile (481px – 600px) ── */
@media (max-width:600px){
  .footer-grid{
    grid-template-columns:1fr;
    row-gap:2.75rem;
  }
  .footer-links-group{
    grid-template-columns:1fr;
    gap:0;
  }
  .footer-col{
    border-top:1px solid rgba(255,255,255,0.08);
    padding:16px 0;
  }
  .footer-col:last-child{
    border-bottom:1px solid rgba(255,255,255,0.08);
  }
  .footer-col h5{
    cursor:pointer;
    user-select:none;
    margin-bottom:0;
  }
  .footer-chevron{
    display:block;
    margin-left:auto;
    flex-shrink:0;
    transition:transform 0.3s ease;
    color:rgba(255,255,255,0.5);
  }
  .footer-col.open .footer-chevron{
    transform:rotate(180deg);
  }
  .footer-col ul{
    max-height:0;
    opacity:0;
    overflow:hidden;
    transition:max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
    margin-top:0;
  }
  .footer-col.open ul{
    max-height:500px;
    opacity:1;
    margin-top:16px;
  }
  .footer-newsletter{
    flex-direction:column;
    background:transparent;
    border:none;
    padding:0;
    gap:8px;
  }
  .footer-newsletter input{
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:8px;
    padding:11px 14px;
    outline:none;
    transition:border-color 0.25s ease;
  }
  .footer-newsletter input:focus{
    border-color:var(--p400, #a78bfa);
  }
  .footer-newsletter button{
    width:100%;
    padding:11px 18px;
    border-radius:8px;
  }
  .footer-col ul li a{
    padding-left:14px;
  }
  .footer-col ul li a::before{
    left:0;
  }
  .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
    padding:1.5rem 0;
    gap:10px;
  }
}

/* ── Small Mobile (≤480px) ── */
@media (max-width:480px){
  footer{padding:2.75rem 0 0}
  .footer-inner{padding:0 1.25rem}
  .footer-top-line{margin-bottom:2rem}
  .footer-brand img{height:36px}
  .footer-desc{font-size:12.5px; line-height:1.7}
  .footer-col h5{font-size:11px}
  .footer-col ul li{margin-bottom:10px}
  .footer-col ul li a{font-size:12.5px}
  .footer-copy, .footer-tagline{font-size:11.5px}
  .footer-nl-label{font-size:10.5px}
}

/* ── Extra Small Mobile (≤360px) ── */
@media (max-width:360px){
  .footer-inner{padding:0 1rem}
  .footer-desc{font-size:12px}
  .footer-col ul li a{font-size:12px}
  .footer-newsletter button{font-size:12px; padding:10px 14px}
  .footer-newsletter input{font-size:12px}
}
