/* ============================================================
   HEXNIX GROUP — GLOBAL STYLES
   Ported from Next.js globals.css + component inline styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg:            #0b1018;
  --bg-2:          #0d141e;
  --surface:       #121a26;
  --surface-2:     #16202e;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text:          #f3f5f8;
  --text-2:        #9ba3b4;
  --text-3:        #6b7280;
  --accent:        #ff5a2e;
  --accent-2:      #ff7a52;
  --accent-soft:   rgba(255,90,46,0.14);
  --accent-glow:   0 10px 30px rgba(255,90,46,0.28);
  --teal:          #5aa6c0;
  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     20px;
  --maxw:          1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; } /* smooth anchor scroll, clears sticky nav */
html, body { background: var(--bg); min-height: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4,h5,h6 { line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.section   { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }

/* ---------- Background glows ---------- */
.bg-glow {
  position: fixed; width: 700px; height: 700px;
  border-radius: 50%; filter: blur(120px);
  pointer-events: none; z-index: 0; opacity: 0.55;
}
.bg-glow.g1 {
  top: -300px; right: -200px;
  background: radial-gradient(circle, rgba(255,90,46,0.10), transparent 60%);
  animation: floatA 14s ease-in-out infinite;
}
.bg-glow.g2 {
  bottom: -300px; left: -250px;
  background: radial-gradient(circle, rgba(90,166,192,0.08), transparent 60%);
  animation: floatA 18s ease-in-out infinite reverse;
}
@keyframes floatA {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(40px,-30px) scale(1.06); }
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  flex-shrink: 0;
}
.eyebrow.muted { color: var(--text-2); }
.eyebrow.muted::before { background: var(--text-2); box-shadow: none; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; flex-direction: column; gap: 1px;
  font-weight: 800; letter-spacing: 0.06em;
  color: var(--text); line-height: 1; position: relative;
}
.logo .mark { font-size: 18px; padding-bottom: 4px; border-bottom: 1.5px solid var(--accent); }
.logo .sub  { font-size: 9px; font-weight: 600; letter-spacing: 0.4em; color: var(--text-2); padding-top: 3px; }
.logo.lg .mark { font-size: 28px; padding-bottom: 6px; }
.logo.lg .sub  { font-size: 11px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(180deg, var(--accent), #e64a1e);
  color: #fff; box-shadow: var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255,90,46,0.42), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.03); }
.btn.dark { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn.dark:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.btn .arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,24,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-left  { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 14px; color: var(--text);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0; position: relative;
  transition: color .25s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
/* Also support WordPress menu output */
.nav-links li a { color: var(--text); transition: color .25s ease; }
.nav-links li a:hover { color: var(--accent); }
.nav-signin { transition: color .25s ease; }
.nav-signin:hover { color: var(--accent) !important; }
.nav-right { display: flex; align-items: center; gap: 18px; }

/* Mobile menu — improved */
.nav-mobile-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 10px; cursor: pointer;
  border-radius: 8px;
  transition: background .25s ease;
}
.nav-mobile-btn:hover { background: rgba(255,255,255,0.05); }
.nav-mobile-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
/* Hamburger → X animation when open */
.nav-mobile-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent);
}
.nav-mobile-btn.active span:nth-child(2) {
  opacity: 0;
}
.nav-mobile-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent);
}

.nav-mobile-menu {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px 24px 32px;
  flex-direction: column;
  gap: 4px;
  animation: slideDown 0.3s ease;
}
.nav-mobile-menu.open { display: flex; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile-menu a, .nav-mobile-menu li a {
  font-size: 17px; font-weight: 600; color: var(--text);
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  transition: color .25s ease, padding-left .25s ease;
  display: block;
}
.nav-mobile-menu a:hover, .nav-mobile-menu li a:hover {
  color: var(--accent);
  padding-left: 10px;
}
.nav-mobile-menu li { list-style: none; }
.nav-mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.nav-mobile-menu .mobile-cta {
  margin-top: 16px;
  padding: 14px 22px;
  background: linear-gradient(180deg, var(--accent), #e64a1e);
  color: #fff !important;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  border: none;
  box-shadow: var(--accent-glow);
}
.nav-mobile-menu .mobile-cta:hover {
  padding-left: 22px !important;
  transform: translateY(-2px);
  color: #fff !important;
}

/* ---------- Timeline (About page) — bulletproof responsive ---------- */
.hx-timeline {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); margin-top: 40px;
}
.hx-tl-item { position: relative; padding: 28px 24px 0 0; }
.hx-tl-item:not(:first-child) { border-left: 1px solid var(--border); padding-left: 24px; }
.hx-tl-dot {
  position: absolute; top: -6px; left: 0; width: 11px; height: 11px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px rgba(255,90,46,0.6);
}
.hx-tl-item:not(:first-child) .hx-tl-dot { left: 24px; }
.hx-tl-yr { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 10px; }
.hx-tl-item h4 { font-size: 16px; margin-bottom: 6px; }
.hx-tl-item p  { font-size: 13px; color: var(--text-2); line-height: 1.6; }
@media (max-width: 760px) {
  /* Vertical rail — never wraps, never floats stray dots */
  .hx-timeline {
    grid-template-columns: 1fr; border-top: none;
    border-left: 2px solid var(--border); margin-left: 5px;
  }
  .hx-tl-item, .hx-tl-item:not(:first-child) {
    border-left: none; padding: 0 0 30px 26px;
  }
  .hx-tl-item:last-child { padding-bottom: 0; }
  .hx-tl-dot, .hx-tl-item:not(:first-child) .hx-tl-dot { top: 2px; left: -7px; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--accent), #ffaa6e);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s ease;
}
.card.hoverable:hover::before { transform: scaleX(1); }
.card.hoverable:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

/* ---------- Icon wrap ---------- */
.icon-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon-wrap svg { width: 22px; height: 22px; }

/* ---------- Tags ---------- */
.tag {
  display: inline-block; padding: 4px 10px;
  border-radius: 999px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.tag.popular { background: var(--accent); color: #fff; }
.tag.live    { background: rgba(76,175,80,0.16); color: #4cd97c; }
.tag.coming  { background: rgba(255,170,80,0.16); color: #ffaa50; }

/* ---------- Forms ---------- */
.input {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 12px 14px; font-size: 14px;
  font-family: inherit; transition: border-color .2s ease, background .2s ease;
}
.input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.06); }
.input::placeholder { color: var(--text-3); }
textarea.input { resize: vertical; min-height: 130px; }
label.field { display: grid; gap: 6px; }
label.field .lbl { font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: 0.04em; }

/* ---------- Live dot ---------- */
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0   rgba(76,217,124,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(76,217,124,0);   }
  100% { box-shadow: 0 0 0 0   rgba(76,217,124,0);    }
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4cd97c;
  box-shadow: 0 0 0 0 rgba(76,217,124,0.7);
  animation: livePulse 2.2s cubic-bezier(0.4,0,0.2,1) infinite;
  flex-shrink: 0; display: inline-block;
}

/* ---------- Map pin ---------- */
@keyframes pulseMap {
  0%,100% { box-shadow: 0 0 0 6px rgba(255,90,46,0.18), 0 0 20px rgba(255,90,46,0.6); }
  50%     { box-shadow: 0 0 0 12px rgba(255,90,46,0.05), 0 0 30px rgba(255,90,46,0.8); }
}
.map-pin {
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255,90,46,0.18), 0 0 20px rgba(255,90,46,0.6);
  animation: pulseMap 2.2s ease-in-out infinite;
}

/* ---------- Pill badge ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-2);
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  background: #f4f5f7; color: #2b2f38;
  padding: 64px 0 32px; margin-top: 64px; position: relative; z-index: 1;
}
.footer .logo .mark { color: #1a1f2e; border-bottom-color: var(--accent); }
.footer .logo .sub  { color: #6b7280; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #1a1f2e; margin-bottom: 16px; }
.footer .blurb { font-size: 13px; color: #4b5563; margin: 18px 0; max-width: 280px; line-height: 1.6; }
.footer .addr { margin-top: 12px; }
.footer .addr p { font-size: 13px; color: #4b5563; line-height: 1.7; }
.footer .addr a { color: var(--accent); }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: 13px; color: #4b5563; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #e5e7eb; padding-top: 22px; margin-top: 44px;
  font-size: 12px; color: #6b7280; gap: 20px; flex-wrap: wrap;
}
.footer-bottom .legal-links { display: flex; gap: 22px; }
.footer-bottom .legal-links a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-visual { display: none !important; }
  .div-grid { grid-template-columns: 1fr !important; }
  .mission-grid { grid-template-columns: 1fr !important; padding: 40px 28px !important; gap: 30px !important; }
  .why-grid { grid-template-columns: 1fr 1fr !important; }
  .story-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .principles-grid { grid-template-columns: 1fr 1fr !important; }
  .timeline-grid { grid-template-columns: 1fr 1fr !important; }
  .steps-grid { grid-template-columns: 1fr 1fr !important; }
  .steps-grid > div { border-right: none !important; padding-bottom: 8px; }
  .team-grid { grid-template-columns: 1fr !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .form-cols { grid-template-columns: 1fr !important; }
  .interests-grid { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: 1fr 1fr !important; }
  .stats-grid div { border-right: none !important; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  /* Swap desktop/mobile logos */
  .logo-desktop { display: none !important; }
  .logo-mobile { display: block !important; }
  /* Smaller hero typography */
  h1 { font-size: clamp(32px, 9vw, 44px) !important; }
  h2 { font-size: clamp(26px, 7vw, 34px) !important; }
  h3 { font-size: 19px !important; }
  /* Nav padding */
  .nav-inner { padding: 12px 18px; }
  .nav-right { gap: 10px; }
  .nav-right .nav-signin { display: none; } /* Hide "Sign in" on phone */
  .nav-right .btn.primary { font-size: 12px !important; padding: 9px 14px !important; }
  /* Section padding */
  .section { padding: 48px 0; }
  .section.tight { padding: 36px 0; }
  /* Footer centered on mobile */
  .footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer-grid > div { display: flex; flex-direction: column; align-items: center; }
  .footer .logo { margin: 0 auto; }
  .footer .blurb { margin: 18px auto; max-width: none; }
  .footer .addr p { text-align: center; }
  .footer ul { text-align: center; padding: 0; }
  .footer ul li { display: block; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 14px; }
  .footer-bottom .legal-links { justify-content: center; }
  /* Grid collapses */
  .why-grid { grid-template-columns: 1fr !important; }
  .principles-grid { grid-template-columns: 1fr !important; }
  .timeline-grid { grid-template-columns: 1fr !important; }
  .steps-grid { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: 1fr !important; }
  /* Cards: less padding on phone */
  .card, .division-card, .principle-card { padding: 22px !important; }
  .mission-grid { padding: 32px 22px !important; }
  /* Buttons full width on mobile */
  .btn { font-size: 14px; padding: 12px 18px; }
  /* CTA bands - stack vertically */
  .section .container > div[style*="flex-wrap"] { flex-direction: column; align-items: flex-start; }
  /* Smaller stat numbers */
  .stats-grid div > div:first-child { font-size: 28px !important; }
}

/* ============================================================
   DIVISION CARD HOVER — bulletproof
   - Use box-shadow + margin-top trick instead of transform
     so fade-up animation doesn't conflict
   ============================================================ */
.division-card {
  position: relative;
  overflow: hidden;
  transition: border-color .35s ease, box-shadow .35s ease, margin-top .35s ease;
  cursor: pointer;
}
.division-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ffaa6e);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s ease;
  z-index: 2;
}
/* Hover state - higher specificity to win against inline styles */
div.division-card:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px var(--accent);
  margin-top: -6px;
  opacity: 1 !important;
}
div.division-card:hover::before { transform: scaleX(1); }
/* Ensure fade-up animation completes properly */
.division-card.fade-up.visible {
  transform: none !important;
}

/* ---------- Principle card top bar ---------- */
.principle-card { position: relative; overflow: hidden; }
.principle-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--accent), #ffaa6e);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s ease;
}
.principle-card:hover::before { transform: scaleX(1); }

/* ---------- Pricing tabs ---------- */
.pricing-tab {
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); background: transparent; color: var(--text-2);
  cursor: pointer; transition: all .2s ease;
}
.pricing-tab.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: var(--accent-glow);
}
@media (max-width: 960px) {
  .pricing-plans-grid { grid-template-columns: 1fr !important; max-width: 500px !important; }
  .pricing-plans-grid > div { transform: none !important; }
}

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 600; color: var(--text); cursor: pointer; gap: 16px;
}
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform .25s ease; color: var(--accent); }
.faq-answer { font-size: 14px; color: var(--text-2); line-height: 1.7; padding-bottom: 22px; display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ---------- Contact interest checkboxes ---------- */
.interest-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 10px; font-size: 13px; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
  user-select: none;
}
.interest-chip.checked {
  background: rgba(255,90,46,0.06);
  border-color: var(--accent);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 14px 20px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: var(--accent-glow); z-index: 100;
  opacity: 0; transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- Scroll animations (replaces framer-motion) ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Stagger delays */
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   ANIMATED HERO VISUAL — 4-tile division grid
   ============================================================ */
@keyframes rotateBorder {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes scanLine {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(400%); opacity: 0; }
}
@keyframes tileSlideIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes chartDraw {
  from { stroke-dashoffset: 200; }
  to   { stroke-dashoffset: 0; }
}
@keyframes floatGrid {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-8px); }
}
@keyframes progressFill { from { width: 0%; } }

.hero-visual-wrap {
  position: relative;
}
.hero-visual-wrap::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg,
    rgba(255,90,46,0.6), rgba(90,166,192,0.4),
    rgba(255,90,46,0.1), rgba(90,166,192,0.5), rgba(255,90,46,0.6));
  background-size: 300% 300%;
  animation: rotateBorder 5s ease infinite;
  z-index: 0; filter: blur(1px);
}
.hero-visual {
  position: relative; z-index: 1;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 30%,rgba(255,90,46,0.10),transparent 55%),
              radial-gradient(circle at 70% 75%,rgba(90,166,192,0.08),transparent 55%),
              linear-gradient(180deg,var(--surface),var(--surface-2));
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 1px;
  animation: floatGrid 6s ease-in-out infinite;
}
.div-tile {
  background: var(--bg-2); padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  animation: tileSlideIn 0.55s ease both;
  cursor: pointer; transition: filter .3s ease, transform .3s ease;
  position: relative; overflow: hidden;
}
.div-tile:hover { filter: brightness(1.15); transform: scale(1.03); z-index: 2; }
.div-tile:nth-child(1) { animation-delay: 0.1s; }
.div-tile:nth-child(2) { animation-delay: 0.22s; }
.div-tile:nth-child(3) { animation-delay: 0.34s; }
.div-tile:nth-child(4) { animation-delay: 0.46s; }

/* Scan line on live tile */
.live-tile::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(76,217,124,0.8), transparent);
  animation: scanLine 3.5s ease-in-out infinite;
  pointer-events: none;
}
/* Shimmer on soon tiles */
.soon-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.045) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}
.soon-tile:nth-child(2)::after { animation-delay: 0.4s; }
.soon-tile:nth-child(3)::after { animation-delay: 0.9s; }
.soon-tile:nth-child(4)::after { animation-delay: 1.4s; }

/* Live icon pulse ring */
.live-icon-wrap { animation: pulseRing 2s ease-in-out infinite; border-radius: 8px; }
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(76,217,124,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(76,217,124,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,217,124,0); }
}
/* Mini chart */
.mini-chart-line {
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: chartDraw 1.8s ease-out 0.6s forwards;
}
/* Progress bars */
.soon-progress-bar {
  height: 2px; border-radius: 999px;
  background: rgba(255,170,80,0.25); overflow: hidden; margin-top: 10px;
}
.soon-progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #ffaa50, #ff7a52);
  animation: progressFill 1.4s ease-out both;
}

/* ============================================================
   TEAM CARDS — 4-column grid with initial avatars
   ============================================================ */
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
@media (max-width: 960px) {
  .team-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr !important; }
  .hero-visual-wrap { display: none !important; }
}
