/* ==========================================================================
   Tuah Packet 2026 Revamp - Common & Base Stylesheet
   Brand Colors:
   - Amber Primary: #F59E0B / #F58220
   - Orange Secondary: #F97316
   - Gold Accent: #EAB308
   - Cyber Cyan: #06B6D4
   - Slate Dark: #090D16, #0F172A, #1E293B
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --tp-amber: #F59E0B;
  --tp-amber-hover: #D97706;
  --tp-orange: #F97316;
  --tp-orange-hover: #EA580C;
  --tp-gold: #FBBF24;
  --tp-cyan: #06B6D4;
  --tp-emerald: #10B981;
  --tp-rose: #F43F5E;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

/* ==========================================================================
   Shared Component Layouts & Typography
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}



.section {
  padding: 6rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.badge-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: currentColor;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   Navigation Shared Utility
   ========================================================================== */

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* Light sweep across the brand mark (clipped to the logo shape) */
.nav-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@supports (-webkit-mask-image: url("../images/logo-dark.png")) or (mask-image: url("../images/logo-dark.png")) {
  .nav-logo::after {
    background-image: linear-gradient(
      105deg,
      rgba(255, 255, 255, 0) 44%,
      rgba(255, 255, 255, 0.9) 50%,
      rgba(255, 255, 255, 0) 56%
    );
    background-repeat: no-repeat;
    background-size: 220% 100%;
    background-position: 150% 0;
    -webkit-mask: url("../images/logo-dark.png") left center / contain no-repeat;
            mask: url("../images/logo-dark.png") left center / contain no-repeat;
    animation: nav-logo-shine 5s ease-in-out infinite;
  }
}

@keyframes nav-logo-shine {
  0%,
  12% {
    background-position: 150% 0;
  }
  58%,
  100% {
    background-position: -50% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-logo::after {
    animation: none;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}



/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

@media (max-width: 900px) {
  .mobile-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
  }
}























/* ==========================================================================
   Hero data-centre media (shared by variant 1 & 3)
   ========================================================================== */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  display: block;
  filter: brightness(1.06) contrast(1.06) saturate(1.06);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(var(--hero-rgb, 8, 12, 21), 0.94) 0%,
      rgba(var(--hero-rgb, 8, 12, 21), 0.74) 42%,
      rgba(var(--hero-rgb, 8, 12, 21), 0.26) 100%),
    linear-gradient(180deg,
      rgba(var(--hero-rgb, 8, 12, 21), 0.34) 0%,
      rgba(var(--hero-rgb, 8, 12, 21), 0.10) 42%,
      var(--hero-base, #080C15) 100%),
    radial-gradient(55% 50% at 78% 20%, var(--hero-glow, rgba(245, 158, 11, 0.18)), transparent 72%);
}

.v1-hero .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-media::after {
    background:
      linear-gradient(180deg,
        rgba(var(--hero-rgb, 8, 12, 21), 0.74) 0%,
        rgba(var(--hero-rgb, 8, 12, 21), 0.90) 55%,
        var(--hero-base, #080C15) 100%),
      radial-gradient(55% 50% at 70% 15%, var(--hero-glow, rgba(245, 158, 11, 0.16)), transparent 72%);
  }
}

body.variant-1 {
  --hero-rgb: 8, 12, 21;
  --hero-base: #080C15;
  --hero-glow: rgba(245, 158, 11, 0.18);
}



/* ==========================================================================
   Interactive Tooltips & Modals
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  width: 100%;
  max-width: 600px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #F3F4F6;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: #9CA3AF;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #FFFFFF;
}
