:root {
  --bg-light: #f9f9fb;
  --text-light: #222;
  --primary-light: #4a47a3;
  --accent-light: #ff6600;

  --bg-dark: #121212;
  --text-dark: #e5e5e7;
  --primary-dark: #7a77ff;
  --accent-dark: #ff944d;

  --transition: 0.5s ease;
}

/* Base */
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  position: relative;
}

body.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background: rgba(0,0,0,0.06);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--primary-light);
  transition: color var(--transition);
}

body.dark header h1 {
  color: var(--primary-dark);
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  color: inherit;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.7;
}

/* Nav list layout (fix bullets and vertical stacking) */
nav ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 18px;
  align-items: center;
}

nav ul li { list-style: none; }

/* Ensure list marker removed on modern browsers */
nav ul li::marker { content: none; }

/* Logo image sizing inside header */
header h1 img { height: 64px; display: block; }

/* site-logo class for pages that include it (responsive) */
.site-logo { height: 80px; display: block; }

@media (max-width:900px) { .site-logo { height: 56px; } }
@media (max-width:520px) { .site-logo { height: 48px; } }

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 2px solid currentColor;
  padding: 5px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

/* Hero */
.hero {
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero .btn {
  padding: 12px 28px;
  margin: 10px;
  background: var(--accent-light);
  color: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s;
}

body.dark .hero .btn {
  background: var(--accent-dark);
}

.hero .btn:hover {
  transform: scale(1.05);
}

/* Section */
section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

section h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--primary-light);
  transition: color var(--transition);
}

body.dark section h3 {
  color: var(--primary-dark);
}

.flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.card {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 20px;
  max-width: 300px;
  flex: 1 1 250px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: background var(--transition), box-shadow var(--transition), transform 0.3s;
}

body.dark .card {
  background: #1e1e1e;
  box-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

.card:hover {
  transform: translateY(-5px);
}

.card h4 {
  color: var(--primary-light);
  margin-bottom: 12px;
  transition: color var(--transition);
}

body.dark .card h4 {
  color: var(--primary-dark);
}

.card a {
  display: inline-block;
  padding: 10px 18px;
  background: var(--primary-light);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

body.dark .card a {
  background: var(--primary-dark);
}

.card a:hover {
  background: var(--accent-light);
}

body.dark .card a:hover {
  background: var(--accent-dark);
}

/* Footer */
footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 25px;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Background Circles */
.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(74,71,163,0.15);
  animation: float 20s linear infinite;
  z-index: 0;
}

body.dark .circle {
  background: rgba(122,119,255,0.15);
}

@keyframes float {
  0% { transform: translateY(0) translateX(0) scale(1);}
  50% { transform: translateY(-200px) translateX(100px) scale(1.2);}
  100% { transform: translateY(0) translateX(0) scale(1);}
}

/* Form */
.sell-form input, 
.sell-form textarea {
  width: 90%;
  max-width: 400px;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.sell-form button {
  margin-top: 15px;
  padding: 10px 22px;
  background: var(--accent-light);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s;
}

.sell-form button:hover {
  transform: scale(1.05);
}

body.dark .sell-form button {
  background: var(--accent-dark);
}

/* Responsive */
@media (max-width:768px){
  header {
    flex-direction: column;
    gap: 15px;
  }
  .hero h2 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
}

/* Mobile-first refinements: improve spacing, stacking and readable font sizes */
@media (max-width: 900px) {
  header {
    padding: 14px 6%;
    align-items: center;
  }
  header h1 { font-size: 1.2rem; }
  header h1 img { height: 56px; }
  nav ul { flex-wrap: wrap; justify-content: center; gap: 12px; }
  nav a { margin: 6px 8px; font-size: 0.95rem; }
  .theme-toggle { padding: 6px 10px; font-size: 1rem; }

  .hero { padding: 80px 6% 40px; }
  .hero h1, .hero h2 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; max-width: 520px; }

  .content { padding: 40px 6%; }
  section { padding: 40px 6%; }

  .about-section { padding: 40px 6%; gap: 20px; }
  .about-section img { width: 100%; max-width: 440px; height: auto; border-radius: 12px; }
  .about-text { max-width: 100%; }

  .values { padding: 30px 6%; }
  .values-container { gap: 18px; }

  .hero { height: auto; min-height: 40vh; }
}

@media (max-width: 520px) {
  header { padding: 12px 5%; }
  header h1 img { height: 48px; }
  nav ul { flex-direction: column; gap: 8px; }
  nav a { font-size: 0.95rem; }

  .hero { padding: 60px 5% 30px; }
  .hero h1, .hero h2 { font-size: 1.4rem; }
  .hero p { font-size: 0.95rem; }

  .steps { grid-template-columns: 1fr; }
  .step-card { text-align: left; padding: 16px; }
  .step-icon { font-size: 1.6rem; }

  .about-section { flex-direction: column; padding: 20px 5%; }
  .about-section img { border-radius: 10px; }

  .contact-cta { margin: 20px 5%; padding: 24px; }
  .contact-cta a { display:inline-block; padding:10px 16px; }

  .preview-container img { max-width: 100%; height: auto; }
  .sell-form input, .sell-form textarea { width: 100%; max-width: none; }
}

/* Page-specific styles for vendi.html */
.hero {
  height: 60vh;
  background: linear-gradient(to right, rgba(0,120,255,0.7), rgba(0,0,0,0.5)),
    url('https://images.unsplash.com/photo-1556761175-129418cb2dfe?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
}

.hero h1 { font-size: 3rem; }
.hero p { font-size: 1.2rem; max-width: 700px; }

.content { padding: 60px 10%; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.step-card {
  background: rgba(255,255,255,0.06);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.step-icon { font-size: 2rem; }
.step-card h4 { margin-top: 10px; color: var(--accent-light); }

.preview-container img { max-width: 260px; border-radius: 8px; margin-top: 10px; display: block; }

.sell-form input[type=file] { width: 90%; max-width: 400px; }

/* small utility */
.muted { opacity: 0.8; font-size: 0.95rem; }
