/* ==========================================================================
   TapNFit — Modern Full-Width Platform Coming Soon Stylesheet
   Domain: tapnfit.in
   Ecosystem: Gym Owners • Coaches • Athletes • iOS & Android
   ========================================================================== */

:root {
  /* Color System */
  --bg-dark: #07090e;
  --bg-surface: rgba(15, 23, 42, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-card: rgba(15, 23, 42, 0.5);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-card: rgba(255, 255, 255, 0.1);
  --border-glass-hover: rgba(34, 197, 94, 0.45);

  --accent-primary: #22c55e;        /* Energetic Neon Green */
  --accent-primary-hover: #16a34a;
  --accent-glow: rgba(34, 197, 94, 0.35);
  --accent-cyan: #06b6d4;           /* Electric Cyan */
  --accent-amber: #f59e0b;

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

  /* Typography */
  --font-display: 'Syne', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-base: 0.3s;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  height: 100dvh;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Full-Screen Video Background
   ========================================================================== */
.video-background-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg-dark);
}

.video-element {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  transition: opacity 1s var(--ease-smooth);
}

/* Ken Burns animated fallback background */
.animated-fallback-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('../assets/images/fitness-fallback.svg');
  opacity: 1;
  transform: scale(1);
  animation: kenBurns 28s ease-in-out infinite alternate;
  z-index: 1;
  transition: opacity 1.2s var(--ease-smooth);
}

.video-loaded .animated-fallback-bg {
  opacity: 0.15; /* Keep faint texture underneath */
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(-1%, -1%);
  }
  100% {
    transform: scale(1.04) translate(1%, 0.5%);
  }
}

/* Multi-layered dark gradient & vignette for pristine legibility */
.overlay-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(7, 9, 14, 0.48) 0%,
    rgba(7, 9, 14, 0.85) 65%,
    rgba(7, 9, 14, 0.97) 100%
  );
  z-index: 2;
}

.overlay-glow {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 40% at 50% 18%, rgba(34, 197, 94, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 85%, rgba(6, 182, 212, 0.08), transparent 70%);
  z-index: 3;
}

.overlay-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.6;
  z-index: 4;
}

/* ==========================================================================
   Main Viewport & Fluid Layout
   ========================================================================== */
.landing-viewport {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 2.2rem) clamp(1rem, 4vw, 3.5rem);
  padding-top: calc(clamp(1rem, 2.5vw, 2.2rem) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(clamp(1rem, 2.5vw, 2.2rem) + env(safe-area-inset-bottom, 0px));
  padding-left: calc(clamp(1rem, 4vw, 3.5rem) + env(safe-area-inset-left, 0px));
  padding-right: calc(clamp(1rem, 4vw, 3.5rem) + env(safe-area-inset-right, 0px));
}

.landing-viewport::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
  transition: transform var(--duration-base) var(--ease-smooth), border-color var(--duration-base);
}

.brand:hover .brand-icon {
  transform: scale(1.05);
  border-color: rgba(34, 197, 94, 0.55);
}

.logo-svg {
  width: 26px;
  height: 26px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.accent-text {
  color: var(--accent-primary);
  text-shadow: 0 0 16px var(--accent-glow);
}

.brand-domain {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Status Indicator Pill */
.header-status {
  display: flex;
  align-items: center;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e2e8f0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  opacity: 0.75;
  animation: pulsePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulsePing {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ==========================================================================
   Hero Center Section
   ========================================================================== */
.hero-section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  padding: 1.2rem 0;
}

.hero-inner {
  max-width: 960px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.05rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 9999px;
  font-size: clamp(0.68rem, 1.1vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #86efac;
  margin-bottom: clamp(0.9rem, 2vw, 1.3rem);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.15);
  animation: floatBadge 3.5s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: clamp(0.9rem, 1.8vw, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-title .line-1 {
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-title .line-2.gradient-text {
  background: linear-gradient(135deg, #22c55e 15%, #06b6d4 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 35px rgba(34, 197, 94, 0.35));
}

.hero-description {
  font-size: clamp(0.95rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 740px;
  margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
}

/* ==========================================================================
   3 Ecosystem Pillar Cards (Gym Owners • Coaches • Athletes)
   ========================================================================== */
.ecosystem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1rem);
  width: 100%;
  max-width: 900px;
  margin-bottom: clamp(1.2rem, 2vw, 1.7rem);
}

.eco-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: clamp(0.75rem, 1.4vw, 1rem) clamp(0.85rem, 1.6vw, 1.15rem);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  text-align: left;
  transition: all var(--duration-base) var(--ease-smooth);
}

.eco-card:hover {
  border-color: var(--border-glass-hover);
  background: rgba(15, 23, 42, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(34, 197, 94, 0.15);
}

.eco-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eco-content {
  display: flex;
  flex-direction: column;
}

.eco-title {
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}

.eco-desc {
  font-size: clamp(0.74rem, 0.95vw, 0.82rem);
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   Platform Apps Availability Strip (iOS • Android • Web)
   ========================================================================== */
.app-availability-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.4rem, 2.5vw, 1.9rem);
  flex-wrap: wrap;
  justify-content: center;
}

.app-strip-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.app-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #e2e8f0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s var(--ease-smooth);
}

.app-pill svg {
  color: var(--accent-primary);
}

.app-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
  color: #ffffff;
}

/* ==========================================================================
   Interactive Action Dock
   ========================================================================== */
.action-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  width: 100%;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.7rem;
  background: linear-gradient(135deg, var(--accent-primary), #16a34a);
  color: #07090e;
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  font-weight: 700;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.4);
  transition: all var(--duration-base) var(--ease-smooth);
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.65);
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

.cta-button:active {
  transform: translateY(0) scale(0.98);
}

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: clamp(0.84rem, 1.05vw, 0.92rem);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
}

.pill-button:hover {
  border-color: var(--border-glass-hover);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateY(-2px);
}

.pill-button:active {
  transform: translateY(0);
}

/* ==========================================================================
   Footer & Ambient Controls
   ========================================================================== */
.footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.1rem;
  flex-shrink: 0;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.copyright strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Ambient Controls */
.video-controls-dock {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.scene-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
}

.scene-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.scene-btn:hover {
  color: var(--text-primary);
}

.scene-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.control-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Toast Feedback Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(34, 197, 94, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 197, 94, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #f8fafc;
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease-smooth);
}

.toast svg {
  color: var(--accent-primary);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablets / Medium Screens */
@media (max-width: 880px) {
  .ecosystem-cards {
    grid-template-columns: 1fr;
    max-width: 580px;
    gap: 0.6rem;
  }

  .eco-card {
    padding: 0.75rem 1rem;
  }
}

/* Mobile Devices (Phones 320px - 640px) */
@media (max-width: 640px) {
  .landing-viewport {
    padding: 1.1rem 1rem;
  }

  .brand-name {
    font-size: 1.22rem;
  }

  .status-text {
    font-size: 0.65rem;
  }

  .hero-section {
    padding: 0.8rem 0;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8.5vw, 2.7rem);
    letter-spacing: -0.02em;
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
  }

  .ecosystem-cards {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
  }

  .eco-card {
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
  }

  .eco-icon-wrap {
    width: 32px;
    height: 32px;
  }

  .app-availability-strip {
    margin-bottom: 1.3rem;
  }

  .app-pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
  }

  .action-dock {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .cta-button, .pill-button {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.1rem;
  }

  .footer {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding-top: 0.85rem;
  }

  .video-controls-dock {
    width: 100%;
    justify-content: center;
  }
}

/* Ultra-wide Displays (1920px+) */
@media (min-width: 1920px) {
  .hero-inner {
    max-width: 1120px;
  }

  .ecosystem-cards {
    max-width: 1040px;
  }
}
