:root
{
  --bg-primary: #08090d;
  --bg-secondary: #0f111a;
  --bg-tertiary: #16192b;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --accent-gradient-hover: linear-gradient(135deg, #7c3aed 0%, #0891b2 100%);
  --text-main: #f3f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --transition-speed: 0.3s;
}

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

body
{
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
  overflow-x: hidden;
  position: relative;
}

/* Background Glowing Spheres */
.glow-sphere
{
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.15;
}

.sphere-1
{
  width: 400px;
  height: 400px;
  background-color: var(--accent-purple);
  top: -10%;
  left: -10%;
}

.sphere-2
{
  width: 500px;
  height: 500px;
  background-color: var(--accent-cyan);
  bottom: -10%;
  right: -10%;
}

.container
{
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Header */
.main-header
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.logo-area
{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 0;
}

.brand-logo
{
  max-width: 520px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 25px rgba(6, 182, 212, 0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo:hover
{
  transform: scale(1.015);
  filter: drop-shadow(0 6px 30px rgba(234, 179, 8, 0.3));
}

.badge
{
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-top: 0.25rem;
}

.system-status
{
  display: flex;
  gap: 1.5rem;
}

.status-item
{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.status-label
{
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.status-value
{
  font-size: 0.9rem;
  font-family: 'Space Mono', monospace;
  font-weight: 600;
  color: var(--text-main);
}

/* Intro Banner */
.intro-banner
{
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Finland Banner */
.finland-banner
{
  background-color: rgba(22, 25, 43, 0.6);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Disclaimer Banner */
.disclaimer-banner
{
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.warning-icon
{
  font-size: 2rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.disclaimer-title
{
  color: #f87171;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}


.flag-icon
{
  font-size: 2rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.banner-content
{
  display: flex;
  flex-direction: column;
}

.banner-title
{
  color: var(--accent-cyan);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.banner-desc
{
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Workspace Card */
.workspace-card
{
  background: rgba(15, 17, 26, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Tabs */
.tabs-header
{
  display: flex;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}

.tab-btn
{
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-speed) ease;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover
{
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.02);
}

.tab-btn.active
{
  color: var(--text-main);
  border-bottom: 2px solid var(--accent-cyan);
  background-color: rgba(255, 255, 255, 0.04);
}

.tab-icon
{
  width: 20px;
  height: 20px;
}

/* Pane & Content */
.tab-pane
{
  display: none;
  padding: 2rem;
}

.tab-pane.active
{
  display: block;
}

.pane-description
{
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.badge-inline
{
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 0.85rem;
  font-family: 'Space Mono', monospace;
  color: var(--accent-cyan);
}

/* Dropzone */
.dropzone
{
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.01);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.dropzone:hover, .dropzone.drag-over
{
  border-color: var(--accent-cyan);
  background-color: rgba(6, 182, 212, 0.03);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.file-input
{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-prompt
{
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.prompt-icon
{
  width: 48px;
  height: 48px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.dropzone-prompt h3
{
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.dropzone-prompt p
{
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.dropzone-buttons
{
  display: flex;
  gap: 1rem;
  pointer-events: auto;
}

/* Buttons */
.btn-primary
{
  background: var(--accent-gradient);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.btn-primary:hover:not(:disabled)
{
  background: var(--accent-gradient-hover);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:disabled
{
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary
{
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.btn-secondary:hover
{
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--border-color-hover);
}

.btn-text
{
  background: none;
  border: none;
  color: var(--accent-purple);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-text:hover
{
  text-decoration: underline;
}

/* File list container */
.file-list-container
{
  margin-top: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: fadeIn var(--transition-speed) ease;
}

.list-header
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}

.list-header h4
{
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.file-list
{
  max-height: 150px;
  overflow-y: auto;
  padding: 0.5rem 1rem;
}

.file-item
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.file-item:last-child
{
  border-bottom: none;
}

.file-name
{
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.file-size
{
  font-family: 'Space Mono', monospace;
  color: var(--text-muted);
}

.action-footer
{
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Console Section */
.console-card
{
  background: rgba(5, 5, 8, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
  animation: slideDown var(--transition-speed) ease;
  margin-bottom: 2rem;
}

.console-header
{
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-indicators
{
  display: flex;
  gap: 0.35rem;
}

.dot
{
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.console-title
{
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.console-spinner-container
{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.spinner
{
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin
{
  to { transform: rotate(360deg); }
}

.console-body
{
  padding: 1.25rem;
  max-height: 250px;
  overflow-y: auto;
}

.console-body pre
{
  font-family: 'Space Mono', monospace;
  font-size: 0.825rem;
  color: #a7f3d0; /* Soft terminal green */
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.4;
}

/* Result Card */
.result-card
{
  background-color: rgba(16, 185, 129, 0.08);
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 0.5s ease;
}

.result-info
{
  display: flex;
  gap: 1rem;
  align-items: center;
}

.result-success-icon
{
  width: 24px;
  height: 24px;
  color: var(--accent-green);
}

.result-title
{
  color: var(--accent-green);
  font-size: 0.95rem;
  font-weight: 600;
}

.result-desc
{
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.btn-download
{
  background-color: var(--accent-green);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.btn-download:hover
{
  background-color: #059669;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.download-icon
{
  width: 18px;
  height: 18px;
}

/* Helper Utilities */
.hidden
{
  display: none !important;
}

/* Animations */
@keyframes fadeIn
{
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown
{
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Footer & Legal Disclaimer */
.site-footer
{
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
}

.footer-disclaimer
{
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-disclaimer-icon
{
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.footer-disclaimer p
{
  margin: 0;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer-disclaimer strong
{
  color: #e2e8f0;
  font-weight: 600;
}

.footer-copyright
{
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-bottom: 1rem;
}

.footer-copyright span
{
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

/* What is MAR Section */
.what-is-mar-card
{
  margin-top: 3.5rem;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.what-is-mar-card::before
{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
}

.what-is-mar-header
{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.what-is-mar-icon
{
  font-size: 1.5rem;
}

.what-is-mar-title
{
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.01em;
}

.what-is-mar-body
{
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.65;
}

.what-is-mar-intro
{
  margin-bottom: 1.25rem;
}

.what-is-mar-highlight
{
  background: rgba(139, 92, 246, 0.12);
  border-left: 4px solid var(--accent-purple);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  color: #e2e8f0;
}

.what-is-mar-subtitle
{
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.what-is-mar-list
{
  margin: 0 0 1.5rem 1.25rem;
  padding: 0;
  list-style: disc;
}

.what-is-mar-list li
{
  margin-bottom: 0.65rem;
  color: #94a3b8;
}

.what-is-mar-list li strong
{
  color: #e2e8f0;
}

.what-is-mar-footer-box
{
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  color: #cffafe;
}

