/**
 * Starlink Půjčovna – Design System
 * /assets/css/main.css
 *
 * Approach: Dark-first, premium SaaS aesthetic
 * Fonts: Intel One Mono (display) + System UI (body)
 */

/* ── General Sans – lokální font ────────────────────────────────────────────── */
@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── CSS Custom Properties ──────────────────────────────────────────────────── */
:root {
  /* Colors */
  --c-bg:          #06080f;
  --c-bg-2:        #0c1120;
  --c-bg-card:     #0f1629;
  --c-border:      rgba(255, 255, 255, 0.08);
  --c-border-glow: rgba(99, 179, 237, 0.25);

  --c-text:        #f0f4ff;
  --c-text-muted:  rgba(240, 244, 255, 0.5);
  --c-text-subtle: rgba(240, 244, 255, 0.3);

  --c-accent:      #3b82f6;     /* Blue */
  --c-accent-2:    #60a5fa;     /* Light blue */
  --c-accent-glow: rgba(59, 130, 246, 0.35);

  --c-success:     #34d399;
  --c-warning:     #fbbf24;
  --c-error:       #f87171;

  /* Gradients */
  --grad-hero:     radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  --grad-card:     linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  --grad-accent:   linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --grad-text:     linear-gradient(135deg, #f0f4ff 0%, #93c5fd 100%);

  /* Spacing (8px system) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-6: 3rem;
  --sp-8: 4rem;
  --sp-12: 6rem;
  --sp-16: 8rem;
  --sp-20: 10rem;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radius */
  --r-sm:   0.5rem;
  --r-md:   0.875rem;
  --r-lg:   1.25rem;
  --r-xl:   1.75rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.2);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-mid:    250ms ease;
  --t-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ──────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display) !important;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800 !important; }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 800 !important; }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); font-weight: 800 !important; }
h4 { font-size: 1.25rem; font-weight: 800 !important; }

p { color: var(--c-text-muted); line-height: 1.75; }

a {
  color: var(--c-accent-2);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-text); }

/* ── Layout ──────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

/* ── Navigation ──────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--sp-2) 0;
  transition: background var(--t-slow), backdrop-filter var(--t-slow);
}

.site-header.scrolled {
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--c-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--c-text);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  border-radius: var(--r-full);
  display: inline-block;
  box-shadow: 0 0 12px var(--c-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-muted);
  letter-spacing: 0.01em;
  transition: color var(--t-fast);
  padding: 0.25rem 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width var(--t-mid);
}
.nav-links a:hover { color: var(--c-text); }
.nav-links a:hover::after { width: 100%; }

/* ── Buttons ──────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: all var(--t-mid);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--c-accent-glow);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--c-accent-glow);
  color: #fff;
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255,255,255,0.05);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.16);
  color: var(--c-text);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* ── Section Layout ──────────────────────────────────────────────────────────── */
.section {
  padding: var(--sp-16) 0;
}
.section--sm { padding: var(--sp-8) 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-2);
}

.section-title {
  margin-bottom: var(--sp-2);
}

.section-subtitle {
  font-size: 1.125rem;
  max-width: 60ch;
  color: var(--c-text-muted);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-8);
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--sp-16) + 80px) 0 var(--sp-16);
  background: var(--c-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}

/* Animated gradient orb */
.hero-orb {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: orb-drift 8s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to   { transform: translateX(-50%) translateY(30px) scale(1.05); }
}

/* Grid noise overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding-inline: var(--sp-4);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--r-full);
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-accent-2);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-3);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--c-success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  margin-bottom: var(--sp-3);
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--c-text-muted);
  max-width: 55ch;
  margin: 0 auto var(--sp-6);
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--c-text);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
}

/* ── Cards ────────────────────────────────────────────────────────────────────── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  transition: border-color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.card:hover {
  border-color: var(--c-border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(59, 130, 246, 0.08);
}

/* ── Features Grid ────────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-3);
}

.feature-card {
  background: var(--grad-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  transition: all var(--t-mid);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% -20%, rgba(59,130,246,0.08), transparent);
  opacity: 0;
  transition: opacity var(--t-slow);
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  border-color: var(--c-border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-3);
  font-size: 1.4rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: var(--c-text);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}

/* ── How It Works Timeline ────────────────────────────────────────────────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-2);
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), var(--c-border), transparent);
}

.timeline-step {
  text-align: center;
  padding: var(--sp-4);
  position: relative;
}

.timeline-number {
  width: 64px;
  height: 64px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  margin: 0 auto var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--c-accent-2);
  position: relative;
  z-index: 1;
  transition: all var(--t-mid);
}

.timeline-step:hover .timeline-number {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--c-accent);
  box-shadow: 0 0 24px var(--c-accent-glow);
}

/* ── FAQ Accordion ────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: 780px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-mid);
}

.faq-item[open], .faq-item:hover {
  border-color: var(--c-border-glow);
}

.faq-question {
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  font-weight: 500;
  font-size: 1rem;
  color: var(--c-text);
  background: var(--grad-card);
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--t-mid);
  color: var(--c-text-muted);
}

details[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--sp-4) var(--sp-3);
  color: var(--c-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  animation: fade-down 200ms ease;
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Testimonials ──────────────────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-3);
}

.testimonial-card {
  background: var(--grad-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  position: relative;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sp-2);
  color: var(--c-warning);
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-3);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--c-accent), #1d4ed8);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 300;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
}

.testimonial-meta {
  font-size: 0.8rem;
  color: var(--c-text-subtle);
}

/* ── Footer ───────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: var(--sp-8) 0 var(--sp-4);
  margin-top: var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--c-text-subtle);
  max-width: 30ch;
  margin-top: var(--sp-2);
}

.footer-links h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
  margin-bottom: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 500;
}

.footer-links ul { list-style: none; }
.footer-links li + li { margin-top: 0.5rem; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--c-text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  font-size: 0.8rem;
  color: var(--c-text-subtle);
}

/* ── Sticky Mobile CTA ────────────────────────────────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: var(--sp-2) var(--sp-3) calc(var(--sp-2) + env(safe-area-inset-bottom));
  background: rgba(6, 8, 15, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--c-border);
}

.sticky-cta .btn { width: 100%; justify-content: center; }

/* ── Animations / Scroll reveal ──────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ── Utility ──────────────────────────────────────────────────────────────────── */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
  margin: var(--sp-12) 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root {
    --sp-16: 5rem;
    --sp-12: 4rem;
    --sp-8: 3rem;
  }

  .nav-links { display: none; } /* Mobile nav */

  .hero-stats {
    gap: var(--sp-4);
    padding-top: var(--sp-4);
    margin-top: var(--sp-6);
  }

  .timeline::before { display: none; }
  .timeline { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--sp-1); text-align: center; }

  .sticky-cta { display: block; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}


/* ── OPRAVY: světlé sekce ──────────────────────────────────────────────────── */

/* Zajisti tmavé pozadí na celé stránce */
html, body {
    background-color: #06080f !important;
    color: #f0f4ff !important;
}

/* Všechny sekce tmavé */
.section,
section {
    background-color: transparent !important;
    color: #f0f4ff !important;
}

/* Feature sekce */
#vyhody {
    background-color: #06080f !important;
}

/* Jak to funguje */
#jak-to-funguje {
    background-color: #06080f !important;
}

/* Všechny nadpisy viditelné */
h1, h2, h3, h4, h5, h6 {
    color: #f0f4ff !important;
}

/* Odstavce */
p {
    color: rgba(240, 244, 255, 0.6) !important;
}

/* Feature card texty */
.feature-title {
    color: #f0f4ff !important;
}

.feature-desc {
    color: rgba(240, 244, 255, 0.6) !important;
}

/* Timeline texty */
.timeline-step h3 {
    color: #f0f4ff !important;
}

.timeline-step p {
    color: rgba(240, 244, 255, 0.6) !important;
}

/* Section label */
.section-label {
    color: #3b82f6 !important;
}

.section-subtitle {
    color: rgba(240, 244, 255, 0.6) !important;
}