/* ── STAMPORO · Global Stylesheet ──────────────────────── */

:root {
  --gold: #B8964A;
  --gold-light: #F5EDD8;
  --gold-mid: #D4AC5A;
  --ink: #0F0F0F;
  --ink-soft: #4A4A4A;
  --ink-muted: #9A9A9A;
  --bg: #FAFAF8;
  --border: #E8E6E0;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── BETA BANNER ─────────────────────────────────────────── */
.beta-banner {
  background: #F5C842;
  color: #1A1200;
  text-align: center;
  font-size: 14px;
  padding: 12px 24px;
  letter-spacing: 0.03em;
  font-weight: 400;
  border-bottom: 2px solid #D4A800;
}
.beta-banner strong {
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; }

/* ── LOGO ───────────────────────────────────────────────── */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  line-height: 1;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-oro { color: #B8964A; }
/* Perforation strip under logo — simulates stamp perforations */
.logo-perf {
  display: block;
  width: 80px;
  height: 7px;
  position: relative;
  overflow: hidden;
}
.logo-perf::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 3px;
  background: radial-gradient(circle, #B8964A 42%, transparent 42%) 0 0 / 9px 7px repeat-x;
  opacity: 0.55;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-gold, .btn-outline {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 8px 20px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn-gold    { background: var(--gold); border: 1px solid var(--gold); color: var(--white); }
.btn-outline { background: none; border: 1px solid var(--ink); color: var(--ink); }
.btn-gold:hover    { opacity: 0.88; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-lg { padding: 11px 28px; font-size: 14px; }

/* ── NAVIGATION ─────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 32px;
}
.nav .logo {
  flex-shrink: 0;
  justify-content: center;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-actions-mobile { display: none; }
.lang-select {
  font-size: 12px;
  border: 1px solid var(--border);
  background: none;
  color: var(--ink-soft);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
}
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.hero-left {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  border-right: 1px solid var(--border);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-body {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 400px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background: var(--bg);
}
.stamp-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.15s;
}
.stamp-card:nth-child(2) { border-right: none; }
.stamp-card:nth-child(3) { border-bottom: none; }
.stamp-card:nth-child(4) { border-right: none; border-bottom: none; }
.stamp-card:hover { background: var(--white); }

.stamp-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.stamp-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(var(--border) 0% 25%, transparent 0% 50%) 0 0 / 8px 8px;
  opacity: 0.3;
}
.stamp-flag { position: relative; z-index: 1; }
.stamp-meta  { font-size: 11px; color: var(--ink-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.stamp-name  { font-family: var(--font-serif); font-size: 14px; color: var(--ink); margin-top: 2px; }
.stamp-value { font-size: 12px; color: var(--gold); font-weight: 500; margin-top: 4px; }

.badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  margin-top: 6px;
  font-weight: 500;
}
.badge-mint { background: var(--gold-light); color: var(--gold); }
.badge-used { background: #F0F0F0; color: var(--ink-muted); }

/* ── STATS BAR ──────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: var(--white);
}
.stat { padding: 32px 40px; border-right: 1px solid #2A2A2A; }
.stat:last-child { border-right: none; }
.stat-num   { font-family: var(--font-serif); font-size: 36px; font-weight: 400; color: var(--gold); }
.stat-label { font-size: 12px; color: #888; letter-spacing: 0.06em; margin-top: 4px; text-transform: uppercase; }

/* ── FEATURES ───────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.feature {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  background: var(--white);
}
.feature:last-child { border-right: none; }
.feature-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-light);
  background: var(--gold-light);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}
.feature-title {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 400;
}
.feature-body { font-size: 13px; color: var(--ink-soft); line-height: 1.7; font-weight: 300; }

/* ── MARKETPLACE ────────────────────────────────────────── */
.marketplace {
  padding: 64px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.marketplace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.marketplace-title { font-family: var(--font-serif); font-size: 32px; font-weight: 400; }

.listings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.listing {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.listing:hover { border-color: var(--gold); transform: translateY(-2px); }
.listing-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.listing-img::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--border);
  border-radius: 1px;
}
.listing-img span { position: relative; z-index: 1; }
.listing-country { font-size: 11px; color: var(--ink-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.listing-name { font-family: var(--font-serif); font-size: 15px; margin: 4px 0; font-weight: 400; }
.listing-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.listing-price  { font-size: 14px; font-weight: 500; color: var(--ink); }
.listing-action { font-size: 11px; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.listing-action:hover { text-decoration: underline; }

/* ── PRICING ────────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.plan { padding: 56px 64px; }
.plan-free { background: var(--white); border-right: 1px solid var(--border); }
.plan-gold { background: var(--ink); position: relative; }

.plan-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.plan-name {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.plan-gold .plan-name { color: #666; }
.plan-price {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}
.plan-gold .plan-price { color: var(--gold); font-size: 32px; margin-top: 8px; }
.plan-period { font-size: 13px; color: var(--ink-muted); margin-bottom: 32px; }
.plan-gold .plan-period { color: #666; }

.plan-features { list-style: none; margin-bottom: 36px; }
.plan-features li {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 300;
}
.plan-features li::before { content: '—'; color: var(--gold); font-size: 11px; flex-shrink: 0; }
.plan-gold .plan-features li { color: #AAA; border-color: #2A2A2A; }

.plan-cta {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 48px 64px 32px;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-tagline { font-size: 13px; color: var(--ink-muted); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.04em;
  opacity: 1;
}
.footer-links a:hover { color: var(--gold); text-decoration: underline; }
.footer-copy { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
/* Mobile-only elements — hidden globally, shown via media query */
.mob-bottom { display: none; }
@media (max-width: 1024px) {
  .listings { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 38px; }
}

@media (max-width: 768px) {
  /* ── Nav bar: logo left, burger right, nothing else ── */
  .nav {
    padding: 0 16px;
    height: 56px;
    gap: 0;
  }
  .nav-links  { display: none; }
  .nav-actions { display: none; }
  .lang-wrapper { display: none; }
  .nav-actions-mobile { display: none; }
  .logo-text  { font-size: 19px; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    font-size: 20px;
  }

  /* ── Open state: dropdown below nav ── */
  .nav.open { overflow: visible; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    z-index: 999;
    padding: 8px 0 0;
    gap: 0;
  }
  .nav.open .nav-links a {
    font-size: 15px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    display: block;
  }
  .nav.open .nav-links a:last-of-type { border-bottom: none; }
  /* Mobile bottom section — hidden by default, shown inside open menu */
  .mob-bottom { display: none; }
  .nav.open .mob-bottom {
    display: block !important;
    border-top: 2px solid var(--border);
    background: var(--bg);
    position: relative;
    z-index: 1000;
  }
  .mob-lang {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
  }
  .mob-lang span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    flex-shrink: 0;
  }
  .mob-lang select {
    flex: 1;
    font-size: 14px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    font-family: var(--font-sans);
  }
  .mob-auth {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 12px 20px 16px;
  }
  .mob-auth a {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    font-family: var(--font-sans);
    text-decoration: none;
    border-radius: 3px;
  }
  .mob-auth .btn-outline { border: 1px solid var(--ink); color: var(--ink); }
  .mob-auth .btn-gold    { background: var(--gold); border: 1px solid var(--gold); color: var(--white); }
  .mob-auth .mob-user    { font-size: 13px; color: var(--ink); font-weight: 500; flex: none; }
  .nav.open .nav-links { padding-bottom: 0; }

  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 40px 20px; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-title { font-size: 34px; }
  .hero-right { grid-template-columns: 1fr 1fr; }

  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid #2A2A2A; }

  .features { grid-template-columns: 1fr; }
  .feature { border-right: none; border-bottom: 1px solid var(--border); }

  .marketplace { padding: 40px 20px; }
  .marketplace-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .listings { grid-template-columns: 1fr 1fr; }

  .pricing { grid-template-columns: 1fr; }
  .plan-free { border-right: none; border-bottom: 1px solid var(--border); }
  .plan { padding: 40px 20px; }

  .footer { padding: 40px 20px 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-right { grid-template-columns: 1fr; }
  .listings { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
}

/* Nav lang select */
.nav-lang-select { font-size: 12px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 2px; background: var(--white); color: var(--ink); cursor: pointer; font-family: var(--font-sans); }
.nav-lang-select:hover { border-color: var(--gold); }
