:root {
  --bg: #05070f;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --glass: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(148, 163, 184, 0.25);
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --glass-soft: rgba(15, 23, 42, 0.4);
  --business: #3b82f6;
  --shopping: #8b5cf6;
  --delivery: #1e3a8a;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

body[data-theme="light"] {
  --bg: #f6f7fb;
  --ink: #0f172a;
  --muted: #475569;
  --glass: rgba(255, 255, 255, 0.75);
  --glass-soft: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(15, 23, 42, 0.08);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.narrow {
  width: min(860px, 90%);
}

.bg-orbit {
  position: fixed;
  inset: -30% -10% auto -10%;
  height: 70vh;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.22), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.2), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(30, 58, 138, 0.2), transparent 50%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite;
  z-index: -3;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: -2;
  pointer-events: none;
}

body[data-theme="light"] .bg-noise {
  opacity: 0.3;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 18, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  z-index: 10;
  transition: transform 0.35s ease;
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

body[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  background: var(--glass-soft);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.lang-btn.active {
  background: linear-gradient(120deg, var(--business), var(--shopping));
  color: #fff;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--glass-border);
  background: var(--glass-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo:visited,
.logo:hover,
.logo:active {
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.nav-link.active,
.nav-link:hover {
  color: #fff;
}

body[data-theme="light"] .nav-link.active,
body[data-theme="light"] .nav-link:hover {
  color: var(--ink);
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--business), var(--shopping));
  border-radius: 999px;
}

main {
  padding-top: var(--header-height);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.subtext {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn.small {
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  margin-top: 1.2rem;
}

.btn.primary {
  background: linear-gradient(120deg, var(--business), var(--shopping));
  color: #fff;
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.35);
}

.btn.ghost {
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--ink);
  background: rgba(15, 23, 42, 0.6);
}

.btn.ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.learn-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(15, 23, 42, 0.5);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.3);
}

.learn-btn.business {
  background: linear-gradient(120deg, var(--business), rgba(59, 130, 246, 0.6));
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.35);
}

.learn-btn.shopping {
  background: linear-gradient(120deg, var(--shopping), rgba(139, 92, 246, 0.6));
  box-shadow: 0 18px 40px rgba(139, 92, 246, 0.35);
}

.learn-btn.delivery {
  background: linear-gradient(120deg, var(--delivery), rgba(30, 58, 138, 0.6));
  box-shadow: 0 18px 40px rgba(30, 58, 138, 0.35);
}

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

.hero-orb {
  position: relative;
  display: grid;
  place-items: center;
}

.orb {
  --orb-rgb: 59, 130, 246;
  width: clamp(220px, 30vw, 320px);
  height: clamp(220px, 30vw, 320px);
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: rgba(9, 12, 24, 0.5);
  box-shadow: inset 0 0 40px rgba(15, 23, 42, 0.6);
}

.orb::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(var(--orb-rgb), 0.35), transparent 70%);
  filter: blur(22px);
  z-index: -1;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 120deg, transparent 0deg, rgba(var(--orb-rgb), 0.9) 90deg, transparent 180deg, rgba(var(--orb-rgb), 0.5) 270deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  animation: slow-rotate 22s linear infinite;
  box-shadow: 0 0 40px rgba(var(--orb-rgb), 0.45), 0 0 80px rgba(var(--orb-rgb), 0.25);
}

.orb-core {
  text-align: center;
  color: #fff;
  font-weight: 600;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.orb-icon {
  font-size: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.orb-text {
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.orb-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--orb-rgb), 0.35), transparent 70%);
  filter: blur(20px);
  z-index: -2;
}

.orb.accelerating {
  transform: scale(1.04);
}

.orb.accelerating .orb-ring {
  animation-duration: 2s;
  box-shadow: 0 0 70px rgba(var(--orb-rgb), 0.65), 0 0 120px rgba(var(--orb-rgb), 0.4);
}

.orb-core.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.services {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.8rem;
}

.section-head p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.service-card.business .card-icon {
  color: var(--business);
}

.service-card.shopping .card-icon {
  color: var(--shopping);
}

.service-card.delivery .card-icon {
  color: var(--delivery);
}

.service-card h3 {
  margin-bottom: 0.6rem;
}

.service-card.business {
  border-left: 4px solid var(--business);
}

.service-card.shopping {
  border-left: 4px solid var(--shopping);
}

.service-card.delivery {
  border-left: 4px solid var(--delivery);
}

.about {
  padding: 90px 0;
  text-align: center;
}

.about p {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-cards {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.about-card {
  position: relative;
  text-align: left;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: 2.2rem 2.4rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}



.about-card.vision {
  animation: float-soft 6.5s ease-in-out infinite;
}

.about-card.mission {
  animation: float-soft-reverse 6.5s ease-in-out infinite;
}


.about-title {
  position: relative;
  z-index: 1;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  background: linear-gradient(120deg, var(--business), var(--shopping), var(--delivery));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-title::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  right: -1.4rem;
  top: -0.9rem;
  bottom: -0.5rem;
  background: radial-gradient(circle at 25% 10%, rgba(59, 130, 246, 0.26), transparent 60%),
    radial-gradient(circle at 70% 0%, rgba(139, 92, 246, 0.22), transparent 55%),
    radial-gradient(circle at 50% 60%, rgba(30, 58, 138, 0.22), transparent 65%);
  filter: blur(4px);
  opacity: 0.85;
  z-index: -1;
  pointer-events: none;
}

.about-card p {
  color: var(--muted);
  font-size: 1rem;
}

.get-started {
  padding: 110px 0 120px;
}

.portal-stack {
  display: grid;
  gap: 2.5rem;
}

.portal-card {
  position: relative;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  overflow: visible;
}

.portal-card.right {
  margin-left: auto;
}

.portal-card.left {
  margin-right: auto;
}

.portal-card .portal-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 2.6rem 3rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .portal-card .portal-content {
  background: rgba(255, 255, 255, 0.75);
}

.portal-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.portal-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 0 80px;
}

.not-found h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.not-found p {
  color: var(--muted);
}

.portal-ovals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.portal-ovals .oval {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.9;
}

.portal-ovals .oval.big {
  width: min(680px, 90vw);
  height: 220px;
  background: rgba(22, 29, 51, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 70px rgba(2, 6, 23, 0.45);
}

body[data-theme="light"] .portal-ovals .oval.big {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
}

.portal-ovals .oval.small {
  width: 220px;
  height: 120px;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.45);
}

.portal-card.right .portal-ovals .oval.big {
  right: 0;
  top: 0;
}

.portal-card.left .portal-ovals .oval.big {
  left: 0;
  top: 0;
}

.portal-card.right .portal-ovals .oval.small {
  right: 8%;
  bottom: -20px;
}

.portal-card.left .portal-ovals .oval.small {
  left: 8%;
  bottom: -20px;
}

.portal-card.business .portal-ovals .oval.small {
  background: rgba(59, 130, 246, 0.9);
}

.portal-card.shopping .portal-ovals .oval.small {
  background: rgba(139, 92, 246, 0.9);
}

.portal-card.delivery .portal-ovals .oval.small {
  background: rgba(30, 58, 138, 0.9);
}

.portal-card.business .btn.primary {
  background: linear-gradient(120deg, var(--business), rgba(59, 130, 246, 0.7));
}

.portal-card.shopping .btn.primary {
  background: linear-gradient(120deg, var(--shopping), rgba(139, 92, 246, 0.7));
}

.portal-card.delivery .btn.primary {
  background: linear-gradient(120deg, var(--delivery), rgba(30, 58, 138, 0.7));
}

.site-footer {
  background: linear-gradient(180deg, rgba(5, 7, 15, 0.92), rgba(3, 6, 14, 0.98));
  color: rgba(255, 255, 255, 0.72);
  padding: 3.2rem 0 1.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

body[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.95));
  color: rgba(15, 23, 42, 0.75);
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1.4rem;
}

.footer-col {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 1rem;
}

body[data-theme="light"] .footer-col {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.55rem 0 0.3rem;
}

.footer-copy {
  font-size: 0.95rem;
  color: inherit;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
  transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.footer-link:hover {
  color: #fff;
  opacity: 1;
  transform: translateX(2px);
}

body[data-theme="light"] .footer-link:hover {
  color: #0f172a;
}

.resources-link {
  margin-top: 0.8rem;
  color: var(--business);
  font-weight: 600;
}

.resources-link:hover {
  color: var(--business);
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.45);
}

body[data-theme="light"] .resources-link {
  color: #1d4ed8;
}

body[data-theme="light"] .resources-link:hover {
  color: #1d4ed8;
}

.footer-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.3rem;
}

.social-link {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  padding: 0.42rem 0.72rem;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.social-link i {
  font-size: 1.05rem;
}

.social-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, var(--business), var(--shopping));
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.34);
}

body[data-theme="light"] .social-link {
  color: #1e293b;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
}

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

.reveal.from-left {
  transform: translateX(-50px);
}

.reveal.from-right {
  transform: translateX(50px);
}

.reveal.from-bottom {
  transform: translateY(50px);
}

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

@keyframes slow-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(40px, -20px, 0);
  }
}

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

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

@media (max-width: 900px) {
  .nav {
    gap: 1rem;
    font-size: 0.95rem;
  }

  .portal-card.right,
  .portal-card.left {
    margin: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    padding: 1rem 0;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.8rem;
  }

  .header-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
    width: 100%;
  }

  .lang-switch {
    flex-wrap: nowrap;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 120px 0 60px;
  }

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

  .hero-actions {
    justify-content: center;
  }

  .portal-card {
    padding: 0;
  }

  .portal-card .portal-content {
    padding: 2.1rem 2.4rem;
    border-radius: 36px;
  }

  .portal-ovals .oval.big {
    height: 200px;
  }

  .portal-ovals .oval.small {
    width: 200px;
    height: 110px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Landing AI Widget + Chat */
.landing-ai-widget {
  position: fixed;
  bottom: 18px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  touch-action: manipulation;
}

.landing-ai-widget.dock-right {
  right: 18px;
  flex-direction: row-reverse;
}

.landing-ai-widget.dock-left {
  left: 18px;
  flex-direction: row;
}

.landing-ai-launcher {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(30, 58, 138, 0.95));
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  position: relative;
  z-index: 4;
  box-shadow: 0 16px 40px rgba(30, 58, 138, 0.45);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  animation: landing-ai-breathe-float 6.5s ease-in-out infinite;
}

.landing-ai-launcher:hover {
  box-shadow: 0 20px 48px rgba(30, 58, 138, 0.58);
}

.landing-ai-launcher-glow {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.45), transparent 65%);
  filter: blur(8px);
  animation: landing-ai-glow 2.8s ease-in-out infinite;
}

.landing-ai-widget.is-shaking .landing-ai-launcher {
  animation: landing-ai-shake 0.65s ease-in-out 3;
}

.landing-ai-widget.is-rolling .landing-ai-launcher {
  animation: landing-ai-roll 0.55s ease forwards;
}

.landing-ai-widget.is-dragging .landing-ai-launcher {
  animation: none;
}

.landing-ai-prompt {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.34);
  cursor: pointer;
  position: relative;
  z-index: 5;
  opacity: 0;
  transform: translateX(0) scale(0.96);
  pointer-events: none;
}

.landing-ai-widget.dock-right .landing-ai-prompt {
  transform-origin: right center;
}

.landing-ai-widget.dock-left .landing-ai-prompt {
  transform-origin: left center;
}

.landing-ai-widget.dock-right .landing-ai-prompt.is-visible {
  animation: landing-ai-prompt-rollout-left 0.36s ease forwards;
  pointer-events: auto;
}

.landing-ai-widget.dock-left .landing-ai-prompt.is-visible {
  animation: landing-ai-prompt-rollout-right 0.36s ease forwards;
  pointer-events: auto;
}

.landing-ai-widget.dock-right .landing-ai-prompt.is-hiding {
  animation: landing-ai-prompt-collapse-left 0.26s ease forwards;
}

.landing-ai-widget.dock-left .landing-ai-prompt.is-hiding {
  animation: landing-ai-prompt-collapse-right 0.26s ease forwards;
}

.landing-ai-widget.is-dragging .landing-ai-prompt {
  display: none;
}

.landing-ai-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.landing-ai-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

#landingAiModal[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.landing-ai-modal-panel {
  width: min(740px, 100%);
  height: min(85dvh, 680px);
  background: #0f172a;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px);
  transition: transform 0.22s ease;
  box-shadow: 0 -6px 38px rgba(2, 6, 23, 0.52);
}

.landing-ai-modal-overlay.is-open .landing-ai-modal-panel {
  transform: translateY(0);
}

.landing-ai-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.05rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(15, 23, 42, 0));
}

.landing-ai-modal-title-wrap {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.landing-ai-modal-sparkle {
  color: #60a5fa;
}

.landing-ai-modal-title {
  margin: 0;
  color: #e2e8f0;
  font-size: 1rem;
}

.landing-ai-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.landing-ai-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.landing-ai-message {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.landing-ai-message--user {
  flex-direction: row-reverse;
}

.landing-ai-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.landing-ai-bubble {
  max-width: calc(100% - 40px);
  padding: 0.62rem 0.82rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.landing-ai-message--bot .landing-ai-bubble {
  background: rgba(30, 58, 138, 0.28);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: #dbeafe;
}

.landing-ai-message--user .landing-ai-bubble {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #eff6ff;
}

.landing-ai-message--error .landing-ai-bubble {
  background: rgba(127, 29, 29, 0.3);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.landing-ai-chips-bar {
  padding: 0.55rem 1rem 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.landing-ai-suggestion-chip {
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(30, 58, 138, 0.36);
  color: #dbeafe;
  border-radius: 999px;
  padding: 0.3rem 0.68rem;
  font-size: 0.76rem;
  cursor: pointer;
}

.landing-ai-suggestion-chip:hover {
  background: rgba(37, 99, 235, 0.46);
}

.landing-ai-modal-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.75rem 1rem 1rem;
  background: rgba(15, 23, 42, 0.9);
}

.landing-ai-input-row {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  padding: 0.35rem 0.4rem 0.35rem 0.68rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 11px;
  background: rgba(30, 58, 138, 0.18);
}

.landing-ai-input {
  flex: 1;
  resize: none;
  border: none;
  background: transparent;
  color: #eff6ff;
  outline: none;
  min-height: 24px;
  max-height: 120px;
  font-family: inherit;
  font-size: 0.88rem;
}

.landing-ai-input::placeholder {
  color: #93c5fd;
}

.landing-ai-send-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  cursor: pointer;
}

.landing-ai-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.landing-ai-footer-note {
  margin: 0.4rem 0 0;
  color: #93c5fd;
  text-align: center;
  font-size: 0.73rem;
}

body.landing-ai-modal-open {
  overflow: hidden;
}

@keyframes landing-ai-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes landing-ai-breathe-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.035);
  }
}

@keyframes landing-ai-shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  40% {
    transform: rotate(8deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  80% {
    transform: rotate(6deg);
  }
}

@keyframes landing-ai-roll {
  0% {
    transform: rotate(0deg) scale(1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes landing-ai-prompt-rollout-left {
  0% {
    opacity: 0;
    transform: translateX(8px) scaleX(0.2) scaleY(0.92);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes landing-ai-prompt-rollout-right {
  0% {
    opacity: 0;
    transform: translateX(-8px) scaleX(0.2) scaleY(0.92);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes landing-ai-prompt-collapse-left {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(8px) scaleX(0.2) scaleY(0.92);
  }
}

@keyframes landing-ai-prompt-collapse-right {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-8px) scaleX(0.2) scaleY(0.92);
  }
}

@media (max-width: 1024px) {
  .landing-ai-modal-panel {
    width: min(94vw, 860px);
    height: min(84dvh, 670px);
  }

  .landing-ai-prompt {
    max-width: min(82vw, 420px);
    white-space: normal;
    border-radius: 18px;
  }
}

@media (max-width: 720px) {
  .landing-ai-widget {
    bottom: 14px;
    max-width: calc(100vw - 20px);
  }

  .landing-ai-widget.dock-right {
    right: 10px;
  }

  .landing-ai-widget.dock-left {
    left: 10px;
  }

  .landing-ai-prompt {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: calc(100vw - 96px);
    max-width: 360px;
    white-space: normal;
    font-size: 0.9rem;
    padding: 0.82rem 0.95rem;
    border-radius: 14px;
  }

  .landing-ai-modal-overlay {
    align-items: flex-end;
  }

  .landing-ai-modal-panel {
    width: 100%;
    height: 86dvh;
    border-radius: 16px 16px 0 0;
  }
}

@media (min-width: 721px) {
  .landing-ai-modal-overlay {
    align-items: center;
    padding: 12px;
  }

  .landing-ai-modal-panel {
    border-radius: 16px;
    width: min(68vw, 920px);
    height: min(84dvh, 720px);
  }

  .landing-ai-prompt {
    width: min(30vw, 460px);
    max-width: min(30vw, 460px);
  }
}

body[data-theme="light"] .landing-ai-prompt {
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  border-color: rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .landing-ai-modal-panel {
  background: #f8fafc;
  border-color: rgba(59, 130, 246, 0.2);
}

body[data-theme="light"] .landing-ai-modal-header {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

body[data-theme="light"] .landing-ai-modal-title {
  color: #0f172a;
}

body[data-theme="light"] .landing-ai-bubble {
  color: #0f172a;
}

body[data-theme="light"] .landing-ai-message--bot .landing-ai-bubble {
  background: rgba(191, 219, 254, 0.45);
  border-color: rgba(59, 130, 246, 0.25);
}

body[data-theme="light"] .landing-ai-modal-footer {
  background: rgba(241, 245, 249, 0.92);
  border-top-color: rgba(15, 23, 42, 0.1);
}

body[data-theme="light"] .landing-ai-input {
  color: #0f172a;
}

body[data-theme="light"] .landing-ai-input::placeholder {
  color: #475569;
}

body[data-theme="light"] .landing-ai-footer-note {
  color: #1e3a8a;
}
