/* ============================================
   CONNECTO — Main Stylesheet
   Fonts: Syne (headings) + DM Sans (body)
   ============================================ */

:root {
  --purple: #6C63FF;
  --purple-dark: #4A43CC;
  --purple-light: #EEF0FF;
  --green: #00C896;
  --green-dark: #009B72;
  --green-light: #E0FBF4;
  --orange: #FF6B35;
  --dark: #0D0D1A;
  --dark2: #1A1A2E;
  --mid: #2D2D44;
  --text: #E8E8F0;
  --text-muted: #9898B8;
  --border: rgba(255,255,255,0.08);
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- UTILITIES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  cursor: pointer; border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--purple);
  color: var(--purple);
}
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--text); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-danger { background: #FF4757; color: #fff; }
.btn-danger:hover { background: #cc3344; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13,13,26,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  max-width: 1200px; margin: 0 auto;
  padding: 14px 24px;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 24px; font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}
.logo span { color: var(--purple); }
.nav-links {
  display: flex; gap: 28px; list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px; color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; margin-left: 16px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 10px 0; font-size: 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---- HERO ---- */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 24px 80px;
  text-align: center;
  min-height: 90vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.3;
}
.orb1 { width: 600px; height: 600px; background: var(--purple); top: -200px; left: -100px; animation: float1 8s ease-in-out infinite; }
.orb2 { width: 400px; height: 400px; background: var(--green); bottom: -100px; right: 0; animation: float2 10s ease-in-out infinite; }
.orb3 { width: 300px; height: 300px; background: var(--orange); top: 50%; left: 50%; transform: translate(-50%, -50%); animation: float3 12s ease-in-out infinite; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, 30px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, -40px); } }
@keyframes float3 { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-50%,-60%); } }

.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: #aaa8ff;
  font-size: 13px; padding: 8px 18px;
  border-radius: 30px; margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}
.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800; margin-bottom: 24px;
  letter-spacing: -2px;
  animation: fadeInUp 0.8s 0.1s ease both;
}
.hero-sub {
  font-size: 18px; color: var(--text-muted);
  max-width: 540px; margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 0.8s 0.2s ease both;
}
.hero-search {
  display: flex; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  max-width: 640px; margin: 0 auto 36px;
  animation: fadeInUp 0.8s 0.3s ease both;
}
.hero-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 15px;
  padding: 8px 12px;
  font-family: 'DM Sans', sans-serif;
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search select {
  background: rgba(255,255,255,0.06); border: none; outline: none;
  color: var(--text-muted); font-size: 14px;
  padding: 8px 10px; border-radius: 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.hero-cta {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.4s ease both;
}
.hero-stats {
  position: relative; z-index: 1;
  display: flex; gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 60px;
  max-width: 700px;
  width: 100%;
  animation: fadeInUp 0.8s 0.5s ease both;
}
.stat-item {
  flex: 1; text-align: center;
  border-right: 1px solid var(--border);
  padding: 0 20px;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 800;
  color: var(--purple);
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.section-title { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
.section-sub { color: var(--text-muted); font-size: 15px; margin-top: 8px; }
.see-all { font-size: 14px; color: var(--purple); white-space: nowrap; }
.see-all:hover { text-decoration: underline; }

/* ---- CATEGORIES ---- */
.categories-section { border-top: 1px solid var(--border); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.category-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.category-card:hover { border-color: var(--purple); background: rgba(108,99,255,0.1); transform: translateY(-3px); }
.cat-crypto { border-color: rgba(255,165,0,0.3); }
.cat-crypto:hover { border-color: orange; background: rgba(255,165,0,0.1); }
.cat-icon { font-size: 32px; margin-bottom: 10px; }
.cat-name { font-size: 14px; font-weight: 500; }
.cat-count { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---- PRODUCTS GRID ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}
.product-card:hover { border-color: var(--purple); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(108,99,255,0.2); }
.product-thumb {
  height: 160px; display: flex;
  align-items: center; justify-content: center;
  font-size: 52px;
  background: rgba(255,255,255,0.04);
  position: relative;
}
.product-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--green); color: #fff;
  font-size: 11px; padding: 3px 8px;
  border-radius: 6px; font-weight: 500;
}
.product-badge-crypto { background: var(--orange); }
.product-body { padding: 14px; }
.product-name { font-size: 14px; font-weight: 500; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-loc { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 17px; font-weight: 700; color: var(--green); }
.product-btn { background: var(--purple); color: #fff; border: none; padding: 6px 14px; border-radius: 8px; font-size: 13px; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.product-btn:hover { background: var(--purple-dark); }

/* ---- VIDEO PROMO ---- */
.video-promo-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.08) 0%, rgba(0,200,150,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.video-promo-inner { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.vp-text { flex: 1; min-width: 280px; }
.vp-badge {
  display: inline-block;
  background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.3);
  color: var(--green); font-size: 13px; padding: 6px 14px;
  border-radius: 20px; margin-bottom: 20px;
}
.vp-text h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
.vp-text p { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; line-height: 1.7; }
.vp-cards { flex: 1; min-width: 280px; position: relative; height: 300px; }
.vp-card {
  position: absolute;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px; width: 200px;
  display: flex; gap: 10px; align-items: center;
}
.vp-card1 { top: 0; left: 0; animation: float1 6s ease-in-out infinite; }
.vp-card2 { top: 90px; left: 80px; animation: float2 7s ease-in-out infinite; border-color: rgba(108,99,255,0.3); }
.vp-card3 { top: 180px; left: 20px; animation: float3 8s ease-in-out infinite; }
.vp-card-thumb { font-size: 30px; }
.vp-play {
  position: absolute; top: -8px; right: -8px;
  width: 28px; height: 28px; background: var(--purple);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff;
}
.vp-card-title { font-size: 13px; font-weight: 500; }
.vp-card-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ---- PAYMENTS PREVIEW ---- */
.payments-preview { border-top: 1px solid var(--border); }
.payment-row { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 28px; }
.payment-group { flex: 1; min-width: 260px; }
.pg-title { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.chip:hover { border-color: var(--purple); color: var(--purple); }
.chip-crypto { border-color: rgba(255,165,0,0.2); color: #ffd080; }
.chip-crypto:hover { border-color: orange; }
.chip-more { background: rgba(108,99,255,0.1); border-color: rgba(108,99,255,0.3); color: var(--purple); }
.payment-divider { width: 1px; background: var(--border); }
.escrow-banner {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(0,200,150,0.08);
  border: 1px solid rgba(0,200,150,0.2);
  border-radius: var(--radius);
  padding: 20px;
}
.escrow-icon { font-size: 28px; flex-shrink: 0; }
.escrow-banner strong { font-size: 15px; color: var(--green); }
.escrow-banner p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---- ADVERTISE PROMO ---- */
.advertise-promo {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  padding: 80px 0;
}
.ad-promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ad-promo-inner h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; letter-spacing: -1px; }
.ad-promo-inner p { font-size: 15px; opacity: 0.85; margin-bottom: 28px; max-width: 480px; }
.ad-promo-stats { display: flex; gap: 40px; }
.ap-stat { text-align: center; }
.ap-stat strong { display: block; font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800; }
.ap-stat span { font-size: 13px; opacity: 0.8; }

/* ---- HOW IT WORKS ---- */
.how-it-works { border-top: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 48px; }
.step-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 32px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s;
}
.step-card:hover { border-color: var(--purple); }
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 72px; font-weight: 800;
  color: rgba(108,99,255,0.1);
  position: absolute; top: -10px; right: 20px;
  line-height: 1;
}
.step-icon { font-size: 40px; margin-bottom: 16px; position: relative; z-index: 1; }
.step-card h3 { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-top: 14px; max-width: 240px; }
.footer-logo { margin-bottom: 8px; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-muted);
  transition: all 0.2s;
}
.social-link:hover { border-color: var(--purple); color: var(--purple); }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.footer-col a { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--purple); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
  flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-muted); font-size: 13px; }
.footer-legal a:hover { color: var(--purple); }

/* ---- PAGE HEADER ---- */
.page-header {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, rgba(108,99,255,0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 48px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 12px; }
.page-header p { font-size: 16px; color: var(--text-muted); max-width: 520px; }

/* ---- FILTER BAR ---- */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.filter-tab {
  padding: 8px 18px; border-radius: 30px;
  font-size: 13px; cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--purple); border-color: var(--purple); color: #fff;
}

/* ---- FORMS ---- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.form-control {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--purple); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ---- CARDS ---- */
.card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 28px;
}
.card-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* ---- ALERTS ---- */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; }
.alert-success { background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.3); color: var(--green); }
.alert-error { background: rgba(255,71,87,0.1); border: 1px solid rgba(255,71,87,0.3); color: #ff4757; }
.alert-info { background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.3); color: var(--purple); }

/* ---- MODAL ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  max-width: 480px; width: 100%;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 20px; cursor: pointer;
}
.modal h2 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }

/* ---- TOAST ---- */
#toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 3000;
  background: var(--dark2); border: 1px solid var(--green);
  border-radius: var(--radius); padding: 14px 20px;
  font-size: 14px; color: var(--green);
  opacity: 0; transform: translateY(20px);
  transition: all 0.3s;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .stat-item { flex: 1 1 45%; border-right: none; border-bottom: 1px solid var(--border); padding: 16px; }
  .stat-item:last-child { border-bottom: none; }
  .ad-promo-stats { gap: 20px; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 36px; }
  .hero-search { flex-direction: column; }
  .hero-search select { display: none; }
  .section-title { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .vp-cards { display: none; }
  .video-promo-inner { flex-direction: column; }
  .ad-promo-inner { flex-direction: column; }
  .ad-promo-stats { flex-wrap: wrap; }
}
