/* ==========================================================================
   alitech.pk — Coming Soon Page Styles
   ========================================================================== */

:root {
  --bg-deep: #050811;
  --bg-surface: rgba(15, 23, 42, 0.55);
  --bg-surface-hover: rgba(20, 31, 56, 0.78);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(56, 189, 248, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --cyan: #38bdf8;
  --indigo: #818cf8;
  --emerald: #34d399;
  --amber: #f59e0b;

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle tech grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 35%, transparent 85%);
  pointer-events: none;
  z-index: -2;
}

/* Interactive Constellation Canvas */
#constellation-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Ambient Floating Aurora Orbs */
.ambient-aurora {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  pointer-events: none;
  z-index: -3;
  animation: auroraFloat 16s ease-in-out infinite alternate;
}

.aurora-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
}

.aurora-2 {
  width: 560px;
  height: 560px;
  bottom: -180px;
  right: -140px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  animation-delay: -6s;
  animation-duration: 20s;
}

@keyframes auroraFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(60px, 45px, 0) scale(1.12);
  }
}

/* Cursor Spotlight & Smooth Ring */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.13) 0%,
    rgba(129, 140, 248, 0.05) 35%,
    transparent 70%
  );
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition:
    width 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    background-color 0.25s ease,
    opacity 0.3s ease;
  will-change: transform;
}

.cursor-ring.is-hovering {
  width: 48px;
  height: 48px;
  border-color: rgba(56, 189, 248, 0.9);
  background-color: rgba(56, 189, 248, 0.08);
}

/* Layout Container */
.container {
  width: min(1160px, 92%);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  padding: 24px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-logo:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-tld {
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  text-align: center;
  padding: 46px 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.hero-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.14);
}

.sparkle-icon {
  width: 15px;
  height: 15px;
  color: var(--cyan);
  animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 900px;
  margin-bottom: 22px;
}

.gradient-text {
  background: linear-gradient(110deg, #38bdf8 0%, #818cf8 45%, #34d399 80%, #38bdf8 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 7s linear infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

.hero-subtitle {
  max-width: 640px;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 38px;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================================================
   Countdown Timer
   ========================================================================== */
.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.countdown-card {
  min-width: 92px;
  padding: 18px 14px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.countdown-card:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 14px 32px -10px rgba(56, 189, 248, 0.28);
}

.countdown-value {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.countdown-sep {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: rgba(148, 163, 184, 0.35);
  user-select: none;
}

/* ==========================================================================
   Notify Form
   ========================================================================== */
.notify-wrapper {
  width: min(540px, 100%);
}

.notify-form {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.notify-form:focus-within {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12), 0 18px 40px -16px rgba(56, 189, 248, 0.35);
}

.input-glow-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 16px;
}

.input-icon {
  width: 19px;
  height: 19px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.notify-form:focus-within .input-icon {
  color: var(--cyan);
}

.notify-form input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 4px;
}

.notify-form input::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(14, 165, 233, 0.55);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    filter 0.25s ease;
}

.btn-primary:hover {
  box-shadow: 0 14px 32px -6px rgba(56, 189, 248, 0.65);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-arrow {
  width: 17px;
  height: 17px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover .btn-shimmer {
  transform: translateX(120%);
}

.form-feedback {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.3em;
  transition: color 0.25s ease;
}

.form-feedback.is-success {
  color: var(--emerald);
}

.form-feedback.is-error {
  color: #fb7185;
}

/* ==========================================================================
   Marquee Perks Strip
   ========================================================================== */
.marquee-section {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 15, 29, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 0;
  margin: 12px 0 72px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

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

.marquee-content {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.marquee-item:hover {
  color: var(--text-primary);
}

.marquee-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

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

/* ==========================================================================
   3D Interactive Category Bento Grid
   ========================================================================== */
.categories {
  padding-bottom: 84px;
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  perspective: 1200px;
}

.bento-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --accent: #38bdf8;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(148, 163, 184, 0.2),
    rgba(148, 163, 184, 0.05)
  );
  transform-style: preserve-3d;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
  will-change: transform;
  cursor: default;
}

/* Glowing border spotlight that follows the cursor */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--mouse-x) var(--mouse-y),
    var(--accent),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.bento-card:hover::before {
  opacity: 0.85;
}

.bento-card:hover {
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
}

.card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 30px;
  border-radius: calc(var(--radius-lg) - 1px);
  background: rgba(9, 14, 28, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Inner soft radial sheen */
.card-spotlight {
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background: radial-gradient(
    420px circle at var(--mouse-x) var(--mouse-y),
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.bento-card:hover .card-spotlight {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  transform: translateZ(20px);
}

.card-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, rgba(15, 23, 42, 0.8));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    background-color 0.35s ease;
}

.card-icon-box svg {
  width: 28px;
  height: 28px;
}

.bento-card:hover .card-icon-box {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 28px -6px color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 20%, rgba(15, 23, 42, 0.9));
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.65;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.bento-card:hover .card-index {
  color: var(--accent);
  opacity: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  transform: translateZ(16px);
  transition: color 0.25s ease;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 22px;
  flex-grow: 1;
  transform: translateZ(12px);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  transform: translateZ(18px);
}

.tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}

.bento-card:hover .tag {
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  color: var(--text-primary);
}

.tag:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-copy strong {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--cyan);
}

/* ==========================================================================
   Scroll / Entrance Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px 0 48px;
  }

  .countdown-card {
    min-width: 72px;
    padding: 14px 10px 12px;
  }

  .countdown-sep {
    display: none;
  }

  .notify-form {
    flex-direction: column;
    border-radius: 20px;
    padding: 10px;
  }

  .input-glow-wrap {
    padding: 4px 10px;
  }

  .btn-primary {
    width: 100%;
    padding: 14px 20px;
  }

  .status-pill {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

/* Hide custom cursor elements on touch devices */
@media (hover: none), (pointer: coarse) {
  .cursor-spotlight,
  .cursor-ring {
    display: none;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
