@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+Armenian:wght@400;500;600;700;800;900&display=swap');

:root {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-active: #1e40af;
  --color-dark: #0f172a;
  --color-text-main: #111827;
  --color-text-muted: #64748b;
  --color-bg-gray: #f8fafc;
  --color-border: #e2e8f0;
  --font-family: 'Inter', 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

body {
  font-family: var(--font-family);
  color: var(--color-text-main);
  background-color: #ffffff;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.toast-pill {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #16a34a;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-pill.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.modal-screen-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background: linear-gradient(135deg, #18092e 0%, #2e1055 40%, #581c87 75%, #3b0764 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}

.modal-screen-wrapper::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.modal-screen-wrapper::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.modal-top-bar {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lang-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.modal-card {
  width: 100%;
  max-width: 390px;
  background: #ffffff;
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 5;
  animation: modalEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-app-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: block;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 24px;
}

.iphone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fee2e2;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.modal-qr-container {
  width: 200px;
  height: 200px;
  background: #ffffff;
  border-radius: 20px;
  padding: 12px;
  margin: 0 auto 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08),
              0 0 0 1px #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-qr-container img,
.modal-qr-container canvas {
  width: 176px !important;
  height: 176px !important;
  display: block;
  border-radius: 10px;
}

.qr-fallback-link {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.modal-qr-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.btn-android-open {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-android-open:hover {
  background: #d1fae5;
}

.btn-android-open svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.modal-divider {
  position: relative;
  text-align: center;
  margin: 20px 0 16px;
}

.modal-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.modal-divider span {
  position: relative;
  background: #ffffff;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.copy-link-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 6px 6px 14px;
  margin-top: 10px;
  gap: 8px;
}

.copy-link-text {
  flex: 1;
  font-size: 12px;
  color: #475569;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.btn-copy {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-copy:hover {
  background: #1e293b;
}

.btn-copy:active {
  transform: scale(0.96);
}

.btn-copy.copied {
  background: #16a34a !important;
}

.android-page {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: #ffffff;
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}

.app-nav-bar {
  height: 64px;
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-lang-btn {
  background: #f1f5f9;
  border: 1px solid var(--color-border);
  color: #334155;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.nav-lang-btn:hover {
  background: #e2e8f0;
}

.hero-section {
  padding: 32px 20px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mockup-phone-frame {
  width: 220px;
  height: 450px;
  background: #000000;
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3),
              0 0 0 1px #334155 inset;
  position: relative;
  margin-bottom: 28px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-status-bar {
  height: 28px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

.phone-status-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-punch-hole {
  width: 8px;
  height: 8px;
  background: #000000;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mockup-slides-track {
  flex: 1;
  position: relative;
}

.mockup-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mockup-slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.slide-icon-wrap svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.slide-installed-logo-wrap {
  width: 58px;
  height: 58px;
  position: relative;
  margin-bottom: 14px;
}

.slide-installed-logo {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: block;
}

.slide-installed-check {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #16a34a;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slide-state-ready {
  font-size: 11px;
  color: #16a34a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.slide-state-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.slide-progress-bar {
  width: 140px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.slide-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.slide-state-percent {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.hero-app-title {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.hero-app-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.hero-app-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 360px;
}

.btn-primary-download {
  width: 100%;
  background: var(--color-primary);
  color: #ffffff !important;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-primary-download:hover {
  background: var(--color-primary-hover);
}

.btn-primary-download:active {
  transform: scale(0.97);
  background: var(--color-primary-active);
}

.btn-primary-download svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.features-section {
  padding: 40px 20px;
  border-top: 1px solid #f1f5f9;
}

.section-heading {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature-card {
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
}

.feature-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-icon-circle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.feature-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.feature-card-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.how-section {
  padding: 40px 20px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.how-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.how-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  color: var(--color-primary);
}

.how-icon-box svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.how-badge-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-content-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.how-content-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.instructions-section {
  padding: 40px 20px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.step-circle-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.step-card-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.banner-section {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flag-dashes {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.flag-dash {
  width: 24px;
  height: 4px;
  border-radius: 9999px;
}

.flag-red { background: #d90012; }
.flag-blue { background: #0033a0; }
.flag-orange { background: #f2a800; }

.banner-title {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
}

.banner-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 320px;
}

.app-footer {
  padding: 24px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 80px;
}

.app-footer p {
  margin-bottom: 4px;
}

.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.sticky-bottom-bar.hidden {
  transform: translateX(-50%) translateY(100%);
}

.clipboard-fallback-field {
  position: fixed;
  top: -1000px;
  left: -1000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.noscript-panel {
  display: block;
  max-width: 440px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.noscript-panel p {
  margin-bottom: 12px;
}

.noscript-panel a {
  color: var(--color-primary);
  font-weight: 700;
}

@media (max-width: 359px) {
  .modal-card {
    padding: 28px 18px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .modal-screen-wrapper {
    justify-content: flex-start;
    overflow-y: auto;
  }

  .modal-card {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
