/* ══════════════════════════════════════════════════════════
   PROIA DELIVERY — SENIOR SAAS DESIGN SYSTEM
   Theme: Custom Dark SaaS, Clean Emerald Brand (#10b981), High-Contrast Typography
   ══════════════════════════════════════════════════════════ */

:root {
  /* Core Brand Colors */
  --brand-green: #10b981;
  --brand-green-hover: #059669;
  --brand-green-dark: #047857;
  --brand-green-glow: rgba(16, 185, 129, 0.25);
  --brand-green-subtle: rgba(16, 185, 129, 0.12);
  --brand-green-border: rgba(16, 185, 129, 0.3);

  /* Neutrals & Dark Theme */
  --bg-main: #0a0e17;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --bg-input: #1e293b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.5);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Grid & Dimensions */
  --container-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--brand-green-glow);
}

/* ══════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Ambient Lighting */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1400px;
  height: 600px;
  background: radial-gradient(circle at 50% -10%, rgba(16, 185, 129, 0.08) 0%, rgba(10, 14, 23, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Uniform Global Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION BAR
   ══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: block;
}

.nav-brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.nav-brand-title span {
  color: var(--brand-green);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-green);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--brand-green-glow);
}

.btn-primary:hover {
  background: var(--brand-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════ */
.hero {
  padding: 145px 0 90px 0;
  position: relative;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: var(--brand-green-subtle);
  border: 1px solid var(--brand-green-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-green);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-green);
  border-radius: 50%;
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  color: var(--brand-green);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-guarantees {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-guarantees span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-guarantees svg {
  width: 16px;
  height: 16px;
  fill: var(--brand-green);
}

/* ══════════════════════════════════════════════════════════
   HERO MOCKUP (CLEAN WHATSAPP SIMULATION)
   ══════════════════════════════════════════════════════════ */
.hero-mockup-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.mockup-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mockup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
}

.mockup-avatar svg {
  width: 22px;
  height: 22px;
  fill: var(--brand-green);
}

.mockup-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.mockup-user-status {
  font-size: 0.75rem;
  color: var(--brand-green);
}

.mockup-chat {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-client {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-agent {
  align-self: flex-end;
  background: #064e3b;
  color: #ffffff;
  border-bottom-right-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.chat-audio-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
}

.chat-audio-pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Floating Thermal Printer Badge */
.floating-printer-badge {
  position: absolute;
  bottom: -18px;
  right: -12px;
  background: #111827;
  border: 1px solid var(--brand-green);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.floating-printer-badge svg {
  width: 28px;
  height: 28px;
  fill: var(--brand-green);
}

/* ══════════════════════════════════════════════════════════
   METRICS BAR
   ══════════════════════════════════════════════════════════ */
.metrics-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(17, 24, 39, 0.4);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-item-val {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.metric-item-val.highlight {
  color: var(--brand-green);
}

.metric-item-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   SECTIONS & TITLES
   ══════════════════════════════════════════════════════════ */
.section {
  padding: 90px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-green);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   FEATURE GRID (6 PILLARS) - CLEAN MONOCHROME/EMERALD ICONS
   ══════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-green-border);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--brand-green-subtle);
  border: 1px solid var(--brand-green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
  fill: var(--brand-green);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   CALCULATOR CARD (UNIFIED FULL CONTAINER WIDTH)
   ══════════════════════════════════════════════════════════ */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.calc-input-group {
  margin-bottom: 1.75rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.calc-value-badge {
  color: var(--brand-green);
  font-weight: 700;
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  -webkit-appearance: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-green);
  cursor: pointer;
  box-shadow: 0 0 12px var(--brand-green-glow);
}

.calc-result-box {
  background: #111827;
  border: 1px solid var(--brand-green-border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  text-align: center;
}

.calc-result-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.calc-result-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--brand-green);
  margin-bottom: 0.5rem;
}

.calc-result-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════════
   COMPARISON TABLE (UNIFIED WIDTH)
   ══════════════════════════════════════════════════════════ */
.comparison-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  width: 100%;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, 
.comparison-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.8);
}

.comparison-table th.highlight,
.comparison-table td.highlight {
  background: rgba(16, 185, 129, 0.08);
  border-left: 1px solid var(--brand-green-border);
  border-right: 1px solid var(--brand-green-border);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* ══════════════════════════════════════════════════════════
   FAQ ACCORDION (UNIFIED WIDTH)
   ══════════════════════════════════════════════════════════ */
.faq-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: var(--brand-green-border);
  background: var(--bg-card-hover);
}

.faq-question {
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  user-select: none;
}

.faq-icon {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  fill: var(--brand-green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.75rem 1.5rem 1.75rem;
}

/* ══════════════════════════════════════════════════════════
   FINAL CTA BANNER
   ══════════════════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(17, 24, 39, 0.9) 100%);
  border: 1px solid var(--brand-green-border);
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.cta-banner h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.cta-banner p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
}

/* ══════════════════════════════════════════════════════════
   STICKY FLOATING WHATSAPP BUTTON
   ══════════════════════════════════════════════════════════ */
.floating-wa-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: var(--brand-green);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.floating-wa-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.floating-wa-btn:hover {
  transform: scale(1.08);
  background: var(--brand-green-hover);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 14, 23, 0.95);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.85rem;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 115px 0 60px 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .calculator-card {
    padding: 1.75rem;
  }
  .floating-printer-badge {
    position: static;
    margin-top: 1rem;
  }
}
