/* ==========================================================================
   AxoraX Hero Section — Elementor Widget Styles
   ========================================================================== */

.axhw-section {
  --axhw-bg-start: #0a1128;
  --axhw-bg-end: #0d1b3e;
  --axhw-accent: #3b82f6;
  --axhw-accent-2: #22d3c8;
  --axhw-purple: #7c6cf6;
  --axhw-text: #ffffff;
  --axhw-text-muted: #a9b4d0;
  --axhw-card-bg: #101a35;
  --axhw-card-border: rgba(120, 150, 255, 0.18);

  position: relative;
  overflow: hidden;
  padding: 90px 40px;
  background: radial-gradient(ellipse at 20% 20%, rgba(59,130,246,0.10), transparent 55%),
              radial-gradient(ellipse at 85% 75%, rgba(124,108,246,0.12), transparent 50%),
              linear-gradient(135deg, var(--axhw-bg-start), var(--axhw-bg-end));
  font-family: inherit;
  color: var(--axhw-text);
  box-sizing: border-box;
}
.axhw-section *, .axhw-section *::before, .axhw-section *::after { box-sizing: border-box; }

.axhw-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}

.axhw-container {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ---------------- LEFT ---------------- */
.axhw-left { min-width: 0; }

.axhw-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cfe0ff;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(96,140,255,0.35);
  margin-bottom: 22px;
}

.axhw-heading {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.axhw-text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
}
.axhw-gradient-teal { background-image: linear-gradient(90deg, #22d3c8, #6ee7d5); }
.axhw-gradient-blue { background-image: linear-gradient(90deg, #5b8def, #7c6cf6); }

.axhw-description {
  font-size: 17px;
  line-height: 1.7;
  color: var(--axhw-text-muted);
  max-width: 560px;
  margin: 0 0 34px;
}

.axhw-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 42px;
}

.axhw-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
}
.axhw-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--axhw-accent), #2563eb);
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.axhw-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37,99,235,0.5);
}
.axhw-btn-secondary {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
}
.axhw-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.45);
}
.axhw-btn i { font-size: 13px; }

.axhw-features {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.axhw-feature-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--axhw-text-muted);
  font-weight: 500;
}
.axhw-feature-item i, .axhw-feature-item svg {
  color: var(--axhw-accent-2);
  width: 16px;
  height: 16px;
}

/* ---------------- RIGHT ---------------- */
.axhw-right {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* API Response card */
.axhw-api-card {
  position: absolute;
  top: -10px;
  left: 8%;
  width: 300px;
  background: #0b1330;
  border: 1px solid var(--axhw-card-border);
  border-radius: 12px;
  padding: 16px 18px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(120,150,255,0.05);
  z-index: 4;
}
.axhw-animated .axhw-api-card { animation: axhw-float-slow 6s ease-in-out infinite; }

.axhw-window-dots { display: flex; gap: 6px; margin-bottom: 10px; }
.axhw-window-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.axhw-api-title {
  font-size: 12px;
  color: #8fa3d6;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  font-family: 'Courier New', monospace;
}
.axhw-code {
  margin: 0;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  color: #cbd5f5;
  min-height: 150px;
}
.axhw-code .axhw-str { color: #f2a44b; }
.axhw-code .axhw-key { color: #7ea6ff; }
.axhw-code .axhw-bool { color: #5fe0c2; }
.axhw-code .axhw-punc { color: #6b7aa8; }

.axhw-cursor {
  display: inline-block;
  width: 7px;
  background: var(--axhw-accent-2);
  margin-left: 1px;
}
.axhw-animated .axhw-cursor { animation: axhw-blink 0.9s steps(1) infinite; }

/* Format icon row */
.axhw-format-row {
  position: absolute;
  top: -30px;
  right: 4%;
  display: flex;
  gap: 12px;
  z-index: 4;
}
.axhw-format-box {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.axhw-format-csv  { background: linear-gradient(145deg, #1fbf75, #14934f); }
.axhw-format-json { background: linear-gradient(145deg, #6c63ff, #4b3fd6); }
.axhw-format-xlsx { background: linear-gradient(145deg, #2fae4e, #1c7a35); }
.axhw-format-api  { background: linear-gradient(145deg, #3b82f6, #1d4ed8); }
.axhw-animated .axhw-format-box {
  animation: axhw-float-bounce 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

/* Websites badge */
.axhw-websites-badge {
  position: absolute;
  left: -8%;
  top: 42%;
  width: 148px;
  background: #0b1330;
  border: 1px solid var(--axhw-card-border);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  z-index: 5;
}
.axhw-animated .axhw-websites-badge { animation: axhw-float-slow 5s ease-in-out infinite; animation-delay: 0.4s; }

.axhw-globe {
  width: 42px; height: 42px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59,130,246,0.15);
  color: var(--axhw-accent);
  font-size: 18px;
  border: 1px solid rgba(96,140,255,0.4);
}
.axhw-animated .axhw-globe { animation: axhw-spin-slow 8s linear infinite; }

.axhw-websites-text {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #dfe7ff;
  line-height: 1.4;
}

.axhw-dots-connector {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.axhw-dots-connector .axhw-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--axhw-accent);
  opacity: 0.35;
}
.axhw-animated .axhw-dots-connector .axhw-dot {
  animation: axhw-dot-pulse 1.4s ease-in-out infinite;
}
.axhw-animated .axhw-dots-connector .axhw-dot:nth-child(1) { animation-delay: 0s; }
.axhw-animated .axhw-dots-connector .axhw-dot:nth-child(2) { animation-delay: 0.25s; }
.axhw-animated .axhw-dots-connector .axhw-dot:nth-child(3) { animation-delay: 0.5s; }

/* Laptop */
.axhw-laptop {
  position: relative;
  width: 92%;
  max-width: 620px;
  margin-top: 40px;
  z-index: 2;
}
.axhw-animated .axhw-laptop { animation: axhw-float-laptop 7s ease-in-out infinite; }

.axhw-laptop-frame {
  background: #0e1730;
  border: 1px solid rgba(120,150,255,0.15);
  border-radius: 16px 16px 4px 4px;
  padding: 10px 10px 0;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}

.axhw-laptop-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(120,150,255,0.12);
}
.axhw-logo-mark {
  width: 20px; height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--axhw-accent), var(--axhw-purple));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.axhw-brand-name { font-size: 12px; font-weight: 700; color: #cfd9ff; }
.axhw-topbar-dots { display: flex; gap: 5px; margin-left: auto; }
.axhw-topbar-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.15); }

.axhw-laptop-body {
  display: grid;
  grid-template-columns: 108px 1fr;
  background: #f4f6fb;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  min-height: 300px;
}

.axhw-sidebar {
  background: #ffffff;
  border-right: 1px solid #eaedf5;
  padding: 10px 8px;
}
.axhw-sidebar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  color: #6b7794;
  padding: 6px 6px;
  border-radius: 5px;
  margin-bottom: 2px;
  font-weight: 600;
}
.axhw-sidebar-item i { font-size: 8px; width: 10px; }
.axhw-sidebar-item.active {
  background: linear-gradient(135deg, var(--axhw-accent), #2563eb);
  color: #fff;
}

.axhw-dashboard { padding: 14px; }

.axhw-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.axhw-stat-card {
  background: #fff;
  border: 1px solid #eef0f7;
  border-radius: 8px;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.axhw-stat-label { font-size: 6.5px; color: #8891ab; font-weight: 600; }
.axhw-stat-value { font-size: 13px; font-weight: 800; color: #171f36; }

.axhw-panel-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
}
.axhw-panel {
  background: #fff;
  border: 1px solid #eef0f7;
  border-radius: 8px;
  padding: 10px;
}
.axhw-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  font-weight: 700;
  color: #303a54;
  margin-bottom: 8px;
}
.axhw-panel-tag {
  font-size: 6.5px;
  font-weight: 600;
  color: #6b7794;
  background: #f2f4fa;
  padding: 2px 6px;
  border-radius: 5px;
}

.axhw-chart-svg { width: 100%; height: 60px; display: block; }
.axhw-chart-path {
  stroke: var(--axhw-accent);
  stroke-width: 2;
  stroke-linecap: round;
}
.axhw-chart-glow {
  stroke: var(--axhw-accent);
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0.15;
  filter: blur(2px);
}
.axhw-animated .axhw-chart-path,
.axhw-animated .axhw-chart-glow {
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: axhw-draw-line 3.2s ease-in-out infinite;
}
.axhw-animated .axhw-chart-glow { animation-delay: 0.05s; }

.axhw-jobs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.axhw-jobs-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 7px;
  font-weight: 600;
  color: #3c4661;
}
.axhw-job-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.axhw-dot-green { background: #1fbf75; }
.axhw-dot-blue { background: #3b82f6; }
.axhw-animated .axhw-job-dot { animation: axhw-dot-pulse 1.8s ease-in-out infinite; }

.axhw-status {
  margin-left: auto;
  font-style: normal;
  font-size: 6px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
}
.axhw-status-done { background: rgba(31,191,117,0.12); color: #159a5c; }
.axhw-status-run  { background: rgba(59,130,246,0.12); color: #2563eb; }
.axhw-animated .axhw-status-run { animation: axhw-glow-pulse 1.6s ease-in-out infinite; }

.axhw-laptop-base {
  height: 14px;
  background: linear-gradient(180deg, #232c48, #141b31);
  border-radius: 0 0 10px 10px;
  margin: 0 -4%;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

/* Cloud + database decor */
.axhw-cloud-icon {
  position: absolute;
  top: 6%;
  right: -2%;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(96,140,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #7ea6ff;
  font-size: 20px;
  z-index: 3;
}
.axhw-animated .axhw-cloud-icon { animation: axhw-float-slow 5.5s ease-in-out infinite; animation-delay: 0.6s; }

.axhw-db-icon {
  position: absolute;
  bottom: 4%;
  right: -4%;
  width: 60px;
  z-index: 3;
}
.axhw-db-ring {
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b8def, var(--axhw-purple));
  margin-top: -6px;
  opacity: 0.9;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}
.axhw-db-ring:first-child { margin-top: 0; }
.axhw-animated .axhw-db-icon { animation: axhw-float-slow 6.5s ease-in-out infinite; animation-delay: 0.3s; }

.axhw-connector-line {
  position: absolute;
  top: 0; right: -6%;
  width: 220px; height: 220px;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes axhw-float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes axhw-float-laptop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes axhw-float-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-9px) scale(1.05); }
}
@keyframes axhw-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes axhw-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes axhw-dot-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}
@keyframes axhw-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(59,130,246,0); }
}
@keyframes axhw-draw-line {
  0% { stroke-dashoffset: 480; }
  60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -480; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .axhw-container { grid-template-columns: 1fr; }
  .axhw-right { min-height: 460px; margin-top: 40px; }
  .axhw-api-card { left: 0; width: 260px; }
  .axhw-format-row { right: 0; }
  .axhw-websites-badge { left: 0; }
}

@media (max-width: 600px) {
  .axhw-section { padding: 60px 20px; }
  .axhw-heading { font-size: 32px; }
  .axhw-api-card { position: static; width: 100%; margin-bottom: 16px; }
  .axhw-format-row { position: static; justify-content: center; margin-bottom: 16px; }
  .axhw-websites-badge { position: static; width: fit-content; margin: 0 auto 16px; }
  .axhw-laptop { margin-top: 0; }
  .axhw-cloud-icon, .axhw-db-icon, .axhw-connector-line { display: none; }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .axhw-section .axhw-animated * { animation: none !important; }
}
