/* ============================================================
   Citely Static Landing Page - Style
   All links redirect to citely.ai
   ============================================================ */

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

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}
.logo-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.main-nav a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--slate-600);
  font-weight: 500;
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--slate-900); background: var(--slate-100); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.btn-signin {
  padding: 8px 20px;
  background: var(--blue);
  color: var(--white) !important;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  transition: background .15s, transform .1s;
}
.btn-signin:hover { background: var(--blue-dark); transform: translateY(-1px); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: .3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
}
.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: .95rem;
  color: var(--slate-700);
}
.mobile-nav .mobile-signin {
  margin-top: 12px;
  background: var(--blue);
  color: var(--white) !important;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  border-bottom: none;
  font-weight: 600;
}
.mobile-nav.open { display: flex; }

/* ---- HERO ---- */
.hero-section {
  padding: 80px 0 0;
  background: linear-gradient(180deg, #f8faff 0%, #fff 60%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 60px;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -.03em;
}
.hero-highlight {
  position: relative;
  color: var(--blue);
  white-space: nowrap;
}
.underline-svg {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 12px;
  pointer-events: none;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--slate-600);
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn-primary {
  padding: 14px 28px;
  background: var(--blue);
  color: var(--white);
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,.45);
}
.btn-outline {
  padding: 14px 28px;
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: background .15s, color .15s, transform .15s;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}
.hero-wechat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: var(--slate-500, #64748b);
}
.hero-wechat svg { color: #07c160; flex-shrink: 0; }

.hero-video { position: relative; }
.video-thumbnail {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  aspect-ratio: 16/9;
  background: var(--slate-100);
}
.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.video-thumbnail:hover img { transform: scale(1.03); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  transition: background .2s;
}
.video-thumbnail:hover .play-btn { background: rgba(0,0,0,.5); }
.play-btn svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
  transition: transform .2s;
}
.video-thumbnail:hover .play-btn svg { transform: scale(1.15); }
.video-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .8rem;
  white-space: nowrap;
}

/* Trust Section */
.trust-section {
  border-top: 1px solid var(--slate-200);
  padding: 36px 0;
  background: var(--white);
}
.trust-title {
  text-align: center;
  font-size: .875rem;
  font-weight: 600;
  color: var(--slate-400);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: .7;
  transition: opacity .2s;
}
.trust-logo-item:hover { opacity: 1; }
.trust-logo-item img {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}
.trust-logo-item span {
  font-size: .75rem;
  font-weight: 600;
  color: var(--slate-500, #64748b);
}

/* ---- FEATURES ---- */
.features-section {
  position: relative;
  padding: 100px 0;
  background: var(--blue);
  overflow: hidden;
}
.features-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.features-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
}
.features-inner { position: relative; z-index: 1; }
.features-header {
  text-align: center;
  margin-bottom: 56px;
}
.text-white { color: var(--white) !important; }
.text-blue-200 { color: #bfdbfe !important; }

.tab-list {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  width: fit-content;
  margin: 0 auto 40px;
}
.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: inherit;
}
.tab-btn.active {
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  border-radius: 8px;
}
.tab-btn:hover:not(.active) { color: var(--white); background: rgba(255,255,255,.15); }

.tab-panels { }
.tab-panel {
  display: none;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: center;
}
.tab-panel.active { display: grid; }
.tab-content {
  color: var(--white);
}
.tab-content p { font-size: 1rem; line-height: 1.8; margin-bottom: 24px; opacity: .9; }
.btn-tab-action {
  display: inline-block;
  padding: 10px 24px;
  background: var(--white);
  color: var(--blue);
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .15s, box-shadow .15s;
}
.btn-tab-action:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.tab-media { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.tab-video, .tab-img { width: 100%; border-radius: 12px; display: block; }

/* ---- BENEFIT ---- */
.benefit-section { padding: 100px 0; background: var(--white); }
.section-header-center { text-align: center; margin-bottom: 60px; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.section-desc { font-size: 1rem; color: var(--slate-600); max-width: 560px; margin: 0 auto; }
.section-label {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.benefit-grid { display: flex; flex-direction: column; gap: 80px; }
.benefit-card {
  display: grid;
  grid-template-columns: 32px 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.benefit-card-reverse { direction: rtl; }
.benefit-card-reverse > * { direction: ltr; }
.benefit-icon svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
  flex-shrink: 0;
}
.benefit-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 10px;
}
.benefit-summary {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 10px;
}
.benefit-desc { font-size: .9rem; color: var(--slate-600); line-height: 1.75; margin-bottom: 16px; }
.benefit-link {
  color: var(--blue);
  font-weight: 600;
  font-size: .9rem;
  transition: gap .15s;
}
.benefit-link:hover { text-decoration: underline; }
.benefit-img img {
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  width: 100%;
}

/* ---- CTA MID ---- */
.cta-mid-section {
  background: var(--blue-light);
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
  padding: 48px 0;
}
.cta-mid-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-mid-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 8px;
}
.cta-mid-text p { font-size: .95rem; color: var(--slate-600); }
.btn-white {
  flex-shrink: 0;
  padding: 14px 28px;
  background: var(--blue);
  color: var(--white);
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: background .15s, transform .15s;
}
.btn-white:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ---- TESTIMONIAL ---- */
.testimonial-section { padding: 100px 0; background: var(--slate-100); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-text {
  font-size: .925rem;
  color: var(--slate-600);
  line-height: 1.8;
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: .9rem; color: var(--slate-900); }
.author-role { font-size: .8rem; color: var(--slate-500, #64748b); margin-top: 2px; }

/* ---- PRICING ---- */
.pricing-section {
  padding: 100px 0;
  background: var(--slate-900);
}
.pricing-section .section-title { color: var(--white); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.pricing-card {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .2s, border-color .2s;
}
.pricing-card:hover { transform: translateY(-4px); border-color: var(--slate-600); }
.pricing-featured {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(37,99,235,.4);
}
.pricing-featured:hover { transform: scale(1.03) translateY(-4px); }
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-top {}
.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.plan-desc { font-size: .8rem; color: var(--slate-400); margin-bottom: 16px; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.price-main {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}
.price-unit { font-size: .9rem; color: var(--slate-400); }
.price-usd { font-size: .8rem; color: var(--slate-400); }
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .85rem;
  color: var(--slate-200);
  line-height: 1.4;
}
.plan-features li svg {
  width: 16px;
  height: 16px;
  color: #4ade80;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-featured .plan-features li { color: rgba(255,255,255,.9); }
.pricing-featured .plan-features li svg { color: rgba(255,255,255,.9); }
.btn-plan {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--slate-700);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  transition: background .15s;
}
.btn-plan:hover { background: var(--slate-600); }
.btn-plan-featured {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--white);
  color: var(--blue);
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  transition: background .15s, transform .15s;
}
.btn-plan-featured:hover { background: #f0f7ff; transform: translateY(-1px); }
.pricing-contact {
  text-align: center;
  margin-top: 36px;
  font-size: .875rem;
  color: var(--slate-400);
}
.pricing-contact a { color: var(--blue-light); text-decoration: underline; }

/* ---- FAQ ---- */
.faq-section {
  position: relative;
  padding: 100px 0;
  background: var(--slate-900);
  overflow: hidden;
}
.faq-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.faq-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .15;
}
.faq-section .container { position: relative; z-index: 1; }
.faq-section .section-title { color: var(--white); }
.faq-section .section-desc { color: var(--slate-400); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--slate-700);
  border-radius: 10px;
  overflow: hidden;
  background: var(--slate-800);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  font-family: inherit;
  transition: background .15s;
}
.faq-question:hover { background: rgba(255,255,255,.05); }
.faq-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--slate-400);
  transition: transform .25s;
}
.faq-question.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-size: .875rem;
  color: var(--slate-400);
  line-height: 1.75;
  transition: max-height .3s ease, padding .3s;
  padding: 0 20px;
}
.faq-answer.open {
  max-height: 400px;
  padding: 0 20px 18px;
}

/* ---- CTA BOTTOM ---- */
.cta-section {
  position: relative;
  padding: 100px 0;
  background: var(--blue);
  overflow: hidden;
  text-align: center;
}
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.75;
}
.btn-white-lg {
  display: inline-block;
  padding: 16px 36px;
  background: var(--white);
  color: var(--blue);
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

/* ---- FOOTER ---- */
.site-footer-bottom {
  background: var(--slate-900);
  border-top: 1px solid var(--slate-800);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 24px 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.footer-logo span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.footer-brand-desc {
  font-size: .85rem;
  color: var(--slate-400);
  line-height: 1.75;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--slate-800);
  color: var(--slate-400);
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: var(--slate-700); color: var(--white); }
.footer-nav-group h4 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-nav-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-group a {
  font-size: .875rem;
  color: var(--slate-400);
  transition: color .15s;
}
.footer-nav-group a:hover { color: var(--white); }
.footer-copyright {
  border-top: 1px solid var(--slate-800);
  padding: 20px 24px;
  font-size: .8rem;
  color: var(--slate-600);
}

/* ---- VIDEO MODAL ---- */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
}
.modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
  opacity: .8;
  transition: opacity .15s;
}
.modal-close:hover { opacity: 1; }
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-featured { transform: none; }
  .pricing-featured:hover { transform: translateY(-4px); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-video { order: -1; }
  .hero-title { font-size: 2rem; }
  .tab-list { flex-direction: column; width: 100%; }
  .tab-panel.active { grid-template-columns: 1fr; }
  .tab-media { order: -1; }
  .benefit-card { grid-template-columns: 1fr; }
  .benefit-icon { display: none; }
  .benefit-card-reverse { direction: ltr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-mid-inner { flex-direction: column; text-align: center; }
  .trust-logos { gap: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
}
