/* PayOrbit Theme & Core UI Styles - Payments Beyond Limits */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --po-bg-dark: #070a13;
  --po-bg-card: rgba(15, 23, 42, 0.65);
  --po-bg-card-hover: rgba(22, 34, 61, 0.75);
  --po-border: rgba(255, 255, 255, 0.08);
  --po-border-glow: rgba(0, 102, 255, 0.4);
  --po-blue: #0066ff;
  --po-cyan: #00d2ff;
  --po-purple: #7928ca;
  --po-emerald: #10b981;
  --po-amber: #f59e0b;
  --po-rose: #f43f5e;
  --po-text-main: #f8fafc;
  --po-text-muted: #94a3b8;
  --po-gradient-primary: linear-gradient(135deg, #0066ff 0%, #00d2ff 100%);
  --po-gradient-accent: linear-gradient(135deg, #00d2ff 0%, #3b82f6 50%, #9333ea 100%);
  --po-gradient-dark: linear-gradient(180deg, #070a13 0%, #0b1120 100%);
}

/* Global Reset & Typography */
body {
  background-color: var(--po-bg-dark);
  color: var(--po-text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* Atmospheric Glow Background */
.po-ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.po-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  transition: all 1s ease;
}

.po-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #0066ff, transparent 70%);
  top: -150px;
  left: 10%;
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.po-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00d2ff, transparent 70%);
  top: 30%;
  right: -100px;
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.po-glow-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #4f46e5, transparent 70%);
  bottom: 5%;
  left: 20%;
  animation: floatOrb3 20s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 80px) scale(1.15); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, -50px) scale(0.9); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -60px) scale(1.1); }
}

/* Subtle Grid Pattern */
.po-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Modern Glass Navbar */
.po-navbar {
  position: fixed;
  top: 15px;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 0 15px;
  transition: all 0.3s ease;
}

.po-navbar-inner {
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--po-border);
  border-radius: 50px;
  padding: 10px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.po-navbar.scrolled .po-navbar-inner {
  background: rgba(7, 10, 19, 0.9);
  border-color: rgba(0, 102, 255, 0.25);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 102, 255, 0.15);
}

.po-brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.po-brand-logo:hover {
  transform: scale(1.02);
}

.po-nav-link,
a.po-nav-link,
.po-nav-link:hover,
.po-nav-link:focus,
.po-nav-link:active,
.po-nav-link.active {
  text-decoration: none !important;
}

.po-nav-link {
  color: var(--po-text-muted) !important;
  font-weight: 500;
  font-size: 13.5px;
  padding: 8px 16px !important;
  border-radius: 30px;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
  text-decoration: none !important;
}

.po-nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none !important;
}

.po-nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 210, 255, 0.15));
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
  text-decoration: none !important;
}

/* Buttons */
.po-btn-primary {
  background: var(--po-gradient-primary);
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 102, 255, 0.45);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.po-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.65), 0 0 15px rgba(0, 210, 255, 0.5);
  color: #ffffff !important;
}

.po-btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: rotate(30deg);
  transition: all 0.6s ease;
  pointer-events: none;
  opacity: 0;
}

.po-btn-primary:hover::after {
  opacity: 1;
  transform: rotate(30deg) translate(20%, 20%);
}

.po-btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.po-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.5);
  color: #00d2ff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.2);
}

/* Badges & Chips */
.po-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: #00d2ff;
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

.po-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00d2ff;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #00d2ff;
  animation: poPulse 2s infinite;
}

@keyframes poPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 210, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

/* Gradient Text */
.po-gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #00d2ff 85%, #0066ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.po-gradient-text-alt {
  background: linear-gradient(135deg, #00d2ff 0%, #3b82f6 50%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cards & Glass Containers */
.po-card {
  background: var(--po-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--po-border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.po-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.po-card:hover {
  background: var(--po-bg-card-hover);
  border-color: rgba(0, 102, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 102, 255, 0.2);
}

/* Feature Icon Boxes */
.po-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 210, 255, 0.1));
  border: 1px solid rgba(0, 210, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #00d2ff;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.po-card:hover .po-icon-box {
  background: var(--po-gradient-primary);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
  transform: scale(1.08) rotate(3deg);
}

/* Stat Metric Counter */
.po-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 40%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.po-stat-label {
  font-size: 13px;
  color: var(--po-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

/* Code Snippet Box */
.po-code-box {
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.po-code-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.po-code-dots {
  display: flex;
  gap: 6px;
}

.po-code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.po-code-body {
  padding: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
  overflow-x: auto;
}

.po-code-body .keyword { color: #f43f5e; font-weight: 600; }
.po-code-body .function { color: #38bdf8; }
.po-code-body .string { color: #34d399; }
.po-code-body .property { color: #a78bfa; }
.po-code-body .comment { color: #64748b; font-style: italic; }

/* Interactive Gateway Switch Simulator */
.po-simulator-card {
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 102, 255, 0.15);
}

.po-routing-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.po-routing-node.active-route {
  background: rgba(0, 102, 255, 0.15);
  border-color: #00d2ff;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
}

/* Infinite Brand Marquee */
.po-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 25px 0;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.po-marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: poMarquee 26s linear infinite;
}

.po-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes poMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.po-marquee-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  color: #e2e8f0;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.po-marquee-item:hover {
  background: rgba(0, 102, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.3);
  color: #00d2ff;
  transform: translateY(-2px);
}

/* Accordion FAQ */
.po-accordion .accordion-item {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid var(--po-border) !important;
  border-radius: 16px !important;
  margin-bottom: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.po-accordion .accordion-button {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 20px 24px;
  box-shadow: none !important;
  display: flex;
  justify-content: space-between;
}

.po-accordion .accordion-button:not(.collapsed) {
  color: #00d2ff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.po-accordion .accordion-button::after {
  filter: invert(1);
  transition: transform 0.3s ease;
}

.po-accordion .accordion-body {
  color: var(--po-text-muted);
  font-size: 14px;
  line-height: 1.7;
  padding: 20px 24px;
}

/* Footer Styling */
.po-footer {
  border-top: 1px solid var(--po-border);
  background: linear-gradient(180deg, rgba(7, 10, 19, 0.6) 0%, #03050a 100%);
  padding-top: 70px;
  padding-bottom: 30px;
  position: relative;
  z-index: 10;
}

.po-footer-link {
  color: var(--po-text-muted);
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.po-footer-link:hover {
  color: #00d2ff;
  transform: translateX(4px);
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .po-navbar {
    top: 10px;
  }
  .po-navbar-inner {
    border-radius: 20px;
  }
  .navbar-collapse {
    background: rgba(7, 10, 19, 0.98);
    backdrop-filter: blur(25px);
    border-radius: 16px;
    padding: 20px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .po-nav-link {
    padding: 10px 15px !important;
  }
}
