/* SideNet visible visual refresh — loaded after the shared base stylesheet. */
:root {
  --refresh-ink: #f8fbff;
  --refresh-muted: #c2cee0;
  --refresh-blue: #60a5fa;
  --refresh-cyan: #22d3ee;
  --refresh-surface: rgba(13, 22, 39, 0.94);
  --refresh-edge: rgba(125, 170, 230, 0.25);
}

html {
  scroll-padding-top: 6rem;
  overflow-x: clip !important;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body {
  overflow-x: clip !important;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  color: var(--refresh-ink) !important;
  background-color: #060a14 !important;
  background-image:
    radial-gradient(ellipse 72rem 38rem at 50% -8%, rgba(24, 74, 173, 0.34), transparent 72%),
    radial-gradient(ellipse 40rem 34rem at 100% 53%, rgba(89, 35, 181, 0.16), transparent 72%),
    radial-gradient(ellipse 42rem 34rem at 0% 78%, rgba(0, 132, 168, 0.12), transparent 70%),
    linear-gradient(180deg, #080d19 0%, #070b15 52%, #050912 100%) !important;
  background-attachment: fixed !important;
}

.orb {
  display: none !important;
}

header,
.glass-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(5, 9, 18, 0.91) !important;
  border-bottom: 1px solid rgba(96, 165, 250, 0.24) !important;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.38), 0 1px 0 rgba(255, 255, 255, 0.035) !important;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.glass-nav > div:first-child {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.glass-nav nav a {
  color: #d6e2f3 !important;
  transition: color 180ms ease, transform 180ms ease;
}

.glass-nav nav a:hover {
  color: #67e8f9 !important;
  transform: translateY(-1px);
}

.glass-nav nav a::after {
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee) !important;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.62);
}

header a.group img[src$="sidenet-logo.svg"],
footer img[src$="sidenet-logo.svg"] {
  filter: drop-shadow(0 3px 10px rgba(34, 211, 238, 0.14));
}

#mobile-menu {
  background: rgba(7, 12, 23, 0.98) !important;
  border-color: rgba(96, 165, 250, 0.22) !important;
}

/* More depth and a visible illuminated grid behind every product hero. */
body > section:first-of-type {
  position: relative;
  isolation: isolate;
  background-image:
    radial-gradient(ellipse 52rem 29rem at 50% 12%, rgba(37, 99, 235, 0.3), transparent 75%),
    radial-gradient(ellipse 34rem 26rem at 86% 55%, rgba(6, 182, 212, 0.13), transparent 72%),
    repeating-linear-gradient(0deg, rgba(96, 165, 250, 0.035) 0, rgba(96, 165, 250, 0.035) 1px, transparent 1px, transparent 34px),
    repeating-linear-gradient(90deg, rgba(96, 165, 250, 0.035) 0, rgba(96, 165, 250, 0.035) 1px, transparent 1px, transparent 34px) !important;
}

body > section:first-of-type h1 {
  color: #fff !important;
  font-size: clamp(1.4rem, 2.2vw + 0.4rem, 2.45rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  text-shadow: 0 12px 50px rgba(25, 81, 180, 0.22);
  text-wrap: balance;
}

body > section:first-of-type p {
  color: #cbd7e8 !important;
}

.gradient-text {
  background-image: linear-gradient(105deg, #bfdbfe 0%, #38bdf8 36%, #818cf8 72%, #e879f9 100%) !important;
  background-size: 170% auto !important;
  filter: drop-shadow(0 8px 25px rgba(59, 130, 246, 0.18));
}

/* Give the applications section a distinct panel, then let each card stand out. */
#apps,
#faq {
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(8, 14, 27, 0.88), rgba(7, 12, 22, 0.78)) !important;
  border-color: rgba(125, 170, 230, 0.2) !important;
}

#apps .grid {
  gap: 1.25rem !important;
}

#apps .glass-card,
.glass-card {
  background: linear-gradient(145deg, rgba(18, 30, 50, 0.97), rgba(10, 18, 32, 0.97)) !important;
  border-color: rgba(118, 157, 209, 0.25) !important;
  border-radius: 1.15rem !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, background 220ms ease !important;
}

#apps .glass-card {
  border-top: 2px solid rgba(96, 165, 250, 0.58) !important;
}

#apps .glass-card:nth-child(2) {
  border-top-color: rgba(192, 132, 252, 0.68) !important;
}

#apps .glass-card:nth-child(3) {
  border-top-color: rgba(52, 211, 153, 0.68) !important;
}

#apps .glass-card:nth-child(4) {
  border-top-color: rgba(96, 165, 250, 0.68) !important;
}

.glass-card:hover {
  background: linear-gradient(145deg, rgba(24, 41, 68, 0.99), rgba(12, 22, 39, 0.99)) !important;
  border-color: rgba(96, 165, 250, 0.58) !important;
  box-shadow: 0 28px 64px -20px rgba(0, 0, 0, 0.78), 0 0 34px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.11) !important;
  transform: translateY(-6px) !important;
}

.glass-card p {
  color: var(--refresh-muted) !important;
}

.glass-card strong {
  color: #f8fbff !important;
}

.play-store-btn {
  min-height: 2.5rem !important;
  padding: 0.45rem 1rem !important;
  border-radius: 0.8rem !important;
  gap: 0.55rem !important;
  border-color: rgba(148, 179, 221, 0.29) !important;
  background: linear-gradient(120deg, rgba(28, 43, 67, 0.98), rgba(13, 22, 37, 0.99)) !important;
}

.play-store-btn .play-icon-wrap,
.play-store-btn svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
}

.play-store-btn .text-base {
  font-size: 0.85rem !important;
}

.play-store-btn .text-\[10px\] {
  font-size: 0.65rem !important;
}

.play-store-btn:hover {
  border-color: rgba(103, 232, 249, 0.68) !important;
  box-shadow: 0 13px 32px rgba(14, 116, 194, 0.24), 0 0 20px rgba(34, 211, 238, 0.11) !important;
}

.play-store-btn-primary,
.glow-button {
  background-image: linear-gradient(110deg, #1d4ed8 0%, #4f46e5 54%, #0891b2 100%) !important;
  box-shadow: 0 12px 32px -10px rgba(37, 99, 235, 0.68) !important;
}

.glow-button:hover {
  box-shadow: 0 16px 38px -8px rgba(34, 211, 238, 0.48), 0 0 24px rgba(59, 130, 246, 0.22) !important;
}

.lang-switcher-pill {
  background: rgba(14, 22, 37, 0.96) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

.lang-btn.active-lang {
  background: linear-gradient(120deg, #2563eb, #0891b2) !important;
}

/* Compact Section Headings across all app and developer pages */
section h2:not(body > section:first-of-type h2) {
  font-size: clamp(1.15rem, 1.6vw + 0.3rem, 1.65rem) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
}

/* Deep dive features cards */
#features .glass-card {
  padding: 0.85rem 1rem !important;
  border-radius: 0.85rem !important;
}

#features .glass-card h3 {
  font-size: 0.85rem !important;
  margin-bottom: 0.25rem !important;
}

#features .glass-card p {
  font-size: 0.73rem !important;
  line-height: 1.4 !important;
}

#features .glass-card .w-9,
#features .glass-card .w-12 {
  width: 1.85rem !important;
  height: 1.85rem !important;
  border-radius: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

#features .glass-card svg,
#features .glass-card i {
  width: 0.95rem !important;
  height: 0.95rem !important;
}

/* Specs section */
#specs {
  padding-top: 2.25rem !important;
  padding-bottom: 2.25rem !important;
}

#specs .glass-card {
  padding: 1.25rem 1.5rem !important;
  border-radius: 1.15rem !important;
}

#specs .p-4 {
  padding: 0.65rem 0.85rem !important;
  border-radius: 0.65rem !important;
}

#specs span.text-xs {
  font-size: 0.65rem !important;
  margin-bottom: 0.15rem !important;
}

#specs p.text-sm {
  font-size: 0.8rem !important;
  line-height: 1.25 !important;
}

#specs p.text-xs {
  font-size: 0.72rem !important;
  margin-top: 0.2rem !important;
}

/* Contact & FAQ sections */
#contact,
#faq {
  padding-top: 1.75rem !important;
  padding-bottom: 1.75rem !important;
}

#contact .glass-card {
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.26), transparent 68%), linear-gradient(145deg, rgba(16, 26, 44, 0.98), rgba(8, 14, 25, 0.98)) !important;
  border-color: rgba(96, 165, 250, 0.42) !important;
  padding: 1.25rem 1.5rem !important;
}

#contact .w-10 {
  width: 2rem !important;
  height: 2rem !important;
  margin-bottom: 0.4rem !important;
}

#contact .w-10 svg {
  width: 1rem !important;
  height: 1rem !important;
}

#faq .glass-card {
  padding: 0.75rem 1rem !important;
}

/* Developers page sections */
#why-sidenet,
#pricing,
#request-api {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

#why-sidenet .glass-card {
  padding: 1rem 1.25rem !important;
}

#why-sidenet .p-3\.5 {
  padding: 0.65rem 0.85rem !important;
}

#why-sidenet .w-9 {
  width: 1.85rem !important;
  height: 1.85rem !important;
}

#pricing .glass-card {
  padding: 1rem 1.15rem !important;
}

#pricing .text-2xl,
#pricing .text-3xl {
  font-size: 1.5rem !important;
}

#pricing ul {
  margin-bottom: 1rem !important;
}

#pricing ul li {
  font-size: 0.75rem !important;
}

#request-api .glass-card {
  padding: 1.15rem 1.35rem !important;
}

#request-api .w-9 {
  width: 1.85rem !important;
  height: 1.85rem !important;
  margin-bottom: 0.4rem !important;
}

footer {
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.96), rgba(4, 7, 13, 0.99)) !important;
  border-color: rgba(96, 165, 250, 0.22) !important;
  padding-top: 1.75rem !important;
  padding-bottom: 1.5rem !important;
  font-size: 0.75rem !important;
}

footer .mb-12,
footer .mb-8 {
  margin-bottom: 1.25rem !important;
}

footer .gap-8 {
  gap: 1.25rem !important;
}

footer img[src$="sidenet-logo.svg"] {
  height: 1.85rem !important;
  width: auto !important;
}

footer h4 {
  font-size: 0.7rem !important;
  margin-bottom: 0.4rem !important;
  letter-spacing: 0.05em !important;
}

footer ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
}

footer ul li a,
footer p,
footer div {
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
}

footer a:hover {
  color: #67e8f9 !important;
}

@media (max-width: 767px) {
  header,
  .glass-nav {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
  }

  .glass-nav > div:first-child {
    min-height: 3.5rem !important;
    height: 3.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  #mobile-menu-btn {
    flex-shrink: 0 !important;
  }

  body > section:first-of-type {
    background-image:
      radial-gradient(ellipse 28rem 28rem at 50% 10%, rgba(37, 99, 235, 0.28), transparent 74%),
      repeating-linear-gradient(0deg, rgba(96, 165, 250, 0.03) 0, rgba(96, 165, 250, 0.03) 1px, transparent 1px, transparent 34px),
      repeating-linear-gradient(90deg, rgba(96, 165, 250, 0.03) 0, rgba(96, 165, 250, 0.03) 1px, transparent 1px, transparent 34px) !important;
  }

  body > section:first-of-type h1 {
    font-size: clamp(1.2rem, 4.5vw, 1.55rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
  }

  #apps .grid {
    gap: 1rem !important;
  }

  .glass-card:hover {
    transform: translateY(-2px) !important;
  }
}

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