/* =====================================================
   DoplerHost byDxA — style.css
   Premium SaaS Landing Page Styles
   ===================================================== */

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: #060B17;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: none; /* hide default; custom cursor active */
}

/* ── Custom cursor ───────────────────────────────────── */
#cursor {
  left: -20px;
  top: -20px;
  transform: translate(-50%, -50%);
}
#cursor-trail {
  left: -40px;
  top: -40px;
  transform: translate(-50%, -50%);
}

/* ── Glassmorphism helpers ────────────────────────── */
.glass-card {
  background: rgba(15, 22, 40, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-nav {
  background: rgba(6, 11, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Navbar scroll state ────────────────────────── */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(6, 11, 23, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* ── Typography gradients ──────────────────────────── */
.text-gradient-blue {
  background: linear-gradient(135deg, #2563EB 0%, #60a5fa 50%, #2563EB 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

.text-gradient-yellow {
  background: linear-gradient(135deg, #FACC15 0%, #fde68a 50%, #FACC15 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Ticker ────────────────────────────────────────── */
.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 1.5rem;
  font-size: 0.7rem;
  font-family: 'Space Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b5563;
  white-space: nowrap;
}

.ticker-sep {
  display: inline-flex;
  align-items: center;
  color: #2563EB;
  font-size: 0.6rem;
  opacity: 0.5;
}

/* ── Stat cards ─────────────────────────────────────── */
.stat-card {
  background: rgba(15, 22, 40, 0.6);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
}

/* ── Reveal on scroll ──────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.reveal-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ── Hamburger menu open state ─────────────────────── */
#menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
#menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
#menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
  width: 1.25rem;
  margin-left: 0;
}

/* ── Back to top visible ─────────────────────────── */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Domain checker result ────────────────────────── */
#domain-result.available {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}
#domain-result.taken {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

/* ── WHOIS tabs ─────────────────────────────────── */
.whois-tab {
  color: #6b7280;
  transition: all 0.2s;
}
.whois-tab.active-tab {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
}
.whois-tab:hover:not(.active-tab) {
  color: #e5e7eb;
}

/* ── Pricing card highlight ─────────────────────── */
.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ── Testimonial dots ───────────────────────────── */
.dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}
.dot.active {
  background: #2563EB;
  width: 20px;
}

/* ── IP card ────────────────────────────────────── */
#ip-card {
  animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 3s;
  opacity: 0;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Loading screen ─────────────────────────────── */
#loading-screen {
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.hidden-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Service card glow ──────────────────────────── */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(37,99,235,0.2), transparent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover::before {
  opacity: 1;
}

/* ── Light mode overrides ──────────────────────── */
html:not(.dark) body {
  background-color: #f8fafc;
  color: #0f172a;
}
html:not(.dark) #navbar.scrolled {
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
html:not(.dark) .glass-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0,0,0,0.08);
}
html:not(.dark) .glass-nav {
  background: rgba(248, 250, 252, 0.92);
}
html:not(.dark) body {
  /* Revert bg blobs */
}
html:not(.dark) .ticker-item {
  color: #94a3b8;
}
html:not(.dark) section {
  /* slight adjust in light */
}

/* ── Scrollbar styling ──────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #060B17;
}
::-webkit-scrollbar-thumb {
  background: #1E2D50;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2563EB;
}

/* ── Particles canvas ────────────────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Whois terminal text colors ─────────────────── */
#whois-output .key   { color: #60a5fa; }
#whois-output .val   { color: #4ade80; }
#whois-output .comm  { color: #6b7280; }
#whois-output .sec   { color: #facc15; font-weight: bold; }
#whois-output .err   { color: #f87171; }

/* ── Select styling ──────────────────────────────── */
select option {
  background: #0F1628;
  color: #fff;
}

/* ── Mobile cursor fallback ──────────────────────── */
@media (pointer: coarse) {
  body { cursor: auto; }
  #cursor, #cursor-trail { display: none; }
}

/* ── Responsive adjustments ─────────────────────── */
@media (max-width: 640px) {
  #ip-card { display: none !important; }
  .testimonial-card { min-width: 100%; }
}
