:root {
  --bg-page: #160B2A;
  --bg-bar: #221538;
  --bg-card: #23163A;
  --bg-card-muted: #1A1028;
  --bg-elevated: #35254F;
  --border: #4A2E63;
  --border-soft: #3A2754;
  --text-primary: #FFFFFF;
  --text-secondary: #B7B0C8;
  --text-muted: #9E97B5;
  --text-subtle: #7D7597;
  --text-on-accent: #FFFFFF;
  --accent: #7C3AED;
  --accent-border: #9E78F7;
  --accent-soft: rgba(124, 58, 237, 0.22);
  --favor-request: #7C3AED;
  --favor-offer: #0D9488;
  --badge-request: #5B3A8A;
  --badge-offer: #236D73;
  --logo-teal: #00ACC1;
  --logo-magenta: #B32D71;
  --logo-gold: #FFB020;
  --premium-gold: #F6B81A;
  --success: #22C55E;
  --cert-paper: #FFFEF8;
  --cert-gold: #C9A227;
  --cert-purple: #4A2C6E;
  --cert-text: #1F1528;
  --cert-label: #6B5A7D;
  --radius-card: 14px;
  --radius-btn: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--accent-border); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(34, 21, 56, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover { text-decoration: none; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  display: flex;
  background: var(--bg-card-muted);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.lang-btn:hover { color: var(--text-primary); }

.lang-btn.active {
  background: var(--accent);
  color: var(--text-on-accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

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

.btn-sm {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #160B2A 0%, #2A1545 40%, #1a3a4a 70%, #160B2A 100%);
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-logo { margin-bottom: 1rem; }

.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0.25rem 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 1rem;
  max-width: 34rem;
}

.hero-pitch {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 34rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 0.65rem 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.store-btn:hover {
  text-decoration: none;
  border-color: var(--accent-border);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn-label {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.store-btn-name {
  font-size: 1rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.hero-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 172, 193, 0.25) 0%, rgba(179, 45, 113, 0.15) 50%, transparent 70%);
  filter: blur(20px);
}

.hero-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  width: min(100%, 280px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-card-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.karma-star { color: var(--logo-gold); font-size: 1.1rem; }

.hero-card-value {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0 1rem;
  color: var(--logo-gold);
}

.hero-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.badge-offer {
  background: var(--badge-offer);
  color: #fff;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-card-muted);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--text-secondary);
  max-width: 42rem;
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.step-num {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-border);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.step-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

.feature-request { border-top: 3px solid var(--favor-request); }
.feature-offer { border-top: 3px solid var(--favor-offer); }

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.feature-request .feature-icon {
  background: var(--badge-request);
  color: var(--accent-border);
}

.feature-offer .feature-icon {
  background: var(--badge-offer);
  color: var(--logo-teal);
}

.feature-card h3 { margin: 0 0 0.5rem; }

.feature-card p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.feature-quote {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* Split sections */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-content p {
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.highlight-line {
  font-weight: 600;
  color: var(--logo-teal) !important;
}

/* Map preview */
.map-preview {
  position: relative;
  height: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 46, 99, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 46, 99, 0.3) 1px, transparent 1px);
  background-size: 32px 32px;
}

.map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pin-request {
  background: var(--favor-request);
  top: 30%;
  left: 25%;
}

.pin-offer {
  background: var(--favor-offer);
  top: 55%;
  right: 30%;
}

.pin-small {
  width: 12px;
  height: 12px;
  top: 20%;
  right: 20%;
}

/* Karma grid */
.karma-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.karma-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-align: center;
}

.karma-star-lg {
  font-size: 2rem;
  color: var(--logo-gold);
  display: block;
  margin-bottom: 0.75rem;
}

.karma-item h3 { margin: 0 0 0.5rem; font-size: 1rem; }

.karma-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Reputation */
.rep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.rep-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.rep-card h3 { margin: 0 0 0.75rem; font-size: 1rem; }

.rep-card p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stars-demo {
  color: var(--logo-gold);
  font-size: 1.4rem;
  letter-spacing: 2px;
}

.badge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.badge-gold {
  border-color: var(--premium-gold);
  color: var(--premium-gold);
}

/* Certificate */
.section-cert {
  background: linear-gradient(135deg, var(--bg-page) 0%, #2a1a42 100%);
}

.cert-preview {
  display: flex;
  justify-content: center;
}

.cert-paper {
  background: var(--cert-paper);
  color: var(--cert-text);
  border: 2px solid var(--cert-gold);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  width: min(100%, 300px);
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cert-header {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--cert-purple);
  text-align: center;
  margin-bottom: 0.25rem;
}

.cert-issuer {
  font-size: 0.7rem;
  color: var(--cert-label);
  text-align: center;
  margin-bottom: 1rem;
}

.cert-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cert-gold), transparent);
  margin-bottom: 1rem;
}

.cert-field {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: var(--cert-label);
}

.cert-field span { font-weight: 700; color: var(--cert-text); }

.cert-seal {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--cert-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.section-title-dark { color: var(--text-primary); }

.trust-line {
  font-weight: 600;
  color: var(--cert-gold) !important;
  font-size: 0.9rem;
}

/* Premium */
.premium-block {
  text-align: center;
  max-width: 600px;
}

.premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--premium-gold), var(--logo-gold));
  color: #1a1028;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.premium-block p {
  color: var(--text-secondary);
  margin: 0;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, #2A1545 0%, #160B2A 50%, #1a3a4a 100%);
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.cta-inner p {
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
}

.cta-inner .hero-ctas {
  justify-content: center;
}

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

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

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

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .split-section,
  .steps,
  .feature-grid,
  .karma-grid,
  .rep-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; min-height: 200px; }
  .hero-inner { gap: 2rem; }

  .brand-sub { display: none; }
}

@media (max-width: 600px) {
  .header-actions .btn-sm { display: none; }

  .hero { padding: 2.5rem 0 3rem; }

  .section { padding: 3rem 0; }

  .hero-ctas { flex-direction: column; }
  .store-btn { justify-content: center; }
}
