/* redesign.css — layout patterns modeled on the "HexaCraft" reference
   (top offer bar, dropdown nav with CTA pill, circuit-line hero, hexagon
   "why choose us" grid, live-status panel), reskinned in XMlauncher's
   own violet/near-black identity. Loads alongside style.css, doesn't
   replace it. */

/* ══════════ ANNOUNCEMENT BAR ══════════ */
.announce-bar {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 48px;
  background: linear-gradient(90deg, #5d35cc, var(--accent) 55%, #5d35cc);
  color: #fff;
}
.announce-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.announce-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.18);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.announce-cta {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.announce-cta:hover { color: #fff; }
.announce-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}
.announce-close:hover { color: #fff; }

@media (max-width: 640px) {
  .announce-bar { padding: 10px 16px; }
  .announce-bar-inner { font-size: 12px; }
  .announce-close { right: 8px; }
}

/* ══════════ NAV (dropdowns + CTA pill) ══════════ */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 48px;
  position: relative;
  z-index: 40;
}
.site-nav .wordmark { font-size: 20px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.nav-links > a {
  color: var(--ink-dim);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links > a:hover {
  color: var(--ink);
  background: rgba(124,77,255,0.1);
  text-decoration: none;
}

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--ink-dim);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger {
  color: var(--ink);
  background: rgba(124,77,255,0.1);
}
.nav-caret { font-size: 10px; transition: transform 0.15s; }
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.nav-dropdown-menu a:hover {
  background: rgba(124,77,255,0.14);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-icon-link {
  font-size: 16px;
  color: var(--ink-dim);
  position: relative;
}
.nav-icon-link:hover { color: var(--ink); text-decoration: none; }
.nav-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--accent), #5d35cc);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 18px rgba(124,77,255,0.35);
  transition: transform 0.15s;
}
.nav-cta-pill:hover { transform: translateY(-1px); text-decoration: none; color: #fff; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .site-nav { padding: 16px 20px; }
}

/* ══════════ HERO — circuit-trace background + scroll cue ══════════ */
.hero-redesign {
  position: relative;
  overflow: hidden;
  padding: 70px 0 60px;
}
.hero-redesign .container { position: relative; z-index: 2; }

.hero-circuit-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero-circuit-bg svg { width: 100%; height: 100%; }
.hero-circuit-bg .trace {
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.35;
  stroke-dasharray: 6 10;
  animation: trace-flow 6s linear infinite;
}
.hero-circuit-bg .trace:nth-child(2n) { animation-duration: 8s; stroke: var(--accent); opacity: 0.25; }
.hero-circuit-bg .trace:nth-child(3n) { animation-duration: 10s; opacity: 0.2; }
@keyframes trace-flow {
  to { stroke-dashoffset: -160; }
}
.hero-circuit-bg .node {
  fill: var(--accent-light);
  opacity: 0.6;
  animation: node-pulse 3s ease-in-out infinite;
}
@keyframes node-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.85; }
}

.hero-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 6px;
  font-size: 15px;
  color: var(--ink-dim);
}
.hero-price-row strong {
  font-family: 'Archivo Expanded', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
}

.scroll-cue {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.scroll-cue span {
  width: 30px;
  height: 46px;
  border: 1.5px solid var(--border-soft);
  border-radius: 30px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span::before {
  content: '';
  width: 4px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent-light);
  animation: scroll-cue-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-cue-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-circuit-bg .trace,
  .hero-circuit-bg .node,
  .scroll-cue span::before { animation: none; }
}

/* ══════════ WHY CHOOSE — hexagon centerpiece + card grid ══════════ */
.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.why-choose-col { display: flex; flex-direction: column; gap: 16px; }
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  transition: border-color 0.2s, transform 0.15s;
}
.why-card:hover { border-color: var(--accent-light); transform: translateY(-2px); }
.why-card-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(124,77,255,0.14);
  display: flex; align-items: center; justify-content: center;
}
.why-card-icon img { width: 18px; height: 18px; }
.why-card-body h3 { font-size: 14px; margin-bottom: 4px; color: var(--ink); }
.why-card-body p { font-size: 12.5px; line-height: 1.5; color: var(--ink-dim); }
.why-card-num {
  position: absolute;
  top: 14px; right: 16px;
  font-family: 'Archivo Expanded', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-dim);
  opacity: 0.5;
}

.why-hexagon-wrap {
  width: 220px;
  height: 254px;
  position: relative;
}
.why-hexagon {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(145deg, var(--accent), #5d35cc 60%, #3d2280);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-shadow: 0 30px 70px rgba(124,77,255,0.4);
  animation: hex-float 5s ease-in-out infinite;
}
@keyframes hex-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.why-hexagon .eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.why-hexagon .brand {
  font-family: 'Archivo Expanded', sans-serif;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 8px;
}
.why-hexagon .sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

@media (max-width: 900px) {
  .why-choose-grid { grid-template-columns: 1fr; }
  .why-hexagon-wrap { margin: 10px auto; }
}

/* ══════════ LIVE STATUS PANEL ══════════ */
.live-status-section { padding: 60px 0; }
.live-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}
.live-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,77,255,0.12);
  border: 1px solid var(--border-soft);
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.live-status-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: dot-ping 1.8s ease-out infinite;
}
@keyframes dot-ping {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.live-status-grid h2 {
  font-family: 'Archivo Expanded', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.live-status-grid h2 .accent { color: var(--accent-light); }
.live-status-grid p { color: var(--ink-dim); font-size: 15px; line-height: 1.65; max-width: 460px; margin-bottom: 26px; }

.live-status-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.live-status-stat { background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: 14px; padding: 16px 22px; }
.live-status-stat .label { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px; }
.live-status-stat .value { font-family: 'Archivo Expanded', sans-serif; font-weight: 800; font-size: 26px; color: var(--ink); }
.live-status-stat .value .accent { color: var(--accent-light); }

.live-status-panel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: radial-gradient(ellipse 90% 70% at 30% 20%, rgba(124,77,255,0.22), transparent 60%), var(--bg-panel);
  min-height: 320px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.live-status-panel-illustration {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}
.live-status-panel-illustration svg { width: 100%; height: 100%; }
.live-status-tags {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent-light);
  margin-bottom: 10px;
}
.live-status-bar {
  position: relative;
  z-index: 2;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.live-status-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  animation: bar-scan 2.4s linear infinite;
}
@keyframes bar-scan {
  to { left: 100%; }
}

@media (max-width: 900px) {
  .live-status-grid { grid-template-columns: 1fr; }
  .live-status-stats { justify-content: center; }
}
