/* JoTechToTech - Global Styles */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: #020203;
  color: #d4d4d8;
  overflow-x: hidden;
}

/* Minimal critical styles – ensures text and layout are visible immediately */
/* body {
      background-color: #020203;
      color: #d4d4d8;
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      opacity: 1;
    } */

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-style: italic;
  color: #fff;
}

.logo-main .highlight {
  color: #818cf8;
}

.brand-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a1a1aa;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.08));
  padding: 0.2rem 0.75rem 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  width: fit-content;
}

.brand-tagline .pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #10b981;
  animation: pulse-glow 1.8s ease-in-out infinite;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

.brand-tagline .divider-line {
  width: 12px;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
  flex-shrink: 0;
}

.brand-tagline .tagline-text {
  background: linear-gradient(to right, #c7d2fe, #a5b4fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.2em;
}

#site-header {
  transition: background 0.3s, padding 0.3s;
}

.grid-bg-dark {
  background-image:
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(99, 102, 241, 0.1), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

/* Sophisticated Dark UI Utilities */
.grid-bg-dark {
  background-image:
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(99, 102, 241, 0.1), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

/* --- Logo container & base --- */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  /* 10px */
  text-decoration: none;
}

/* --- Square "J" mark --- */
.logo-mark {
  width: 1.5rem;
  /* 24px */
  height: 1.5rem;
  background: #6366f1;
  border-radius: 0.125rem;
  transform: rotate(45deg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
  transition: background 0.3s ease;
}

.logo-mark:hover {
  background: #818cf8;
}

.logo-mark span {
  transform: rotate(-45deg);
  font-weight: 700;
  color: #000;
  font-size: 0.7rem;
  line-height: 1;
}

/* --- Text group (JOTECHTOTECH + tagline) --- */
.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 1.25rem;
  /* 20px */
  font-weight: 800;
  letter-spacing: -0.025em;
  font-style: italic;
  color: #fff;
}

.logo-main .highlight {
  color: #818cf8;
  /* indigo-400 */
}

/* --- Stylish "Built For Businesses" tagline --- */
.brand-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.5625rem;
  /* 9px */
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a1a1aa;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.08));
  padding: 0.2rem 0.75rem 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  width: fit-content;
}

.brand-tagline:hover {
  border-color: rgba(99, 102, 241, 0.25);
  color: #e4e4e7;
}

/* pulse dot */
.brand-tagline .pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #10b981;
  animation: pulse-glow 1.8s ease-in-out infinite;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

/* divider line */
.brand-tagline .divider-line {
  width: 12px;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
  flex-shrink: 0;
}

/* gradient text for "Built For Businesses" */
.brand-tagline .tagline-text {
  background: linear-gradient(to right, #c7d2fe, #a5b4fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* responsive tweak */
@media (max-width: 480px) {
  .brand-tagline {
    font-size: 7px;
    padding: 0.15rem 0.5rem 0.15rem 0.4rem;
    gap: 0.35rem;
  }

  .brand-tagline .divider-line {
    width: 8px;
  }
}

.glass-dark {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 6s infinite ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.animate-fade-in {
  animation: fadeIn .25s ease-out both;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #020203;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* Header scrolled state */
#site-header.scrolled {
  background-color: rgba(2, 2, 3, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}

/* ---------- Premium browser-framed website previews ---------- */
.preview-card {
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, border-color .3s ease;
  will-change: transform;
}

.preview-card:hover {
  transform: translateY(-10px) scale(1.035);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(99, 102, 241, .18), 0 18px 60px -18px rgba(99, 102, 241, .35);
}

.browser-frame {
  transition: box-shadow .45s ease, transform .45s ease;
}

.preview-card:hover .browser-frame {
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8);
}

.site-scroll {
  transform: translateY(0);
  transition: transform 6s cubic-bezier(.22, .61, .36, 1);
}

.preview-card:hover .site-scroll,
.site-viewport:hover .site-scroll {
  transform: translateY(calc(-100% + 11rem));
}

.browser-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .05) 22%, rgba(255, 255, 255, 0) 46%);
  opacity: .55;
  transition: opacity .5s ease, transform .8s ease;
  transform: translateX(-12%);
}

.preview-card:hover .browser-glare {
  opacity: .28;
  transform: translateX(10%);
}

.h-4\.5 {
  height: 1.125rem;
}

/* modal preview scroller */
.pf-modal-shot {
  transition: transform 14s linear;
  transform: translateY(0);
}

.pf-modal-viewport:hover .pf-modal-shot {
  transform: translateY(calc(-100% + 100%));
}

@media (prefers-reduced-motion: reduce) {

  .site-scroll,
  .pf-modal-shot,
  .preview-card {
    transition: none !important;
  }
}