/* MicroPay Components — shared across all pages */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--gradient-hero);
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--mp-orange); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--mp-orange-bright); }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

code, .mono { font-family: var(--font-mono); }
.comment { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 2rem; }

.section { padding: var(--section-pad) 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 600px; margin: 0 auto; color: var(--text-muted); }

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
  .section { padding: 3rem 0; }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: transparent;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.nav-brand img {
  height: 44px;
  width: auto;
  border: 2px solid var(--mp-orange);
  border-radius: 8px;
  padding: 3px;
  background: white;
}

.nav-brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-heading);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-heading);
  border-bottom-color: var(--mp-orange);
}

.nav-cta {
  background: var(--gradient-orange);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  border-bottom: none !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
  color: white !important;
}

/* Mobile nav */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.5rem;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.25rem;
}

.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    backdrop-filter: blur(20px);
  }
  .mobile-menu--open { display: flex; }
  .mobile-menu a {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu a:last-child { border-bottom: none; }
}

/* Theme toggle */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--mp-orange);
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.2);
}

/* Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.card-accent-left {
  border-left: 3px solid var(--mp-orange);
}

.card-accent-blue {
  border-left: 3px solid var(--mp-blue);
}

.card-accent-green {
  border-left: 3px solid var(--mp-green);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.card-icon-orange {
  background: rgba(255, 102, 0, 0.1);
  color: var(--mp-orange);
  border: 1px solid rgba(255, 102, 0, 0.2);
}

.card-icon-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--mp-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.card-icon-green {
  background: rgba(34, 197, 94, 0.1);
  color: var(--mp-green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.card-icon-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--mp-purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

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

/* Feature list inside cards */
.feature-list {
  list-style: none;
  margin: 1rem 0;
}

.feature-list li {
  padding: 0.35rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-list li .check {
  color: var(--mp-green);
  font-size: 0.75rem;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-xs);
}

.badge-orange {
  background: rgba(255, 102, 0, 0.1);
  color: var(--mp-orange);
  border: 1px solid rgba(255, 102, 0, 0.3);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--mp-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-green {
  background: rgba(34, 197, 94, 0.1);
  color: var(--mp-green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-amber {
  background: rgba(255, 170, 0, 0.1);
  color: var(--mp-amber);
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.badge-muted {
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-orange);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
  color: white;
}

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

.btn-outline:hover {
  border-color: var(--mp-orange);
  color: var(--mp-orange);
  background: rgba(255, 102, 0, 0.05);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

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

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--mp-orange);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--mp-orange);
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Hero stats row */
.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat h3 {
  font-size: 2rem;
  font-family: var(--font-mono);
  color: var(--mp-orange);
  margin-bottom: 0.25rem;
}

.hero-stat p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; justify-content: center; }
}

/* Team cards */
.team-card {
  text-align: center;
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 1rem;
}

.team-card h4 {
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--mp-orange);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-card .bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.team-card .social a {
  color: var(--text-muted);
  margin: 0 0.25rem;
  transition: color var(--transition-fast);
}

.team-card .social a:hover { color: var(--mp-orange); }

/* Footer */
.footer {
  background: var(--footer-bg);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer h5 {
  color: var(--text-heading);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

.footer-social a:hover {
  color: var(--mp-orange);
  border-color: var(--mp-orange);
  background: rgba(255, 102, 0, 0.1);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* Ecosystem diagram */
.ecosystem-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2rem 0;
  flex-wrap: wrap;
  row-gap: 0.75rem;
}

.ecosystem-pair {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ecosystem-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
  min-width: 130px;
  max-width: 165px;
  backdrop-filter: blur(12px);
  transition: transform var(--transition), box-shadow var(--transition);
}

.ecosystem-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ecosystem-node h4 { font-size: 0.8rem; margin-bottom: 0.25rem; }
.ecosystem-node p { font-size: 0.7rem; color: var(--text-muted); }

.ecosystem-arrow {
  color: var(--mp-orange);
  font-size: 1.1rem;
  flex-shrink: 0;
  padding: 0 0.25rem;
}

@media (max-width: 768px) {
  .ecosystem-flow {
    flex-direction: column;
    align-items: center;
  }
  .ecosystem-pair { flex-direction: column; }
  .ecosystem-arrow { transform: rotate(90deg); }
  .ecosystem-node { max-width: 250px; }
}

/* Contact form */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--mp-orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control { cursor: pointer; }

textarea.form-control { resize: vertical; min-height: 100px; }

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* Utility */
/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link visible on focus */
.skip-link:focus {
  top: 0 !important;
}

.text-center { text-align: center; }
.text-orange { color: var(--mp-orange); }
.text-blue { color: var(--mp-blue); }
.text-green { color: var(--mp-green); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.h-100 { height: 100%; }
