/* ============================================================
   ZARO Landing — Page-specific Styles
   ============================================================ */

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.header-logo span {
  font-size: 20px;
  font-weight: 700;
}

.header-back {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.header-back:hover {
  color: var(--color-accent);
  opacity: 1;
}

.header-nav {
  display: flex;
  gap: 24px;
}

.header-nav a {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.header-nav a:hover {
  color: var(--color-text);
  opacity: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Burger menu */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--color-text);
  font-size: 24px;
  font-weight: 500;
  text-decoration: none;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  .burger-btn {
    display: block;
  }
}

/* --- Hero --- */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
}

.hero-avatar {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
}

.hero-avatar img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.hero-avatar::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: var(--color-gradient);
  opacity: 0.3;
  filter: blur(24px);
  z-index: 0;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-trial-note {
  font-size: 14px;
  color: var(--color-text-muted);
}

.hero-lang-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  background: var(--color-surface);
  border-radius: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .hero {
    padding-top: 110px;
    padding-bottom: 56px;
  }
  .hero-avatar img {
    width: 110px;
    height: 110px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
}

/* --- Demo Chat --- */
.demo-section {
  padding: 80px 0;
}

.demo-phone-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.demo-phone {
  width: 340px;
  background: #1a1f36;
  border-radius: 36px;
  border: 3px solid #2a2f4a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.demo-phone-screen {
  margin: 12px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 500px;
  max-height: 580px;
}

#demo-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Chat header inside phone */
.demo-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.demo-chat-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.demo-chat-header-info {
  display: flex;
  flex-direction: column;
}

.demo-chat-header-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.demo-chat-header-status {
  font-size: 12px;
  color: var(--color-accent);
}

/* Messages area */
.demo-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-surface) transparent;
}


.demo-messages::-webkit-scrollbar {
  width: 4px;
}

.demo-messages::-webkit-scrollbar-thumb {
  background: var(--color-surface-hover);
  border-radius: 4px;
}

/* Messages */
.demo-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  animation: msgAppear 0.3s ease;
}

@keyframes msgAppear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-msg-bot {
  align-self: flex-start;
}

.demo-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.demo-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.demo-msg-bubble {
  max-width: 260px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.demo-msg-bot .demo-msg-bubble {
  background: var(--color-surface);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

.demo-msg-user .demo-msg-bubble {
  background: var(--color-gradient);
  color: var(--color-bg);
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

/* Tag under bot message */
.demo-msg-tag {
  margin-left: 36px;
  margin-top: -2px;
  margin-bottom: 4px;
  padding: 4px 10px;
  background: rgba(45, 212, 168, 0.08);
  border: 1px solid rgba(45, 212, 168, 0.15);
  border-radius: 8px;
  font-size: 12px;
  color: var(--color-accent);
  display: inline-block;
  animation: msgAppear 0.3s ease;
}

/* Typing indicator */
.demo-typing-bubble {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 18px !important;
}

.demo-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: typingPulse 1.4s infinite;
}

.demo-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.demo-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

/* Options area */
.demo-options {
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.demo-option-btn {
  width: 100%;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.demo-option-btn:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-hover);
}

.demo-cta-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--color-gradient);
  color: var(--color-bg);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: box-shadow var(--transition);
}

.demo-cta-btn:hover {
  box-shadow: 0 4px 20px rgba(45, 212, 168, 0.3);
  opacity: 1;
}

.demo-restart-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-main);
  font-size: 13px;
  cursor: pointer;
  padding: 6px;
  transition: color var(--transition);
}

.demo-restart-btn:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .demo-phone {
    width: 100%;
    max-width: 340px;
    border-radius: 28px;
  }
  .demo-phone-screen {
    margin: 8px;
    border-radius: 20px;
    min-height: 460px;
    max-height: 540px;
  }
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 4px 24px rgba(45, 212, 168, 0.08);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Screenshots --- */
.screenshots-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px 20px;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: nowrap;
}

.screenshots-scroll::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  scroll-snap-align: center;
  flex-shrink: 0;
  text-align: center;
}

.screenshot-mockup {
  width: 190px;
  background: #1a1f36;
  border-radius: 26px;
  border: 2.5px solid #2a2f4a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.screenshot-screen {
  margin: 8px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-surface);
}

.screenshot-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

.screenshot-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}

@media (max-width: 1100px) {
  .screenshots-scroll {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .screenshot-mockup {
    width: 160px;
    border-radius: 22px;
  }
  .screenshot-screen {
    margin: 6px;
    border-radius: 16px;
  }
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  border-color: var(--color-border-hover);
}

.pricing-card.featured {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--color-surface), var(--color-surface)),
                     var(--color-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 8px 40px rgba(45, 212, 168, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gradient);
  color: var(--color-bg);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.pricing-features li::before {
  content: '✓';
  color: var(--color-accent);
  margin-right: 10px;
  font-weight: 600;
}

.pricing-note {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* --- FAQ --- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--color-border-hover);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Footer --- */
.zaro-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--color-border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.footer-logo span {
  font-size: 18px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
}

.footer-copy {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 12px;
  color: #5a6380;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
