/* ── Landing Page Styles ── */

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-6);
  height: 56px;
}
.navbar-brand {
  font-size: var(--text-xl);
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.navbar-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.btn-nav {
  padding: 8px 20px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}
.btn-nav:hover {
  border-color: var(--accent-500);
  color: var(--accent-400);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: var(--sp-20) var(--sp-6) var(--sp-16);
}
.hero-content {
  max-width: 720px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-100);
  color: var(--accent-400);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--sp-6);
  animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}
.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
  animation: fadeInUp var(--duration-slow) var(--ease-out) 100ms both;
}
.hero-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto var(--sp-8);
  animation: fadeInUp var(--duration-slow) var(--ease-out) 200ms both;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  animation: fadeInUp var(--duration-slow) var(--ease-out) 300ms both;
}
.btn-primary-lg {
  padding: 14px 32px;
  background: var(--accent-500);
  color: #fff;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: var(--text-base);
  text-decoration: none;
  transition: all var(--duration-fast) ease;
  box-shadow: 0 4px 16px rgba(124, 109, 240, .3);
}
.btn-primary-lg:hover {
  background: var(--accent-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 109, 240, .4);
}
.btn-secondary-lg {
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}
.btn-secondary-lg:hover {
  border-color: var(--accent-500);
  color: var(--accent-400);
}

/* ── Section Headings ── */
.section-title {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--sp-4);
  color: var(--text-primary);
}
.section-subtitle {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--sp-10);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}
.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}
.step-card:hover {
  border-color: var(--accent-500);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.step-card.active {
  border-color: var(--accent-500);
  box-shadow: 0 0 20px rgba(124, 109, 240, .25);
  transform: translateY(-2px);
  animation: cardPulse 2s ease-in-out infinite;
}
.step-card.done {
  border-color: var(--success-500);
  box-shadow: 0 0 12px rgba(52, 211, 153, .15);
}
@keyframes cardPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 109, 240, .25); }
  50%      { box-shadow: 0 0 28px rgba(124, 109, 240, .4); }
}
.step-icon {
  font-size: 32px;
  margin-bottom: var(--sp-4);
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-100);
  border-radius: var(--radius-lg);
}
.step-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-2);
  color: var(--text-primary);
}
.step-card p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Demo Section ── */
.demo-section {
  padding: var(--sp-12) var(--sp-6) var(--sp-16);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Demo Layout ── */
.demo-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--sp-8);
  padding: var(--sp-8) 0;
  flex-wrap: wrap;
}

/* ── Phone Mockup ── */
.phone {
  width: 340px;
  height: 620px;
  background: var(--bg-surface);
  border-radius: 40px;
  border: 3px solid var(--border-default);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.phone-notch {
  width: 120px;
  height: 24px;
  background: var(--bg-root);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}
/* Phone notification banner */
.phone-notification {
  position: absolute;
  top: 28px;
  left: 12px;
  right: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  transform: translateY(-80px);
  opacity: 0;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
  pointer-events: none;
  border: 1px solid var(--glass-border);
}
.phone-notification.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.notif-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: #fff;
}
.notif-text { flex: 1; min-width: 0; }
.notif-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
}
.notif-body {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.phone-header {
  text-align: center;
  padding: var(--sp-2);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-400);
  border-bottom: 1px solid var(--border-default);
}
.phone-chat {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-input-row {
  display: flex;
  padding: 10px;
  gap: var(--sp-2);
  border-top: 1px solid var(--border-default);
  background: var(--bg-elevated);
}
.phone-input-row input {
  flex: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--duration-fast) ease;
}
.phone-input-row input:focus {
  border-color: var(--accent-500);
}
.phone-input-row input::placeholder { color: var(--text-tertiary); }
.phone-input-row button {
  background: var(--accent-500);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: var(--text-base);
  transition: background var(--duration-fast) ease;
}
.phone-input-row button:hover { background: var(--accent-600); }
.phone-input-row button:disabled { background: var(--border-strong); cursor: default; }

/* Chat bubbles */
.bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: var(--text-base);
  line-height: 1.4;
  animation: bubbleIn .25s var(--ease-out);
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bubble.sent {
  align-self: flex-end;
  background: var(--accent-500);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble.received {
  align-self: flex-start;
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.bubble.error {
  align-self: flex-start;
  background: var(--error-500);
  color: #fff;
  border-bottom-left-radius: 4px;
}
.bubble.example {
  align-self: flex-end;
  background: var(--accent-500);
  border: 1.5px dashed rgba(255, 255, 255, .4);
  color: rgba(255, 255, 255, .85);
  border-bottom-right-radius: 4px;
  cursor: pointer;
  opacity: .85;
  transition: opacity var(--duration-fast) ease, border-color var(--duration-fast) ease, transform var(--duration-fast) ease;
}
.bubble.example:hover {
  border-color: var(--accent-500);
  opacity: 1;
  transform: translateY(-2px);
}

/* ── Pipeline Steps ── */
.pipeline {
  width: 200px;
  padding-top: var(--sp-5);
}
.pipeline-header {
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-5);
  text-align: center;
}
.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
/* Connecting line */
.pipeline-steps::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-default);
  border-radius: 1px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  transition: color var(--duration-normal) ease;
  padding: 10px 0;
  position: relative;
}
.step .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 2px solid var(--border-strong);
  transition: all var(--duration-normal) ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step.active { color: var(--accent-400); }
.step.active .dot {
  background: var(--accent-500);
  border-color: var(--accent-500);
  box-shadow: 0 0 10px rgba(124, 109, 240, .4);
  animation: dotPulse 1.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(124, 109, 240, .4); }
  50%      { transform: scale(1.3); box-shadow: 0 0 16px rgba(124, 109, 240, .6); }
}
.step.done { color: var(--success-500); }
.step.done .dot {
  background: var(--success-500);
  border-color: var(--success-500);
}
.step.error { color: var(--error-500); }
.step.error .dot {
  background: var(--error-500);
  border-color: var(--error-500);
}

/* ── Email Inbox ── */
.inbox {
  width: 380px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.inbox-header {
  padding: var(--sp-4) var(--sp-5);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-400);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-elevated);
}
.inbox-icon { font-size: 18px; }
.inbox-list {
  min-height: 200px;
  max-height: 540px;
  overflow-y: auto;
}
.inbox-empty {
  padding: var(--sp-10) var(--sp-5);
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--text-base);
}
.inbox-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px var(--sp-5);
  border-bottom: 1px solid var(--border-default);
  animation: bubbleIn .45s var(--ease-out);
  cursor: pointer;
  transition: background var(--duration-fast) ease;
}
.inbox-row:hover { background: var(--bg-elevated); }
.inbox-row .icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.inbox-row .details { flex: 1; min-width: 0; }
.inbox-row .details .subject {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-row .details .meta {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}
.inbox-row .badge {
  background: var(--accent-500);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border-default);
  padding: var(--sp-12) var(--sp-6);
  margin-top: var(--sp-16);
}
.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  font-size: var(--text-xl);
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--sp-6);
}
.footer-links {
  margin-top: var(--sp-4);
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--duration-fast) ease;
}
.footer-links a:hover {
  color: var(--accent-400);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .hero-title {
    font-size: var(--text-3xl);
  }
}
@media (max-width: 768px) {
  .demo-layout {
    flex-direction: column;
    align-items: center;
  }
  .pipeline {
    width: auto;
    padding-top: 0;
  }
  .pipeline-steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-3);
  }
  .pipeline-steps::before { display: none; }
  .step { padding: var(--sp-2) var(--sp-3); }
  .phone { width: 100%; max-width: 340px; }
  .inbox { width: 100%; max-width: 380px; }
  .hero { padding: var(--sp-12) var(--sp-4) var(--sp-8); }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary-lg, .btn-secondary-lg { width: 100%; max-width: 280px; }
}
