/* Folm Market — crypto marketplace design system */

:root {
  --fm-navy: #0b1120;
  --fm-navy-light: #111827;
  --fm-cyan: #06b6d4;
  --fm-purple: #8b5cf6;
  --fm-text: #e2e8f0;
  --fm-muted: #94a3b8;
  --fm-card: #1e293b;
  --fm-radius: 12px;
  --fm-container: 1120px;
}

/* Hide front page title & tighten layout */
.home .entry-header,
.home .ast-single-entry-banner,
.home .ast-archive-description {
  display: none !important;
}

.home #primary,
.home .site-content,
.home .ast-container,
.home .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.home .site-content > .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.home .entry-content > *:first-child {
  margin-top: 0 !important;
}

.fm-container {
  max-width: var(--fm-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header,
.ast-primary-header-bar {
  background: var(--fm-navy) !important;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-title,
.site-description,
.ast-site-identity .site-title,
.ast-site-identity .site-description {
  display: none !important;
}

.fm-brand,
.custom-logo-link.fm-brand {
  display: inline-flex !important;
  align-items: center;
  line-height: 0;
}

.fm-logo,
.custom-logo.fm-logo {
  height: 40px !important;
  width: auto !important;
  max-width: 200px;
}

.main-header-menu .menu-link {
  color: var(--fm-text) !important;
}

.main-header-menu .menu-link:hover {
  color: var(--fm-cyan) !important;
}

/* Hero */
.fm-hero {
  position: relative;
  background: linear-gradient(135deg, #060a14 0%, #1e1b4b 45%, #0f172a 100%);
  color: var(--fm-text);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

.fm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  pointer-events: none;
}

.fm-hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.fm-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fm-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.fm-hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #fff;
}

.fm-gradient-text {
  background: linear-gradient(90deg, var(--fm-cyan), var(--fm-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fm-hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--fm-muted);
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

.fm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 720px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

.fm-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

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

@media (max-width: 640px) {
  .fm-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .fm-hero {
    padding: 4rem 1rem 3rem;
  }
}

.fm-btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.fm-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fm-btn-primary {
  background: linear-gradient(135deg, var(--fm-cyan), #0891b2);
  color: #fff !important;
}

.fm-btn-light {
  background: #fff !important;
  color: #0f172a !important;
}

.fm-btn-light:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.fm-btn-secondary {
  background: transparent;
  border: 2px solid var(--fm-cyan);
  color: var(--fm-cyan) !important;
}

.fm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}

/* Section blocks */
.fm-section {
  padding: 4rem 2rem;
}

.fm-section-dark {
  background: var(--fm-navy);
  color: var(--fm-text);
}

.fm-section-light {
  background: #f8fafc;
  color: #0f172a;
}

.fm-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.fm-section .fm-subtitle {
  text-align: center;
  color: var(--fm-muted);
  margin-bottom: 3rem;
}

.fm-section-light .fm-subtitle {
  color: #64748b;
}

/* Market cards */
.fm-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.fm-market-card {
  background: linear-gradient(160deg, var(--fm-card) 0%, #172033 100%);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: var(--fm-radius);
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.fm-market-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.fm-market-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.fm-market-card .symbol {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fm-cyan);
  letter-spacing: 0.05em;
}

.fm-market-card .price {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.fm-market-meta {
  font-size: 0.8rem;
  color: var(--fm-muted);
}

.fm-market-card .change {
  color: #34d399;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: rgba(52, 211, 153, 0.12);
  border-radius: 6px;
}

.fm-market-card .change.fm-neutral {
  color: var(--fm-muted);
  background: rgba(148, 163, 184, 0.12);
}

/* Feature grid */
.fm-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.fm-feature {
  text-align: left;
  padding: 2rem 1.75rem;
  background: #fff;
  border-radius: var(--fm-radius);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fm-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.fm-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.fm-feature h3 {
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.fm-feature p {
  color: #64748b;
  font-size: 0.95rem;
}

/* Steps */
.fm-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  counter-reset: step;
}

.fm-step {
  text-align: center;
  position: relative;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--fm-radius);
  border: 1px solid rgba(6, 182, 212, 0.12);
}

.fm-step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--fm-cyan), var(--fm-purple));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
}

.fm-step h3 {
  margin-bottom: 0.5rem;
}

.fm-step p {
  color: var(--fm-muted);
  font-size: 0.95rem;
}

/* Insights / latest posts on homepage */
.fm-section-insights {
  background: #f1f5f9;
  color: #0f172a;
  padding: 4rem 0 2rem;
}

.fm-section-insights h2,
.fm-section-insights .fm-subtitle {
  text-align: center;
}

.fm-section-insights .fm-subtitle {
  color: #64748b;
  margin-bottom: 0;
}

.home .fm-latest-posts,
.home .wp-block-latest-posts {
  max-width: var(--fm-container);
  margin: 2rem auto 0 !important;
  padding: 0 1.5rem 3rem !important;
  list-style: none;
}

.home .wp-block-latest-posts li {
  background: #fff;
  border-radius: var(--fm-radius);
  border: 1px solid #e2e8f0;
  padding: 1.25rem 1.5rem !important;
  margin-bottom: 1rem !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.home .wp-block-latest-posts__post-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-decoration: none !important;
}

.home .wp-block-latest-posts__post-title:hover {
  color: #0891b2 !important;
}

.home .wp-block-latest-posts__post-excerpt {
  color: #64748b !important;
  margin-top: 0.5rem !important;
}

.home .wp-block-latest-posts__read-more {
  color: var(--fm-cyan) !important;
  font-weight: 600 !important;
}

/* CTA band */
.fm-cta {
  background: linear-gradient(135deg, #0891b2, var(--fm-purple));
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}

.fm-cta h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.fm-cta p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* About page */
.fm-about-hero {
  background: var(--fm-navy);
  color: var(--fm-text);
  padding: 4rem 2rem;
  text-align: center;
}

.fm-about-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem;
  line-height: 1.8;
}

.fm-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 2rem auto;
}

.fm-value-card {
  background: var(--fm-card);
  color: var(--fm-text);
  padding: 1.5rem;
  border-radius: var(--fm-radius);
  border-left: 4px solid var(--fm-cyan);
}

/* Contact page */
.fm-contact-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.fm-contact-info {
  background: var(--fm-navy);
  color: var(--fm-text);
  padding: 2rem;
  border-radius: var(--fm-radius);
  margin-bottom: 2rem;
  text-align: center;
}

.fm-contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.fm-contact-form input,
.fm-contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.fm-contact-form button {
  background: linear-gradient(135deg, var(--fm-cyan), #0891b2);
  color: #fff;
  border: none;
  padding: 0.875rem 2.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

/* Blog / single post */
.single-post .entry-content,
.blog .entry-content {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}

.single-post .entry-title a,
.blog .entry-title a {
  color: #0f172a;
}

.single-post .entry-title a:hover {
  color: var(--fm-cyan);
}

.single-post .entry-content a {
  color: #0891b2;
  text-decoration: underline;
}

.single-post .entry-content blockquote {
  border-left: 4px solid var(--fm-cyan);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #f0fdfa;
  font-style: italic;
}

.single-post .post-thumb img,
.blog .post-thumb img {
  border-radius: var(--fm-radius);
}

.single-post .entry-meta,
.blog .entry-meta {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.single-post .ast-single-post-order {
  background: #f8fafc;
}

/* Footer */
#colophon.site-footer {
  display: none !important;
}

.fm-footer-wrap {
  background: #060a14;
  border-top: 1px solid rgba(6, 182, 212, 0.15);
  color: var(--fm-muted);
}

.fm-footer {
  max-width: var(--fm-container);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1.5rem;
}

.fm-footer-main {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.fm-footer-brand {
  padding-right: 1rem;
}

.fm-footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 1rem;
}

.fm-footer-tagline {
  color: var(--fm-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
  margin: 0;
}

.fm-footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.fm-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fm-footer-col li {
  margin-bottom: 0.6rem;
}

.fm-footer-col a,
.fm-footer-legal a {
  color: var(--fm-muted) !important;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.fm-footer-col a:hover,
.fm-footer-legal a:hover {
  color: var(--fm-cyan) !important;
}

.fm-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

.fm-footer-bottom p {
  margin: 0;
  color: #64748b;
}

.fm-footer-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fm-footer-legal span {
  color: #475569;
}

@media (max-width: 900px) {
  .fm-footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .fm-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .fm-footer-main {
    grid-template-columns: 1fr;
  }

  .fm-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Full-width pages */
.home .entry-content > .fm-hero,
.home .entry-content > .fm-section,
.home .entry-content > .fm-cta,
.page-template-default .entry-content > .fm-hero,
.page-template-default .entry-content > .fm-section,
.page-template-default .entry-content > .fm-cta {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  max-width: 100vw;
}
