/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 100;
  padding: 14px 0;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  border-bottom-color: var(--border-color);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.85rem;
  opacity: 0.8;
  letter-spacing: -0.01em;
  transition: opacity var(--transition-fast);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a.active {
  opacity: 1;
  font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: var(--text-main);
  margin-bottom: 5px;
  transition: var(--transition-normal);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 980px;
  font-weight: 400;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  gap: 8px;
  letter-spacing: -0.01em;
}

.btn-primary {
  background-color: var(--primary);
  color: white !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: white !important;
  transform: scale(1.02);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 11px 21px;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: scale(1.02);
}

.btn-sm {
  font-size: 0.9rem;
  padding: 8px 20px;
}

/* =========================================
   CARDS
   ========================================= */
.card {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 40px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  border: none;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: var(--card-shadow-hover);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: transparent;
  color: var(--text-main);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 48px;
}

.card h3 {
  margin-bottom: 16px;
  font-size: 1.75rem;
  font-weight: 600;
}

.card p {
  margin-bottom: 24px;
  font-size: 1.05rem;
  flex-grow: 1;
  color: var(--text-muted);
}

/* Feature Card — used in docs.html feature grid */
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 28px;
  border-radius: 20px;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-main);
}

/* =========================================
   LISTS
   ========================================= */

/* Check list — ✓ style used in docs hero section */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--text-muted);
}

.check-list li .check-icon {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Bullet list — used in feature cards */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.bullet-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.bullet-list li .bullet-icon {
  color: var(--primary);
  flex-shrink: 0;
  font-weight: 700;
}

/* =========================================
   HERO APP — shared across product pages
   ========================================= */
.hero-app {
  padding-top: 100px;
  padding-bottom: 64px;
}

.hero-app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-app-icon img.app-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.hero-app-icon h1 {
  margin: 0;
  display: flex;
  justify-content: center;
}

.hero-app-icon h1 img {
  height: 44px;
  object-fit: contain;
}

/* =========================================
   PRICING
   ========================================= */
.pricing-card {
  border: 2px solid transparent;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--primary);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 12px 0;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-list {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  font-size: 0.95rem;
  list-style: none;
  padding: 0;
  text-align: left;
  color: var(--text-muted);
}

.pricing-list li.disabled {
  opacity: 0.45;
}

/* =========================================
   FAQ
   ========================================= */
.faq-details {
  border-bottom: 1px solid var(--border-color);
}

.faq-details:last-child {
  border-bottom: none;
}

.faq-details summary {
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-details summary h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  transition: color var(--transition-fast);
}

.faq-details summary:hover h4 {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
  line-height: 1;
  display: inline-block;
}

.faq-details[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  padding-bottom: 24px;
  animation: faq-slide-down 0.3s ease-out;
}

.faq-answer p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

@keyframes faq-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   ROADMAP — used in coming-soon app pages
   ========================================= */
.roadmap-section {
  padding: var(--section-padding);
}

.roadmap-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.roadmap-track::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--border-color);
  z-index: 0;
}

.roadmap-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.roadmap-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid var(--border-color);
  background: var(--bg-color);
}

.roadmap-dot.done {
  background: var(--bg-color);
  border-color: var(--primary);
  position: relative;
}

.roadmap-dot.done::after {
  content: '✓';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border: 2px solid var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  color: white;
  z-index: 2;
}

.roadmap-dot.active {
  background: var(--bg-color);
  border-color: currentColor;
  animation: pulse-ring 2s ease-in-out infinite;
}

.roadmap-dot.pending {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border-color: var(--border-color);
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(0, 113, 227, 0); }
}

.roadmap-content {
  padding-top: 8px;
  flex: 1;
}

.roadmap-phase {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.roadmap-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.roadmap-content p {
  font-size: 0.95rem;
  max-width: none;
  color: var(--text-muted);
  line-height: 1.5;
}

.roadmap-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 980px;
  margin-top: 8px;
}

.roadmap-tag.released {
  background: #0071E320;
  color: var(--primary);
}

.roadmap-tag.in-progress {
  background: #FF950020;
  color: #FF9500;
}

.roadmap-tag.planned {
  background: var(--bg-secondary);
  color: var(--text-muted);
}

/* =========================================
   COMING SOON CTA BLOCK
   ========================================= */
.coming-soon-cta {
  text-align: center;
  padding: 64px 24px;
  max-width: 560px;
  margin: 0 auto;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 980px;
  margin-bottom: 20px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background-color: var(--bg-secondary);
  padding: 64px 0 0;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}

.footer-col h4 {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  height: 24px;
  display: flex;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.footer-links a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Legal divider — separates brand/nav from company legal info */
.footer-legal-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0;
}

/* Legal section — company registration info + verification */
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 0 36px;
}

.footer-legal-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
}

.footer-legal-text strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-legal-badge {
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  min-width: 140px;
}

/* Minimal footer — used on product pages (docs, sheets, slides, pdf) */
.footer-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 28px 0;
}

.footer-minimal p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: none;
  margin: 0;
}

.footer-minimal-links {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.footer-minimal-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.footer-minimal-links a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Kept for backward compat but product pages now use footer-minimal */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 48px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: none;
}

.footer-bottom a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--text-main);
}

/* =========================================
   SECTION DIVIDERS
   ========================================= */
.section-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0 auto;
  max-width: 640px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (min-width: 769px) {
  .navbar .container {
    position: relative;
  }

  .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path var(--transition-normal);
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .mobile-menu-btn {
    display: block;
  }

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

  .footer-legal {
    flex-direction: column;
    gap: 20px;
  }

  .footer-minimal {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-minimal-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .roadmap-track::before {
    left: 19px;
  }

  .hero-app-icon h1 img {
    height: 36px;
  }
}
