/* CSS Variables - from Tailwind theme */
:root {
  --background: 0 0% 7%;
  --foreground: 210 40% 98%;
  --card: 0 0% 9%;
  --card-foreground: 210 40% 98%;
  --primary: 142 69% 73%;
  --primary-foreground: 0 0% 7%;
  --secondary: 24 95% 53%;
  --secondary-foreground: 210 40% 98%;
  --muted: 0 0% 15%;
  --muted-foreground: 0 0% 60%;
  --border: 0 0% 18%;
  --radius: 0.5rem;
  --font-inter: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  margin: 0;
  font-family: var(--font-inter);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: hsl(var(--muted)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--border)); }

::selection {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

button, a, input {
  transition: all 0.2s ease;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

@media (max-width: 768px) {
  button, a { min-height: 44px; }
}

/* Layout */
.page-wrapper {
  min-height: 100vh;
  background: hsl(var(--background));
  position: relative;
}

.candlestick-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Sidebar */
.sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  border-right: 1px solid hsl(var(--border));
  flex-direction: column;
  z-index: 50;
}

@media (min-width: 768px) {
  .sidebar { display: flex; }
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
}

.sidebar-header {
  padding: 0.5rem 0.25rem;
  margin-bottom: 1.5rem;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  border-radius: 0.375rem;
}

.logo-text {
  font-size: 0.875rem;
  font-weight: 700;
}

.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--secondary)); }

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: hsl(var(--muted-foreground));
}

.nav-item:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.nav-item.active {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.nav-item.active .nav-icon { color: hsl(var(--primary)); }

.nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.stats-card {
  margin-top: auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1rem;
}

.stats-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stats-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}

.stats-bar {
  height: 4px;
  background: hsl(var(--muted));
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.stats-bar-fill {
  height: 100%;
  background: hsl(var(--primary));
  border-radius: 9999px;
}

.stats-sub {
  font-size: 11px;
  color: hsl(var(--muted-foreground));
}

.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.social-link {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  border-radius: 0.5rem;
  text-decoration: none;
}

.social-link:hover {
  background: hsl(var(--muted));
  color: hsl(var(--primary));
}

/* Main Content */
.main-content {
  margin-left: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .main-content { margin-left: 260px; }
}

.main-content.loaded {
  opacity: 1;
  transition: opacity 0.5s;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  height: 4rem;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 40;
}

@media (min-width: 768px) {
  .header { padding: 0 1.5rem; }
}

.header-mobile-logo {
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .header-mobile-logo { display: none; }
}

.search-box {
  display: none;
  flex: 1;
  max-width: 28rem;
  position: relative;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 768px) {
  .search-box { display: flex; }
}

.search-box {
  width: 100%;
  height: 2.5rem;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding-left: 2.5rem;
  padding-right: 5rem;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}

.search-box:hover {
  border-color: hsl(var(--primary) / 0.5);
  color: hsl(var(--foreground));
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
}

.search-bot {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
}

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

@media (min-width: 768px) {
  .header-actions { gap: 0.75rem; }
}

.header-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}

@media (min-width: 768px) {
  .header-chat-btn { display: none; }
}

.header-chat-btn:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.5);
}

.header-chat-btn svg {
  width: 1rem;
  height: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
}

.btn-get {
  display: none;
}

@media (min-width: 640px) {
  .btn-get { display: inline-flex; }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: hsl(var(--secondary));
  color: white;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: hsl(var(--secondary) / 0.9);
}

/* Main */
.main {
  flex: 1;
  padding: 0 1rem 5rem;
}

@media (min-width: 768px) {
  .main { padding: 0 1.5rem 3rem; }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 64px - 100px);
  display: flex;
  align-items: center;
  padding: 2rem 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding: 4rem 0; }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .hero-content { padding: 0 1rem; }
}

.hero h1 {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 640px) { .hero h1 { font-size: 2.25rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }

.hero-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-logo-row { gap: 1rem; margin-bottom: 1.5rem; }
}

.hero-collab-logo {
  border-radius: 0.5rem;
  object-fit: contain;
}

.hero-official {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .hero-official { font-size: 1.125rem; }
}

.hero-desc {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-desc { font-size: 1.125rem; margin-bottom: 2rem; }
}

.md-only { display: none; }
@media (min-width: 768px) {
  .md-only { display: inline; }
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero-stats { gap: 2rem; margin-bottom: 2.5rem; }
}

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

.hero-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}

@media (min-width: 640px) { .hero-stat-value { font-size: 1.5rem; } }
@media (min-width: 768px) { .hero-stat-value { font-size: 1.875rem; } }

.hero-stat-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .hero-stat-label { font-size: 0.875rem; }
}

.hero-stat-divider {
  display: none;
  width: 1px;
  height: 2rem;
  background: hsl(var(--border));
}

@media (min-width: 640px) {
  .hero-stat-divider { display: block; }
}

@media (min-width: 768px) {
  .hero-stat-divider { height: 2.5rem; }
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero-actions { gap: 1rem; margin-bottom: 2.5rem; }
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: hsl(var(--secondary));
  color: white;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px hsl(var(--secondary) / 0.3);
}

@media (min-width: 768px) {
  .btn-hero { height: 3.5rem; padding: 0 2rem; font-size: 1rem; }
}

.btn-hero:hover {
  background: hsl(var(--secondary) / 0.9);
  transform: translateY(-2px);
}

.btn-hero svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 768px) {
  .btn-hero svg { width: 1.5rem; height: 1.5rem; }
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero-trust { gap: 0.75rem; }
}

.hero-avatars {
  display: flex;
  align-items: center;
}

.hero-avatars .avatar {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  border-radius: 50%;
  border: 2px solid hsl(var(--background));
  margin-left: -0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  flex: 0 0 28px !important;
  display: block;
  box-sizing: border-box;
}

.hero-avatars .avatar img {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.hero-avatars .avatar:first-child { margin-left: 0; }

@media (min-width: 768px) {
  .hero-avatars .avatar { width: 32px !important; height: 32px !important; min-width: 32px !important; min-height: 32px !important; max-width: 32px !important; max-height: 32px !important; flex: 0 0 32px !important; }
  .hero-avatars .avatar img { width: 32px !important; height: 32px !important; min-width: 32px !important; min-height: 32px !important; max-width: 32px !important; max-height: 32px !important; }
}

.avatar-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 9px;
  font-weight: 700;
  margin-left: -0.5rem;
}

@media (min-width: 768px) {
  .avatar-more { width: 32px; height: 32px; font-size: 10px; }
}

.hero-trust-text {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .hero-trust-text { font-size: 0.875rem; }
}

/* Ticker */
.ticker-section {
  padding: 1.5rem 0;
}

@media (min-width: 768px) {
  .ticker-section { padding: 2rem 0; }
}

.ticker-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .ticker-header { margin-bottom: 1.5rem; }
}

.ticker-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--secondary) / 0.2);
  border-radius: 0.75rem;
  color: hsl(var(--secondary));
}

@media (min-width: 768px) {
  .ticker-icon { width: 2.5rem; height: 2.5rem; }
}

.ticker-icon svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .ticker-icon svg { width: 1.25rem; height: 1.25rem; }
}

.ticker-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

@media (min-width: 768px) {
  .ticker-header h3 { font-size: 1.125rem; }
}

.ticker-header p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

@media (min-width: 768px) {
  .ticker-header p { font-size: 0.875rem; }
}

.ticker-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: hsl(var(--card) / 0.5);
  border: 1px solid hsl(var(--border));
  padding: 0.75rem 0;
}

@media (min-width: 768px) {
  .ticker-container { border-radius: 1rem; padding: 1rem 0; }
}

.ticker-fade-left,
.ticker-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3rem;
  z-index: 10;
  pointer-events: none;
}

.ticker-fade-left {
  left: 0;
  background: linear-gradient(to right, hsl(var(--card)), transparent);
}

.ticker-fade-right {
  right: 0;
  background: linear-gradient(to left, hsl(var(--card)), transparent);
}

@media (min-width: 768px) {
  .ticker-fade-left, .ticker-fade-right { width: 6rem; }
}

.ticker-wrapper {
  overflow: hidden;
  width: 100%;
}

.ticker-track {
  display: flex;
  gap: 0.5rem;
  animation: ticker-scroll 60s linear infinite;
  width: fit-content;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

.ticker-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--muted) / 0.3);
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border) / 0.3);
  cursor: default;
}

.ticker-item:hover {
  background: hsl(var(--muted) / 0.5);
  border-color: hsl(var(--primary) / 0.3);
}

@media (min-width: 768px) {
  .ticker-item { gap: 0.75rem; padding: 0.75rem 1rem; border-radius: 0.75rem; }
}

.ticker-token-icon {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

@media (min-width: 768px) {
  .ticker-token-icon { width: 2.5rem; height: 2.5rem; min-width: 2.5rem; min-height: 2.5rem; }
}

.ticker-token-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.ticker-token-icon span {
  font-size: 0.75rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .ticker-token-icon span { font-size: 0.875rem; }
}

.ticker-item-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ticker-wallet {
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  font-family: monospace;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .ticker-wallet { font-size: 0.75rem; max-width: 80px; }
}

.ticker-amount {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .ticker-amount { gap: 0.375rem; }
}

.ticker-amount-sol {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--primary));
  white-space: nowrap;
}

@media (min-width: 768px) {
  .ticker-amount-sol { font-size: 0.875rem; }
}

.ticker-amount-arrow {
  font-size: 10px;
  color: hsl(var(--muted-foreground));
}

.ticker-amount-token {
  font-size: 0.75rem;
  font-weight: 500;
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .ticker-amount-token { font-size: 0.875rem; max-width: 80px; }
}

.ticker-live-dot {
  display: flex;
  margin-left: 0.25rem;
}

@media (min-width: 768px) {
  .ticker-live-dot { margin-left: 0.5rem; }
}

.pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: hsl(var(--primary));
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: hsl(var(--primary));
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@media (min-width: 768px) {
  .pulse-dot { width: 8px; height: 8px; }
}

.ticker-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  flex-wrap: wrap;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .ticker-stats { gap: 2rem; margin-top: 1.5rem; font-size: 0.875rem; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  50% { opacity: 0.5; }
}

/* How It Works */
.how-it-works {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .how-it-works { padding: 5rem 0; }
}

.how-it-works h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .how-it-works h2 { font-size: 1.875rem; margin-bottom: 3rem; }
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.step-card {
  position: relative;
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary));
  box-shadow: 0 10px 15px -3px hsl(var(--primary) / 0.1);
}

@media (min-width: 768px) {
  .step-card {
    border-radius: 1rem;
    padding: 2rem;
  }
}

.step-number {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 2.25rem;
  font-weight: 800;
  color: hsl(var(--muted) / 0.3);
}

.step-card:hover .step-number {
  color: hsl(var(--muted) / 0.5);
}

@media (min-width: 768px) {
  .step-number {
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
  }
}

.step-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.1);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  color: hsl(var(--primary));
}

@media (min-width: 768px) {
  .step-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.25rem;
  }
}

.step-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 768px) {
  .step-icon svg { width: 2rem; height: 2rem; }
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .step-card h3 { font-size: 1.125rem; }
}

.step-card p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

@media (min-width: 768px) {
  .step-card p { font-size: 0.875rem; }
}

/* Features */
.features {
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .features { padding-bottom: 4rem; }
}

.feature-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .feature-main { flex-direction: row; }
}

@media (min-width: 768px) {
  .feature-main {
    gap: 1.5rem;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
}

.feature-main:hover {
  border-color: hsl(var(--primary) / 0.3);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.1);
  border-radius: 0.75rem;
  flex-shrink: 0;
  color: hsl(var(--primary));
}

@media (min-width: 768px) {
  .feature-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
  }
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
}

@media (min-width: 768px) {
  .feature-icon svg { width: 3rem; height: 3rem; }
}

.feature-main .feature-icon {
  width: 4rem;
  height: 4rem;
}

@media (min-width: 768px) {
  .feature-main .feature-icon {
    width: 5rem;
    height: 5rem;
  }
}

.feature-main > div {
  text-align: center;
}

@media (min-width: 640px) {
  .feature-main > div { text-align: left; }
}

.feature-main h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .feature-main h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
}

.feature-main p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

@media (min-width: 768px) {
  .feature-main p { font-size: 0.875rem; }
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.feature-card {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.feature-card:hover {
  border-color: hsl(var(--primary) / 0.3);
}

@media (min-width: 768px) {
  .feature-card {
    border-radius: 1rem;
    padding: 2rem;
  }
}

.feature-icon-sm {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.1);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--primary));
}

@media (min-width: 768px) {
  .feature-icon-sm {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
  }
}

.feature-icon-sm svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 768px) {
  .feature-icon-sm svg { width: 2rem; height: 2rem; }
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .feature-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
}

.feature-card p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

@media (min-width: 768px) {
  .feature-card p { font-size: 0.875rem; }
}

/* Footer */
.footer {
  border-top: 1px solid hsl(var(--border));
  padding: 1rem;
  margin-top: auto;
}

@media (min-width: 768px) {
  .footer { padding: 1.5rem; }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .footer-inner { flex-direction: row; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo svg,
.footer-logo img {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-logo span {
  font-size: 0.875rem;
  font-weight: 700;
}

.badge {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  padding: 0.125rem 0.5rem;
  background: hsl(var(--muted));
  border-radius: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.footer-link:hover {
  color: hsl(var(--primary));
}

.footer-copy {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* AI Assistant */
.ai-toggle {
  position: fixed;
  bottom: 5rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
  z-index: 60;
  transition: all 0.3s;
}

.ai-toggle:hover {
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .ai-toggle {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
  }
}

.ai-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 768px) {
  .ai-toggle svg { width: 1.5rem; height: 1.5rem; }
}

.ai-icon-close { display: none; }
.ai-toggle.open .ai-icon-chat { display: none; }
.ai-toggle.open .ai-icon-close { display: block; }
.ai-toggle.open {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.ai-window {
  position: fixed;
  bottom: 5.5rem;
  right: 0.5rem;
  width: calc(100vw - 16px);
  max-width: 400px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 60;
  opacity: 0;
  transform: translateY(1rem) scale(0.95);
  pointer-events: none;
  transition: all 0.3s;
}

.ai-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (min-width: 768px) {
  .ai-window {
    bottom: 6rem;
    right: 1.5rem;
    width: 360px;
  }
}

.ai-header {
  background: linear-gradient(to right, hsl(var(--primary) / 0.2), hsl(var(--secondary) / 0.2));
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
}

.ai-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
}

.ai-avatar svg,
.ai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}

.ai-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.125rem 0;
}

.ai-header p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.ai-online {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: hsl(var(--primary));
}

.ai-messages {
  height: 320px;
  overflow-y: auto;
  padding: 1rem;
}

.ai-msg {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

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

.ai-msg-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-msg.assistant .ai-msg-avatar {
  background: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
}

.ai-msg.user .ai-msg-avatar {
  background: hsl(var(--secondary) / 0.2);
  color: hsl(var(--secondary));
}

.ai-msg-avatar svg {
  width: 1rem;
  height: 1rem;
}

.ai-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}

.ai-msg-bubble {
  max-width: 80%;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.ai-msg.assistant .ai-msg-bubble {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.ai-msg.user .ai-msg-bubble {
  background: hsl(var(--secondary));
  color: white;
}

.ai-msg-bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.ai-typing {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.ai-typing-dots span {
  width: 8px;
  height: 8px;
  background: hsl(var(--muted-foreground) / 0.5);
  border-radius: 9999px;
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out;
}

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

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.ai-quick {
  padding: 0 1rem 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ai-quick-btn {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: hsl(var(--muted));
  border: none;
  border-radius: 9999px;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}

.ai-quick-btn:hover {
  background: hsl(var(--muted) / 0.8);
  color: hsl(var(--foreground));
}

.ai-input-wrap {
  padding: 1rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  gap: 0.5rem;
}

.ai-input {
  flex: 1;
  height: 2.5rem;
  padding: 0 1rem;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.ai-input:focus {
  outline: none;
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.3);
}

.ai-send {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
}

.ai-send:hover:not(:disabled) {
  background: hsl(var(--primary) / 0.9);
}

.ai-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-send svg {
  width: 1rem;
  height: 1rem;
}

/* Mobile Nav */
.mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(24px);
  border-top: 1px solid hsl(var(--border));
  z-index: 50;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .mobile-nav { display: none; }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 4rem;
  height: 100%;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}

.mobile-nav-item:hover {
  color: hsl(var(--primary));
}

.mobile-nav-item svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-nav-item span {
  font-size: 10px;
  font-weight: 500;
}

/* Popups */
.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.popup-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.popup-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  z-index: 50;
  width: 100%;
  max-width: 32rem;
  max-height: 80vh;
  overflow: hidden;
  opacity: 0;
  scale: 0.95;
  pointer-events: none;
  transition: all 0.3s;
}

.popup-modal.open {
  transform: translate(-50%, -50%);
  opacity: 1;
  scale: 1;
  pointer-events: auto;
}

.popup-inner {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  overflow: hidden;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.3);
}

.popup-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.popup-header button {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  font-size: 1.5rem;
  cursor: pointer;
}

.popup-header button:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.popup-content {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  max-height: 60vh;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.popup-content h3 {
  color: hsl(var(--foreground));
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.popup-content p {
  margin: 0 0 0.5rem 0;
}

.popup-content ul, .popup-content ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.popup-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.3);
}

.popup-footer .btn-primary {
  width: 100%;
  padding: 0.625rem 1rem;
}

/* Assistant Page */
.assistant-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.assistant-header {
  height: 4rem;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .assistant-header { padding: 0 1.5rem; }
}

.assistant-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
}

.assistant-back:hover {
  color: hsl(var(--foreground));
}

.assistant-back svg {
  width: 1.25rem;
  height: 1.25rem;
}

.assistant-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.assistant-title-text {
  font-size: 0.875rem;
  font-weight: 600;
  display: none;
}

@media (min-width: 640px) {
  .assistant-title-text { display: inline; }
}

.assistant-spacer {
  width: 5rem;
}

.assistant-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 48rem;
  margin: 0 auto;
  width: 100%;
}

.assistant-banner {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.assistant-banner-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.assistant-banner-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.2), hsl(var(--secondary) / 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  overflow: hidden;
}

.assistant-banner-icon svg,
.assistant-banner-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.assistant-banner h1 {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.25rem 0;
}

.sparkle {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--secondary));
}

.assistant-subtitle {
  color: hsl(var(--muted-foreground));
  margin: 0;
  font-size: 0.875rem;
}

.assistant-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.assistant-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 200px);
}

.ai-embedded {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ai-messages-embedded {
  flex: 1;
  height: auto;
  min-height: 300px;
}

.ai-quick-embedded {
  padding: 0.5rem 1rem;
}
