:root {
  --bg: #020617;
  --panel: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --max: 1100px;
  font-family: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {background: radial-gradient(circle at top, #020617, #0f172a);padding:0; margin:0;}

#main {
  margin: 0;
  background: radial-gradient(circle at top,rgba(2, 6, 23, .9),rgba(15, 23, 42, .9));
  z-index: 10;
  color: var(--text);
  line-height: 1.6;
  backdrop-filter: blur(2px);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(2,6,23,.75);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

.nav a {
  color: var(--muted);
  margin-left: 1.2rem;
  text-decoration: none;
}

.nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  text-align: center;
  padding: 6rem 1.5rem;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: .75rem;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  color: var(--muted);
}

/* Sections */
.section.light {
  background: rgba(255,255,255,.03);
}

h2 { margin-bottom: 1.2rem; }
h3 { display: inline-block; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 1.5rem;
  backdrop-filter: blur(2px);
}

/* Cards */
.card,
.step,
.app-card {
  background: rgba(255,255,255,0.1);
  padding: 1.25rem;
  border-radius: 14px;
  z-index: 10;
}

.app-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.app-card h3 {
    /* Zmení blokový element (ktorý by inak robil nový riadok) na riadkový blok */
    display: inline-block;
    vertical-align: middle; /* Zarovnáva text s ikonou na stred */
    margin: 0; /* Odstránenie predvoleného horného/dolného okraja h3 */
}

.stack {
  display: block;
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--muted);
}

/* Buttons */
.btn {
  background: linear-gradient(90deg, var(--accent), #818cf8);
  color: #020617;
  padding: .65rem 1.3rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* Contact */
.contact-form {
  max-width: 520px;
  display: grid;
  gap: .75rem;
}

.contact-form input,
.contact-form textarea {
  padding: .65rem .75rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: inherit;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  padding: 1.5rem;
}

@media (max-width: 700px) {
  .hero h1 { font-size: 1.8rem; }
  .nav { display: none; }
}

#flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Dôležité: neblokuje web pod sebou */
}

.flash {
    pointer-events: auto; /* Správy samotné sú klikateľné */
    padding: 15px 25px;
    min-width: 250px;
    color: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: sans-serif;
    cursor: pointer;
    animation: slideIn 0.4s ease-out;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Farebné varianty */
.flash-success { background: #27ae60; }
.flash-error   { background: #e74c3c; }
.flash-warning { background: #f39c12; }
.flash-info    { background: #3498db; }

/* Animácie */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.fade-out {
    opacity: 0;
    transform: translateX(20px);
}