/* Fonts: Inter + Space Grotesk */
:root {
  --bg: #0b0d10;
  --panel: #0f1217;
  --soft: #161a22;
  --text: #e6f0ff;
  --muted: #a7b3c7;
  --brand: #7c5cff;
  --brand-2: #00e5ff;
  --accent: #2af598;
  --danger: #ff6b6b;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
}

/* Light theme variables */
.theme-light {
  --bg: #f7f9fc;
  --panel: #ffffff;
  --soft: #f2f5fb;
  --text: #0b1b2b;
  --muted: #5b6b82;
  --shadow: 0 8px 24px rgba(20, 38, 61, .08), inset 0 1px 0 rgba(255, 255, 255, .6);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1120px, 94%);
  margin-inline: auto;
  padding-left: 0;
  padding-right: 0
}

.section {
  padding: 25px 0;
  position: relative
}

.section-head {
  margin-bottom: 32px
}

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

.card,
.benefit-card,
.stat-lg,
.stat,
.step,
.spark {
  padding: 24px;
  margin-bottom: 0;
  background: var(--panel);
  border: 1px solid rgba(20, 38, 61, .08);
  border-radius: 16px;
  box-shadow: var(--shadow)
}

.value-band {
  margin-bottom: 28px
}

.cta-inner {
  gap: 18px;
  padding: 32px 0 18px
}

.site-header {
  padding: 10px 0
}

.foot-grid {
  gap: 28px;
  padding-top: 10px
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .008;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.4"/></svg>');
  background-size: 200px 200px;
  mix-blend-mode: soft-light;
  z-index: 1
}

.bg-gradients {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  opacity: 0.3
}

.blob {
  position: absolute;
  filter: blur(80px);
  opacity: .4;
  border-radius: 50%
}

.blob.b1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 30% 30%, var(--brand), transparent 70%);
  top: -100px;
  left: -100px;
  animation: float 20s ease-in-out infinite
}

.blob.b2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle at 70% 70%, var(--brand-2), transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: float 25s ease-in-out infinite reverse
}

.blob.b3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 60% 40%, var(--accent), transparent 70%);
  top: 50%;
  left: 50%;
  animation: float 30s ease-in-out infinite
}

@keyframes float {
  50% {
    transform: translate3d(0, -15px, 0) scale(1.02)
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(120%) blur(10px);
  background: linear-gradient(to bottom, rgba(247, 249, 252, .8), rgba(247, 249, 252, 0));
  border-bottom: 1px solid rgba(20, 38, 61, .08);
  z-index: 50
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text)
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow)
}

.logo-text {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: .3px;
  font-size: 1.5rem;
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text);
  background: rgba(255, 255, 255, .02)
}

.btn.primary {
  text-align: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 0;
  color: white
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, .05)
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 22px
}

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

.display {
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(40px, 7vw, 64px)
}

.eyebrow {
  color: var(--brand-2);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 12px
}

.sub {
  color: var(--muted)
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 16px
}

.trust-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: var(--muted)
}

.trust-row i {
  color: var(--brand-2)
}

/* Problem Showcase in Hero */
.problem-showcase {
  position: relative;
  z-index: 1;
}

.problem-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.traditional-search {
  background: linear-gradient(135deg, #ff8a80, #ff7043);
  border-radius: 16px;
  padding: 20px;
  color: white;
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.15);
  animation: subtle-shake 4s ease-in-out infinite;
}

.search-header {
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
}

.filters-mess {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.filter {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.results-count {
  text-align: center;
  font-size: 12px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.frustrated-user {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  animation: frustrated 2s ease-in-out infinite;
}

.vs-divider {
  font-weight: 800;
  font-size: 18px;
  color: var(--brand);
  text-align: center;
  padding: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ayubuy-demo {
  display: flex;
  justify-content: center;
}

.chat-widget {
  width: 100%;
  max-width: 600px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  animation: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
}

.chat-body {
  height: 300px;
  min-height: 250px;
  padding: 0;
  overflow: scroll;
  background: transparent;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  background: transparent;
  border: none;
  margin-top: 30px;
}

.chat-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(124, 92, 255, 0.2);
  color: var(--text);
  padding: 14px 20px;
  border-radius: 25px;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.1);
  transition: all 0.3s ease;
}

.chat-input input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.2);
}

.chat-input .send {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 0;
  color: white;
  padding: 14px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(124, 92, 255, 0.3);
  transition: all 0.3s ease;
}

.chat-input .send:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.4);
}

/* Message Styles */
.mission-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid rgba(20, 38, 61, .08);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

/* Assistant Features */
.assistant-features {
  margin-top: 40px;
}

.feature-large {
  background: var(--panel);
  border: 1px solid rgba(20, 38, 61, .08);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-large h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text);
}

.feature-demo {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(20, 38, 61, 0.08);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.demo-conversation {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-msg {
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 80%;
}

.demo-msg.user {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  margin-left: auto;
  text-align: right;
}

.demo-msg.bot {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid rgba(20, 38, 61, .08);
}

/* Benefits Card Layout */
.benefits-card {
  background: var(--panel);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin-top: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.problems-section h3,
.solutions-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

.benefits-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}

.benefits-subsection h4, .problems-section h4 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
  opacity: 0.9;
}

.problems-list,
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-item,
.benefit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.problem-icon,
.benefit-icon {
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 16px;
}

.problem-icon {
  color: #ff6b6b;
}

.benefit-icon {
  color: #22c55e;
}

.problem-item strong,
.benefit-item strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.problem-item p,
.benefit-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Results Showcase */
.results-showcase {
  margin-top: 48px;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(20, 38, 61, 0.08);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.results-grid {
 display: flex;
 align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.result-stat {
  text-align: center;
}

.result-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 8px;
}

.result-label {
  color: var(--muted);
  font-size: 14px;
}

/* Integration Steps */
.integration-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.step {
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}

.step-visual {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 24px;
}

.step-num {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--brand);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.step-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.integration-badge {
  background: rgba(124, 92, 255, 0.1);
  color: var(--brand);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* CTA Section */
.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-benefits {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.cta-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.cta-benefit i {
  color: var(--brand);
}

.cta-button {
  font-size: 18px;
  padding: 16px 32px;
  margin: 16px 0;
  min-width: 250px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cta-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.cta-trust i {
  color: var(--brand);
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--panel) 0%, var(--soft) 100%);
  border-top: 1px solid rgba(20, 38, 61, 0.12);
  padding: 60px 0 30px;
  margin-top: 80px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
  opacity: 0.5;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 0;
}

.brand {
  max-width: 300px;
}

.brand .logo {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
}

.brand .logo-mark {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.brand p.micro {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 14px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.2s ease;
  font-size: 14px;
}

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

.copy {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}

/* Message Styles */
.msg {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  align-items: flex-start;
  animation: slideIn 0.6s ease-out;
}

.msg .avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(124, 92, 255, 0.3);
}

.msg .bubble {
  max-width: 75%;
  padding: 16px 20px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(124, 92, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  font-size: 15px;
  line-height: 1.4;
  animation: float 3s ease-in-out infinite;
}

.msg.user {
  flex-direction: row-reverse;
}

.msg.user .bubble {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  border: none;
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.4);
}

.msg.user .avatar {
  background: linear-gradient(135deg, #4a90e2, #7b68ee);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-3px);
  }
}

.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.7);
  animation: blink 1.4s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {

  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  40% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mission Stats */
@keyframes subtle-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-1px) rotate(-0.5deg);
  }

  50% {
    transform: translateX(1px) rotate(0.5deg);
  }

  75% {
    transform: translateX(-1px) rotate(-0.5deg);
  }
}

@keyframes frustrated {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Cards styling */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(20, 38, 61, 0.15);
}

.card .icon {
  font-size: 24px;
  color: var(--brand);
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.hero{
  padding-top: 60px;
  padding-bottom: 60px;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(124, 92, 255, 0.1);
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--panel);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(124, 92, 255, 0.2);
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.1);
}

.faq-question {
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.faq-icon {
  font-size: 24px;
  color: var(--brand);
  transition: transform 0.3s ease;
  margin-left: 16px;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 0 24px;
  color: var(--muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 24px 24px;
}

.faq-answer p {
  margin: 0 0 16px 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(0, 229, 255, 0.1));
  border-radius: var(--radius);
  border: 1px solid rgba(124, 92, 255, 0.2);
}

.faq-cta h3 {
  margin: 0 0 12px 0;
  font-size: 24px;
  color: var(--text);
}

.faq-cta p {
  margin: 0 0 24px 0;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 768px) {
  .faq-question {
    padding: 20px;
  }
  
  .faq-question h3 {
    font-size: 16px;
  }
  
  .faq-answer {
    padding: 0 20px 0 20px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
  }
  
  .faq-cta {
    padding: 30px 20px;
    margin-top: 40px;
  }
  
  .faq-cta h3 {
    font-size: 20px;
  }
}