/* ============================================================
   NokuBiz.com — Custom Stylesheet v1.0
   Companion to Tailwind CSS CDN
   Author: NokuBiz Frontend Team
   ============================================================ */

/* === CSS Custom Properties === */
:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-deeper: #3730A3;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --text: #0F172A;
  --text-muted: #64748B;
  --surface: #F8FAFC;
  --border: #E2E8F0;
  --white: #ffffff;
  --shadow-soft: 0 4px 24px rgba(15,23,42,0.07);
  --shadow-card: 0 2px 12px rgba(15,23,42,0.06);
  --shadow-elevated: 0 12px 40px rgba(79,70,229,0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* === Global Resets === */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

/* === Custom Scrollbar === */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* === Focus States === */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.gradient-text {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 45%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(79,70,229,0.07);
  border: 1px solid rgba(79,70,229,0.14);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
}

.section-label-light {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.3s ease;
  padding: 1.25rem 0;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(15,23,42,0.08), 0 4px 20px rgba(15,23,42,0.06);
  padding: 0.75rem 0;
}

#navbar.scrolled .nav-logo { filter: none; }
#navbar.scrolled .nav-link { color: var(--text-muted); }
#navbar.scrolled .nav-link:hover { color: var(--primary); }

.nav-link {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.375rem 0.625rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

#navbar.scrolled .nav-link:hover {
  background: rgba(79,70,229,0.06);
}

#navbar.nav-page {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(15,23,42,0.08);
  padding: 0.75rem 0;
}

#navbar.nav-page .nav-link { color: var(--text-muted); }
#navbar.nav-page .nav-link:hover { color: var(--primary); background: rgba(79,70,229,0.06); }

/* Mobile Menu */
#mobile-menu {
  display: none;
  transform: translateY(-6px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */

.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background: #0F172A;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active .hero-slide__bg {
  transform: scale(1);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 15, 40, 0.80) 0%,
    rgba(15, 23, 42, 0.55) 55%,
    rgba(79, 70, 229, 0.25) 100%
  );
}

/* Slider Controls */
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  flex-shrink: 0;
}

.slider-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 4px;
}

#slider-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7C3AED);
  z-index: 10;
  width: 0%;
  transition: width 5s linear;
}

/* ============================================================
   GLASSMORPHISM SUBDOMAIN WIDGET
   ============================================================ */

.subdomain-widget {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-xl);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.18);
  padding: 1.5rem;
}

.subdomain-input {
  background: rgba(255,255,255,0.96);
  border: 1.5px solid rgba(79,70,229,0.18);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  outline: none;
  transition: var(--transition);
  width: 100%;
  min-width: 0;
}

.subdomain-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.14);
  background: #fff;
}

.subdomain-input::placeholder { color: #94A3B8; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.8125rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  padding: 0.8125rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  border: 1.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79,70,229,0.04);
  transform: translateY(-1px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--primary);
  padding: 0.8125rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-white:hover {
  background: #F0F4FF;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.25);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  padding: 0.8125rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
}

/* ============================================================
   CARDS
   ============================================================ */

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(79,70,229,0.2);
}

.solution-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  background: #fff;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(15,23,42,0.14);
}

.solution-card .card-img {
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover .card-img { transform: scale(1.05); }

/* Pricing Card */
.pricing-card {
  background: #fff;
  border-radius: var(--radius-xl);
  position: relative;
  box-shadow:
    0 0 0 2px rgba(79,70,229,0.18),
    0 28px 72px rgba(79,70,229,0.12);
}

.pricing-glow {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(135deg, #4F46E5, #7C3AED, #2563EB);
  z-index: -1;
}

/* Example/Portfolio Cards */
.portfolio-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(15,23,42,0.1);
  border-color: rgba(79,70,229,0.18);
}

/* ============================================================
   HOW IT WORKS — STEPS
   ============================================================ */

.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(79,70,229,0.35);
}

.step-line {
  width: 2px;
  background: linear-gradient(180deg, rgba(79,70,229,0.5) 0%, rgba(79,70,229,0.05) 100%);
  flex: 1;
  min-height: 48px;
  margin-left: 25px;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.faq-item { border-bottom: 1px solid var(--border); }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.375rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color 0.2s ease;
}

.faq-trigger:hover { color: var(--primary); }

.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon.rotated { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    padding 0.3s ease;
  padding-bottom: 0;
}

.faq-answer.open {
  max-height: 600px;
  opacity: 1;
  padding-bottom: 1.25rem;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.72s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.72s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition:
    opacity 0.72s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.72s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 0.72s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.72s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition:
    opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger grid children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger.visible > *:nth-child(1)  { opacity:1; transform:translateY(0); transition-delay:0.04s; }
.stagger.visible > *:nth-child(2)  { opacity:1; transform:translateY(0); transition-delay:0.09s; }
.stagger.visible > *:nth-child(3)  { opacity:1; transform:translateY(0); transition-delay:0.14s; }
.stagger.visible > *:nth-child(4)  { opacity:1; transform:translateY(0); transition-delay:0.19s; }
.stagger.visible > *:nth-child(5)  { opacity:1; transform:translateY(0); transition-delay:0.24s; }
.stagger.visible > *:nth-child(6)  { opacity:1; transform:translateY(0); transition-delay:0.29s; }
.stagger.visible > *:nth-child(7)  { opacity:1; transform:translateY(0); transition-delay:0.34s; }
.stagger.visible > *:nth-child(8)  { opacity:1; transform:translateY(0); transition-delay:0.39s; }
.stagger.visible > *:nth-child(9)  { opacity:1; transform:translateY(0); transition-delay:0.44s; }
.stagger.visible > *:nth-child(10) { opacity:1; transform:translateY(0); transition-delay:0.49s; }

/* ============================================================
   MARQUEE (Clients Strip)
   ============================================================ */

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

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

/* ============================================================
   STAT / METRICS
   ============================================================ */

.stat-block {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.stat-block:hover {
  background: rgba(255,255,255,0.11);
  transform: translateY(-3px);
}

/* ============================================================
   INDUSTRY BADGE (Hero Slides)
   ============================================================ */

.industry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(79,70,229,0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.15);
  text-transform: uppercase;
}

/* ============================================================
   TRUST BADGES / ICONS
   ============================================================ */

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   PRICING CHECKLIST
   ============================================================ */

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.check-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(79,70,229,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(79,70,229,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 50%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer .footer-link {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

footer .footer-link:hover { color: #fff; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-input {
  width: 100%;
  background: #F8FAFC;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.8125rem 1rem;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.contact-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.contact-input::placeholder { color: #94A3B8; }

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(37,211,102,0.35);
}

.whatsapp-btn:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.45);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 40;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: var(--transition);
  text-decoration: none;
  animation: float-bob 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
}

.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}

.legal-content p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #475569;
  line-height: 1.8;
}

/* ============================================================
   404 PAGE
   ============================================================ */

.error-404 {
  font-size: clamp(7rem, 20vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   ACTIVE NAV LINK
   ============================================================ */

/* Transparent hero navbar — active link is bright white */
.nav-link.active {
  color: #fff !important;
  font-weight: 700;
}

/* White / scrolled / nav-page navbar — active link is indigo */
#navbar.scrolled .nav-link.active,
#navbar.nav-page .nav-link.active {
  color: var(--primary) !important;
  font-weight: 700;
  background: rgba(79, 70, 229, 0.07);
  border-radius: 8px;
}

/* Mobile menu active item */
.mobile-nav-item.active {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.07);
  font-weight: 600;
}

/* Mobile active item on dark (hero) menu */
.mobile-nav-item-dark.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */

@media (max-width: 640px) {
  .hero-slider { min-height: 620px; }
  .subdomain-widget { padding: 1.125rem; }
  .btn-primary, .btn-secondary, .btn-white { padding: 0.75rem 1.375rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-slide__bg { transform: none !important; }
}
