/* Sitp GPT — SiteGPT-inspired landing sections */
:root {
  --sg-blue: #2563eb;
  --sg-blue-light: #eff6ff;
  --sg-blue-soft: #dbeafe;
  --sg-text: #111827;
  --sg-muted: #6b7280;
}

.landing-header .logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.landing-header .nav-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  font-size: 0.8rem;
}

.landing-header .nav-links a span.cn {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions .sign-in {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}

.header-actions .btn-trial {
  background: var(--sg-blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.header-actions .btn-trial:hover {
  background: #1d4ed8;
  text-decoration: none;
}

.lang-switch {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sg-muted);
  text-decoration: none;
}
.lang-switch:hover { color: var(--sg-blue); }

/* Hero split */
.hero-split {
  padding: 48px 0 64px;
  background: #fff;
}

.hero-split .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #f97316;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 20px;
}

.hero-split h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-align: left;
}

.hero-split h1 .blue {
  color: var(--sg-blue);
}

.hero-split .lead {
  color: var(--sg-muted);
  font-size: 1.05rem;
  text-align: left;
  max-width: none;
  margin: 0 0 8px;
}

.hero-split .lead-cn {
  color: var(--sg-muted);
  font-size: 0.95rem;
  text-align: left;
}

/* Chat mockup */
.chat-mockup {
  border: 1px solid var(--sg-blue-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
  background: #fff;
}

.chat-mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--sg-blue-light);
  border-bottom: 1px solid var(--sg-blue-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.chat-mockup-header img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.chat-mockup-body {
  padding: 16px;
  min-height: 280px;
}

.chat-bubble {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.chat-bubble ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chat-chip {
  border: 1px solid var(--sg-blue-soft);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.75rem;
  color: var(--sg-blue);
  cursor: pointer;
  font-family: inherit;
}

.chat-chip:hover {
  background: var(--sg-blue-light);
}

.chat-messages {
  max-height: 360px;
  overflow-y: auto;
}

.chat-msg {
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 92%;
}

.chat-msg-user {
  background: var(--sg-blue);
  color: #fff;
  margin-left: auto;
  text-align: left;
}

.chat-msg-bot {
  background: #f3f4f6;
  color: var(--sg-text);
}

.chat-msg-loading {
  opacity: 0.7;
  font-style: italic;
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-input:disabled {
  opacity: 0.7;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.chat-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.8rem;
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sg-blue);
  border: none;
  color: #fff;
  font-size: 1rem;
}

/* Imagine banner */
.imagine-banner {
  text-align: center;
  padding: 64px 24px;
  background: var(--sg-blue-light);
}

.imagine-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

.imagine-banner .dotted {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

/* Feature rows */
.feature-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.feature-section:nth-child(even) {
  background: #fafbfc;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-visual {
  order: 1;
}

.feature-label {
  color: var(--sg-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.feature-text h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.2;
}

.feature-text h2 .dotted {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

.feature-text p {
  color: var(--sg-muted);
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.feature-visual {
  background: var(--sg-blue-light);
  border-radius: 16px;
  padding: 32px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Visual placeholders */
.vis-card-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.vis-card {
  background: #fff;
  border: 1px solid var(--sg-blue-soft);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.vis-card.highlight {
  background: var(--sg-blue);
  color: #fff;
  border-color: var(--sg-blue);
}

.vis-card .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--sg-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--sg-blue);
  flex-shrink: 0;
}

.vis-card.highlight .icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.vis-lines {
  flex: 1;
}

.vis-lines .line {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  margin-bottom: 4px;
}

.vis-card.highlight .vis-lines .line {
  background: rgba(255,255,255,0.4);
}

.vis-phone {
  width: 180px;
  border: 2px solid var(--sg-blue);
  border-radius: 20px;
  padding: 16px 12px;
  background: #fff;
}

.vis-support-btn {
  background: var(--sg-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 12px;
}

.vis-orbit {
  position: relative;
  width: 280px;
  height: 280px;
}

.vis-orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.vis-orbit-center img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.vis-orbit-item {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Integrations header */
.integrations-header {
  text-align: center;
  padding: 64px 24px 32px;
}

.integrations-header .eyebrow {
  color: var(--sg-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.integrations-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 12px 0;
}

.integrations-header h2 .blue {
  color: var(--sg-blue);
  text-decoration: underline;
  text-decoration-style: dotted;
}

.integrations-header p {
  color: var(--sg-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Live demo */
.live-demo-section .feature-row {
  align-items: stretch;
}

/* FAQ */
.faq-section {
  padding: 64px 0;
  background: #fff;
}

.faq-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.faq-intro h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.faq-tab {
  background: none;
  border: none;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sg-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.faq-tab.active {
  color: var(--sg-blue);
  border-bottom-color: var(--sg-blue);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 16px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item .cn {
  display: block;
  font-weight: 400;
  color: var(--sg-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.faq-item .answer {
  margin-top: 12px;
  color: var(--sg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-ask {
  color: var(--sg-blue);
  font-size: 0.75rem;
  white-space: nowrap;
}

.faq-ask-btn {
  color: var(--sg-blue);
  font-size: 0.75rem;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  padding: 0 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.faq-ask-btn:hover {
  text-decoration: underline;
}

.faq-item summary {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.faq-panel {
  display: none;
}

.faq-panel.active {
  display: block;
}

/* CTA banner */
.cta-banner {
  background: var(--sg-blue);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 12px;
}

.cta-banner p {
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 24px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-buttons .btn-white {
  background: #fff;
  color: var(--sg-blue);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.cta-buttons .btn-outline {
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.cta-buttons .btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

.cta-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 32px;
  font-size: 0.8rem;
}

.cta-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-trust .check {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

/* Landing footer */
.landing-footer {
  background: var(--sg-blue-light);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.footer-brand .name {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--sg-muted);
  line-height: 1.5;
}

.footer-col h4 {
  color: var(--sg-blue);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  color: var(--sg-text);
  font-size: 0.85rem;
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--sg-blue);
}

.footer-col a .cn {
  color: var(--sg-muted);
  margin-left: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--sg-blue-soft);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--sg-muted);
}

/* Tools section divider */
.tools-section-title {
  text-align: center;
  padding: 48px 0 0;
}

.tools-section-title h2 {
  font-size: 1.75rem;
  font-weight: 800;
}

.tools-section-title p {
  color: var(--sg-muted);
}

/* Floating chat */
.float-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sg-blue);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 10px;
}

.float-chat img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.float-chat {
  border: none;
  cursor: pointer;
}

/* Assistant floating panel */
.assistant-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: min(380px, calc(100vw - 32px));
  z-index: 300;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.assistant-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.assistant-panel-inner {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  border: 1px solid var(--sg-blue-soft);
  overflow: hidden;
}

.assistant-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--sg-blue-light);
  font-size: 0.85rem;
  font-weight: 600;
}

.assistant-panel-header span {
  flex: 1;
}

.assistant-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--sg-muted);
  padding: 0 4px;
}

.assistant-messages {
  padding: 12px 16px;
  max-height: 280px;
  overflow-y: auto;
}

/* Demo modal */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.demo-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.demo-modal-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: min(440px, 100%);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.demo-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
}

.demo-modal-box h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.demo-modal-sub {
  color: var(--sg-muted);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

#demo-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

#demo-form input,
#demo-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

.demo-success {
  text-align: center;
  padding: 24px 0;
  color: var(--sg-text);
}

.demo-success p {
  margin: 8px 0;
}

@media (max-width: 900px) {
  .hero-split .container,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-visual {
    order: unset;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .landing-header .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
