/* ==========================================================================
   TANXMEDIAA (TXM) — Luxury Design System & Master Stylesheet
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-base: #08080A;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(212, 175, 55, 0.35);
  
  --text-primary: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --accent-gold: #D4AF37;
  --accent-gold-glow: rgba(212, 175, 55, 0.2);
  --accent-cyan: #38BDF8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --whatsapp-green: #25D366;
  
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --blur-glass: blur(20px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.05) 0%, transparent 60%),
              radial-gradient(circle at 90% 40%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
              var(--bg-base);
  background-attachment: fixed;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

/* Badges & Micro-tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-glass);
  color: var(--accent-gold);
}

.badge-cyan {
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.2);
}

/* Glassmorphic Container System */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-glow);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px var(--accent-gold-glow);
}

/* Button System */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  min-height: 48px;
}

.btn-primary {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
  color: #08080A;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
  background: #FFFFFF;
}

.btn-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #AA820A 100%);
  color: #08080A;
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-gold-glow);
}

.btn-glass {
  background: var(--bg-card);
  border-color: var(--border-glass);
  color: var(--text-primary);
  backdrop-filter: var(--blur-glass);
}

.btn-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.btn-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.3);
  color: #25D366;
}

.btn-whatsapp:hover {
  background: #25D366;
  color: #08080A;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.4);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
  padding: 1.25rem 0;
}

.header.scrolled {
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.9rem 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--accent-gold);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Mobile Navigation Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 380px;
  height: 100vh;
  background: rgba(12, 12, 16, 0.96);
  backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-glass);
  z-index: 999;
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Floating WhatsApp Lead Component */
.txm-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(37, 211, 102, 0.35);
  backdrop-filter: var(--blur-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.6), 0 0 20px rgba(37, 211, 102, 0.25);
  transition: var(--transition-smooth);
}

.txm-whatsapp-btn:hover {
  transform: scale(1.08) translateY(-3px);
  border-color: #25D366;
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.txm-whatsapp-btn .pulse-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  to {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.08;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 20%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

/* Abstract 3D Glass Visual Representation */
.visual-card-wrap {
  position: relative;
}

.visual-sphere-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(56, 189, 248, 0.08) 60%, transparent 80%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  z-index: 1;
}

.mockup-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-preview-card {
  background: rgba(18, 18, 24, 0.7);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.mockup-preview-card:hover {
  transform: translateX(8px);
  border-color: var(--border-glass-glow);
}

.mockup-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.25rem;
}

/* Sections General */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Feature & Service Cards */
.feature-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  color: transparent;
  margin-bottom: 1.25rem;
  display: block;
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

/* Process Timeline */
.process-grid-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-preview-item {
  position: relative;
}

.process-step-badge {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.timeline-v {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 3rem;
  border-left: 1px solid var(--border-glass);
}

.timeline-v-item {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-v-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-3rem - 6px);
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold);
}

.timeline-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.3);
  color: transparent;
  margin-bottom: 0.5rem;
}

/* Note Callout */
.callout-box {
  background: rgba(212, 175, 55, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 3.5rem;
}

.callout-icon {
  font-size: 1.75rem;
  color: var(--accent-gold);
}

/* Portfolio Filters & Grid */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.08);
}

.portfolio-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass-glow);
}

.portfolio-preview {
  height: 240px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.portfolio-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.portfolio-info {
  padding: 1.75rem;
}

/* Pricing Matrix Cards */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: rgba(212, 175, 55, 0.4);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.pricing-header {
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 1rem 0 0.5rem;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-checklist li.included {
  color: var(--text-primary);
}

.feature-checklist li.excluded {
  color: var(--text-dim);
  text-decoration: line-through;
}

.check-icon {
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.cross-icon {
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Accordion FAQ */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-chevron {
  transition: transform 0.3s ease;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 2rem;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 1.75rem;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

/* Footer Specs */
.footer {
  border-top: 1px solid var(--border-glass);
  background: rgba(6, 6, 8, 0.95);
  padding: 5rem 0 2.5rem;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .btn-group {
    justify-content: center;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-action {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .grid-2, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .timeline-v {
    padding-left: 2rem;
  }
  .timeline-dot {
    left: calc(-2rem - 6px);
  }
}
