:root {
  --bg: #0c0806;
  --bg-2: #16100c;
  --surface: rgba(255, 248, 240, 0.06);
  --surface-2: rgba(255, 248, 240, 0.1);
  --border: rgba(255, 179, 71, 0.18);
  --text: #fff8f0;
  --muted: rgba(255, 248, 240, 0.68);
  --dim: rgba(255, 248, 240, 0.45);
  --accent: #ff6b2b;
  --accent-2: #ffb347;
  --accent-glow: rgba(255, 107, 43, 0.35);
  --green: #4ade80;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1160px;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow::before,
.bg-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.bg-glow::before {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, #ff6b2b 0%, transparent 70%);
}

.bg-glow::after {
  width: 420px;
  height: 420px;
  bottom: 10%;
  left: -120px;
  background: radial-gradient(circle, #ffb347 0%, transparent 70%);
  animation-delay: -6s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 24px) scale(1.08); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(12, 8, 6, 0.72);
  border-bottom: 1px solid rgba(255, 179, 71, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.header-cta {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff8f45);
  color: #1a0f08;
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(255, 107, 43, 0.45);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 248, 240, 0.04);
}

.btn-lg {
  padding: 18px 28px;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 107, 43, 0.12);
  border: 1px solid rgba(255, 107, 43, 0.25);
  color: #ffc896;
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero {
  position: relative;
  z-index: 1;
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #fff8f0 10%, #ffb347 55%, #ff6b2b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--dim);
  font-size: 0.92rem;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.phone {
  position: relative;
  width: min(380px, 100%);
  margin: 0 auto;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(255, 248, 240, 0.16), rgba(255, 248, 240, 0.04));
  border: 1px solid rgba(255, 248, 240, 0.12);
  box-shadow: var(--shadow);
}

.phone-notch {
  width: 110px;
  height: 24px;
  margin: 0 auto 12px;
  border-radius: 0 0 16px 16px;
  background: rgba(0, 0, 0, 0.35);
}

.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: #17212b;
  height: 520px;
  display: flex;
  flex-direction: column;
}

.phone-top {
  padding: 14px 16px;
  background: #232e3c;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #17212b;
}

.phone-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-title {
  font-weight: 800;
  font-size: 0.95rem;
}

.phone-sub {
  color: #8fa3b5;
  font-size: 0.78rem;
}

.chat {
  padding: 14px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: opacity 0.5s ease;
}

.chat.chat-fade-out {
  opacity: 0;
}

.chat::-webkit-scrollbar {
  width: 4px;
}

.chat::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.42;
  opacity: 0;
  transform: translateY(10px) scale(0.97);
}

.bubble-enter {
  animation: bubbleIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bubbleIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bubble-bot {
  align-self: flex-start;
  background: #242f3d;
  border-bottom-left-radius: 4px;
}

.bubble-user {
  align-self: flex-end;
  background: #2b5278;
  border-bottom-right-radius: 4px;
}

.bubble-photo {
  padding: 4px;
  background: #2b5278;
  max-width: 72%;
}

.bubble-photo img {
  display: block;
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.bubble strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.86rem;
}

.bubble-steps {
  margin-top: 6px;
  color: #b8c5d3;
  font-size: 0.78rem;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
  width: fit-content;
  opacity: 1;
  transform: none;
  animation: none;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fa3b5;
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 14px;
  background: #232e3c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-input-field {
  flex: 1;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 18px;
  background: #17212b;
  color: #e8edf2;
  font-size: 0.8rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#demo-input-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.input-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  margin-left: 1px;
  background: var(--accent-2);
  animation: cursorBlink 1s step-end infinite;
  flex-shrink: 0;
}

.input-cursor.hidden {
  display: none;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.phone-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0f08;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.phone-send-btn.send-pulse {
  animation: sendPulse 0.35s ease;
}

@keyframes sendPulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.88); }
  100% { transform: scale(1); }
}

.phone-float {
  position: absolute;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(22, 16, 12, 0.92);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}

.phone-float.kbju {
  top: 12%;
  left: -8%;
}

.phone-float.menu {
  bottom: 16%;
  right: -10%;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stats {
  position: relative;
  z-index: 1;
  padding: 12px 0 64px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

section {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(255, 248, 240, 0.02));
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 179, 71, 0.35);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: rgba(255, 107, 43, 0.12);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0f08;
}

.pricing-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  align-items: stretch;
}

.plan {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.plan-free {
  opacity: 0.92;
}

.plan-premium {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 107, 43, 0.45);
  background:
    radial-gradient(circle at top right, rgba(255, 107, 43, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 248, 240, 0.08), rgba(255, 248, 240, 0.03));
  box-shadow: 0 20px 60px rgba(255, 107, 43, 0.12);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0f08;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.plan-price {
  margin: 0 0 18px;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.plan-price small {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

.plan-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.plan-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

.plan-list li.muted::before {
  content: "—";
  color: var(--dim);
}

.faq-grid {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-q span:last-child {
  color: var(--accent-2);
  transition: transform 0.25s;
}

.faq-item.open .faq-q span:last-child {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-a {
  max-height: 200px;
}

.cta-band {
  margin: 24px 0 0;
  padding: 48px 28px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(255, 107, 43, 0.2), transparent 55%),
    linear-gradient(135deg, rgba(255, 107, 43, 0.12), rgba(255, 179, 71, 0.08));
  border: 1px solid rgba(255, 107, 43, 0.28);
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-band p {
  margin: 0 auto 22px;
  max-width: 560px;
  color: var(--muted);
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 36px 0 100px;
  color: var(--dim);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid rgba(255, 248, 240, 0.08);
  padding-top: 24px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--text);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(12, 8, 6, 0.92);
  border-top: 1px solid rgba(255, 179, 71, 0.15);
  backdrop-filter: blur(14px);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-inner {
  max-width: 420px;
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero-grid,
  .pricing-wrap,
  .features-grid,
  .steps,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead,
  .hero-actions,
  .hero-trust {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .phone-float {
    display: none;
  }

  .header-cta .btn-ghost {
    display: none;
  }
}

@media (min-width: 981px) {
  .sticky-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-lg {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
