/* ==========================================================================
   PERCON EXPERT - STYLESHEET
   Design System, Glassmorphism, Micro-interactions & Responsive Layout
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --color-navy-darkest: #050b14;
  --color-navy-darker:  #081220;
  --color-navy-dark:    #0c1a2e;
  --color-navy-card:    rgba(14, 27, 48, 0.75);
  --color-navy-card-border: rgba(202, 160, 53, 0.22);
  --color-navy-surface: #13243d;

  /* Gold Accents (from PERCON logo) */
  --color-gold-light:   #f4d37c;
  --color-gold:         #caa035;
  --color-gold-hover:   #deb64b;
  --color-gold-dark:    #9c771c;
  --color-gold-glow:    rgba(202, 160, 53, 0.35);

  /* WhatsApp Green */
  --color-whatsapp:       #25d366;
  --color-whatsapp-hover: #20bd5a;
  --color-whatsapp-glow:  rgba(37, 211, 102, 0.3);

  /* Email Blue */
  --color-email:       #38bdf8;
  --color-email-hover: #0ea5e9;
  --color-email-glow:  rgba(56, 189, 248, 0.3);

  /* Typography Colors */
  --text-primary:   #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-white:     #ffffff;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-navy-darkest);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.glow-1 {
  width: 550px;
  height: 550px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(202, 160, 53, 0.25) 0%, rgba(12, 26, 46, 0) 70%);
}

.glow-2 {
  width: 650px;
  height: 650px;
  top: 30%;
  right: -200px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(12, 26, 46, 0) 70%);
  animation-duration: 22s;
  animation-delay: -5s;
}

.glow-3 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: 20%;
  background: radial-gradient(circle, rgba(202, 160, 53, 0.18) 0%, rgba(12, 26, 46, 0) 70%);
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes floatAmbient {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(40px) scale(1.08); }
  100% { transform: translateY(-30px) scale(0.95); }
}

/* Subtle Grid Background Pattern */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Page Layout */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
}

/* ==========================================================================
   Header & Logo
   ========================================================================== */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0 2.5rem;
}

.brand-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-card {
  background: #ffffff;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 35px rgba(202, 160, 53, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 1), 0 0 45px rgba(202, 160, 53, 0.5);
}

.brand-logo {
  max-width: 280px;
  height: auto;
  display: block;
  object-fit: contain;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(202, 160, 53, 0.12);
  border: 1px solid rgba(202, 160, 53, 0.35);
  border-radius: var(--radius-full);
  color: var(--color-gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3.5rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.sparkle-icon {
  color: var(--color-gold-light);
  font-size: 1.1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fce9a5 0%, #caa035 55%, #dfb140 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-description strong {
  color: var(--text-white);
  font-weight: 600;
}

/* ==========================================================================
   Launch Card & Progress Tracker
   ========================================================================== */
.launch-card {
  background: var(--color-navy-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.launch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.launch-percent {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-gold-light);
}

.launch-badge {
  background: rgba(202, 160, 53, 0.15);
  border: 1px solid rgba(202, 160, 53, 0.3);
  color: var(--color-gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.progress-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #caa035 0%, #f4d37c 80%, #ffffff 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 0 14px rgba(202, 160, 53, 0.6);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

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

.stage-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stage-item.completed {
  color: var(--text-white);
}

.stage-check {
  width: 20px;
  height: 20px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.stage-pulse {
  width: 14px;
  height: 14px;
  background: var(--color-gold);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--color-gold);
  animation: pulseDot 1.5s infinite;
  flex-shrink: 0;
  margin: 3px;
}

/* ==========================================================================
   Section Headings
   ========================================================================== */
.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.subheading-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==========================================================================
   Contact Cards (WhatsApp & Email)
   ========================================================================== */
.contact-section {
  margin-bottom: 4.5rem;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 980px;
  margin: 0 auto;
}

.contact-card {
  position: relative;
  background: var(--color-navy-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
}

.whatsapp-card:hover {
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), 0 0 30px var(--color-whatsapp-glow);
}

.email-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), 0 0 30px var(--color-email-glow);
}

.card-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-smooth);
}

.contact-card:hover .card-icon-wrapper {
  transform: scale(1.08);
}

.whatsapp-card .card-icon-wrapper {
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--color-whatsapp);
}

.email-card .card-icon-wrapper {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--color-email);
}

.contact-icon {
  width: 30px;
  height: 30px;
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.card-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.card-subtext {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  flex: 1;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

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

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #04210e;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-hover);
  color: #04210e;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

.btn-email {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.btn-email:hover {
  background: #0369a1;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.5);
  transform: translateY(-2px);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy svg {
  width: 18px;
  height: 18px;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-gold {
  background: linear-gradient(135deg, #e5be57 0%, #caa035 100%);
  color: #070e1b;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(202, 160, 53, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f3cd6e 0%, #d8ad3e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(202, 160, 53, 0.5);
}

/* ==========================================================================
   Services Preview Section
   ========================================================================== */
.services-preview-section {
  margin-bottom: 4.5rem;
}

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

.service-card {
  background: rgba(14, 27, 48, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background: rgba(19, 36, 61, 0.8);
  border-color: rgba(202, 160, 53, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.4);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Notify / Lead Capture Section
   ========================================================================== */
.notify-section {
  margin-bottom: 3.5rem;
}

.notify-card {
  background: linear-gradient(135deg, rgba(14, 27, 48, 0.9) 0%, rgba(10, 20, 36, 0.9) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(202, 160, 53, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-card), 0 0 40px rgba(202, 160, 53, 0.1);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.notify-badge {
  display: inline-block;
  background: rgba(202, 160, 53, 0.15);
  border: 1px solid rgba(202, 160, 53, 0.3);
  color: var(--color-gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.notify-card h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.6rem;
}

.notify-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.notify-form {
  max-width: 780px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: stretch;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  height: 100%;
  padding: 0.9rem 1.1rem;
  background: rgba(5, 11, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.form-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(202, 160, 53, 0.2);
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 24px;
  transition: all var(--transition-fast);
}

.form-feedback.success {
  color: #4ade80;
  font-weight: 600;
}

.form-feedback.error {
  color: #f87171;
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  background: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  max-width: 170px;
  height: auto;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contacts {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-divider {
  color: var(--text-muted);
}

.footer-bottom {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f1f38;
  color: #ffffff;
  border: 1px solid rgba(202, 160, 53, 0.4);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(202, 160, 53, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast-icon {
  width: 20px;
  height: 20px;
  color: var(--color-gold-light);
  flex-shrink: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .btn-gold {
    padding: 0.95rem;
  }

  .launch-stages {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 1rem 1rem 2rem;
  }

  .logo-card {
    padding: 0.75rem 1.25rem;
  }

  .brand-logo {
    max-width: 210px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions .btn,
  .card-actions .btn-copy {
    width: 100%;
  }

  .card-value {
    font-size: 1.15rem;
  }

  .notify-card {
    padding: 2rem 1.25rem;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    justify-content: center;
  }
}
