/* =========================
   HASCALS — Global Styles
   ========================= */
:root{
  --bg: #0b0f14;
  --surface: #0f1520;
  --card: #111827dd;
  --text: #e5ecff;
  --muted: #9fb0d1;
  --brand: #6ee7f9;
  --brand-2: #a78bfa;
  --accent: #22d3ee;
  --ok: #34d399;
  --warn: #f59e0b;
  --error: #ef4444;
  --shadow: 0 10px 30px rgba(2,10,30,.5);
  --radius: 16px;
}

/* Page Index — CTA glamorization */
.page-index .cta-bar{
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(167,139,250,.18));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 50px rgba(0,0,0,.35), 0 8px 28px rgba(34,211,238,.18);
  transition: transform .35s var(--ease-out-3), box-shadow .35s var(--ease-out-3), border-color .35s var(--ease-out-3);
  backdrop-filter: blur(6px) saturate(130%);
}
.page-index .cta-bar:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 70px rgba(0,0,0,.45), 0 14px 34px rgba(167,139,250,.22);
  border-color: rgba(255,255,255,.22);
}
/* Gradient ring border */
.page-index .cta-bar::before{
  content:""; position:absolute; inset:0; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--brand-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity:.55; pointer-events:none; transition: opacity .35s var(--ease-out-3);
}
.page-index .cta-bar:hover::before{ opacity: .9; }
/* Shine sweep */
.page-index .cta-bar::after{
  content:""; position:absolute; top:-20%; bottom:-20%; left:-30%; width:36%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 45%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 55%);
  transform: skewX(-18deg); border-radius: 20px; filter: blur(1px);
  opacity: 0; pointer-events:none;
}
.page-index .cta-bar:hover::after{
  opacity: 1; animation: ctaSweep 1.4s ease-out forwards;
}
/* CTA content subtle lift */
.page-index .cta-bar > *{ position: relative; z-index: 1; }
.page-index .cta-bar strong, .page-index .cta-bar b { text-shadow: 0 2px 12px rgba(34,211,238,.22); }

/* Button glam in CTA */
.page-index .cta-bar .button.primary{
  position: relative;
  box-shadow: 0 12px 30px rgba(34,211,238,.35), 0 0 0 1px rgba(255,255,255,.08) inset;
  transition: transform .3s var(--ease-out-3), box-shadow .3s var(--ease-out-3);
}
.page-index .cta-bar .button.primary:hover{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 40px rgba(34,211,238,.45), 0 0 0 1px rgba(255,255,255,.12) inset;
}
.page-index .cta-bar .button.primary::after{
  content:""; position:absolute; inset:-1px; border-radius:inherit; pointer-events:none;
  background: radial-gradient(60% 60% at 50% -20%, rgba(255,255,255,.35), transparent 60%);
  opacity:.0; transition: opacity .25s var(--ease-out-3);
}
.page-index .cta-bar .button.primary:hover::after{ opacity:.6; }

/* Keyframes */
@keyframes ctaSweep {
  0% { left:-30%; }
  100% { left:130%; }
}

/* =========================
   Index Page Hero Animations
   ========================= */
.page-index .hero { position: relative; }
.page-index .hero .hero-glow{ z-index: 0; will-change: transform; }
.page-index .hero .hero-glow[data-parallax]{ animation: none; }
.page-index .hero .container{ position: relative; z-index: 1; }

/* Animated gradient shine on key phrase */
.page-index .hero h1 em{
  background: linear-gradient(90deg, var(--accent), var(--brand-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
  animation: textGradient 3.6s linear infinite;
}
@keyframes textGradient { to { background-position: 200% 0; } }

/* Badge shimmer sweep on hover */
.page-index .badges { position: relative; }
.page-index .badge { position: relative; overflow: hidden; }
.page-index .badge::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 45%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 55%);
  transform: translateX(-140%) skewX(-20deg);
  opacity: 0;
}
.page-index .badge:hover::after{ opacity: .9; animation: badgeSweep 1.2s ease-out; }
@keyframes badgeSweep { to { transform: translateX(140%) skewX(-20deg); } }

/* Hero card: premium hover ring + shine */
.page-index .hero-card{
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-out-3), box-shadow .35s var(--ease-out-3);
}
.page-index .hero-card::before{
  content:""; position:absolute; inset:0; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(135deg, rgba(34,211,238,.45), rgba(167,139,250,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events:none; opacity: 0; transition: opacity .35s var(--ease-out-3);
}
.page-index .hero-card::after{
  content:""; position:absolute; inset:-1px; border-radius: var(--radius); pointer-events:none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 45%, rgba(255,255,255,.15) 50%, rgba(255,255,255,0) 55%);
  background-size: 220% 100%; background-position: -120% 0%;
  opacity: 0; transition: opacity .2s var(--ease-out-3);
}
.page-index .hero-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.40);
}
.page-index .hero-card:hover::before{ opacity: 1; }
.page-index .hero-card:hover::after{ opacity: 1; animation: shineSweep 1.6s ease-out; }

/* Hero stats micro-motion */
.page-index .hero-stats .stat{
  transition: transform .3s var(--ease-out-3), box-shadow .3s var(--ease-out-3);
}
.page-index .hero-stats .stat:hover{
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(34,211,238,.2);
}

/* Cards icon micro-motion (index only) */
.page-index .cards .card .icon{
  transition: transform .4s var(--ease-out-3), box-shadow .4s var(--ease-out-3);
}
.page-index .cards .card:hover .icon{
  transform: translateY(-4px) scale(1.1) rotate(-2deg);
  box-shadow: 0 8px 24px rgba(34,211,238,.25);
}

/* Index cards: gradient ring + shine on hover */
.page-index .cards .card{ position: relative; overflow: hidden; }
.page-index .cards .card::before{
  content:""; position:absolute; inset:0; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(135deg, rgba(34,211,238,.35), rgba(167,139,250,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; pointer-events:none; transition: opacity .35s var(--ease-out-3);
}
.page-index .cards .card::after{
  content:""; position:absolute; inset:-1px; border-radius: var(--radius); pointer-events:none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 45%, rgba(255,255,255,.16) 50%, rgba(255,255,255,0) 55%);
  background-size: 220% 100%; background-position: -120% 0%;
  opacity: 0; transition: opacity .2s var(--ease-out-3);
}
.page-index .cards .card:hover::before{ opacity: 1; }
.page-index .cards .card:hover::after{ opacity: 1; animation: shineSweep 1.5s ease-out; }

/* Hero floating orbs */
.page-index .hero::before,
.page-index .hero::after{
  content:""; position:absolute; border-radius: 50%; filter: blur(40px); opacity: .35; pointer-events:none;
  animation: orbFloat var(--dur-slow) ease-in-out infinite alternate;
}
.page-index .hero::before{
  width: 280px; height: 280px; top: -40px; left: -60px;
  background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.4), transparent 70%);
  animation-duration: 12s;
}
.page-index .hero::after{
  width: 220px; height: 220px; bottom: -30px; right: -40px;
  background: radial-gradient(circle at 70% 70%, rgba(167,139,250,.35), transparent 70%);
  animation-duration: 14s;
}
@keyframes orbFloat { to { transform: translate(12px, 10px) scale(1.04); } }

/* Scroll indicator */
.page-index .scroll-indicator{
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  width: 22px; height: 36px; border-radius: 12px; border: 2px solid rgba(255,255,255,.35);
  opacity: .65;
}
.page-index .scroll-indicator::after{
  content:""; position:absolute; left: 50%; top: 6px; width: 4px; height: 8px; border-radius: 2px;
  transform: translateX(-50%); background: rgba(255,255,255,.8); animation: bounceY 1.6s ease-in-out infinite;
}
@keyframes bounceY { 0%, 100% { transform: translate(-50%, 0); opacity: .9; } 50% { transform: translate(-50%, 8px); opacity: .4; } }

/* Interactive glow area for elements marked with [data-glow] */
.page-index [data-glow]{ position: relative; overflow: hidden; }
.page-index [data-glow]::before{
  content:""; position:absolute; inset:-20%; pointer-events:none; mix-blend-mode: screen;
  background:
    radial-gradient(28rem 28rem at var(--mx,50%) var(--my,50%), rgba(167,139,250,.14), transparent 60%),
    radial-gradient(22rem 22rem at calc(100% - var(--mx,50%)) calc(100% - var(--my,50%)), rgba(34,211,238,.12), transparent 60%);
  filter: blur(2px); opacity: .55; transition: opacity .3s var(--ease-out-3);
}
.page-index [data-glow]:hover::before{ opacity: .85; }

/* --- Fade animation --- */

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 800px at 70% -10%, #1f2a44 0%, transparent 60%), 
              radial-gradient(800px 600px at -10% 30%, #1b243b 0%, transparent 50%),
              var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  scroll-behavior: smooth;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}
.page-team .container { width: min(1200px, 90vw); }
.page-team .nav { width: min(1200px, 90vw); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header / Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(180deg, rgba(15,21,32,.9), rgba(15,21,32,.5));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
}
.brand {
  display:flex; align-items:center; gap:.7rem; font-weight:700; letter-spacing:.2px;
}
.brand-badge{
  width: 36px; height: 36px; border-radius: 10px;
  background: conic-gradient(from 180deg at 50% 50%, var(--brand), var(--brand-2), var(--accent), var(--brand));
  box-shadow: inset 0 0 24px rgba(255,255,255,.3), 0 8px 24px rgba(0,0,0,.3);
}
.nav-links {
  display: flex; gap: 1rem; justify-content:center; flex-wrap: wrap;
}
.nav-cta { justify-self: end; }
.button, .btn {
  display:inline-flex; align-items:center; gap:.6rem;
  padding: .7rem 1.1rem;
  background: linear-gradient(180deg, #1b2a40, #121a27);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.button:hover { transform: translateY(-2px); background:#1e293b; }
.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--brand-2));
  color: #071018;
  border: none;
  box-shadow: 0 10px 30px rgba(34,211,238,.35);
}
.button.primary:hover { transform: translateY(-2px) scale(1.02); }

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 8rem) 0 clamp(2rem, 6vw, 5rem);
  overflow: hidden;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1rem, 4vw, 3rem);
}
@media (max-width: 900px){
  .grid-2 { grid-template-columns: 1fr; }
}
.kicker {
  color: var(--brand);
  letter-spacing:.24em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .8rem;
}
h1 {
  font-size: clamp(2rem, 3.5vw + 1rem, 4rem);
  line-height: 1.1;
  margin: .4rem 0 1rem;
}
.sublead {
  font-size: clamp(1rem, 1vw + .9rem, 1.25rem);
  color: var(--muted);
  max-width: 60ch;
}
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.2rem;
  display:grid;
  gap: 1rem;
}
.hero-stats {
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: .8rem;
}
.stat {
  background: linear-gradient(180deg, #0e1624, #0a111a);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: .8rem;
  text-align:center;
}
.stat b { font-size: 1.3rem; display:block; }
.hero-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px);
  background: radial-gradient(circle at 50% 50%, rgba(167,139,250,.35) 0, rgba(110,231,249,.25) 35%, rgba(0,0,0,0) 60%);
  pointer-events: none;
  animation: float 12s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate(-4%, 2%) rotate(8deg); } }

.badges { display:flex; gap:.8rem; flex-wrap:wrap; align-items:center; }
.badge {
  font-size:.85rem; color:#0b0f14; font-weight:700;
  padding:.4rem .7rem; border-radius:999px;
  background:linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow:0 6px 18px rgba(34,211,238,.25);
}

/* Sections */
.section { padding: clamp(2rem, 5vw, 4rem) 0; }
.section h2 {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.6rem);
  margin: 0 0 1rem;
}
.lead {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 68ch;
}
.page-pricing .lead {
  text-align: center !important;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.card {
  grid-column: span 4;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.card h3 { margin-top: .4rem; }
.card p { color: var(--muted); }

@media (max-width: 1000px){
  .card { grid-column: span 6; }
}
@media (max-width: 640px){
  .card { grid-column: span 12; }
}

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  padding: 1.5rem 0;
  margin: 2rem 0;
}
.marquee-track {
  display:inline-block; padding: .7rem 0;
  animation: marquee 22s linear infinite;
}
.marquee-track b { margin: 0 2rem; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Footer */
.footer {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2rem 0 0;
}
.footer-grid { display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer small { color: var(--muted); }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .footer-grid { grid-template-columns: 1fr; } }

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(167,139,250,.08));
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 2rem 0;
}
.newsletter-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.newsletter-content h3 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}
.newsletter-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 40ch;
}
.lead-magnets {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.magnet-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  align-items: center;
}
.magnet-icon {
  font-size: 1.5rem;
}
.newsletter-form {
  min-width: 300px;
}
.newsletter-form form {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 900px){
  .newsletter-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .newsletter-form {
    min-width: auto;
  }
}

/* FAQ Section */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
}
.faq-item summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--brand);
  transition: transform .3s ease;
}
.faq-item[open] summary::after {
  content: "−";
  transform: rotate(0deg);
}
.faq-item p {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Trust Badges */
.trust-badges {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 0.5rem 0 1rem;
  background: rgba(255,255,255,.02);
}
.trust-badges .container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}
.badge-icon {
  font-size: 1.2rem;
}
@media (max-width: 600px){
  .trust-badges .container {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px) scale(.98); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Utilities */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.text-center { text-align: center !important; }
@media (max-width: 900px){ .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.kpi { font-size: 2rem; font-weight: 800; letter-spacing: .5px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(110,231,249,.25), rgba(167,139,250,.25));
  display:grid; place-items:center; font-weight: 900;
  border: 1px solid rgba(255,255,255,.12);
}

/* Forms */
.input, textarea {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: #0b1019;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
}
textarea { min-height: 180px; resize: vertical; }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px){ .form-row { grid-template-columns: 1fr; } }

/* Table-like features list */
.features {
  display:grid; gap: .8rem;
}
.feature {
  margin-bottom: 2rem;
}

/* Index page hero features - checkmark and title inline */
.page-index .hero-card .features .feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.page-index .hero-card .features .feature:last-child {
  margin-bottom: 0;
}
.page-index .hero-card .features .feature .tick {
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.page-index .hero-card .features .feature > div:last-child {
  flex: 1;
}
.step-number {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 30% 30%, #77ffe8 0, #19c4ff 50%, #1a2440 100%);
  color: #081017;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-weight: 900;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.tick {
  width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #77ffe8 0, #19c4ff 50%, #1a2440 100%);
  display:grid; place-items:center;
  color:#081017; font-weight: 900;
  box-shadow: 0 8px 24px rgba(34,211,238,.35);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.2rem;
}

/* Pricing */
.pricing {
  display:grid; grid-template-columns: repeat(3,1fr); gap: 1rem;
}
.tier {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}
.tier.best {
  border: 1px solid rgba(167,139,250,.6);
  box-shadow: 0 10px 30px rgba(167,139,250,.25);
  transform: translateY(-6px);
}

.tier-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent), var(--brand-2));
  color: #071018;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(34,211,238,.35);
}

.tier-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 1.5rem;
}

.tier h3 { margin: .5rem 0; font-size: 1.4rem; }
.tier .price { 
  font-size: 2.5rem; 
  font-weight: 800; 
  margin: 0.5rem 0;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.8rem 0;
  color: var(--text);
  font-size: 0.95rem;
}

.tier-features .tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #071018;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}

.tier .button {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Mobile optimization for pricing */
@media (max-width: 768px) {
  .pricing {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .tier {
    padding: 1.5rem;
    text-align: center;
  }
  .tier.best {
    transform: none;
    order: -1; /* Move best tier to top on mobile */
  }
  .tier h3 {
    font-size: 1.2rem;
  }
  .tier .price {
    font-size: 1.8rem;
  }
  .tier ul {
    text-align: left;
    padding-left: 1.5rem;
  }
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
  /* Touch-friendly buttons */
  .button {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }

  /* Better mobile navigation */
  .nav-toggle {
    width: 48px;
    height: 48px;
  }

  /* Improved mobile cards */
  .card {
    padding: 1.25rem;
  }

  /* Mobile-optimized hero */
  .hero {
    padding: clamp(2rem, 6vw, 4rem) 0 clamp(1rem, 4vw, 3rem);
  }

  .grid-2 {
    gap: clamp(1.5rem, 6vw, 2rem);
  }

  /* Better mobile form inputs */
  .input {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 1rem;
  }

  /* Mobile newsletter section */
  .newsletter-content {
    gap: 2rem;
  }

  .newsletter-form form {
    gap: 0.75rem;
  }
}

/* Performance Optimizations */
img {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Optimize for high DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .brand-badge {
    transform: scale(0.9);
  }
}

/* Custom Scrollbar - Attractive Design */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 21, 32, 0.3);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent), var(--brand-2));
  box-shadow: 0 4px 8px rgba(34, 211, 238, 0.3);
}
::-webkit-scrollbar-corner {
  background: rgba(15, 21, 32, 0.3);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--brand) rgba(15, 21, 32, 0.3);
}

/* CTA bar */
.cta-bar {
  display:grid; grid-template-columns: 1fr auto; gap: 1rem;
  align-items:center;
  background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(167,139,250,.15));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
@media (max-width: 700px){ .cta-bar { grid-template-columns: 1fr; } }

/* Bread */
.breadcrumbs{ color: var(--muted); font-size:.9rem; margin: .6rem 0 1rem; }
.breadcrumbs a{ color: var(--brand); }
/* Footer copyright */
.copy{ margin-top:2rem; display:flex; align-items:center; gap:.6rem; color:var(--muted); }


/* ===== Improved Navbar ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header shell: glass with subtle gradient border + shadow on scroll */
.header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(180deg, rgba(15,21,32,.86), rgba(15,21,32,.55));
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset;
  /* gradient hairline at the very top */
  background-image:
    linear-gradient(180deg, rgba(167,139,250,.25), rgba(34,211,238,.25)),
    linear-gradient(180deg, rgba(15,21,32,.86), rgba(15,21,32,.55));
  background-blend-mode: overlay, normal;
}
.header.scrolled {
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset;
}

/* Layout: brand | nav | cta / toggle */
.nav { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: .6rem 0; }
.nav-cta { margin-left: .5rem; }

.nav-panel {
  display: flex; align-items: center; gap: .4rem;
}

/* Links: minimalist pills with animated underline */
.nav-link {
  position: relative; padding: .6rem .9rem; border-radius: 10px; color: var(--text);
}
.nav-link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .35rem; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--brand-2));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
  border-radius: 1px;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"], .nav-link.active {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
}
.nav-link[aria-current="page"]::after, .nav-link.active::after { transform: scaleX(1); }

/* CTA in nav aligns nicely on desktop; stacks on mobile */
.nav-cta { margin-left: .6rem; }

/* Mobile toggle */
.nav-toggle {
  display: none; position: relative; width: 44px; height: 40px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, #1b2333, #121a27);
  box-shadow: var(--shadow); cursor: pointer;
}
.nav-toggle .bar {
  position: absolute; left: 10px; right: 10px; height: 2px; background: #e5ecff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle .bar:nth-child(2) { top: 12px; }
.nav-toggle .bar:nth-child(3) { top: 19px; }
.nav-toggle .bar:nth-child(4) { top: 26px; }

/* When menu is open -> "X" */
.header.open .nav-toggle .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.header.open .nav-toggle .bar:nth-child(3) { opacity: 0; }
.header.open .nav-toggle .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Scroll progress bar */
.nav-progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand-2));
  transition: width .15s ease-out;
  opacity: .9;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-block; }
  .nav-panel {
    position: fixed; left: 6vw; right: 6vw; top: 72px;
    display: grid; gap: .6rem; padding: .8rem;
    background: linear-gradient(180deg, rgba(5, 29, 82), rgba(19, 3, 49));
    border: 1px solid rgb(255, 255, 255); border-radius: 16px;
    transform: translateY(-8px) scale(.98); opacity: 0; pointer-events: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.849);
    backdrop-filter: blur(10px) saturate(140%);
  }
  .header.open .nav-panel {
    transform: none; opacity: 1; pointer-events: auto;
  }
  .nav-cta { margin-top: .2rem; }
}

/* Wider hover target on desktop */
@media (min-width: 981px) {
  .nav-panel { gap: .2rem; }
  .nav-link { padding: .55rem .8rem; }
}


/* =========================
   RESPONSIVE COMPACT TEAM LAYOUT
   ========================= */

.team-section {
  text-align: center;
  padding: 2.5rem 1rem;
  position: relative;
}

.team-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.team-section .lead {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto 1.8rem;
  position: relative;
  z-index: 1;
}

/* --- Horizontal layout for desktop --- */
.team-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
  gap: 1.2rem;
  padding-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

/* --- Team cards --- */
.team-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.team-card:hover {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 24px 60px rgba(34,211,238,0.30);
  z-index: 3;
}

.team-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.team-info {
  padding: 0.6rem 0.5rem 0.8rem;
}

.team-info h3 {
  font-size: 1rem;
  margin: 0.3rem 0 0.2rem;
}

.team-info small {
  font-size: 0.8rem;
  color: var(--brand);
}

/* --- Mobile responsive tweaks --- */
@media (max-width: 768px) {
  .team-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .team-card {
    width: 100%;
    min-width: 0;
  }

  .team-card img {
    height: 260px;
  }

  .team-info h3 {
    font-size: 0.9rem;
  }

  .team-info small {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .team-row {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .team-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .team-card img {
    height: 200px;
  }
}

/* Team card modern hover effects */
.team-card { position: relative; overflow: hidden; transition: transform .35s var(--ease-out-3), box-shadow .35s var(--ease-out-3); }
.team-card img { transition: transform .75s var(--ease-spring-1), filter .6s var(--ease-out-3); will-change: transform; }
.team-card:hover img,
.team-card:focus-within img { transform: scale(1.2); filter: saturate(1.08) contrast(1.03); }
/* Glow border ring */
.team-card::after{
  content:""; position:absolute; inset:0; border-radius:14px; pointer-events:none;
  background: conic-gradient(from 0deg, rgba(110,231,249,.0), rgba(110,231,249,.6), rgba(167,139,250,.0) 70%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 60%, #000 61%);
  mask: radial-gradient(circle at 50% 50%, transparent 60%, #000 61%);
  opacity: 0; transition: opacity .35s var(--ease-out-3);
}
.team-card:hover::after{ opacity: .8; animation: spin 3.6s linear infinite; }
/* Gradient overlay */
.team-card::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(167,139,250,.18), transparent 60%),
    radial-gradient(60% 40% at 50% 100%, rgba(34,211,238,.16), transparent 60%),
    linear-gradient(100deg, rgba(255,255,255,0) 45%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 55%);
  background-size: auto, auto, 220% 100%;
  background-position: 50% 0%, 50% 100%, -120% 0%;
  opacity: 0; transition: opacity .35s var(--ease-out-3);
}
.team-card:hover::before{ opacity: 1; animation: shineSweep 1.8s ease-out; }
/* Info lift */
.team-card .team-info{ transition: transform .35s var(--ease-out-3); }
.team-card:hover .team-info{ transform: translateY(-2px); }

/* =========================
   Services Page Animations
   ========================= */
.page-services .section:first-of-type{ position: relative; overflow: hidden; }
.page-services .section:first-of-type::before{
  content:""; position:absolute; inset:-20% -10% auto -10%; height: 60vmin;
  background: radial-gradient(50% 60% at 65% 10%, rgba(167,139,250,.18), transparent 60%),
              radial-gradient(50% 60% at 20% 30%, rgba(34,211,238,.16), transparent 60%);
  filter: blur(80px); opacity:.35; pointer-events:none; animation: float 16s ease-in-out infinite alternate;
}

.page-services .cards .card{ position: relative; overflow: hidden; transition: transform .35s var(--ease-out-3), box-shadow .35s var(--ease-out-3); }
.page-services .cards .card::before{
  content:""; position:absolute; inset:0; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(135deg, rgba(34,211,238,.45), rgba(167,139,250,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events:none; opacity: 0; transition: opacity .35s var(--ease-out-3);
}
.page-services .cards .card::after{
  content:""; position:absolute; inset:-1px; border-radius: var(--radius); pointer-events:none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 45%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 55%);
  background-size: 220% 100%; background-position: -120% 0%;
  opacity: 0; transition: opacity .2s var(--ease-out-3);
}
.page-services .cards .card:hover{
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 10px 30px rgba(34,211,238,.18);
}
.page-services .cards .card:hover::before{ opacity: 1; }
.page-services .cards .card:hover::after{ opacity: 1; animation: shineSweep 1.4s ease-out; }

.page-services .cards .card .icon{
  transition: transform .4s var(--ease-out-3), box-shadow .4s var(--ease-out-3);
}
.page-services .cards .card:hover .icon{
  transform: translateY(-4px) scale(1.1) rotate(-2deg);
  box-shadow: 0 8px 24px rgba(34,211,238,.25);
}

.page-services .features .feature{ transition: transform .3s var(--ease-out-3); }
.page-services .features .feature:hover{ transform: translateX(3px); }
.page-services .features .feature .tick{
  transition: transform .35s var(--ease-out-3), box-shadow .35s var(--ease-out-3);
}
.page-services .features .feature:hover .tick{
  transform: scale(1.08) rotate(-6deg);
  box-shadow: 0 12px 28px rgba(34,211,238,.35);
}

/* Fix scroll jumping on contact page */
.page-contact .reveal {
  filter: none !important;
}
.page-contact .features .feature .tick{
  transition: transform .35s var(--ease-out-3);
}
.page-contact .features .feature:hover .tick{
  transform: scale(1.08) rotate(-6deg);
}

/* Page Services — CTA glamorization */
.page-services .cta-bar{
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(167,139,250,.18));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 50px rgba(0,0,0,.35), 0 8px 28px rgba(34,211,238,.18);
  transition: transform .35s var(--ease-out-3), box-shadow .35s var(--ease-out-3), border-color .35s var(--ease-out-3);
  backdrop-filter: blur(6px) saturate(130%);
}
.page-services .cta-bar:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 70px rgba(0,0,0,.45), 0 14px 34px rgba(167,139,250,.22);
  border-color: rgba(255,255,255,.22);
}
/* Gradient ring border */
.page-services .cta-bar::before{
  content:""; position:absolute; inset:0; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--brand-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity:.55; pointer-events:none; transition: opacity .35s var(--ease-out-3);
}
.page-services .cta-bar:hover::before{ opacity: .9; }
/* Shine sweep */
.page-services .cta-bar::after{
  content:""; position:absolute; top:-20%; bottom:-20%; left:-30%; width:36%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 45%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 55%);
  transform: skewX(-18deg); border-radius: 20px; filter: blur(1px);
  opacity: 0; pointer-events:none;
}
.page-services .cta-bar:hover::after{
  opacity: 1; animation: ctaSweep 1.4s ease-out forwards;
}
/* CTA content subtle lift */
.page-services .cta-bar > *{ position: relative; z-index: 1; }
.page-services .cta-bar strong, .page-services .cta-bar b { text-shadow: 0 2px 12px rgba(34,211,238,.22); }

/* Button glam in CTA */
.page-services .cta-bar .button.primary{
  position: relative;
  box-shadow: 0 12px 30px rgba(34,211,238,.35), 0 0 0 1px rgba(255,255,255,.08) inset;
  transition: transform .3s var(--ease-out-3), box-shadow .3s var(--ease-out-3);
}
.page-services .cta-bar .button.primary:hover{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 40px rgba(34,211,238,.45), 0 0 0 1px rgba(255,255,255,.12) inset;
}
.page-services .cta-bar .button.primary::after{
  content:""; position:absolute; inset:-1px; border-radius:inherit; pointer-events:none;
  background: radial-gradient(60% 60% at 50% -20%, rgba(255,255,255,.35), transparent 60%);
  opacity:.0; transition: opacity .25s var(--ease-out-3);
}
.page-services .cta-bar .button.primary:hover::after{ opacity:.6; }

/* Keyframes */
@keyframes ctaSweep {
  0% { left:-30%; }
  100% { left:130%; }
}

/* --- Fade animation --- */
.fade-up {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* =========================
   Modern Motion Utilities
   ========================= */
:root{
  --ease-out-3: cubic-bezier(.22,.61,.36,1);
  --ease-spring-1: cubic-bezier(.2,.8,.2,1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 600ms;
}

/* Page fade-in */
body { opacity: 0; }
body.ready { opacity: 1; transition: opacity .45s var(--ease-out-3); }
body.loading {
  opacity: 1;
  overflow: hidden; /* Hide scrollbar during loading */
}

/* Reveal variants + stagger support */
.reveal { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(.4px);
  transition: opacity .6s var(--ease-out-3), transform .6s var(--ease-out-3), filter .6s var(--ease-out-3);
  transition-delay: var(--delay, 0ms);
}
.reveal.visible { opacity: 1; transform: none; filter: none; }

.reveal-up { transform: translateY(18px) scale(.985); }
.reveal-left { transform: translateX(18px); }
.reveal-right { transform: translateX(-18px); }
.reveal-zoom { transform: scale(.94); }
.reveal-blur { filter: blur(8px); transform: translateY(6px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-zoom.visible,
.reveal-blur.visible { opacity: 1; transform: none; filter: none; }

/* Any container can opt-in to automatic stagger */
[data-stagger] > * { transition-delay: var(--delay, 0ms); }

/* Buttons: water droplet ripple + elevated glow */
.button { position: relative; overflow: hidden; }
.button::after {
  content:""; position:absolute; inset:-1px; border-radius:inherit; pointer-events:none;
  background: radial-gradient(120% 60% at 50% -10%, rgba(34,211,238,.15), transparent 60%);
  opacity:.0; transition: opacity .25s var(--ease-out-3);
}
.button:hover::after { opacity:.8; }
.button .ripple {
  position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  transform: scale(0); opacity:.7;
  background:
    radial-gradient(25% 25% at var(--x) var(--y), rgba(34,211,238,.6), transparent 50%),
    radial-gradient(15% 15% at calc(var(--x) + 8px) calc(var(--y) + 8px), rgba(167,139,250,.4), transparent 40%),
    radial-gradient(20% 20% at calc(var(--x) - 6px) calc(var(--y) - 6px), rgba(110,231,249,.5), transparent 45%);
  animation: waterRipple .8s ease-out forwards;
}
@keyframes waterRipple {
  0% { transform: scale(0); opacity: .9; }
  50% { transform: scale(1.2); opacity: .6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Cards: subtle 3D tilt feedback */
.card { will-change: transform; transform-style: preserve-3d; }

/* Brand badge gentle motion */
@keyframes badgePulse { to { transform: rotate(3deg); filter: saturate(1.15); } }
.brand-badge { animation: badgePulse 16s ease-in-out infinite alternate; }

/* Back-to-top button */
#toTop{
  position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, #1b2333, #121a27);
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0; visibility: hidden;
  transition: transform .3s var(--ease-out-3), opacity .3s var(--ease-out-3), visibility 0s linear .3s;
  z-index: 70;
}
#toTop.show { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
#toTop:hover { transform: translateY(-2px); }

/* =========================
   Fullscreen Loader Overlay
   ========================= */
#loader{
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(1200px 800px at 70% -10%, #1f2a44 0%, transparent 60%),
    radial-gradient(800px 600px at -10% 30%, #1b243b 0%, transparent 50%),
    var(--bg);
  z-index: 1000;
  transition: opacity .5s var(--ease-out-3), visibility 0s linear .5s;
}
#loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* Special Home Page Loader */
#loader.loader-home {
  background: linear-gradient(135deg, #0a0e1a 0%, #111827 50%, #0f1520 100%);
}

#loader.loader-home .loader-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

#loader.loader-home .loader-content {
  text-align: center;
}

#loader.loader-home .loader-text-animated {
  display: flex;
  gap: 0.2rem;
  justify-content: center;
  margin-bottom: 1rem;
}

#loader.loader-home .letter {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0;
  transform: translateY(50px) scale(0.8) rotateX(90deg);
  animation: letterEpicEntrance 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  animation-delay: calc(var(--i) * 0.08s);
  font-family: 'Outfit', system-ui, sans-serif;
  text-shadow: 0 0 20px rgba(110, 231, 249, 0.5);
  filter: blur(2px);
}

#loader.loader-home .loader-tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: fadeInUp 0.4s ease-out 0.3s forwards;
}

@keyframes letterEpicEntrance {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.8) rotateX(90deg);
    filter: blur(2px);
  }
  50% {
    opacity: 0.7;
    transform: translateY(10px) scale(1.1) rotateX(0deg);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0px);
  }
}

@keyframes letterSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader-wrap{
  display: grid; gap: .9rem; place-items: center; text-align: center;
  padding: 1rem 1.4rem;
}

/* Special home page loader styling */
.page-index .loader-wrap {
  gap: 1.2rem;
  padding: 1.5rem 2rem;
}

.page-index .loader-text {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textGlow 2s ease-in-out infinite alternate;
}

.page-index .loader-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.4;
  opacity: 0.9;
}

@keyframes textGlow {
  to { filter: brightness(1.2) saturate(1.1); }
}

/* Brand badge with halo + spinner ring */
.loader-badge{
  width: 64px; height: 64px; border-radius: 16px; position: relative;
  background: conic-gradient(from 180deg, var(--brand), var(--brand-2), var(--accent), var(--brand));
  box-shadow: inset 0 0 28px rgba(255,255,255,.35), 0 14px 40px rgba(0,0,0,.45);
  animation: loaderPulse 1.6s ease-in-out infinite alternate;
}
.loader-badge::after{
  content:""; position:absolute; inset:-8px; border-radius: inherit;
  background: conic-gradient(from 0deg, rgba(110,231,249,.0), rgba(110,231,249,.6), rgba(167,139,250,.0) 70%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 45%, #000 46%);
  mask: radial-gradient(circle at 50% 50%, transparent 45%, #000 46%);
  animation: spin 1.2s linear infinite; filter: blur(.3px);
}

/* Label + shimmer subtext */
.loader-text{ font-weight: 800; letter-spacing: .3px; }
.loader-sub{
  font-size: .9rem; background: linear-gradient(90deg, rgba(255,255,255,.4), rgba(255,255,255,.85), rgba(255,255,255,.4));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shimmer 1.6s linear infinite;
}

/* Indeterminate bar */
.loader-bar{
  position: relative; width: 220px; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid rgba(255,255,255,.12);
}
.loader-bar::before{
  content:""; position:absolute; inset:0; width: 60%;
  background: linear-gradient(90deg, transparent, rgba(110,231,249,.7), rgba(167,139,250,.7), transparent);
  transform: translateX(-60%); animation: indeterminate 1.3s var(--ease-spring-1) infinite;
}

/* Keyframes */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: 200% 0; } }
@keyframes indeterminate { 0% { transform: translateX(-60%); } 100% { transform: translateX(200%); } }
@keyframes loaderPulse { to { transform: translateY(-2px) scale(1.04); filter: saturate(1.15); } }

@keyframes shineSweep {
  0% { background-position: 50% 0%, 50% 100%, -120% 0%; }
  100% { background-position: 50% 0%, 50% 100%, 220% 0%; }
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none !important; }
}

/* ===== HOME PAGE MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
  .page-index .hero {
    padding: clamp(2rem, 10vw, 4rem) 0 clamp(2rem, 8vw, 3rem);
  }

  .page-index h1 {
    font-size: clamp(1.75rem, 8vw, 3rem);
    line-height: 1.15;
  }

  .page-index .sublead {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
  }

  .page-index .badges {
    justify-content: center;
  }

  .page-index .badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }

  .page-index .hero-card {
    padding: 1rem;
  }

  .page-index .hero-stats {
    gap: 0.6rem;
  }

  .page-index .stat {
    padding: 0.6rem;
  }

  .page-index .stat b {
    font-size: 1.1rem;
  }

  .page-index .cards .card {
    padding: 1rem;
  }

  .page-index .cards .card h3 {
    font-size: 1.1rem;
  }

  .page-index .cards .card p {
    font-size: 0.9rem;
  }

  .page-index .hero-glow {
    width: 80vmax;
    height: 80vmax;
  }
}
