/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --ink-900:  #0f172a;
  --ink-700:  #334155;
  --ink-500:  #64748b;
  --ink-400:  #94a3b8;
  --ink-200:  #e2e8f0;
  --ink-100:  #f1f5f9;
  --ink-50:   #f8fafc;
  --white:    #ffffff;
  --green:    #10b981;
  --purple:   #8b5cf6;
  --pink:     #ec4899;
  --orange:   #f97316;
  --yellow:   #eab308;
  --red:      #ef4444;
  --teal:     #14b8a6;
  --indigo:   #6366f1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(37, 99, 235, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4); }
.btn-outline {
  background: var(--white);
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-outline-light {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.2); }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { color: var(--blue-600); }

/* ---------- NAVIGATION ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink-900);
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.9);
}
.logo-ai {
  background: linear-gradient(135deg, var(--blue-600), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue-600); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- HERO ---------- */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(139, 92, 246, 0.08), transparent 60%),
    var(--white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero .sub {
  font-size: 18px;
  color: var(--ink-500);
  margin-bottom: 32px;
  max-width: 540px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.trust { display: flex; align-items: center; gap: 14px; }
.avatars { display: flex; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
}
.avatar:first-child { margin-left: 0; }
.trust-text { color: var(--ink-500); font-size: 14px; }

/* ---------- HERO MOCKUP ---------- */
.hero-mockup {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}
.chat-widget {
  width: 360px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-200);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.chat-name { font-weight: 700; font-size: 15px; }
.chat-status { font-size: 12px; display: flex; align-items: center; gap: 6px; opacity: 0.9; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}
.chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--ink-50);
  min-height: 220px;
}
.msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  max-width: 85%;
  line-height: 1.4;
}
.msg.bot {
  background: var(--white);
  color: var(--ink-900);
  border: 1px solid var(--ink-200);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg.user {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg.form-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--blue-100);
  padding: 12px;
  border-radius: 12px;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}
.form-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.form-card-text { flex: 1; }
.form-card-title { font-weight: 600; font-size: 13px; color: var(--ink-900); }
.form-card-sub { font-size: 11px; color: var(--ink-500); }
.form-card-arrow { color: var(--blue-600); font-weight: 700; }
.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--ink-200);
  background: var(--white);
}
.chat-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink-700);
}
.send-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 480px;
}
.mini-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mini-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-bottom: 8px;
}
.mini-icon.blue { background: var(--blue-50); }
.mini-icon.green { background: #d1fae5; }
.mini-icon.purple { background: #ede9fe; }
.mini-label { font-size: 11px; color: var(--ink-500); font-weight: 500; }
.mini-value { font-size: 20px; font-weight: 800; color: var(--ink-900); margin: 2px 0; }
.mini-trend { font-size: 11px; font-weight: 600; }
.mini-trend.up { color: var(--green); }

/* ---------- SECTIONS ---------- */
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 16px 0;
  line-height: 1.2;
}
.section-sub {
  font-size: 17px;
  color: var(--ink-500);
}

/* ---------- PROBLEM ---------- */
.problem { background: var(--ink-50); }
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pain-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s ease;
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}
.pain-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.pain-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.pain-card p { color: var(--ink-500); font-size: 14px; }

/* ---------- SOLUTION ---------- */
.solution { background: var(--white); }
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}
.step {
  background: linear-gradient(135deg, var(--white), var(--ink-50));
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s;
}
.step:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.step-num {
  width: 44px; height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
.step-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--ink-500); font-size: 14px; }
.step-arrow {
  align-self: center;
  color: var(--blue-600);
  font-size: 28px;
  font-weight: 700;
}

/* ---------- FEATURES ---------- */
.features { background: var(--ink-50); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.feature-icon.blue { background: var(--blue-50); }
.feature-icon.indigo { background: #eef2ff; }
.feature-icon.purple { background: #f5f3ff; }
.feature-icon.pink { background: #fdf2f8; }
.feature-icon.green { background: #ecfdf5; }
.feature-icon.orange { background: #fff7ed; }
.feature-icon.teal { background: #f0fdfa; }
.feature-icon.red { background: #fef2f2; }
.feature-icon.yellow { background: #fefce8; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--ink-500); font-size: 14px; }

/* ---------- PRICING ---------- */
.pricing { background: var(--white); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
  max-width: 840px;
  margin: 0 auto;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.price-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.price-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.free-icon {
  background: var(--ink-50);
  color: var(--ink-700);
}
.pro-icon {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.price-title-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price-name { font-size: 20px; font-weight: 800; line-height: 1; }
.price-desc { font-size: 14px; color: var(--ink-500); line-height: 1.3; }
.price { margin-bottom: 24px; }
.price-amount { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--ink-900); }
.price-period { font-size: 15px; color: var(--ink-500); margin-left: 4px; }
.price-note { font-size: 14px; color: var(--ink-500); margin-bottom: 24px; margin-top: -12px; }
.price-features-title { font-size: 12px; font-weight: 700; color: var(--ink-400); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 20px; margin-top: 36px; }
.price-list {
  list-style: none;
  margin-bottom: 0;
  flex: 1;
}
.price-list li {
  padding: 10px 0;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-700);
}
.price-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.price-list.pro-list li::before {
  background: #d1fae5;
  color: #10b981;
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(255,255,255,0.1), transparent 60%),
    radial-gradient(500px 250px at 80% 80%, rgba(139, 92, 246, 0.25), transparent 60%);
}
.final-cta-inner { position: relative; max-width: 760px; }
.final-cta h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.final-cta p { font-size: 17px; opacity: 0.9; margin-bottom: 32px; }
.final-cta .cta-row { justify-content: center; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--white);
  color: var(--ink-500);
  padding: 50px 0 30px;
  border-top: 1px solid var(--ink-200);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}
.footer .logo { color: var(--ink-900); }
.footer-brand p { font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--ink-500); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue-600); }
.footer-copy { text-align: right; font-size: 13px; }

/* ---------- TUTORIALS ---------- */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.tutorial-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.tutorial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}
.tutorial-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: var(--ink-900);
}
.tutorial-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tutorial-content {
  padding: 24px;
  flex: 1;
}
.tutorial-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.tutorial-content p {
  color: var(--ink-500);
  font-size: 14px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-mockup { align-items: center; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); justify-self: center; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .footer-copy { text-align: center; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links, .nav.open .nav-cta {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--shadow-md);
    gap: 14px;
  }
  .nav.open .nav-cta { top: auto; border-top: 1px solid var(--ink-200); padding-top: 14px; }
  .section { padding: 70px 0; }
  .hero { padding: 50px 0 70px; }
  .chat-widget { width: 100%; max-width: 360px; }
  .mini-cards { grid-template-columns: 1fr; max-width: 100%; }
  .cards-4 { grid-template-columns: 1fr; }
}