/* ============================================
   WEB GEN AI — Global Styles
   Client: X4 Digital | Build: x4-438733
   Palette: Best-in-class conversion dark
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Core palette — elevated from existing brand */
  --bg:          #050508;
  --surface:     #0D0D12;
  --surface2:    #12121A;
  --border:      #1C1C28;
  --border-glow: rgba(99, 102, 241, 0.35);

  /* Accent — shifted from electric blue to indigo-violet for best-in-class feel */
  --accent:      #6366F1;
  --accent-2:    #8B5CF6;
  --accent-glow: rgba(99, 102, 241, 0.2);
  --accent-dim:  rgba(99, 102, 241, 0.12);
  --cyan:        #06B6D4;
  --cyan-glow:   rgba(6, 182, 212, 0.2);

  /* Text */
  --text:        #F1F5F9;
  --text-2:      #94A3B8;
  --muted:       #475569;

  /* Semantic */
  --success:     #10B981;
  --warning:     #F59E0B;
  --danger:      #EF4444;

  /* Spacing */
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  /* Transitions */
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ---- Global Grid ---- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Gradient Background Orbs ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  top: -200px; left: -200px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.14) 0%, transparent 70%);
  top: 20%; right: -150px;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
  bottom: 0; left: 30%;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.15em;
}
.nav-logo .x4 { color: var(--text); }
.nav-logo .digital { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface2); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.nav-mobile a {
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:hover { color: var(--text); background: var(--surface2); }
.nav-mobile.open { display: flex; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  box-shadow: 0 0 24px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(99,102,241,0.4), 0 8px 24px rgba(0,0,0,0.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-lg {
  padding: 0.95rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}
.btn-xl {
  padding: 1.1rem 2.75rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* ---- Pill Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(99,102,241,0.4);
  background: var(--accent-dim);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ---- Section Titles ---- */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-title .hl { color: var(--accent); }
.section-title .hl-cyan { color: var(--cyan); }
.section-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 600px;
}

/* ---- Card ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-2px);
}
.card-glow:hover {
  box-shadow: 0 0 40px var(--accent-glow);
}

/* ---- Glow Divider ---- */
.glow-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.3;
  margin: 4rem 0;
}

/* ---- Sections ---- */
section { position: relative; overflow: hidden; }
.section-pad { padding: 6rem 0; }
.section-pad-sm { padding: 4rem 0; }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  position: relative;
}
.hero-eyebrow {
  margin-bottom: 1.75rem;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 900px;
}
.hero-title .line2 { color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-price-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10B981;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}
.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-proof-item { text-align: center; }
.hero-proof-item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.hero-proof-item span {
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 500;
}
.proof-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ---- Demo Section ---- */
.demo-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(99,102,241,0.12), 0 40px 80px rgba(0,0,0,0.6);
  max-width: 820px;
  margin: 0 auto;
}
.demo-titlebar {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.demo-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.demo-dot.red   { background: #FF5F57; }
.demo-dot.yellow { background: #FFBD2E; }
.demo-dot.green { background: #28C840; }
.demo-titlebar-label {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
}
.demo-chat {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 320px;
}
.demo-msg {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 85%;
}
.demo-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.demo-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.demo-avatar.ai {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.demo-avatar.user-av {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.demo-bubble {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.demo-msg.user .demo-bubble {
  background: var(--accent-dim);
  border-color: rgba(99,102,241,0.25);
  border-top-right-radius: 4px;
  border-top-left-radius: 16px;
}
.demo-typing {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
  align-items: center;
}
.demo-typing span {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite;
}
.demo-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-6px); opacity: 1; }
}
.demo-input-row {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.demo-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.demo-input:focus { border-color: var(--accent); }
.demo-send {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
}
.demo-send:hover { opacity: 0.85; transform: scale(1.05); }
.demo-send svg { width: 18px; height: 18px; fill: #fff; }

/* ---- How It Works Steps ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.step-number {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}
.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}
.step-connector {
  position: absolute;
  top: 2.5rem;
  right: -0.75rem;
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent));
  display: none;
}

/* ---- Features Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.35);
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--accent-glow);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
}
.pricing-card.featured {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 60px var(--accent-glow);
}
.pricing-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 999px;
}
.pricing-plan {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.pricing-price .amount {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pricing-price .dollar {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-2);
  align-self: flex-start;
  padding-top: 0.5rem;
}
.pricing-price .per {
  font-size: 0.85rem;
  color: var(--text-2);
}
.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 2rem;
  line-height: 1.5;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-2);
}
.pricing-feature::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.testi-stars {
  color: var(--warning);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.testi-text {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testi-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testi-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.testi-role {
  font-size: 0.775rem;
  color: var(--muted);
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--text-2);
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.faq-item.open .faq-a { display: block; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.15), transparent 70%);
  pointer-events: none;
}

/* ---- Portfolio Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,8,0.85), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-top: 0.75rem;
  max-width: 260px;
  line-height: 1.6;
}
.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--text-2); }

/* ---- Scroll Animations ---- */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.hidden {
  opacity: 0;
  transform: translateY(24px);
}

/* ---- Grid BG Pattern ---- */
.grid-bg {
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---- Chat Page ---- */
.chat-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.chat-sidebar {
  width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.25rem;
  flex-shrink: 0;
}
.chat-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-history {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.chat-history-item {
  padding: 0.65rem 0.875rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-history-item:hover, .chat-history-item.active {
  background: var(--surface2);
  color: var(--text);
}
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-topbar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.chat-message {
  display: flex;
  gap: 1rem;
  max-width: 80%;
}
.chat-message.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.chat-msg-avatar.ai {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.chat-msg-avatar.user-av {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.7rem;
}
.chat-msg-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}
.chat-message.user .chat-msg-bubble {
  background: var(--accent-dim);
  border-color: rgba(99,102,241,0.25);
  border-top-right-radius: 4px;
  border-top-left-radius: 16px;
}
.chat-input-area {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.chat-input-wrap {
  display: flex;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
}
.chat-input-wrap:focus-within { border-color: var(--accent); }
.chat-input-wrap textarea {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  resize: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  max-height: 140px;
}
.chat-input-wrap textarea::placeholder { color: var(--muted); }
.chat-send-btn {
  align-self: flex-end;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.chat-send-btn:hover { opacity: 0.85; transform: scale(1.05); }
.chat-send-btn svg { width: 18px; height: 18px; fill: #fff; }
.chat-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ---- Dashboard ---- */
.dash-layout {
  display: flex;
  min-height: 100vh;
}
.dash-sidebar {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.dash-nav-item:hover, .dash-nav-item.active {
  background: var(--surface2);
  color: var(--text);
}
.dash-nav-item.active { color: var(--accent); }
.dash-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.dash-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.dash-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.dash-stat-label {
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.dash-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.dash-stat-sub {
  font-size: 0.775rem;
  color: var(--success);
  margin-top: 0.25rem;
}
.dash-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.dash-site-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.dash-site-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-2px);
}
.dash-site-preview {
  aspect-ratio: 16/9;
  background: var(--surface2);
  overflow: hidden;
}
.dash-site-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.dash-site-info {
  padding: 1rem 1.25rem;
}
.dash-site-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.dash-site-url {
  font-size: 0.775rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.dash-site-actions {
  display: flex;
  gap: 0.5rem;
}
.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.dash-badge.live {
  background: rgba(16,185,129,0.12);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.25);
}
.dash-badge.draft {
  background: rgba(245,158,11,0.12);
  color: var(--warning);
  border: 1px solid rgba(245,158,11,0.25);
}

/* ---- Auth Pages ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 0 60px rgba(99,102,241,0.08);
}
.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.auth-sub {
  font-size: 0.875rem;
  color: var(--text-2);
  text-align: center;
  margin-bottom: 2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-2);
}
.form-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--muted); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-2);
}
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}
.scroll-indicator svg {
  width: 20px; height: 20px;
  color: var(--muted);
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-cyan { color: var(--cyan); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 2.5rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.mb-sm { margin-bottom: 0.75rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 2.5rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .chat-sidebar { display: none; }
  .dash-sidebar { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; flex-direction: column; }
  .hero-proof { gap: 1.5rem; }
  .proof-sep { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-pad { padding: 4rem 0; }
}
@media (max-width: 480px) {
  .hero { padding: 6rem 1rem 4rem; }
  .hero-title { font-size: 2.4rem; }
  .card { padding: 1.25rem; }
  .auth-card { padding: 1.75rem; }
  .hero-cta-row { flex-direction: column; }
  .btn-xl { padding: 0.9rem 1.75rem; font-size: 1rem; }
}

/* ---- Code / Mono accents ---- */
.mono {
  font-family: 'Space Mono', monospace;
  font-size: 0.85em;
  color: var(--cyan);
}
.tag-inline {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15em 0.5em;
  font-family: 'Space Mono', monospace;
  font-size: 0.82em;
  color: var(--cyan);
}

/* ---- Ticker / marquee ---- */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  background: var(--surface);
}
.ticker {
  display: flex;
  gap: 4rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.ticker-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
