@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
  --accent: #2bafa2;
  --bg: #0d0d0d;
  --text: #f0f0f0;
  --glow: #1fffe0;
  --card-bg: #1a1a1a;

  --container-padding: clamp(1rem, 4vw, 3rem);
  --section-gap: clamp(3rem, 8vw, 6rem);
  --element-gap: clamp(0.8rem, 2vw, 1.2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ==================== NAVIGACE ==================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--container-padding);
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 175, 162, 0.1);
}

.nav-logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(43, 175, 162, 0.3));
  transition: filter 0.3s ease;
}

.nav-logo:hover img {
  filter: drop-shadow(0 0 30px rgba(43, 175, 162, 0.5));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: #239a8f;
  box-shadow: 0 0 20px rgba(43, 175, 162, 0.4);
  transform: translateY(-2px);
}

/* ==================== HAMBURGER MENU ==================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 13, 13, 0.98);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 2rem;
}

.mobile-menu-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  color: var(--accent);
}

.mobile-menu-links .nav-cta {
  font-size: 1.2rem;
  padding: 0.75rem 1.5rem;
}

/* ==================== HERO SEKCE ==================== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(80px + var(--section-gap)) var(--container-padding) var(--section-gap);
  min-height: 100vh;
  justify-content: center;
}

.logo {
  width: clamp(100px, 18vw, 150px);
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 50px rgba(43, 175, 162, 0.4));
  opacity: 0;
  transform: translateY(-30px);
  animation: logoIn 1s cubic-bezier(.5,1.5,.5,1) 0.3s forwards;
}

@keyframes logoIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.1;
}

.accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #aaa;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ==================== HLAVNÍ CTA TLAČÍTKO ==================== */

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(43, 175, 162, 0.3);
}

.btn-primary:hover {
  background: #239a8f;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(43, 175, 162, 0.5);
  color: #000;
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* ==================== EMAIL SEKCE ==================== */

.email-section {
  margin-top: 2.5rem;
  text-align: center;
}

.email-label {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1rem;
}

.email-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: var(--text);
  transition: all 0.2s ease;
}

.email-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 175, 162, 0.2);
}

.email-form button {
  padding: 0.75rem 1.5rem;
  background: #333;
  color: var(--text);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.email-form button:hover {
  background: #444;
}

.email-success {
  color: var(--accent);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

/* ==================== FEATURES SEKCE ==================== */

.features {
  padding: var(--section-gap) var(--container-padding);
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 3rem;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(43, 175, 162, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(43, 175, 162, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: rgba(43, 175, 162, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.95rem;
  color: #999;
  line-height: 1.6;
}

/* ==================== FOOTER ==================== */

footer {
  background: #0a0a0a;
  padding: var(--section-gap) var(--container-padding);
  border-top: 1px solid rgba(43, 175, 162, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-nav a {
  color: #888;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent);
}

#socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

#socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(43, 175, 162, 0.08);
  border-radius: 10px;
  transition: all 0.3s ease;
}

#socials a:hover {
  background: rgba(43, 175, 162, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(43, 175, 162, 0.3);
}

#socials img {
  width: 22px;
  height: 22px;
  filter: brightness(0.8);
  transition: filter 0.2s ease;
}

#socials a:hover img {
  filter: brightness(1);
}

.footer-copy {
  color: #555;
  font-size: 0.85rem;
}

/* ==================== ODKAZY ==================== */

a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.2s;
}

a:hover {
  color: var(--glow);
}

/* ==================== FADE-IN ANIMACE ==================== */

.fade-in {
  opacity: 0;
  animation: fadeInBody 0.8s ease 0.1s forwards;
}

@keyframes fadeInBody {
  to {
    opacity: 1;
  }
}

/* ==================== MOBILNÍ RESPONSIVITA ==================== */

/* Mobilní navigace */
@media (max-width: 600px) {
  .nav {
    padding: 0.75rem 1rem;
  }

  .nav-logo img {
    height: 32px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    padding-top: calc(60px + 2rem);
  }

  .email-form {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .email-form button {
    width: 100%;
  }
}

/* Malé telefony */
@media (max-width: 400px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Tablety */
@media (min-width: 768px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .hero {
    padding-top: calc(80px + 4rem);
  }

  .features-grid {
    gap: 2.5rem;
  }
}

/* ==================== PAGE CONTENT (About, Pricing) ==================== */

.page-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  padding-bottom: var(--section-gap);
}

/* About Hero */
.about-hero,
.pricing-hero {
  text-align: center;
  padding: var(--section-gap) 0;
}

.about-hero h1,
.pricing-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.about-intro,
.pricing-intro {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
}

/* About Sections */
.about-section {
  margin-bottom: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(43, 175, 162, 0.2);
}

.about-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.about-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.about-section p {
  color: #ccc;
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  max-width: 65ch;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section p strong {
  color: var(--text);
  font-weight: 600;
}

/* Pull Quote */
.pull-quote {
  font-size: 1.4rem;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  max-width: 50ch;
}

/* Author Section */
.about-author {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.author-photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px rgba(43, 175, 162, 0.2);
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-content {
  flex: 1;
}

.author-content h2 {
  margin-top: 0;
}

@media (max-width: 600px) {
  .about-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-photo {
    width: 100px;
    height: 100px;
  }
}

/* About CTA */
.about-cta {
  text-align: center;
  padding: var(--section-gap) 0;
  border-top: 1px solid rgba(43, 175, 162, 0.1);
  margin-top: var(--section-gap);
}

.about-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-cta > p {
  color: #aaa;
  margin-bottom: 2rem;
}

/* Active nav link */
.nav-links a.active {
  color: var(--accent);
}

/* ==================== PRICING PAGE ==================== */

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: var(--section-gap);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(43, 175, 162, 0.1);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: rgba(43, 175, 162, 0.3);
  transform: translateY(-5px);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(43, 175, 162, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
}

.pricing-price .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
}

.pricing-price .currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

.pricing-price .period {
  font-size: 0.9rem;
  color: #888;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: #ccc;
  font-size: 0.95rem;
}

.pricing-features li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-btn {
  display: block;
  text-align: center;
  padding: 1rem;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}

.pricing-btn:hover {
  background: #239a8f;
  transform: translateY(-2px);
  color: #000;
}

.pricing-btn.disabled {
  background: #333;
  color: #888;
  cursor: not-allowed;
}

.pricing-btn.disabled:hover {
  transform: none;
  background: #333;
}

/* Pricing FAQ */
.pricing-faq {
  margin-bottom: var(--section-gap);
}

.pricing-faq h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(43, 175, 162, 0.1);
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.faq-item p {
  color: #999;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ==================== UTILITY CLASSES ==================== */

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ==================== TUTORIAL MODAL ==================== */

.tutorial-link {
  display: block;
  background: none;
  border: none;
  color: #888;
  font-size: 0.9rem;
  margin: 1rem auto 0;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.tutorial-link:hover {
  color: var(--accent);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  position: relative;
  border: 1px solid rgba(43, 175, 162, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #888;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--accent);
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #0a0a0a;
  border-radius: 8px;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  text-align: center;
  padding: 2rem;
}

.video-placeholder svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.video-placeholder p {
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .modal-content h2 {
    font-size: 1.2rem;
  }
}

/* ==================== 404 ERROR PAGE ==================== */

.error-hero {
  text-align: center;
  padding: 4rem 2rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-hero h1 {
  font-size: clamp(6rem, 20vw, 10rem);
  margin-bottom: 0;
  line-height: 1;
}

.error-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 1rem;
  opacity: 0.8;
  font-weight: 600;
}

.error-hero p {
  max-width: 400px;
  margin-bottom: 2rem;
  color: #aaa;
}
