:root {
  --bg: #fafbfc;
  --bg-secondary: #f8f9fa;
  --card: #ffffff;
  --card-hover: #ffffff;
  --text: #2c3e50;
  --text-muted: #6c757d;
  --accent: #0066cc;
  --accent-hover: #0056b3;
  --accent-light: #e3f2fd;
  --border: #e9ecef;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --success: #28a745;
  --warning: #ffc107;
  --error: #dc3545;
  --gradient-primary: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  --gradient-light: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1.5rem 0;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text);
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

p {
  margin: 0 0 1.5rem 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

strong {
  color: var(--text);
  font-weight: 600;
}

.small {
  font-size: 0.875rem;
}

.muted {
  color: var(--text-muted);
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.logo {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease;
}

.brand:hover .logo {
  transform: scale(1.05);
}

.brand-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}

.brand-text span {
  color: var(--accent);
}

/* Mobile menu */
#nav-toggle {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.burger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  transition: 0.3s;
  border-radius: 2px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.menu a:hover {
  color: var(--accent);
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
  background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.btn-small {
  padding: 0.625rem 1.5rem;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 6rem 0;
  min-height: 80vh;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(0, 102, 204, 0.2);
}

.cta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
}

.bullets li {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 2rem;
}

.bullets li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: var(--text-muted);
  font-style: italic;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: var(--card);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-hover);
  border-color: var(--accent);
}

.stat-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.2;
}

#orbit {
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 102, 204, 0.1) 100%);
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
}

/* Hero Stats Section - přes celou šířku */
.hero-stats-section {
  background: var(--bg-secondary);
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-stats-section .stat-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.hero-stats-section .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-hover);
  border-color: var(--accent);
}

.hero-stats-section .stat-icon {
  font-size: 2.5rem;
  width: 4rem;
  height: 4rem;
  background: var(--accent-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-stats-section .stat-content {
  flex: 1;
}

.hero-stats-section .stat-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-stats-section .stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Cards */
.card {
  background: var(--card);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 12px var(--shadow);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--shadow-hover);
  border-color: var(--accent);
}

/* KPI List */
.kpi {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kpi li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.kpi li:last-child {
  border-bottom: none;
}

.kpi span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.kpi strong {
  color: var(--accent);
  font-weight: 600;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 2rem;
  position: relative;
}

.t-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow);
}

.t-item:hover {
  transform: translateX(10px);
  border-color: var(--accent);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.t-item span {
  background: var(--gradient-primary);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.t-item strong {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.t-item p {
  margin: 0;
  color: var(--text-muted);
}

/* Chart */
.chart-wrap {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

#equityChart {
  width: 100%;
  height: auto;
}

.legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-row label {
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-row input[type="checkbox"] {
  width: auto;
  margin: 0;
  transform: scale(1.2);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1rem;
}

#formStatus {
  margin-left: 1rem;
  font-weight: 500;
}

/* Performance Section */
.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
}

.chart-container-single {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 1000px;
  margin: 0 auto;
}

.chart-container-single:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.chart-container-single h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
}

.chart-wrapper {
  position: relative;
  margin-bottom: 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  overflow: hidden;
}

.chart-wrapper .performance-chart {
  display: block;
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chart-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.chart-info-section {
  text-align: center;
}

.chart-info-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.chart-info-section .chart-metric {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.chart-info-section .chart-metric strong {
  color: var(--accent);
  font-weight: 700;
}

.chart-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
}

.chart-info {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.chart-metric {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.chart-metric strong {
  color: var(--accent);
  font-weight: 700;
}

.performance-disclaimer {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.performance-disclaimer p {
  color: var(--accent);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Responsive adjustments for performance section */
@media (max-width: 768px) {
  .chart-container-single {
    padding: 2rem;
  }
  
  .chart-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .chart-container {
    padding: 1.5rem;
  }
  
  .chart-info {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .chart-metric {
    text-align: center;
  }
  
  .performance-disclaimer {
    padding: 1.5rem;
  }
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}

.footer-inner {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }
  
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--card);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: right 0.3s ease;
    z-index: 99;
    box-shadow: -10px 0 30px var(--shadow);
  }
  
  #nav-toggle:checked ~ .menu {
    right: 0;
  }
  
  #nav-toggle:checked ~ .burger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  #nav-toggle:checked ~ .burger span:nth-child(2) {
    opacity: 0;
  }
  
  #nav-toggle:checked ~ .burger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding: 4rem 0;
  }
  
  .hero-art {
    order: -1;
  }
  
  .hero-stats-section {
    padding: 3rem 0;
  }
  
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .hero-stats-section .stat-card {
    padding: 1.5rem;
    gap: 0.75rem;
  }
  
  .hero-stats-section .stat-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
  }
  
  .hero-stats-section .stat-number {
    font-size: 1rem;
  }
  
  .hero-stats-section .stat-label {
    font-size: 0.85rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .cta {
    flex-direction: column;
    align-items: center;
  }
  
  .badges {
    justify-content: center;
  }
  
  .container {
    width: 95%;
    padding: 0 0.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .t-item {
    flex-direction: column;
    text-align: center;
  }
  
  .t-item span {
    align-self: center;
  }
  
  .logo {
    height: 32px;
  }
  
  .brand-text {
    font-size: 1.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Form Status Styles */
.form-status {
  display: block;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.form-status.processing {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.form-status.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Contact Form Enhancements */
.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-form button[type="submit"]:disabled:hover {
  transform: none;
  box-shadow: var(--shadow);
}
