/* ==========================================================================
   MEGBÍZÁSISZERZŐDÉS.EU - DESIGN SYSTEM & STYLES
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-dark: #070a12;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-input: rgba(15, 23, 42, 0.9);
  
  --emerald-main: #10b981;
  --emerald-light: #34d399;
  --emerald-dark: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  
  --cyan-accent: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.2);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-emerald: rgba(16, 185, 129, 0.4);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Effects */
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.35);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Utility Containers */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--emerald-light) 50%, var(--cyan-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald {
  color: var(--emerald-light);
}

/* Glassmorphism Card */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-main) 0%, var(--emerald-dark) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

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

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition-normal);
  background: rgba(7, 10, 18, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--emerald-main), var(--cyan-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--emerald-light);
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-emerald);
  border-radius: 30px;
  color: var(--emerald-light);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.3rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--emerald-light);
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-media {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-emerald);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.2);
}

.hero-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-img-wrapper:hover img {
  transform: scale(1.02);
}

.live-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--emerald-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--emerald-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-light);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  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 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--emerald-light);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Interactive Demo Builder Section */
.demo-section {
  padding: 100px 0;
  position: relative;
}

.demo-card {
  padding: 40px;
}

.demo-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  overflow-x: auto;
}

.demo-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.demo-tab-btn.active, .demo-tab-btn:hover {
  color: #fff;
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--border-emerald);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald-main);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* Document Checklist */
.doc-checklist {
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.doc-checklist h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald-light);
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.doc-item.checked {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}

.doc-item .doc-title {
  font-size: 0.92rem;
  font-weight: 500;
}

.doc-item .badge-auto {
  font-size: 0.75rem;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-light);
  border-radius: 4px;
  font-weight: 600;
}

/* Signature Pad Box */
.signature-box {
  background: rgba(10, 15, 30, 0.9);
  border: 2px dashed var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  position: relative;
}

.signature-box canvas {
  width: 100%;
  height: 140px;
  background: #0d1322;
  border-radius: var(--radius-sm);
  cursor: crosshair;
  touch-action: none;
}

.sig-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.timestamp-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-emerald);
}

/* Feature Showcase */
.features-section {
  padding: 100px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-content h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  margin-bottom: 30px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.98rem;
  color: var(--text-sub);
}

.feature-list li i {
  color: var(--emerald-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.feature-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-emerald);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.feature-img-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* Interactive Scanner Simulator Card */
.scanner-demo-box {
  background: var(--bg-card);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
}

.scan-viewfinder {
  height: 180px;
  border: 2px dashed var(--emerald-light);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.03);
  overflow: hidden;
}

.scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--emerald-light), transparent);
  box-shadow: 0 0 15px var(--emerald-light);
  animation: scanAnim 2.5s ease-in-out infinite;
}

@keyframes scanAnim {
  0% { top: 0%; }
  50% { top: 95%; }
  100% { top: 0%; }
}

.scanned-output-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.scanned-field {
  background: rgba(10, 15, 30, 0.8);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.scanned-field span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Pricing Section */
.pricing-section {
  padding: 100px 0;
  background: rgba(10, 15, 26, 0.4);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.toggle-switch {
  width: 60px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 4px;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border-color);
}

.toggle-knob {
  width: 24px;
  height: 24px;
  background: var(--emerald-light);
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px var(--emerald-light);
}

.toggle-switch.active .toggle-knob {
  transform: translateX(28px);
}

.discount-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-light);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pricing-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-normal);
}

.pricing-card.popular {
  border-color: var(--emerald-main);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.25);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, var(--bg-card) 100%);
}

.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald-main);
  color: #000;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin: 20px 0 6px;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-sub);
}

.pricing-features li i {
  color: var(--emerald-light);
}

/* Testimonials */
.testimonials-section {
  padding: 100px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  padding: 32px;
}

.stars {
  color: #fbbf24;
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
}

.quote-text {
  font-size: 0.98rem;
  color: var(--text-sub);
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.6;
}

.author-info h5 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition: var(--transition-fast);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.98rem;
  display: none;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--emerald-light);
}

/* Modal Form */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  max-width: 540px;
  width: 100%;
  padding: 40px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Notification Toast */
.toast-notice {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--emerald-main);
  color: var(--text-main);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-normal);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
  background: #04060c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

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

.footer-links a:hover {
  color: var(--emerald-light);
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid, .feature-row, .demo-grid, .pricing-grid, .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .feature-row.reverse {
    direction: ltr;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
