:root {
  --background: #f5f7fa;
  --overlay: #eceff5;
  --surface: #ffffff;
  --primary: #1f57d6;
  --primary-alt: #41d8c4;
  --text: #1b1d23;
  --muted: #6f7885;
  --border: #d7dce3;
  --danger: #e45858;
  --success: #2e9b8f;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.16);
  --shadow-md: 0 20px 40px rgba(15, 23, 42, 0.1);
  --shadow-sm: 0 10px 20px rgba(15, 23, 42, 0.08);
  --max-width: 1200px;
  --font-sans: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 180ms ease;
  --transition-slow: 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  flex: 1 0 auto;
}

.floating-accent {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(65, 216, 196, 0.25), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(31, 87, 214, 0.35), transparent 40%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(245, 247, 250, 0.92);
  border-bottom: 1px solid rgba(215, 220, 227, 0.7);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--surface), var(--surface));
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 26px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(31, 87, 214, 0.08);
  color: var(--primary);
  transform: translateY(-1px);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(215, 220, 227, 0.6);
}

.lang-switcher button {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lang-switcher button:hover,
.lang-switcher button:focus-visible {
  background: rgba(31, 87, 214, 0.08);
  color: var(--primary);
}

.lang-switcher button.active {
  background: rgba(31, 87, 214, 0.15);
  color: var(--primary);
}

.lang-switcher--inline {
  margin: 12px 0 4px;
  padding: 0;
  border: none;
  gap: 6px;
}

.lang-switcher--inline a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  background: rgba(31, 87, 214, 0.08);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(31, 87, 214, 0.12);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.lang-switcher--inline a.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary));
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.lang-switcher--inline a:hover,
.lang-switcher--inline a:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cta-button {
  background: linear-gradient(135deg, var(--primary), var(--primary));
  color: var(--surface);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero {
  padding: 120px 32px 80px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--overlay);
  z-index: -1;
}

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 18px;
  line-height: 1.1;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 600;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.secondary-link:hover,
.secondary-link:focus-visible {
  transform: translateX(3px);
}

.accent-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(31, 87, 214, 0.08);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.app-preview {
  display: flex;
  justify-content: center;
}

.app-preview__shell {
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(215, 220, 227, 0.6);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-preview__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--surface), var(--surface));
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.app-preview__status small {
  display: block;
  color: var(--muted);
}

.sync-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 87, 214, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.7;
  }
}

.app-preview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
  background: rgba(31, 87, 214, 0.08);
  color: var(--primary);
}

.chip-active {
  background: var(--primary);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.chip-muted {
  background: var(--overlay);
  color: var(--muted);
}

.app-preview__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wish-card {
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid rgba(215, 220, 227, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wish-card small {
  display: block;
  color: var(--muted);
}

.wish-card-owned {
  background: linear-gradient(135deg, rgba(31, 87, 214, 0.1), rgba(65, 216, 196, 0.15));
  border-color: transparent;
}

.badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(31, 87, 214, 0.08);
  color: var(--primary);
}

.badge-success {
  background: rgba(46, 155, 143, 0.1);
  color: var(--success);
}

.app-preview__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--overlay);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.section {
  padding: 90px 32px;
  position: relative;
  z-index: 1;
}

.section-light {
  position: relative;
  overflow: hidden;
  background: var(--overlay);
}

.section-light::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--overlay);
  z-index: -1;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(215, 220, 227, 0.6);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(31, 87, 214, 0.08);
  color: var(--primary);
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.app-kit {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(31, 87, 214, 0.05), transparent);
}

.app-kit::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(31, 87, 214, 0.05), transparent);
  z-index: -1;
}

.app-kit__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.app-kit__list {
  padding-left: 18px;
  color: var(--muted);
}

.app-kit__panel {
  display: flex;
  justify-content: center;
}

.modal-preview {
  width: min(440px, 100%);
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(215, 220, 227, 0.6);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-preview__header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.modal-preview__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(31, 87, 214, 0.1);
  color: var(--primary);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.modal-preview__body label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}

.input-mock {
  border-radius: var(--radius-md);
  border: 1px solid rgba(215, 220, 227, 0.7);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.input-mock.multiline {
  min-height: 60px;
}

.modal-preview__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card h3 {
  margin: 0 0 6px;
  font-size: 2rem;
}

.testimonial-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(215, 220, 227, 0.6);
  box-shadow: var(--shadow-sm);
}

.testimonial-author {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  font-weight: 600;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.download-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(215, 220, 227, 0.6);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface);
  border: 2px solid rgba(215, 220, 227, 0.8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  min-width: 160px;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.store-button__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.store-button__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.store-button__label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1;
}

.store-button__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.store-button--apple:hover,
.store-button--apple:focus-visible {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
}

.store-button--google:hover,
.store-button--google:focus-visible {
  background: linear-gradient(135deg, rgba(31, 87, 214, 0.05), rgba(65, 216, 196, 0.05));
}

.qr-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px dashed rgba(215, 220, 227, 0.9);
  text-align: center;
}

.qr-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 24px;
  margin: 0 auto 16px;
  border: 2px solid rgba(31, 87, 214, 0.2);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--primary);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.kontakt-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(215, 220, 227, 0.6);
}

.kontakt-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-page {
  position: relative;
  overflow: hidden;
}

.legal-page::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(31, 87, 214, 0.04), transparent);
  z-index: -1;
}

.legal-content {
  max-width: 960px;
  margin: 0 auto;
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(215, 220, 227, 0.7);
  box-shadow: var(--shadow-md);
}

.legal-lead {
  color: var(--muted);
  margin-bottom: 28px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.legal-card {
  background: var(--overlay);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border: 1px solid rgba(215, 220, 227, 0.7);
  box-shadow: var(--shadow-sm);
}

.legal-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-list li {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(215, 220, 227, 0.8);
}

.legal-list li:last-child {
  border-bottom: none;
}

.site-footer {
  border-top: 1px solid rgba(215, 220, 227, 0.7);
  background: rgba(245, 247, 250, 0.9);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    inset: 72px 16px auto 16px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: 18px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 80px;
  }
}

@media (max-width: 600px) {
  .site-header-inner {
    padding: 16px;
  }

  .hero-grid,
  .section-inner {
    padding: 0;
  }

  .app-preview__shell,
  .modal-preview {
    padding: 20px;
  }

  .hero {
    padding: 80px 20px 60px;
  }

  .section {
    padding: 70px 20px;
  }

  .store-badges {
    flex-direction: column;
    gap: 12px;
  }

  .store-button {
    width: 100%;
    justify-content: center;
  }
}
