/* ============================================================
   MELDRINO — Shared Stylesheet
   Fonts: Space Mono (headings/mono), DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --navy:       #1A1A2E;
  --navy-mid:   #16213E;
  --navy-light: #0F3460;
  --teal:       #00BFA5;
  --teal-dark:  #00897B;
  --mint:       #69FFDA;
  --white:      #ffffff;
  --white-60:   rgba(255, 255, 255, 0.6);
  --white-20:   rgba(255, 255, 255, 0.08);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.85);
  pointer-events: none;
  z-index: 0;
}

/* ── Navigation ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
}

.nav-logo-text {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--mint);
}

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

.nav-links a {
  color: var(--white-60);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-links .has-submenu { position: relative; }

.nav-links .has-submenu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  margin-top: 8px;
}

.nav-links .has-submenu:hover .submenu { display: block; }

.submenu a {
  display: block;
  padding: 8px 20px;
  color: var(--white-60);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}

.submenu a:hover {
  color: var(--mint);
  background: rgba(105, 255, 218, 0.06);
}

.nav-cta {
  background: transparent;
  color: var(--teal) !important;
  border: 1px solid var(--teal);
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--teal) !important;
  color: var(--navy) !important;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--mint);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: var(--white-20);
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* ── Section Shared ───────────────────────────────────────── */
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--white-60);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 16px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.hero-bg-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,191,165,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,191,165,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,191,165,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700;
  color: var(--mint);
  line-height: 1.1;
  margin-bottom: 20px;
}

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

.hero-tagline {
  font-family: 'Space Mono', monospace;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--white-60);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 18px;
  color: var(--white-60);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 100%;
}

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

/* ── Ticker ───────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--white-60);
  white-space: nowrap;
}

.ticker-item img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* ── Feature Cards ────────────────────────────────────────── */
.features {
  padding: 80px 48px;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(105, 255, 218, 0.06);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(105, 255, 218, 0.3);
  transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-title {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.6;
}

/* ── Problem Section ──────────────────────────────────────── */
.problem {
  padding: 80px 48px;
  position: relative;
  z-index: 1;
}

.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .problem-inner { grid-template-columns: 1fr; gap: 48px; }
}

.problem-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 24px;
}

.problem-desc {
  font-size: 16px;
  color: var(--white-60);
  line-height: 1.8;
  margin-bottom: 16px;
}

.problem-desc em {
  color: var(--white);
  font-style: normal;
}

.problem-answer {
  font-size: 16px;
  color: var(--teal);
  line-height: 1.8;
}

/* ── Wallet Pills ─────────────────────────────────────────── */
.wallets-section {
  padding: 80px 48px;
  background: var(--navy-mid);
  position: relative;
  z-index: 1;
}

.wallets-section .section-label,
.wallets-section .section-title { text-align: center; }

.wallets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.wallet-pill {
  background: rgba(105, 255, 218, 0.06);
  border: 1px solid rgba(105, 255, 218, 0.15);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--white);
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}

.wallet-pill:hover {
  background: rgba(105, 255, 218, 0.12);
  border-color: rgba(105, 255, 218, 0.4);
}

/* ── Steps / How It Works ─────────────────────────────────── */
.how {
  padding: 80px 48px;
  position: relative;
  z-index: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.step { position: relative; }

.step-number {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 12px;
}

.step-title {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.6;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  margin: 0 48px 80px;
  padding: 60px 48px;
  background: var(--navy-light);
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,191,165,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 16px;
  color: var(--white-60);
  margin-bottom: 32px;
}

.cta-banner .btn-primary { position: relative; }

/* ── Product Cards (for hub homepage) ────────────────────── */
.products {
  padding: 80px 48px;
  position: relative;
  z-index: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.product-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  text-decoration: none;
  display: block;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(105, 255, 218, 0.04);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover {
  border-color: rgba(105, 255, 218, 0.3);
  transform: translateY(-4px);
}

.product-card:hover::before { opacity: 1; }

.product-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.product-name {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 12px;
}

.product-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-tag.coming-soon {
  color: var(--white-60);
  border-color: rgba(255,255,255,0.2);
}

.product-desc {
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.7;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--mint);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--white-60);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--white-60);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 60px; }
  .features,
  .how,
  .problem,
  .products { padding: 60px 24px; }
  .wallets-section { padding: 60px 24px; }
  .cta-banner { margin: 0 24px 60px; padding: 40px 24px; }
  footer { padding: 32px 24px; flex-direction: column; gap: 20px; text-align: center; }
}
