/* UXBIT Landing Page CSS */
:root {
  --background: #0b0f1d;
  --foreground: #f5f5f5;
  --card: #1b1e35;
  --nav-bg: #16182c;
  --button-clr: #24a3fc;
  --button-hover: #1d8cd9;
  --yellow: #facc15;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --green-500: #22c55e;
  --red-500: #ef4444;
  --logo-text: #fff;
}

/* Light Theme */
html.light {
  --background: #f5f6f9;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --nav-bg: #1e394d;
  --button-clr: #184462;
  --button-hover: #133a54;
  --gray-400: #6b7280;
  --gray-500: #9ca3af;
  --logo-text: #666;
}

html.light .hero { background: #1a1a2e; }
html.light .hero h1, html.light .hero h2 { color: #fff; }
html.light .faq-question { color: var(--foreground); }
html.light .faq-item { border-color: rgba(0,0,0,0.1); }
html.light .footer-bottom { border-color: rgba(0,0,0,0.1); }
html.light .tab-btn { background: rgba(0,0,0,0.1); color: var(--foreground); }
html.light .btn-ghost { color: var(--button-clr); }
html.light .section-header .btn-ghost { color: var(--button-clr); font-weight: 600; }
html.light .navbar .btn-ghost { color: #fff; }

/* Footer logo text color */
.logo-text-bit { fill: #fff; }
html.light .logo-text-bit { fill: #4b5563; }

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

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar */
.navbar {
  background: var(--nav-bg);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  height: 48px;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-logo svg { width: 70px; }

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile logo - hidden on desktop */
.mobile-logo { display: none; }

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  padding: 0.75rem;
  color: white;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.nav-links a:hover::after {
  width: 80%;
}

.nav-buttons { display: flex; gap: 1rem; align-items: center; }

/* Theme Toggle */
.theme-toggle {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.theme-toggle:hover { background: rgba(255,255,255,0.2); }

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: white;
  fill: white;
}

html.light .theme-toggle svg { color: #facc15; fill: #facc15; }

.icon-sun { display: none; }
.icon-moon { display: block; }
html.light .icon-sun { display: block; }
html.light .icon-moon { display: none; }

.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-ghost {
  background: transparent;
  color: white;
}

.btn-ghost:hover { 
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.5);
}

.btn-primary {
  background: var(--button-clr);
  color: white;
  box-shadow: 0 4px 15px rgba(36, 163, 252, 0.3);
}

.btn-primary:hover { 
  background: var(--button-hover);
  box-shadow: 0 6px 25px rgba(36, 163, 252, 0.5);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(36, 163, 252, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--button-clr);
  border: 1px solid var(--button-clr);
}

.btn-secondary:hover {
  background: var(--button-clr);
  color: white;
  box-shadow: 0 4px 15px rgba(36, 163, 252, 0.4);
  transform: translateY(-2px);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0.25rem;
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  padding: 0.25rem;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background 0.2s;
}

.hamburger-btn:hover {
  background: rgba(255,255,255,0.1);
}

.hamburger-btn svg {
  display: block;
}

/* Mobile Slide Menu */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: var(--card);
  z-index: 100;
  transition: left 0.3s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: var(--nav-bg);
}

.mobile-menu-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: background 0.2s;
}

.mobile-menu-close:hover {
  background: rgba(255,255,255,0.1);
}

.mobile-menu-nav {
  padding: 1rem 0;
}

.mobile-menu-nav a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
}

.mobile-menu-nav a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--yellow);
}

.mobile-menu-nav a.signup-link {
  color: var(--button-clr);
  font-weight: 600;
}

.mobile-menu-nav hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0.5rem 1.25rem;
}

.mobile-theme-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  color: var(--foreground);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-theme-toggle:hover {
  background: rgba(255,255,255,0.05);
}

.mobile-theme-toggle .theme-toggle-icon {
  background: rgba(255,255,255,0.1);
  border-radius: 0.375rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-theme-toggle .theme-toggle-icon svg {
  width: 20px;
  height: 20px;
  color: white;
  fill: white;
}

html.light .mobile-theme-toggle .theme-toggle-icon svg {
  color: #facc15;
  fill: #facc15;
}

/* Desktop - ensure nav items show */
@media (min-width: 769px) {
  .mobile-menu-btn { display: none !important; }
  .nav-links { display: flex !important; }
  .nav-buttons .btn-ghost,
  .nav-buttons .btn-primary { display: inline-flex !important; }
  .mobile-menu, .mobile-menu-overlay { display: none !important; }
}

/* Hero */
.hero {
  background: black;
  padding: 4rem 1rem;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1152px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero h2 {
  color: var(--yellow);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-image img {
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Market Section */
.market-section {
  background: var(--background);
  padding: 3rem 1rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
}

.market-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.market-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tabs { margin-bottom: 1rem; }

.tab-btn {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  border-radius: 0.375rem;
  font-weight: 500;
}

.tab-btn.active { background: var(--button-clr); }

.market-table {
  width: 100%;
  border-collapse: collapse;
}

.market-table th {
  text-align: left;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--gray-500);
  padding: 0.75rem;
}

.market-table td {
  padding: 0.75rem;
  font-weight: 600;
}

.market-table tr {
  transition: all 0.2s ease;
  border-radius: 0.5rem;
}

.market-table tr:hover { 
  background: rgba(255,255,255,0.05);
  transform: scale(1.01);
}

html.light .market-table tr:hover { 
  background: rgba(0,0,0,0.03);
}

.positive { color: var(--green-500); }
.negative { color: var(--red-500); }

.coin-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coin-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* Get Started */
.get-started {
  background: var(--background);
  padding: 3rem 1rem;
}

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

.step-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.step-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #e5e7eb;
  color: black;
  padding: 0.25rem 1rem;
  border-radius: 0 0 1rem 0;
  font-weight: 700;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 1rem auto;
}

.step-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

/* Products */
.products-section { padding: 3rem 1rem; }

.product-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 2rem;
  border-top: 3px solid var(--yellow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  border-top-color: var(--button-clr);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-card p {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.product-image img { 
  max-width: 250px;
  transition: transform 0.3s ease;
}

/* Trade Anywhere */
.trade-anywhere {
  background: var(--background);
  padding: 3rem 1rem;
}

.trade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.trade-anywhere h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.trade-anywhere p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.mobile-preview {
  max-width: 300px;
  margin: 0 auto;
}

/* FAQ */
.faq-section {
  padding: 3rem 1rem;
  max-width: 1152px;
  margin: 0 auto;
}

.faq-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: white;
  font-size: 1.125rem;
  text-align: left;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--yellow);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: all 0.3s ease;
  color: var(--button-clr);
}

.faq-question:hover::after {
  color: var(--yellow);
  transform: scale(1.2);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
  color: var(--yellow);
}

.faq-answer {
  display: none;
  padding: 1rem 0;
  color: var(--gray-400);
}

.faq-item.active .faq-answer { display: block; }

/* CTA */
.cta-section {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(96.76deg, rgba(32,34,36,0.2) 13.68%, rgba(30,69,100,0.2) 38.25%, rgba(32,34,36,0.2) 81.97%), var(--background);
}

.cta-section h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background: var(--card);
  padding: 3rem 1rem;
  text-align: center;
}

.footer-logo { margin-bottom: 1.5rem; }
.footer-logo svg { width: 180px; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--button-clr);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(36, 163, 252, 0.4);
}

.social-links img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.social-links a:hover img { 
  opacity: 1;
  filter: brightness(1.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-links a {
  transition: all 0.3s ease;
  position: relative;
}

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

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--yellow);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Responsive */

/* Tablet */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.5rem; }
  .market-grid { grid-template-columns: 1fr; gap: 1rem; }
  .steps-grid { gap: 1rem; }
  .trade-grid { gap: 1.5rem; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Navbar Mobile - hamburger left, logo center */
  .nav-links { display: none !important; }
  .nav-buttons { display: none !important; }
  .hamburger-btn { display: flex !important; }
  .desktop-logo { display: none !important; }
  .mobile-logo { 
    display: block !important; 
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .navbar-inner {
    position: relative;
  }
  
  /* Hero Mobile */
  .hero {
    padding: 5rem 1rem 2rem;
    text-align: center;
  }
  
  .hero-grid { 
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero h1 { 
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  .hero h2 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-image { 
    display: block;
    order: -1;
  }
  
  .hero-image img {
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }
  
  .hero .btn-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Market Section Mobile */
  .market-section {
    padding: 2rem 1rem;
  }
  
  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }
  
  .section-title { 
    font-size: 1.375rem;
    line-height: 1.3;
  }
  
  .market-grid { 
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .market-card {
    padding: 1rem;
    overflow-x: auto;
  }
  
  .market-table {
    min-width: 400px;
  }
  
  .market-table th,
  .market-table td {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .market-table .btn-secondary {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .coin-icon {
    width: 20px;
    height: 20px;
  }
  
  /* Get Started Mobile */
  .get-started {
    padding: 2rem 1rem;
  }
  
  .steps-grid { 
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .step-card {
    padding: 1.5rem 1rem;
  }
  
  .step-card:hover {
    transform: none;
  }
  
  .step-icon {
    width: 60px;
    height: 60px;
  }
  
  .step-card h3 {
    font-size: 1rem;
  }
  
  .step-card p {
    font-size: 0.8rem;
    padding: 0;
  }
  
  /* Products Mobile */
  .products-section {
    padding: 2rem 1rem;
  }
  
  .product-card { 
    flex-direction: column; 
    text-align: center;
    padding: 1.5rem;
  }
  
  .product-card:hover {
    transform: none;
  }
  
  .product-card h3 {
    font-size: 1.125rem;
  }
  
  .product-image { 
    margin-top: 1.5rem;
    order: -1;
  }
  
  .product-image img {
    max-width: 180px;
  }
  
  /* Trade Anywhere Mobile */
  .trade-anywhere {
    padding: 2rem 1rem;
  }
  
  .trade-grid { 
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .trade-anywhere h2 {
    font-size: 1.375rem;
  }
  
  .trade-anywhere p {
    font-size: 0.875rem;
  }
  
  .mobile-preview {
    max-width: 220px;
    margin: 1rem auto 0;
  }
  
  /* FAQ Mobile */
  .faq-section {
    padding: 2rem 1rem;
  }
  
  .faq-section h2 {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
  }
  
  .faq-question {
    font-size: 0.95rem;
    padding-right: 1rem;
  }
  
  .faq-question::after {
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  
  .faq-answer {
    font-size: 0.875rem;
  }
  
  /* CTA Mobile */
  .cta-section {
    padding: 3rem 1rem;
  }
  
  .cta-section h2 {
    font-size: 1.375rem;
    margin-bottom: 1.25rem;
  }
  
  .cta-section .btn-primary {
    width: 100%;
    max-width: 280px;
  }
  
  /* Footer Mobile */
  .footer {
    padding: 2rem 1rem;
  }
  
  .footer-logo svg {
    width: 140px;
  }
  
  .social-links {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
  }
  
  .social-links img {
    width: 20px;
    height: 20px;
  }
  
  .footer-bottom {
    font-size: 0.7rem;
  }
  
  .footer-links {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .market-card {
    padding: 0.75rem;
  }
  
  .step-card {
    padding: 1.25rem 0.75rem;
  }
  
  .faq-question {
    font-size: 0.875rem;
  }
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.btn-primary { animation: pulse 2s ease-in-out infinite; }
