/* ============================================
   MARKETPLACE LABS - MAIN STYLESHEET
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============================================
   ROOT VARIABLES - Colors & Fonts
   ============================================ */
:root {
  --primary: #0A1628;
  --secondary: #1E3A5F;
  --accent: #00C853;
  --accent-hover: #00A846;
  --light-bg: #F8FAFC;
  --white: #FFFFFF;
  --text-dark: #0A1628;
  --text-mid: #4A5568;
  --text-light: #718096;
  --border: #E2E8F0;
  --gradient: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.section-title {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 600px;
  margin-bottom: 60px;
}

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

.text-center .section-subtitle {
  margin: 0 auto 60px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 200, 83, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.97) !important;
  backdrop-filter: blur(20px);
  padding: 14px 0 !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}

.logo-text {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}

.logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: var(--font-body);
}

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

.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--gradient);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(0, 200, 83, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(30, 58, 95, 0.5) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 83, 0.15);
  border: 1px solid rgba(0, 200, 83, 0.3);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--accent);
}

.hero-description {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.dashboard-mockup {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #28CA41; }

.mockup-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-body);
}

.mockup-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 16px;
}

.metric-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.metric-value {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.metric-change {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 4px;
}

.mockup-chart {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}

.bar {
  flex: 1;
  background: rgba(0, 200, 83, 0.3);
  border-radius: 4px 4px 0 0;
  transition: background 0.3s;
}

.bar:hover { background: var(--accent); }
.bar:nth-child(1) { height: 40%; }
.bar:nth-child(2) { height: 65%; }
.bar:nth-child(3) { height: 50%; }
.bar:nth-child(4) { height: 80%; }
.bar:nth-child(5) { height: 60%; }
.bar:nth-child(6) { height: 90%; }
.bar:nth-child(7) { height: 75%; }

.mockup-ai {
  background: rgba(0, 200, 83, 0.08);
  border: 1px solid rgba(0, 200, 83, 0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ai-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  color: white;
  font-weight: 700;
}

.ai-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.ai-text strong {
  color: var(--accent);
  display: block;
  margin-bottom: 2px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  background: var(--light-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
  text-align: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    rgba(0, 200, 83, 0.1),
    rgba(0, 200, 83, 0.2)
  );
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
}

.feature-title {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  z-index: 0;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 24px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}

.step-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
}

/* ============================================
   MARKETS SECTION
   ============================================ */
.markets {
  background: var(--gradient);
  color: var(--white);
}

.markets .section-title {
  color: var(--white);
}

.markets .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.market-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
  will-change: transform;
}

.market-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.market-flag {
  font-size: 2rem;
  margin-bottom: 10px;
}

.market-name {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 4px;
}

.market-domain {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--light-bg);
  text-align: center;
}

.cta-box {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0,200,83,0.1) 0%,
    transparent 70%
  );
}

.cta-box h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-box p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s ease;
}

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

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  align-items: flex-start;
}

.footer-contact-item span:first-child {
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.3s ease;
}

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

/* ============================================
   PAGE HERO (Inner Pages)
   ============================================ */
.page-hero {
  background: var(--gradient);
  padding: 160px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(0, 200, 83, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.page-hero .section-label {
  margin-bottom: 20px;
  display: block;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-mid);
  font-size: 0.95rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul li {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-date {
  display: inline-block;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 40px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    rgba(0,200,83,0.1),
    rgba(0,200,83,0.2)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-text strong {
  display: block;
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-detail-text span {
  font-size: 0.9rem;
  color: var(--text-mid);
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-family: var(--font-main);
}

input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: all 0.3s ease;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.08);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

input::