/* Compact, elegant, professional styles */
:root {
  --bg: #0f172a;
  --surface: #111827;
  --card: #0b1220;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --border: #1f2937;
  --success: #22c55e;
  --error: #ef4444;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-card: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.25);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    linear-gradient(120deg, #0b1220, #0d1a34 60%, #0b1220);
  line-height: 1.6;
  min-height: 100vh;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.03) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(139, 92, 246, 0.03) 50%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(4,7,18,0.6);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: 0.2px; }
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 8px 10px;
  margin-left: auto;
}
.nav-toggle:focus { outline: none; box-shadow: 0 0 0 4px rgba(59,130,246,0.15); }
.nav-toggle-icon { width: 20px; height: 20px; display: block; }
.nav { display: flex; gap: 14px; }
.nav-link { 
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; 
  transition: all 0.2s ease;
}
.nav-link:hover { 
  color: var(--text); background: rgba(255,255,255,0.08); 
  transform: translateY(-1px);
}
.nav-icon { 
  width: 16px; height: 16px; 
  transition: transform 0.2s ease;
}
.nav-link:hover .nav-icon { transform: scale(1.1); }

.site-main { padding: 30px 0 60px; }
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; background: rgba(4,7,18,0.5); }
.site-footer .footer-inner { display: grid; gap: 8px; justify-items: center; }
.footer-top { display: flex; justify-content: center; }
.footer-nav { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-link { color: var(--muted); text-decoration: none; }
.footer-link:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { text-align: center; }
.footer-note { margin: 4px 0; }

.trust { margin-top: 16px; }
.trust-list { margin: 0; padding-left: 18px; color: var(--muted); }
.trust-list li { margin: 6px 0; }
.hero { text-align: center; padding: 40px 0; }
.hero-badges { 
  display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; 
  flex-wrap: wrap;
}
.badge { 
  display: flex; align-items: center; gap: 6px;
  background: var(--gradient-card); 
  border: 1px solid var(--border); 
  border-radius: 20px; 
  padding: 6px 12px; 
  font-size: 12px; 
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.badge:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.badge-icon { width: 14px; height: 14px; }

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-feature-settings: 'ss01', 'ss02';
}
.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--muted);
  margin: 0 0 40px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-form { 
  background: var(--gradient-card); 
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.input-group { position: relative; }
.input-icon { 
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted);
  pointer-events: none;
}
.input-with-icon { padding-left: 44px; }

.button-enhanced { 
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gradient-primary);
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.button-enhanced:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-md);
}
.button-enhanced:active { transform: translateY(0); }
.button-icon { width: 18px; height: 18px; }

.note { 
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); margin-top: 20px; 
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
}
.note-icon { width: 16px; height: 16px; color: #fbbf24; }

.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}
.form-card { max-width: 640px; margin: 0 auto; display: grid; gap: 10px; }
.label { text-align: left; font-weight: 600; color: var(--muted); }
.input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.8); color: var(--text);
  font-size: 16px;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.input:focus { 
  outline: none; 
  border-color: var(--primary); 
  box-shadow: 0 0 0 4px rgba(59,130,246,0.15), var(--shadow-sm);
  background: rgba(11, 18, 32, 0.95);
}
.button {
  display: inline-block; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border);
  text-decoration: none; color: var(--text); background: rgba(255,255,255,0.02);
}
.button.primary { background: linear-gradient(160deg, var(--primary), var(--primary-hover)); border: none; }
.button.primary:hover { filter: brightness(1.05); }

.alert { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.alert-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.35); }
.alert-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.35); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.note { color: var(--muted); margin-top: 16px; }
.link { color: var(--primary); text-decoration: none; }
.link:hover { text-decoration: underline; }

.page-title { font-size: 22px; margin: 0 0 12px; }
.content { display: grid; gap: 12px; }

.doc-card { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: start; }
.doc-media { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #0b1220; }
.doc-image { width: 100%; height: auto; display: block; }
.doc-placeholder { color: var(--muted); padding: 40px; text-align: center; }
.doc-body { display: grid; gap: 10px; }
.doc-desc { color: var(--text); opacity: 0.92; }
.doc-meta { color: var(--muted); }
.actions { margin-top: 6px; }

.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
.countdown { display: grid; justify-items: center; align-items: center; padding: 16px; border: 1px dashed var(--border); border-radius: 12px; }
.count-value { font-size: 42px; font-weight: 700; }
.count-label { color: var(--muted); }
.download-form { display: grid; gap: 10px; }
.captcha { display: grid; gap: 8px; }

@media (max-width: 720px) {
  .doc-card, .download-grid { grid-template-columns: 1fr; }
}

/* Mobile Navigation */
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px 14px;
    background: rgba(4,7,18,0.9);
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
}
.section-title { font-size: 18px; margin: 0 0 10px; }
.features { margin-top: 16px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-item { 
  background: var(--gradient-card); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 20px; 
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.feature-icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.feature-icon svg {
  width: 24px; height: 24px;
  color: white;
}
.feature-title { margin: 0 0 8px; font-weight: 600; font-size: 16px; }

.how-it-works { margin-top: 16px; }
.steps { margin: 0; padding-left: 18px; color: var(--text); }
.steps li { margin: 6px 0; }
.cta { margin-top: 10px; }

.faq { margin-top: 16px; }
.faq-item { padding: 8px 0; }
.faq-item > summary { cursor: pointer; font-weight: 600; }
.faq-item[open] > summary { color: var(--primary); }

.breadcrumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 10px; }
.crumb { color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--text); }
.sep { opacity: 0.6; }

.doc-details { margin: 0; padding-left: 18px; }
.doc-details li { margin: 6px 0; }

/* Loading States & Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes slideInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes progressBar {
  0% { width: 0%; }
  100% { width: 100%; }
}

.loading { animation: pulse 2s infinite; }
.spinning { animation: spin 1s linear infinite; }
.slide-in { animation: slideInUp 0.6s ease-out; }
.fade-in { animation: fadeIn 0.4s ease-out; }

/* Professional Loading Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 16px 0;
}
.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: progressBar 2s ease-in-out;
}

/* Shimmer Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 2s infinite;
}

.button:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.input:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

/* Form Validation States */
.input.valid {
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.input.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}
.validation-message {
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.validation-message.success {
  color: var(--success);
}
.validation-message.error {
  color: var(--error);
}
.validation-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Social Proof Section */
.social-proof { margin: 40px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 0;
  text-align: center;
}
.stat-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.stat-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}
.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  font-feature-settings: 'tnum';
}
.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.testimonial {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.2);
}
.testimonial-content {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
  color: var(--text);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-avatar svg {
  width: 20px;
  height: 20px;
  color: white;
}
.author-name {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.author-title {
  font-size: 13px;
  color: var(--muted);
}

/* Error States & Empty States */
.error-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--error);
  opacity: 0.6;
}
.error-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.error-message {
  font-size: 16px;
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto 24px;
}
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  opacity: 0.4;
  color: var(--muted);
}
.empty-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.empty-message {
  font-size: 16px;
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto;
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-indicator.online {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-indicator.offline {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.status-indicator.processing {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Advanced Hover Effects */
.nav-link:hover .nav-icon {
  transform: scale(1.1) rotate(5deg);
}
.badge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}
.button-enhanced:hover .button-icon {
  transform: translateX(2px);
}
.feature-item:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}
.feature-item:hover .feature-icon svg {
  transform: scale(1.1);
}

/* Staggered Animations */
.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.testimonial:nth-child(1) { animation-delay: 0.2s; }
.testimonial:nth-child(2) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 960px) { 
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
}
@media (max-width: 540px) { 
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: clamp(28px, 8vw, 40px); }
  .hero-subtitle { font-size: clamp(16px, 4vw, 18px); }
}