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

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  background: #f4f6fb;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.matrix-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px 10px;
  margin: 0 -24px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f5f7fb;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.site-header.scrolled {
  box-shadow: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 30px;
  width: auto;
  margin-right: 4px;
}

@media (min-width: 960px) {
  .logo img {
    height: 34px;
  }
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.88rem;
}

.nav a {
  color: #6b7280;
  text-decoration: none;
  opacity: 0.85;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  opacity: 1;
}

.nav a.active {
  opacity: 1;
  color: #111827;
  border-bottom-color: #1d4ed8;
}

.nav-cta {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, #1d4ed8, #4338ca);
  font-weight: 500;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
  opacity: 1;
  text-decoration: none;
  border-bottom: none;
}

.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1d4ed8;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.6rem, 3vw + 1.4rem, 3.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 24px;
}

.section-metrics {
  background: #e9efff;
  border-radius: 18px;
  padding: 22px 40px 32px;
  margin: 12px auto 0;
  max-width: 920px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.metric-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px 14px;
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.metric-number {
  font-size: 1.85rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.metric-caption {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-footnote {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #1d4ed8, #4338ca);
  color: #ffffff;
}

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

.btn.secondary {
  background: #ffffff;
  color: #1f2937;
  border-color: rgba(148, 163, 184, 0.9);
}

.btn.secondary:hover {
  background: #e5f0ff;
}

.section {
  padding: 80px 0 48px;
  border-top: 1px solid #e5e7eb;
}

/* Add a bit of extra visual separation between stacked sections */
.section + .section {
  margin-top: 24px;
}

.section-alt {
  margin-top: 16px;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 22px;
  text-align: left;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 0.98rem;
  color: #4b5563;
  line-height: 1.7;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4f46e5;
  margin-bottom: 6px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: "";
  height: 2px;
  width: 40px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #1d4ed8);
}

/* Scroll reveal base styles (original behavior) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.how-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card {
  position: relative;
  padding-top: 28px;
}

.step-label {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c4c9ff;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #ffffff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  cursor: pointer;
}

.faq-icon {
  margin-left: 12px;
  font-size: 1rem;
  color: #4f46e5;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  opacity: 0;
  transition: max-height 0.22s ease, opacity 0.2s ease;
}

.faq-item.open .faq-answer {
  padding-bottom: 10px;
  opacity: 1;
}

.faq-item.open {
  border-color: #1d4ed8;
  background: #eff6ff;
}

.grid {
  display: grid;
  gap: 16px;
  justify-content: flex-start;
}

.two-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.difference-grid {
  align-items: stretch;
}

.difference-inner {
  max-width: 960px;
  margin: 4px auto 0;
  padding: 24px 28px 28px;
  border-radius: 22px;
  background: #e9efff;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.pillar-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.feature-card {
  grid-column: span 2;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 18px;
  padding: 22px 22px 20px;
  font-size: 0.92rem;
  color: #111827;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease,
    background-color 0.15s ease;
  min-height: 180px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card p {
  line-height: 1.7;
}

.card.highlight {
  border-color: rgba(37, 99, 235, 0.35);
}

.card:hover {
  border-color: rgba(37, 99, 235, 0.7);
  background-color: #f9fafb;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.card ul {
  padding-left: 1rem;
}

.card li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.cta {
  border-radius: 18px;
  padding: 18px 40px 22px;
  background: #e9efff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  position: relative;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.cta h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #111827;
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: 0.96rem;
  margin-bottom: 16px;
  color: #4b5563;
  position: relative;
  z-index: 1;
}

.cta .btn {
  margin-top: 12px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.site-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(72, 77, 130, 0.8);
  font-size: 0.8rem;
  color: #9398d1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

main {
  flex: 1 0 auto;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-left: auto;
}

.social-link.linkedin {
  border-color: rgba(59, 130, 246, 0.65);
  color: #2563eb;
}

.social-link:hover {
  background: rgba(59, 130, 246, 0.06);
}

/* Left-align footer tagline with copyright; keep LinkedIn icon on the right */
.site-footer span:nth-child(2) {
  flex: 0 0 auto;
  text-align: left;
}

.demo-card {
  display: none;
}

@media (min-width: 960px) {
  .three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-card {
    display: block;
    background: #f9fafb;
    border-style: dashed;
    border-color: rgba(37, 99, 235, 0.4);
    text-align: center;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .demo-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }

  .demo-card p {
    color: #6b7280;
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
  }

  .hero {
    padding-top: 32px;
  }

  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section {
    padding: 24px 0;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Ensure 'Why Cryptomics' cards stack cleanly on mobile */
  .difference-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .feature-card {
    grid-column: auto;
  }

  .card {
    min-height: auto;
  }

  .metrics-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-metrics {
    padding: 28px 20px 26px;
    border-radius: 18px;
  }

  /* Ensure FAQ question text is left-aligned on mobile */
  .faq-question {
    justify-content: space-between;
    text-align: left;
  }

  .faq-question span:first-child {
    text-align: left;
  }
}
@media (max-width: 1024px) and (min-width: 721px) {
  .how-grid,
  .two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
