@import "tailwindcss";
@import "@heroui/styles";
@config "../tailwind.config.js";

@custom-variant dark (&:where(.dark, .dark *));

@theme {
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --font-serif: "Instrument Serif", serif;

  --color-ink-50: #fafaf9;
  --color-ink-100: #f4f4f3;
  --color-ink-200: #e6e5e3;
  --color-ink-300: #d1cfca;
  --color-ink-400: #9c9a93;
  --color-ink-500: #6b6964;
  --color-ink-600: #494742;
  --color-ink-700: #2c2b28;
  --color-ink-800: #1a1917;
  --color-ink-900: #0e0d0c;
  --color-ink-950: #070706;

  --color-brand-50: #f3effe;
  --color-brand-100: #e9e1fd;
  --color-brand-200: #d3c2fb;
  --color-brand-300: #b297f6;
  --color-brand-400: #8e69ef;
  --color-brand-500: #7142e4;
  --color-brand-600: #5d2ad0;
  --color-brand-700: #4d20ac;
  --color-brand-800: #401d8c;
  --color-brand-900: #341973;

  --color-lime-accent: #d4ff4f;

  --shadow-soft:
    0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px -4px rgba(0, 0, 0, 0.06);
  --shadow-pop: 0 8px 24px -8px rgba(113, 66, 228, 0.35);

  --animate-fade-up: fade-up 0.35s ease-out both;
  --animate-pulse-dot: pulse-dot 1.4s ease-in-out infinite;
  --animate-shimmer: shimmer 2.4s linear infinite;
  --animate-marquee: marquee 40s linear infinite;
  --animate-thinking: thinking 1.2s ease-in-out infinite;

  /* Business-name-generator motion set */
  --animate-card-in: card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  --animate-drift-a: drift-a 18s ease-in-out infinite;
  --animate-drift-b: drift-b 24s ease-in-out infinite;
  --animate-drift-c: drift-c 30s ease-in-out infinite;
  --animate-gradient-pan: gradient-pan 8s ease infinite;
  --animate-pop: pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  --animate-blink-caret: blink-caret 1s step-end infinite;

  /* Home hero "aurora horizon" backdrop */
  --animate-aurora-a: aurora-a 22s ease-in-out infinite;
  --animate-aurora-b: aurora-b 28s ease-in-out infinite;
  --animate-aurora-c: aurora-c 34s ease-in-out infinite;
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes thinking {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

/* --- Business name generator ------------------------------------------- */

/* Result cards enter on a stagger (delay is set per-card inline). */
@keyframes card-in {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Three uncorrelated orbits so the hero's gradient blobs never sync up. */
@keyframes drift-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(6%, -8%, 0) scale(1.12);
  }
}
@keyframes drift-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  50% {
    transform: translate3d(-9%, 7%, 0) scale(0.9);
  }
}
@keyframes drift-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.95);
  }
  33% {
    transform: translate3d(7%, 6%, 0) scale(1.1);
  }
  66% {
    transform: translate3d(-6%, -5%, 0) scale(1);
  }
}

/* Aurora bands sway sideways and tilt rather than drifting as round blobs,
   so the home hero reads as ribbons of light instead of a mesh gradient. */
@keyframes aurora-a {
  0%,
  100% {
    transform: translate3d(-4%, 0, 0) rotate(-14deg) scaleX(1);
  }
  50% {
    transform: translate3d(6%, -3%, 0) rotate(-9deg) scaleX(1.14);
  }
}
@keyframes aurora-b {
  0%,
  100% {
    transform: translate3d(5%, 0, 0) rotate(9deg) scaleX(1.08);
  }
  50% {
    transform: translate3d(-6%, 4%, 0) rotate(15deg) scaleX(0.92);
  }
}
@keyframes aurora-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scaleY(1);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(0, -6%, 0) scaleY(1.18);
    opacity: 0.85;
  }
}

@keyframes gradient-pan {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes blink-caret {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Mega menu / mobile sheet drop-in under the floating navbar. */
@keyframes mega-in {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.animate-mega-in {
  animation: mega-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: top center;
}
@media (prefers-reduced-motion: reduce) {
  .animate-mega-in {
    animation: none;
  }
}

/* Animated gradient wordmark used by the hero headline. */
.text-gradient-pan {
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Soft mesh backdrop behind the generator hero. */
.mesh-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(72px);
  will-change: transform;
  pointer-events: none;
}

/* Diagonal sheen that sweeps a result card on hover. */
.card-sheen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.group:hover .card-sheen::after {
  transform: translateX(120%);
}

@media (prefers-reduced-motion: reduce) {
  .mesh-blob,
  .text-gradient-pan,
  [class*="animate-drift"],
  [class*="animate-card-in"] {
    animation: none !important;
  }
  .card-sheen::after {
    transition: none;
  }
}

*::-webkit-scrollbar {
  width: 0;
}

/* Define scrollbar handle styles */
*::-webkit-scrollbar-thumb {
  background-color: #e6e8ed;
  border-radius: 1px;
}

*::-webkit-scrollbar-track {
  background-color: #ebedf0;
}

html,
body {
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
}
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.font-mono {
  font-feature-settings: "ss01", "cv11";
}

/* Subtle hero grid */
.hero-grid {
  background-image:
    linear-gradient(to right, rgba(113, 66, 228, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(113, 66, 228, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 30%,
    black 30%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 30%,
    black 30%,
    transparent 75%
  );
}
.dark .hero-grid {
  background-image:
    linear-gradient(to right, rgba(180, 150, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 150, 255, 0.07) 1px, transparent 1px);
}

.glow {
  background: radial-gradient(
    closest-side,
    rgba(113, 66, 228, 0.45),
    transparent 70%
  );
  filter: blur(40px);
}

/* ── Home hero — "aurora horizon" backdrop ─────────────────────────────
   Deliberately not the multi-TLD scan console: a dot field instead of a
   line grid, elongated light ribbons instead of round mesh blobs, and a
   horizon glow along the bottom edge so colour reaches the full height of
   the panel rather than pooling under the headline. */
.dot-matrix {
  background-image: radial-gradient(
    circle at center,
    rgba(212, 255, 79, 0.14) 1px,
    transparent 1.5px
  );
  background-size: 26px 26px;
}

.aurora-band {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  will-change: transform;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .aurora-band,
  [class*="animate-aurora"] {
    animation: none !important;
  }
}

.nice-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.nice-scroll::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 120, 0.35);
  border-radius: 4px;
}
.nice-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(120, 120, 120, 0.05) 25%,
    rgba(120, 120, 120, 0.18) 37%,
    rgba(120, 120, 120, 0.05) 63%
  );
  background-size: 400% 100%;
}

.marquee-track {
  width: max-content;
}

::selection {
  background: #d4ff4f;
  color: #0e0d0c;
}

:focus:not(:focus-visible) {
  outline: none;
}

body,
.theme-trans {
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

.noise::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: overlay;
}

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media (max-width: 768px) {
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Prose styles for blog post */
.prose-blog p {
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* Rendered HTML body of a blog post (from the admin rich-text editor) */
.blog-content {
  max-width: 48rem;
  color: #2c2b28;
  font-size: 1.0625rem;
  line-height: 1.75;
  word-break: break-word;
}
.dark .blog-content {
  color: #e6e5e3;
}
.blog-content p {
  margin: 0 0 1.25rem;
}
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  color: #0e0d0c;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  scroll-margin-top: 6rem;
}
.dark .blog-content h1,
.dark .blog-content h2,
.dark .blog-content h3,
.dark .blog-content h4 {
  color: #fafaf9;
}
.blog-content h1 {
  font-size: 2.25rem;
  margin: 2.5rem 0 1rem;
}
.blog-content h2 {
  font-size: 1.75rem;
  margin: 3rem 0 1rem;
}
.blog-content h3 {
  font-size: 1.375rem;
  margin: 2.25rem 0 0.75rem;
}
.blog-content h4 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
}
.blog-content a {
  color: #5d2ad0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dark .blog-content a {
  color: #b297f6;
}
.blog-content ul,
.blog-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}
.blog-content ul {
  list-style: disc;
}
.blog-content ol {
  list-style: decimal;
}
.blog-content li {
  margin: 0.4rem 0;
}
.blog-content blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid #7142e4;
  font-style: italic;
  color: #494742;
}
.dark .blog-content blockquote {
  color: #d1cfca;
  border-left-color: #8e69ef;
}
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}
.blog-content pre {
  background: #0e0d0c;
  color: #fafaf9;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.9rem;
}
.blog-content code {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.9em;
}
.blog-content :not(pre) > code {
  background: rgba(113, 66, 228, 0.1);
  color: #5d2ad0;
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
}
.dark .blog-content :not(pre) > code {
  background: rgba(178, 151, 246, 0.15);
  color: #b297f6;
}
.blog-content hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid #e6e5e3;
}
.dark .blog-content hr {
  border-top-color: #2c2b28;
}
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.blog-content th,
.blog-content td {
  border: 1px solid #e6e5e3;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.dark .blog-content th,
.dark .blog-content td {
  border-color: #2c2b28;
}

/* Contact page styles */
.field {
  background: transparent;
  border: 1px solid;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  width: 100%;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.field:focus {
  border-color: rgb(113, 66, 228);
  box-shadow: 0 0 0 4px rgba(113, 66, 228, 0.15);
}

.world-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #8e69ef;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.7),
    0 0 14px rgba(141, 105, 239, 0.5);
}
.dark .world-dot {
  box-shadow:
    0 0 0 2px rgba(7, 7, 6, 0.55),
    0 0 14px rgba(141, 105, 239, 0.7);
}
.world-grid {
  background-image: radial-gradient(
    rgba(113, 66, 228, 0.18) 1px,
    transparent 1.5px
  );
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(
    ellipse 110% 80% at 50% 50%,
    black 50%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 110% 80% at 50% 50%,
    black 50%,
    transparent 100%
  );
}
.dark .world-grid {
  background-image: radial-gradient(
    rgba(180, 150, 255, 0.16) 1px,
    transparent 1.5px
  );
}

/* About page stripes */
.stripes {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(113, 66, 228, 0.1) 0 2px,
    transparent 2px 7px
  );
}
.dark .stripes {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(180, 150, 255, 0.1) 0 2px,
    transparent 2px 7px
  );
}

/* ── Hosting map styles ─────────────────────────────────────── */
.map-grid {
  background-image:
    linear-gradient(to right, rgba(113, 66, 228, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(113, 66, 228, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.server-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  z-index: 2;
}
.server-marker.is-primary {
  z-index: 3;
}

.marker-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(113, 66, 228, 0.45);
  animation: pulse-marker 2.2s ease-out infinite;
}
@keyframes pulse-marker {
  0% {
    transform: scale(0.7);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.marker-core {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b6964;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.5),
    0 0 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}
.dark .marker-core {
  background: #9c9a93;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.4),
    0 0 6px rgba(255, 255, 255, 0.15);
}
.marker-core.marker-primary {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #8e69ef, #7142e4);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.6),
    0 0 16px rgba(113, 66, 228, 0.7),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}
.dark .marker-core.marker-primary {
  box-shadow:
    0 0 0 3px rgba(7, 7, 6, 0.6),
    0 0 16px rgba(113, 66, 228, 0.7),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}
.server-marker:hover .marker-core {
  transform: scale(1.4);
}

.location-tooltip {
  position: absolute;
  background: rgba(14, 13, 12, 0.96);
  border: 1px solid rgba(113, 66, 228, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #fafaf9;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  backdrop-filter: blur(8px);
  transform: translate(-50%, -160%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.server-marker:hover .location-tooltip {
  opacity: 1;
}

svg.connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.connection-line {
  stroke: rgba(113, 66, 228, 0.4);
  stroke-width: 1.25;
  stroke-dasharray: 4 3;
  fill: none;
  filter: drop-shadow(0 0 4px rgba(113, 66, 228, 0.25));
  animation: dash-flow 24s linear infinite;
}
@keyframes dash-flow {
  to {
    stroke-dashoffset: -200;
  }
}

/* ── Multi-TLD search — always-dark "scan console" ──────────────────────
   The interactive tool (hero + live results) stays dark regardless of the
   site theme, like a terminal or code block — a deliberate focal point
   against the lighter marketing sections above/below it. */
.scan-grid {
  background-image:
    linear-gradient(to right, rgba(212, 255, 79, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 255, 79, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

.radar-sweep {
  border-radius: 9999px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(212, 255, 79, 0.3) 16deg,
    transparent 42deg
  );
  animation: spin-slow 5s linear infinite;
  will-change: transform;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

/* A thin light beam sweeping down the search bar / panel while a scan runs. */
.scan-beam {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.scan-beam::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(212, 255, 79, 0.16),
    transparent
  );
  animation: scan-y 2.4s ease-in-out infinite;
}
@keyframes scan-y {
  0% {
    transform: translateY(-110%);
  }
  100% {
    transform: translateY(210%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .radar-sweep,
  .scan-beam::before {
    animation: none !important;
  }
}
